All Downloads are FREE. Search and download functionalities are using the official Maven repository.

yandex.cloud.api.lockbox.v1.PayloadServiceGrpc Maven / Gradle / Ivy

package yandex.cloud.api.lockbox.v1;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 * 
 * Set of methods to access payload of secrets.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler (version 1.43.2)", comments = "Source: yandex/cloud/lockbox/v1/payload_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class PayloadServiceGrpc { private PayloadServiceGrpc() {} public static final String SERVICE_NAME = "yandex.cloud.lockbox.v1.PayloadService"; // 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.lockbox.v1.PayloadServiceOuterClass.GetPayloadRequest.class, responseType = yandex.cloud.api.lockbox.v1.PayloadOuterClass.Payload.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetMethod() { io.grpc.MethodDescriptor getGetMethod; if ((getGetMethod = PayloadServiceGrpc.getGetMethod) == null) { synchronized (PayloadServiceGrpc.class) { if ((getGetMethod = PayloadServiceGrpc.getGetMethod) == null) { PayloadServiceGrpc.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.lockbox.v1.PayloadServiceOuterClass.GetPayloadRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.lockbox.v1.PayloadOuterClass.Payload.getDefaultInstance())) .setSchemaDescriptor(new PayloadServiceMethodDescriptorSupplier("Get")) .build(); } } } return getGetMethod; } /** * Creates a new async stub that supports all call types for the service */ public static PayloadServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public PayloadServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new PayloadServiceStub(channel, callOptions); } }; return PayloadServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static PayloadServiceBlockingStub newBlockingStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public PayloadServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new PayloadServiceBlockingStub(channel, callOptions); } }; return PayloadServiceBlockingStub.newStub(factory, channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static PayloadServiceFutureStub newFutureStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public PayloadServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new PayloadServiceFutureStub(channel, callOptions); } }; return PayloadServiceFutureStub.newStub(factory, channel); } /** *
   * Set of methods to access payload of secrets.
   * 
*/ public static abstract class PayloadServiceImplBase implements io.grpc.BindableService { /** *
     * Returns the payload of the specified secret.
     * To get the list of all available secrets, make a [SecretService.List] request.
     * 
*/ public void get(yandex.cloud.api.lockbox.v1.PayloadServiceOuterClass.GetPayloadRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMethod(), 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.lockbox.v1.PayloadServiceOuterClass.GetPayloadRequest, yandex.cloud.api.lockbox.v1.PayloadOuterClass.Payload>( this, METHODID_GET))) .build(); } } /** *
   * Set of methods to access payload of secrets.
   * 
*/ public static final class PayloadServiceStub extends io.grpc.stub.AbstractAsyncStub { private PayloadServiceStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected PayloadServiceStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new PayloadServiceStub(channel, callOptions); } /** *
     * Returns the payload of the specified secret.
     * To get the list of all available secrets, make a [SecretService.List] request.
     * 
*/ public void get(yandex.cloud.api.lockbox.v1.PayloadServiceOuterClass.GetPayloadRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetMethod(), getCallOptions()), request, responseObserver); } } /** *
   * Set of methods to access payload of secrets.
   * 
*/ public static final class PayloadServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private PayloadServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected PayloadServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new PayloadServiceBlockingStub(channel, callOptions); } /** *
     * Returns the payload of the specified secret.
     * To get the list of all available secrets, make a [SecretService.List] request.
     * 
*/ public yandex.cloud.api.lockbox.v1.PayloadOuterClass.Payload get(yandex.cloud.api.lockbox.v1.PayloadServiceOuterClass.GetPayloadRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetMethod(), getCallOptions(), request); } } /** *
   * Set of methods to access payload of secrets.
   * 
*/ public static final class PayloadServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private PayloadServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected PayloadServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new PayloadServiceFutureStub(channel, callOptions); } /** *
     * Returns the payload of the specified secret.
     * To get the list of all available secrets, make a [SecretService.List] request.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture get( yandex.cloud.api.lockbox.v1.PayloadServiceOuterClass.GetPayloadRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetMethod(), getCallOptions()), request); } } private static final int METHODID_GET = 0; 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 PayloadServiceImplBase serviceImpl; private final int methodId; MethodHandlers(PayloadServiceImplBase 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.lockbox.v1.PayloadServiceOuterClass.GetPayloadRequest) 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 PayloadServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { PayloadServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return yandex.cloud.api.lockbox.v1.PayloadServiceOuterClass.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("PayloadService"); } } private static final class PayloadServiceFileDescriptorSupplier extends PayloadServiceBaseDescriptorSupplier { PayloadServiceFileDescriptorSupplier() {} } private static final class PayloadServiceMethodDescriptorSupplier extends PayloadServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; PayloadServiceMethodDescriptorSupplier(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 (PayloadServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new PayloadServiceFileDescriptorSupplier()) .addMethod(getGetMethod()) .build(); } } } return result; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy