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

com.redhat.mercury.financialstatementassessment.v10.api.bqsensitivitytestservice.MutinyBQSensitivityTestServiceGrpc Maven / Gradle / Ivy

The newest version!
package com.redhat.mercury.financialstatementassessment.v10.api.bqsensitivitytestservice;

import static com.redhat.mercury.financialstatementassessment.v10.api.bqsensitivitytestservice.BQSensitivityTestServiceGrpc.getServiceDescriptor;
import static io.grpc.stub.ServerCalls.asyncUnaryCall;
import static io.grpc.stub.ServerCalls.asyncServerStreamingCall;
import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;

@javax.annotation.Generated(
value = "by Mutiny Grpc generator",
comments = "Source: v10/api/bq_sensitivity_test_service.proto")
public final class MutinyBQSensitivityTestServiceGrpc implements io.quarkus.grpc.runtime.MutinyGrpc {
    private MutinyBQSensitivityTestServiceGrpc() {}

    public static MutinyBQSensitivityTestServiceStub newMutinyStub(io.grpc.Channel channel) {
        return new MutinyBQSensitivityTestServiceStub(channel);
    }

    
    public static final class MutinyBQSensitivityTestServiceStub extends io.grpc.stub.AbstractStub implements io.quarkus.grpc.runtime.MutinyStub {
        private BQSensitivityTestServiceGrpc.BQSensitivityTestServiceStub delegateStub;

        private MutinyBQSensitivityTestServiceStub(io.grpc.Channel channel) {
            super(channel);
            delegateStub = BQSensitivityTestServiceGrpc.newStub(channel);
        }

        private MutinyBQSensitivityTestServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
            super(channel, callOptions);
            delegateStub = BQSensitivityTestServiceGrpc.newStub(channel).build(channel, callOptions);
        }

