yandex.cloud.api.kms.v1.SymmetricCryptoServiceGrpc Maven / Gradle / Ivy
package yandex.cloud.api.kms.v1;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*
* Set of methods that perform symmetric encryption and decryption.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.43.2)",
comments = "Source: yandex/cloud/kms/v1/symmetric_crypto_service.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class SymmetricCryptoServiceGrpc {
private SymmetricCryptoServiceGrpc() {}
public static final String SERVICE_NAME = "yandex.cloud.kms.v1.SymmetricCryptoService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getEncryptMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Encrypt",
requestType = yandex.cloud.api.kms.v1.SymmetricCryptoServiceOuterClass.SymmetricEncryptRequest.class,
responseType = yandex.cloud.api.kms.v1.SymmetricCryptoServiceOuterClass.SymmetricEncryptResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getEncryptMethod() {
io.grpc.MethodDescriptor getEncryptMethod;
if ((getEncryptMethod = SymmetricCryptoServiceGrpc.getEncryptMethod) == null) {
synchronized (SymmetricCryptoServiceGrpc.class) {
if ((getEncryptMethod = SymmetricCryptoServiceGrpc.getEncryptMethod) == null) {
SymmetricCryptoServiceGrpc.getEncryptMethod = getEncryptMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Encrypt"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.kms.v1.SymmetricCryptoServiceOuterClass.SymmetricEncryptRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.kms.v1.SymmetricCryptoServiceOuterClass.SymmetricEncryptResponse.getDefaultInstance()))
.setSchemaDescriptor(new SymmetricCryptoServiceMethodDescriptorSupplier("Encrypt"))
.build();
}
}
}
return getEncryptMethod;
}
private static volatile io.grpc.MethodDescriptor getDecryptMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Decrypt",
requestType = yandex.cloud.api.kms.v1.SymmetricCryptoServiceOuterClass.SymmetricDecryptRequest.class,
responseType = yandex.cloud.api.kms.v1.SymmetricCryptoServiceOuterClass.SymmetricDecryptResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getDecryptMethod() {
io.grpc.MethodDescriptor getDecryptMethod;
if ((getDecryptMethod = SymmetricCryptoServiceGrpc.getDecryptMethod) == null) {
synchronized (SymmetricCryptoServiceGrpc.class) {
if ((getDecryptMethod = SymmetricCryptoServiceGrpc.getDecryptMethod) == null) {
SymmetricCryptoServiceGrpc.getDecryptMethod = getDecryptMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Decrypt"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.kms.v1.SymmetricCryptoServiceOuterClass.SymmetricDecryptRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.kms.v1.SymmetricCryptoServiceOuterClass.SymmetricDecryptResponse.getDefaultInstance()))
.setSchemaDescriptor(new SymmetricCryptoServiceMethodDescriptorSupplier("Decrypt"))
.build();
}
}
}
return getDecryptMethod;
}
private static volatile io.grpc.MethodDescriptor getReEncryptMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ReEncrypt",
requestType = yandex.cloud.api.kms.v1.SymmetricCryptoServiceOuterClass.SymmetricReEncryptRequest.class,
responseType = yandex.cloud.api.kms.v1.SymmetricCryptoServiceOuterClass.SymmetricReEncryptResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getReEncryptMethod() {
io.grpc.MethodDescriptor getReEncryptMethod;
if ((getReEncryptMethod = SymmetricCryptoServiceGrpc.getReEncryptMethod) == null) {
synchronized (SymmetricCryptoServiceGrpc.class) {
if ((getReEncryptMethod = SymmetricCryptoServiceGrpc.getReEncryptMethod) == null) {
SymmetricCryptoServiceGrpc.getReEncryptMethod = getReEncryptMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReEncrypt"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.kms.v1.SymmetricCryptoServiceOuterClass.SymmetricReEncryptRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.kms.v1.SymmetricCryptoServiceOuterClass.SymmetricReEncryptResponse.getDefaultInstance()))
.setSchemaDescriptor(new SymmetricCryptoServiceMethodDescriptorSupplier("ReEncrypt"))
.build();
}
}
}
return getReEncryptMethod;
}
private static volatile io.grpc.MethodDescriptor getGenerateDataKeyMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GenerateDataKey",
requestType = yandex.cloud.api.kms.v1.SymmetricCryptoServiceOuterClass.GenerateDataKeyRequest.class,
responseType = yandex.cloud.api.kms.v1.SymmetricCryptoServiceOuterClass.GenerateDataKeyResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGenerateDataKeyMethod() {
io.grpc.MethodDescriptor getGenerateDataKeyMethod;
if ((getGenerateDataKeyMethod = SymmetricCryptoServiceGrpc.getGenerateDataKeyMethod) == null) {
synchronized (SymmetricCryptoServiceGrpc.class) {
if ((getGenerateDataKeyMethod = SymmetricCryptoServiceGrpc.getGenerateDataKeyMethod) == null) {
SymmetricCryptoServiceGrpc.getGenerateDataKeyMethod = getGenerateDataKeyMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateDataKey"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.kms.v1.SymmetricCryptoServiceOuterClass.GenerateDataKeyRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.kms.v1.SymmetricCryptoServiceOuterClass.GenerateDataKeyResponse.getDefaultInstance()))
.setSchemaDescriptor(new SymmetricCryptoServiceMethodDescriptorSupplier("GenerateDataKey"))
.build();
}
}
}
return getGenerateDataKeyMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static SymmetricCryptoServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public SymmetricCryptoServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SymmetricCryptoServiceStub(channel, callOptions);
}
};
return SymmetricCryptoServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static SymmetricCryptoServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public SymmetricCryptoServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SymmetricCryptoServiceBlockingStub(channel, callOptions);
}
};
return SymmetricCryptoServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static SymmetricCryptoServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public SymmetricCryptoServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SymmetricCryptoServiceFutureStub(channel, callOptions);
}
};
return SymmetricCryptoServiceFutureStub.newStub(factory, channel);
}
/**
*
* Set of methods that perform symmetric encryption and decryption.
*
*/
public static abstract class SymmetricCryptoServiceImplBase implements io.grpc.BindableService {
/**
*
* Encrypts given plaintext with the specified key.
*
*/
public void encrypt(yandex.cloud.api.kms.v1.SymmetricCryptoServiceOuterClass.SymmetricEncryptRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getEncryptMethod(), responseObserver);
}
/**
*
* Decrypts the given ciphertext with the specified key.
*
*/
public void decrypt(yandex.cloud.api.kms.v1.SymmetricCryptoServiceOuterClass.SymmetricDecryptRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDecryptMethod(), responseObserver);
}
/**
*
* Re-encrypts a ciphertext with the specified KMS key.
*
*/
public void reEncrypt(yandex.cloud.api.kms.v1.SymmetricCryptoServiceOuterClass.SymmetricReEncryptRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getReEncryptMethod(), responseObserver);
}
/**
*
* Generates a new symmetric data encryption key (not a KMS key) and returns
* the generated key as plaintext and as ciphertext encrypted with the specified symmetric KMS key.
*
*/
public void generateDataKey(yandex.cloud.api.kms.v1.SymmetricCryptoServiceOuterClass.GenerateDataKeyRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenerateDataKeyMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getEncryptMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.kms.v1.SymmetricCryptoServiceOuterClass.SymmetricEncryptRequest,
yandex.cloud.api.kms.v1.SymmetricCryptoServiceOuterClass.SymmetricEncryptResponse>(
this, METHODID_ENCRYPT)))
.addMethod(
getDecryptMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.kms.v1.SymmetricCryptoServiceOuterClass.SymmetricDecryptRequest,
yandex.cloud.api.kms.v1.SymmetricCryptoServiceOuterClass.SymmetricDecryptResponse>(
this, METHODID_DECRYPT)))
.addMethod(
getReEncryptMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.kms.v1.SymmetricCryptoServiceOuterClass.SymmetricReEncryptRequest,
yandex.cloud.api.kms.v1.SymmetricCryptoServiceOuterClass.SymmetricReEncryptResponse>(
this, METHODID_RE_ENCRYPT)))
.addMethod(
getGenerateDataKeyMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.kms.v1.SymmetricCryptoServiceOuterClass.GenerateDataKeyRequest,
yandex.cloud.api.kms.v1.SymmetricCryptoServiceOuterClass.GenerateDataKeyResponse>(
this, METHODID_GENERATE_DATA_KEY)))
.build();
}
}
/**
*
* Set of methods that perform symmetric encryption and decryption.
*
*/
public static final class SymmetricCryptoServiceStub extends io.grpc.stub.AbstractAsyncStub {
private SymmetricCryptoServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected SymmetricCryptoServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SymmetricCryptoServiceStub(channel, callOptions);
}
/**
*
* Encrypts given plaintext with the specified key.
*
*/
public void encrypt(yandex.cloud.api.kms.v1.SymmetricCryptoServiceOuterClass.SymmetricEncryptRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getEncryptMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Decrypts the given ciphertext with the specified key.
*
*/
public void decrypt(yandex.cloud.api.kms.v1.SymmetricCryptoServiceOuterClass.SymmetricDecryptRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDecryptMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Re-encrypts a ciphertext with the specified KMS key.
*
*/
public void reEncrypt(yandex.cloud.api.kms.v1.SymmetricCryptoServiceOuterClass.SymmetricReEncryptRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getReEncryptMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Generates a new symmetric data encryption key (not a KMS key) and returns
* the generated key as plaintext and as ciphertext encrypted with the specified symmetric KMS key.
*
*/
public void generateDataKey(yandex.cloud.api.kms.v1.SymmetricCryptoServiceOuterClass.GenerateDataKeyRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGenerateDataKeyMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*
* Set of methods that perform symmetric encryption and decryption.
*
*/
public static final class SymmetricCryptoServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub {
private SymmetricCryptoServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected SymmetricCryptoServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SymmetricCryptoServiceBlockingStub(channel, callOptions);
}
/**
*
* Encrypts given plaintext with the specified key.
*
*/
public yandex.cloud.api.kms.v1.SymmetricCryptoServiceOuterClass.SymmetricEncryptResponse encrypt(yandex.cloud.api.kms.v1.SymmetricCryptoServiceOuterClass.SymmetricEncryptRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getEncryptMethod(), getCallOptions(), request);
}
/**
*
* Decrypts the given ciphertext with the specified key.
*
*/
public yandex.cloud.api.kms.v1.SymmetricCryptoServiceOuterClass.SymmetricDecryptResponse decrypt(yandex.cloud.api.kms.v1.SymmetricCryptoServiceOuterClass.SymmetricDecryptRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDecryptMethod(), getCallOptions(), request);
}
/**
*
* Re-encrypts a ciphertext with the specified KMS key.
*
*/
public yandex.cloud.api.kms.v1.SymmetricCryptoServiceOuterClass.SymmetricReEncryptResponse reEncrypt(yandex.cloud.api.kms.v1.SymmetricCryptoServiceOuterClass.SymmetricReEncryptRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getReEncryptMethod(), getCallOptions(), request);
}
/**
*
* Generates a new symmetric data encryption key (not a KMS key) and returns
* the generated key as plaintext and as ciphertext encrypted with the specified symmetric KMS key.
*
*/
public yandex.cloud.api.kms.v1.SymmetricCryptoServiceOuterClass.GenerateDataKeyResponse generateDataKey(yandex.cloud.api.kms.v1.SymmetricCryptoServiceOuterClass.GenerateDataKeyRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGenerateDataKeyMethod(), getCallOptions(), request);
}
}
/**
*
* Set of methods that perform symmetric encryption and decryption.
*
*/
public static final class SymmetricCryptoServiceFutureStub extends io.grpc.stub.AbstractFutureStub {
private SymmetricCryptoServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected SymmetricCryptoServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SymmetricCryptoServiceFutureStub(channel, callOptions);
}
/**
*
* Encrypts given plaintext with the specified key.
*
*/
public com.google.common.util.concurrent.ListenableFuture encrypt(
yandex.cloud.api.kms.v1.SymmetricCryptoServiceOuterClass.SymmetricEncryptRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getEncryptMethod(), getCallOptions()), request);
}
/**
*
* Decrypts the given ciphertext with the specified key.
*
*/
public com.google.common.util.concurrent.ListenableFuture decrypt(
yandex.cloud.api.kms.v1.SymmetricCryptoServiceOuterClass.SymmetricDecryptRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDecryptMethod(), getCallOptions()), request);
}
/**
*
* Re-encrypts a ciphertext with the specified KMS key.
*
*/
public com.google.common.util.concurrent.ListenableFuture reEncrypt(
yandex.cloud.api.kms.v1.SymmetricCryptoServiceOuterClass.SymmetricReEncryptRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getReEncryptMethod(), getCallOptions()), request);
}
/**
*
* Generates a new symmetric data encryption key (not a KMS key) and returns
* the generated key as plaintext and as ciphertext encrypted with the specified symmetric KMS key.
*
*/
public com.google.common.util.concurrent.ListenableFuture generateDataKey(
yandex.cloud.api.kms.v1.SymmetricCryptoServiceOuterClass.GenerateDataKeyRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGenerateDataKeyMethod(), getCallOptions()), request);
}
}
private static final int METHODID_ENCRYPT = 0;
private static final int METHODID_DECRYPT = 1;
private static final int METHODID_RE_ENCRYPT = 2;
private static final int METHODID_GENERATE_DATA_KEY = 3;
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 SymmetricCryptoServiceImplBase serviceImpl;
private final int methodId;
MethodHandlers(SymmetricCryptoServiceImplBase 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_ENCRYPT:
serviceImpl.encrypt((yandex.cloud.api.kms.v1.SymmetricCryptoServiceOuterClass.SymmetricEncryptRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DECRYPT:
serviceImpl.decrypt((yandex.cloud.api.kms.v1.SymmetricCryptoServiceOuterClass.SymmetricDecryptRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_RE_ENCRYPT:
serviceImpl.reEncrypt((yandex.cloud.api.kms.v1.SymmetricCryptoServiceOuterClass.SymmetricReEncryptRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GENERATE_DATA_KEY:
serviceImpl.generateDataKey((yandex.cloud.api.kms.v1.SymmetricCryptoServiceOuterClass.GenerateDataKeyRequest) 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 SymmetricCryptoServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
SymmetricCryptoServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return yandex.cloud.api.kms.v1.SymmetricCryptoServiceOuterClass.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("SymmetricCryptoService");
}
}
private static final class SymmetricCryptoServiceFileDescriptorSupplier
extends SymmetricCryptoServiceBaseDescriptorSupplier {
SymmetricCryptoServiceFileDescriptorSupplier() {}
}
private static final class SymmetricCryptoServiceMethodDescriptorSupplier
extends SymmetricCryptoServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
SymmetricCryptoServiceMethodDescriptorSupplier(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 (SymmetricCryptoServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new SymmetricCryptoServiceFileDescriptorSupplier())
.addMethod(getEncryptMethod())
.addMethod(getDecryptMethod())
.addMethod(getReEncryptMethod())
.addMethod(getGenerateDataKeyMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy