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

com.redhat.mercury.financialstatementassessment.v10.api.bqrisktestservice.MutinyBQRiskTestServiceGrpc Maven / Gradle / Ivy

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

import static com.redhat.mercury.financialstatementassessment.v10.api.bqrisktestservice.BQRiskTestServiceGrpc.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_risk_test_service.proto")
public final class MutinyBQRiskTestServiceGrpc implements io.quarkus.grpc.runtime.MutinyGrpc {
    private MutinyBQRiskTestServiceGrpc() {}

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

    
    public static final class MutinyBQRiskTestServiceStub extends io.grpc.stub.AbstractStub implements io.quarkus.grpc.runtime.MutinyStub {
        private BQRiskTestServiceGrpc.BQRiskTestServiceStub delegateStub;

        private MutinyBQRiskTestServiceStub(io.grpc.Channel channel) {
            super(channel);
            delegateStub = BQRiskTestServiceGrpc.newStub(channel);
        }

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

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

        
        public io.smallrye.mutiny.Uni evaluateRiskTest(com.redhat.mercury.financialstatementassessment.v10.api.bqrisktestservice.BqRiskTestService.EvaluateRiskTestRequest request) {
            return io.quarkus.grpc.runtime.ClientCalls.oneToOne(request, delegateStub::evaluateRiskTest);
        }

        
        public io.smallrye.mutiny.Uni executeRiskTest(com.redhat.mercury.financialstatementassessment.v10.api.bqrisktestservice.BqRiskTestService.ExecuteRiskTestRequest request) {
            return io.quarkus.grpc.runtime.ClientCalls.oneToOne(request, delegateStub::executeRiskTest);
        }

        
        public io.smallrye.mutiny.Uni notifyRiskTest(com.redhat.mercury.financialstatementassessment.v10.api.bqrisktestservice.BqRiskTestService.NotifyRiskTestRequest request) {
            return io.quarkus.grpc.runtime.ClientCalls.oneToOne(request, delegateStub::notifyRiskTest);
        }

        
        public io.smallrye.mutiny.Uni requestRiskTest(com.redhat.mercury.financialstatementassessment.v10.api.bqrisktestservice.BqRiskTestService.RequestRiskTestRequest request) {
            return io.quarkus.grpc.runtime.ClientCalls.oneToOne(request, delegateStub::requestRiskTest);
        }

        
        public io.smallrye.mutiny.Uni retrieveRiskTest(com.redhat.mercury.financialstatementassessment.v10.api.bqrisktestservice.BqRiskTestService.RetrieveRiskTestRequest request) {
            return io.quarkus.grpc.runtime.ClientCalls.oneToOne(request, delegateStub::retrieveRiskTest);
        }

    }

    
    public static abstract class BQRiskTestServiceImplBase 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 BQRiskTestServiceImplBase withCompression(String compression) {
        this.compression = compression;
        return this;
        }


        
        public io.smallrye.mutiny.Uni evaluateRiskTest(com.redhat.mercury.financialstatementassessment.v10.api.bqrisktestservice.BqRiskTestService.EvaluateRiskTestRequest request) {
            throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED);
        }

        
        public io.smallrye.mutiny.Uni executeRiskTest(com.redhat.mercury.financialstatementassessment.v10.api.bqrisktestservice.BqRiskTestService.ExecuteRiskTestRequest request) {
            throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED);
        }

        
        public io.smallrye.mutiny.Uni notifyRiskTest(com.redhat.mercury.financialstatementassessment.v10.api.bqrisktestservice.BqRiskTestService.NotifyRiskTestRequest request) {
            throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED);
        }

        
        public io.smallrye.mutiny.Uni requestRiskTest(com.redhat.mercury.financialstatementassessment.v10.api.bqrisktestservice.BqRiskTestService.RequestRiskTestRequest request) {
            throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED);
        }

        
        public io.smallrye.mutiny.Uni retrieveRiskTest(com.redhat.mercury.financialstatementassessment.v10.api.bqrisktestservice.BqRiskTestService.RetrieveRiskTestRequest 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.bqrisktestservice.BQRiskTestServiceGrpc.getEvaluateRiskTestMethod(),
                            asyncUnaryCall(
                                    new MethodHandlers<
                                            com.redhat.mercury.financialstatementassessment.v10.api.bqrisktestservice.BqRiskTestService.EvaluateRiskTestRequest,
                                            com.redhat.mercury.financialstatementassessment.v10.RiskTestOuterClass.RiskTest>(
                                            this, METHODID_EVALUATE_RISK_TEST, compression)))
                    .addMethod(
                            com.redhat.mercury.financialstatementassessment.v10.api.bqrisktestservice.BQRiskTestServiceGrpc.getExecuteRiskTestMethod(),
                            asyncUnaryCall(
                                    new MethodHandlers<
                                            com.redhat.mercury.financialstatementassessment.v10.api.bqrisktestservice.BqRiskTestService.ExecuteRiskTestRequest,
                                            com.redhat.mercury.financialstatementassessment.v10.RiskTestOuterClass.RiskTest>(
                                            this, METHODID_EXECUTE_RISK_TEST, compression)))
                    .addMethod(
                            com.redhat.mercury.financialstatementassessment.v10.api.bqrisktestservice.BQRiskTestServiceGrpc.getNotifyRiskTestMethod(),
                            asyncUnaryCall(
                                    new MethodHandlers<
                                            com.redhat.mercury.financialstatementassessment.v10.api.bqrisktestservice.BqRiskTestService.NotifyRiskTestRequest,
                                            com.redhat.mercury.financialstatementassessment.v10.RiskTestOuterClass.RiskTest>(
                                            this, METHODID_NOTIFY_RISK_TEST, compression)))
                    .addMethod(
                            com.redhat.mercury.financialstatementassessment.v10.api.bqrisktestservice.BQRiskTestServiceGrpc.getRequestRiskTestMethod(),
                            asyncUnaryCall(
                                    new MethodHandlers<
                                            com.redhat.mercury.financialstatementassessment.v10.api.bqrisktestservice.BqRiskTestService.RequestRiskTestRequest,
                                            com.redhat.mercury.financialstatementassessment.v10.RiskTestOuterClass.RiskTest>(
                                            this, METHODID_REQUEST_RISK_TEST, compression)))
                    .addMethod(
                            com.redhat.mercury.financialstatementassessment.v10.api.bqrisktestservice.BQRiskTestServiceGrpc.getRetrieveRiskTestMethod(),
                            asyncUnaryCall(
                                    new MethodHandlers<
                                            com.redhat.mercury.financialstatementassessment.v10.api.bqrisktestservice.BqRiskTestService.RetrieveRiskTestRequest,
                                            com.redhat.mercury.financialstatementassessment.v10.RiskTestOuterClass.RiskTest>(
                                            this, METHODID_RETRIEVE_RISK_TEST, compression)))
                    .build();
        }
    }

    private static final int METHODID_EVALUATE_RISK_TEST = 0;
    private static final int METHODID_EXECUTE_RISK_TEST = 1;
    private static final int METHODID_NOTIFY_RISK_TEST = 2;
    private static final int METHODID_REQUEST_RISK_TEST = 3;
    private static final int METHODID_RETRIEVE_RISK_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 BQRiskTestServiceImplBase serviceImpl;
        private final int methodId;
        private final String compression;

        MethodHandlers(BQRiskTestServiceImplBase 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_RISK_TEST:
                    io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.financialstatementassessment.v10.api.bqrisktestservice.BqRiskTestService.EvaluateRiskTestRequest) request,
                            (io.grpc.stub.StreamObserver) responseObserver,
                            compression,
                            serviceImpl::evaluateRiskTest);
                    break;
                case METHODID_EXECUTE_RISK_TEST:
                    io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.financialstatementassessment.v10.api.bqrisktestservice.BqRiskTestService.ExecuteRiskTestRequest) request,
                            (io.grpc.stub.StreamObserver) responseObserver,
                            compression,
                            serviceImpl::executeRiskTest);
                    break;
                case METHODID_NOTIFY_RISK_TEST:
                    io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.financialstatementassessment.v10.api.bqrisktestservice.BqRiskTestService.NotifyRiskTestRequest) request,
                            (io.grpc.stub.StreamObserver) responseObserver,
                            compression,
                            serviceImpl::notifyRiskTest);
                    break;
                case METHODID_REQUEST_RISK_TEST:
                    io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.financialstatementassessment.v10.api.bqrisktestservice.BqRiskTestService.RequestRiskTestRequest) request,
                            (io.grpc.stub.StreamObserver) responseObserver,
                            compression,
                            serviceImpl::requestRiskTest);
                    break;
                case METHODID_RETRIEVE_RISK_TEST:
                    io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.financialstatementassessment.v10.api.bqrisktestservice.BqRiskTestService.RetrieveRiskTestRequest) request,
                            (io.grpc.stub.StreamObserver) responseObserver,
                            compression,
                            serviceImpl::retrieveRiskTest);
                    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