        @Override
        protected MutinyBQSensitivityTestServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
            return new MutinyBQSensitivityTestServiceStub(channel, callOptions);
        }

        
        public io.smallrye.mutiny.Uni evaluateSensitivityTest(com.redhat.mercury.financialstatementassessment.v10.api.bqsensitivitytestservice.BqSensitivityTestService.EvaluateSensitivityTestRequest request) {
            return io.quarkus.grpc.runtime.ClientCalls.oneToOne(request, delegateStub::evaluateSensitivityTest);
        }

        
        public io.smallrye.mutiny.Uni executeSensitivityTest(com.redhat.mercury.financialstatementassessment.v10.api.bqsensitivitytestservice.BqSensitivityTestService.ExecuteSensitivityTestRequest request) {
            return io.quarkus.grpc.runtime.ClientCalls.oneToOne(request, delegateStub::executeSensitivityTest);
        }

        
        public io.smallrye.mutiny.Uni notifySensitivityTest(com.redhat.mercury.financialstatementassessment.v10.api.bqsensitivitytestservice.BqSensitivityTestService.NotifySensitivityTestRequest request) {
            return io.quarkus.grpc.runtime.ClientCalls.oneToOne(request, delegateStub::notifySensitivityTest);
        }

        
        public io.smallrye.mutiny.Uni requestSensitivityTest(com.redhat.mercury.financialstatementassessment.v10.api.bqsensitivitytestservice.BqSensitivityTestService.RequestSensitivityTestRequest request) {
            return io.quarkus.grpc.runtime.ClientCalls.oneToOne(request, delegateStub::requestSensitivityTest);
        }

        
        public io.smallrye.mutiny.Uni retrieveSensitivityTest(com.redhat.mercury.financialstatementassessment.v10.api.bqsensitivitytestservice.BqSensitivityTestService.RetrieveSensitivityTestRequest request) {
            return io.quarkus.grpc.runtime.ClientCalls.oneToOne(request, delegateStub::retrieveSensitivityTest);
        }

    }

    
    public static abstract class BQSensitivityTestServiceImplBase implements io.grpc.BindableService {

        private String compression;
        /**
        * Set whether the server will try to use a compressed response.
        *
        * @param compression the compression, e.g {@code gzip}
        */
        public BQSensitivityTestServiceImplBase withCompression(String compression) {
        this.compression = compression;
        return this;
        }


        
        public io.smallrye.mutiny.Uni evaluateSensitivityTest(com.redhat.mercury.financialstatementassessment.v10.api.bqsensitivitytestservice.BqSensitivityTestService.EvaluateSensitivityTestRequest request) {
            throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED);
        }

        
        public io.smallrye.mutiny.Uni executeSensitivityTest(com.redhat.mercury.financialstatementassessment.v10.api.bqsensitivitytestservice.BqSensitivityTestService.ExecuteSensitivityTestRequest request) {
            throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED);
        }

        
        public io.smallrye.mutiny.Uni notifySensitivityTest(com.redhat.mercury.financialstatementassessment.v10.api.bqsensitivitytestservice.BqSensitivityTestService.NotifySensitivityTestRequest request) {
            throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED);
        }

        
        public io.smallrye.mutiny.Uni requestSensitivityTest(com.redhat.mercury.financialstatementassessment.v10.api.bqsensitivitytestservice.BqSensitivityTestService.RequestSensitivityTestRequest request) {
            throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED);
        }

        
        public io.smallrye.mutiny.Uni retrieveSensitivityTest(com.redhat.mercury.financialstatementassessment.v10.api.bqsensitivitytestservice.BqSensitivityTestService.RetrieveSensitivityTestRequest request) {
            throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED);
        }

        @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
            return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
                    .addMethod(
                            com.redhat.mercury.financialstatementassessment.v10.api.bqsensitivitytestservice.BQSensitivityTestServiceGrpc.getEvaluateSensitivityTestMethod(),
                            asyncUnaryCall(
                                    new MethodHandlers<
                                            com.redhat.mercury.financialstatementassessment.v10.api.bqsensitivitytestservice.BqSensitivityTestService.EvaluateSensitivityTestRequest,
                                            com.redhat.mercury.financialstatementassessment.v10.SensitivityTestOuterClass.SensitivityTest>(
                                            this, METHODID_EVALUATE_SENSITIVITY_TEST, compression)))
                    .addMethod(
                            com.redhat.mercury.financialstatementassessment.v10.api.bqsensitivitytestservice.BQSensitivityTestServiceGrpc.getExecuteSensitivityTestMethod(),
                            asyncUnaryCall(
                                    new MethodHandlers<
                                            com.redhat.mercury.financialstatementassessment.v10.api.bqsensitivitytestservice.BqSensitivityTestService.ExecuteSensitivityTestRequest,
                                            com.redhat.mercury.financialstatementassessment.v10.SensitivityTestOuterClass.SensitivityTest>(
                                            this, METHODID_EXECUTE_SENSITIVITY_TEST, compression)))
                    .addMethod(
                            com.redhat.mercury.financialstatementassessment.v10.api.bqsensitivitytestservice.BQSensitivityTestServiceGrpc.getNotifySensitivityTestMethod(),
                            asyncUnaryCall(
                                    new MethodHandlers<
                                            com.redhat.mercury.financialstatementassessment.v10.api.bqsensitivitytestservice.BqSensitivityTestService.NotifySensitivityTestRequest,
                                            com.redhat.mercury.financialstatementassessment.v10.SensitivityTestOuterClass.SensitivityTest>(
                                            this, METHODID_NOTIFY_SENSITIVITY_TEST, compression)))
                    .addMethod(
                            com.redhat.mercury.financialstatementassessment.v10.api.bqsensitivitytestservice.BQSensitivityTestServiceGrpc.getRequestSensitivityTestMethod(),
                            asyncUnaryCall(
                                    new MethodHandlers<
                                            com.redhat.mercury.financialstatementassessment.v10.api.bqsensitivitytestservice.BqSensitivityTestService.RequestSensitivityTestRequest,
                                            com.redhat.mercury.financialstatementassessment.v10.SensitivityTestOuterClass.SensitivityTest>(
                                            this, METHODID_REQUEST_SENSITIVITY_TEST, compression)))
                    .addMethod(
                            com.redhat.mercury.financialstatementassessment.v10.api.bqsensitivitytestservice.BQSensitivityTestServiceGrpc.getRetrieveSensitivityTestMethod(),
                            asyncUnaryCall(
                                    new MethodHandlers<
                                            com.redhat.mercury.financialstatementassessment.v10.api.bqsensitivitytestservice.BqSensitivityTestService.RetrieveSensitivityTestRequest,
                                            com.redhat.mercury.financialstatementassessment.v10.SensitivityTestOuterClass.SensitivityTest>(
                                            this, METHODID_RETRIEVE_SENSITIVITY_TEST, compression)))
                    .build();
        }
    }

    private static final int METHODID_EVALUATE_SENSITIVITY_TEST = 0;
    private static final int METHODID_EXECUTE_SENSITIVITY_TEST = 1;
    private static final int METHODID_NOTIFY_SENSITIVITY_TEST = 2;
    private static final int METHODID_REQUEST_SENSITIVITY_TEST = 3;
    private static final int METHODID_RETRIEVE_SENSITIVITY_TEST = 4;

    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 BQSensitivityTestServiceImplBase serviceImpl;
        private final int methodId;
        private final String compression;

        MethodHandlers(BQSensitivityTestServiceImplBase serviceImpl, int methodId, String compression) {
            this.serviceImpl = serviceImpl;
            this.methodId = methodId;
            this.compression = compression;
        }

        @java.lang.Override
        @java.lang.SuppressWarnings("unchecked")
        public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
            switch (methodId) {
                case METHODID_EVALUATE_SENSITIVITY_TEST:
                    io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.financialstatementassessment.v10.api.bqsensitivitytestservice.BqSensitivityTestService.EvaluateSensitivityTestRequest) request,
                            (io.grpc.stub.StreamObserver) responseObserver,
                            compression,
                            serviceImpl::evaluateSensitivityTest);
                    break;
                case METHODID_EXECUTE_SENSITIVITY_TEST:
                    io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.financialstatementassessment.v10.api.bqsensitivitytestservice.BqSensitivityTestService.ExecuteSensitivityTestRequest) request,
                            (io.grpc.stub.StreamObserver) responseObserver,
                            compression,
                            serviceImpl::executeSensitivityTest);
                    break;
                case METHODID_NOTIFY_SENSITIVITY_TEST:
                    io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.financialstatementassessment.v10.api.bqsensitivitytestservice.BqSensitivityTestService.NotifySensitivityTestRequest) request,
                            (io.grpc.stub.StreamObserver) responseObserver,
                            compression,
                            serviceImpl::notifySensitivityTest);
                    break;
                case METHODID_REQUEST_SENSITIVITY_TEST:
                    io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.financialstatementassessment.v10.api.bqsensitivitytestservice.BqSensitivityTestService.RequestSensitivityTestRequest) request,
                            (io.grpc.stub.StreamObserver) responseObserver,
                            compression,
                            serviceImpl::requestSensitivityTest);
                    break;
                case METHODID_RETRIEVE_SENSITIVITY_TEST:
                    io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.financialstatementassessment.v10.api.bqsensitivitytestservice.BqSensitivityTestService.RetrieveSensitivityTestRequest) request,
                            (io.grpc.stub.StreamObserver) responseObserver,
                            compression,
                            serviceImpl::retrieveSensitivityTest);
                    break;
                default:
                    throw new java.lang.AssertionError();
            }
        }

        @java.lang.Override
        @java.lang.SuppressWarnings("unchecked")
        public io.grpc.stub.StreamObserver invoke(io.grpc.stub.StreamObserver responseObserver) {
            switch (methodId) {
                default:
                    throw new java.lang.AssertionError();
            }
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy