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

com.redhat.mercury.merchandisingloan.v10.api.crmerchandisingloanfacilityservice.MutinyCRMerchandisingLoanFacilityServiceGrpc Maven / Gradle / Ivy

The newest version!
package com.redhat.mercury.merchandisingloan.v10.api.crmerchandisingloanfacilityservice;

import static com.redhat.mercury.merchandisingloan.v10.api.crmerchandisingloanfacilityservice.CRMerchandisingLoanFacilityServiceGrpc.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/cr_merchandising_loan_facility_service.proto")
public final class MutinyCRMerchandisingLoanFacilityServiceGrpc implements io.quarkus.grpc.runtime.MutinyGrpc {
    private MutinyCRMerchandisingLoanFacilityServiceGrpc() {}

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

    
    public static final class MutinyCRMerchandisingLoanFacilityServiceStub extends io.grpc.stub.AbstractStub implements io.quarkus.grpc.runtime.MutinyStub {
        private CRMerchandisingLoanFacilityServiceGrpc.CRMerchandisingLoanFacilityServiceStub delegateStub;

        private MutinyCRMerchandisingLoanFacilityServiceStub(io.grpc.Channel channel) {
            super(channel);
            delegateStub = CRMerchandisingLoanFacilityServiceGrpc.newStub(channel);
        }

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

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

        
        public io.smallrye.mutiny.Uni control(com.redhat.mercury.merchandisingloan.v10.api.crmerchandisingloanfacilityservice.CrMerchandisingLoanFacilityService.ControlRequest request) {
            return io.quarkus.grpc.runtime.ClientCalls.oneToOne(request, delegateStub::control);
        }

        
        public io.smallrye.mutiny.Uni exchange(com.redhat.mercury.merchandisingloan.v10.api.crmerchandisingloanfacilityservice.CrMerchandisingLoanFacilityService.ExchangeRequest request) {
            return io.quarkus.grpc.runtime.ClientCalls.oneToOne(request, delegateStub::exchange);
        }

        
        public io.smallrye.mutiny.Uni execute(com.redhat.mercury.merchandisingloan.v10.api.crmerchandisingloanfacilityservice.CrMerchandisingLoanFacilityService.ExecuteRequest request) {
            return io.quarkus.grpc.runtime.ClientCalls.oneToOne(request, delegateStub::execute);
        }

        
        public io.smallrye.mutiny.Uni initiate(com.redhat.mercury.merchandisingloan.v10.api.crmerchandisingloanfacilityservice.CrMerchandisingLoanFacilityService.InitiateRequest request) {
            return io.quarkus.grpc.runtime.ClientCalls.oneToOne(request, delegateStub::initiate);
        }

        
        public io.smallrye.mutiny.Uni request(com.redhat.mercury.merchandisingloan.v10.api.crmerchandisingloanfacilityservice.CrMerchandisingLoanFacilityService.RequestRequest request) {
            return io.quarkus.grpc.runtime.ClientCalls.oneToOne(request, delegateStub::request);
        }

        
        public io.smallrye.mutiny.Uni retrieve(com.redhat.mercury.merchandisingloan.v10.api.crmerchandisingloanfacilityservice.CrMerchandisingLoanFacilityService.RetrieveRequest request) {
            return io.quarkus.grpc.runtime.ClientCalls.oneToOne(request, delegateStub::retrieve);
        }

        
        public io.smallrye.mutiny.Uni update(com.redhat.mercury.merchandisingloan.v10.api.crmerchandisingloanfacilityservice.CrMerchandisingLoanFacilityService.UpdateRequest request) {
            return io.quarkus.grpc.runtime.ClientCalls.oneToOne(request, delegateStub::update);
        }

    }

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


        
        public io.smallrye.mutiny.Uni control(com.redhat.mercury.merchandisingloan.v10.api.crmerchandisingloanfacilityservice.CrMerchandisingLoanFacilityService.ControlRequest request) {
            throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED);
        }

        
        public io.smallrye.mutiny.Uni exchange(com.redhat.mercury.merchandisingloan.v10.api.crmerchandisingloanfacilityservice.CrMerchandisingLoanFacilityService.ExchangeRequest request) {
            throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED);
        }

        
        public io.smallrye.mutiny.Uni execute(com.redhat.mercury.merchandisingloan.v10.api.crmerchandisingloanfacilityservice.CrMerchandisingLoanFacilityService.ExecuteRequest request) {
            throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED);
        }

        
        public io.smallrye.mutiny.Uni initiate(com.redhat.mercury.merchandisingloan.v10.api.crmerchandisingloanfacilityservice.CrMerchandisingLoanFacilityService.InitiateRequest request) {
            throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED);
        }

        
        public io.smallrye.mutiny.Uni request(com.redhat.mercury.merchandisingloan.v10.api.crmerchandisingloanfacilityservice.CrMerchandisingLoanFacilityService.RequestRequest request) {
            throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED);
        }

        
        public io.smallrye.mutiny.Uni retrieve(com.redhat.mercury.merchandisingloan.v10.api.crmerchandisingloanfacilityservice.CrMerchandisingLoanFacilityService.RetrieveRequest request) {
            throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED);
        }

        
        public io.smallrye.mutiny.Uni update(com.redhat.mercury.merchandisingloan.v10.api.crmerchandisingloanfacilityservice.CrMerchandisingLoanFacilityService.UpdateRequest 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.merchandisingloan.v10.api.crmerchandisingloanfacilityservice.CRMerchandisingLoanFacilityServiceGrpc.getControlMethod(),
                            asyncUnaryCall(
                                    new MethodHandlers<
                                            com.redhat.mercury.merchandisingloan.v10.api.crmerchandisingloanfacilityservice.CrMerchandisingLoanFacilityService.ControlRequest,
                                            com.redhat.mercury.merchandisingloan.v10.ControlMerchandisingLoanFacilityResponseOuterClass.ControlMerchandisingLoanFacilityResponse>(
                                            this, METHODID_CONTROL, compression)))
                    .addMethod(
                            com.redhat.mercury.merchandisingloan.v10.api.crmerchandisingloanfacilityservice.CRMerchandisingLoanFacilityServiceGrpc.getExchangeMethod(),
                            asyncUnaryCall(
                                    new MethodHandlers<
                                            com.redhat.mercury.merchandisingloan.v10.api.crmerchandisingloanfacilityservice.CrMerchandisingLoanFacilityService.ExchangeRequest,
                                            com.redhat.mercury.merchandisingloan.v10.ExchangeMerchandisingLoanFacilityResponseOuterClass.ExchangeMerchandisingLoanFacilityResponse>(
                                            this, METHODID_EXCHANGE, compression)))
                    .addMethod(
                            com.redhat.mercury.merchandisingloan.v10.api.crmerchandisingloanfacilityservice.CRMerchandisingLoanFacilityServiceGrpc.getExecuteMethod(),
                            asyncUnaryCall(
                                    new MethodHandlers<
                                            com.redhat.mercury.merchandisingloan.v10.api.crmerchandisingloanfacilityservice.CrMerchandisingLoanFacilityService.ExecuteRequest,
                                            com.redhat.mercury.merchandisingloan.v10.ExecuteMerchandisingLoanFacilityResponseOuterClass.ExecuteMerchandisingLoanFacilityResponse>(
                                            this, METHODID_EXECUTE, compression)))
                    .addMethod(
                            com.redhat.mercury.merchandisingloan.v10.api.crmerchandisingloanfacilityservice.CRMerchandisingLoanFacilityServiceGrpc.getInitiateMethod(),
                            asyncUnaryCall(
                                    new MethodHandlers<
                                            com.redhat.mercury.merchandisingloan.v10.api.crmerchandisingloanfacilityservice.CrMerchandisingLoanFacilityService.InitiateRequest,
                                            com.redhat.mercury.merchandisingloan.v10.InitiateMerchandisingLoanFacilityResponseOuterClass.InitiateMerchandisingLoanFacilityResponse>(
                                            this, METHODID_INITIATE, compression)))
                    .addMethod(
                            com.redhat.mercury.merchandisingloan.v10.api.crmerchandisingloanfacilityservice.CRMerchandisingLoanFacilityServiceGrpc.getRequestMethod(),
                            asyncUnaryCall(
                                    new MethodHandlers<
                                            com.redhat.mercury.merchandisingloan.v10.api.crmerchandisingloanfacilityservice.CrMerchandisingLoanFacilityService.RequestRequest,
                                            com.redhat.mercury.merchandisingloan.v10.RequestMerchandisingLoanFacilityResponseOuterClass.RequestMerchandisingLoanFacilityResponse>(
                                            this, METHODID_REQUEST, compression)))
                    .addMethod(
                            com.redhat.mercury.merchandisingloan.v10.api.crmerchandisingloanfacilityservice.CRMerchandisingLoanFacilityServiceGrpc.getRetrieveMethod(),
                            asyncUnaryCall(
                                    new MethodHandlers<
                                            com.redhat.mercury.merchandisingloan.v10.api.crmerchandisingloanfacilityservice.CrMerchandisingLoanFacilityService.RetrieveRequest,
                                            com.redhat.mercury.merchandisingloan.v10.RetrieveMerchandisingLoanFacilityResponseOuterClass.RetrieveMerchandisingLoanFacilityResponse>(
                                            this, METHODID_RETRIEVE, compression)))
                    .addMethod(
                            com.redhat.mercury.merchandisingloan.v10.api.crmerchandisingloanfacilityservice.CRMerchandisingLoanFacilityServiceGrpc.getUpdateMethod(),
                            asyncUnaryCall(
                                    new MethodHandlers<
                                            com.redhat.mercury.merchandisingloan.v10.api.crmerchandisingloanfacilityservice.CrMerchandisingLoanFacilityService.UpdateRequest,
                                            com.redhat.mercury.merchandisingloan.v10.UpdateMerchandisingLoanFacilityResponseOuterClass.UpdateMerchandisingLoanFacilityResponse>(
                                            this, METHODID_UPDATE, compression)))
                    .build();
        }
    }

    private static final int METHODID_CONTROL = 0;
    private static final int METHODID_EXCHANGE = 1;
    private static final int METHODID_EXECUTE = 2;
    private static final int METHODID_INITIATE = 3;
    private static final int METHODID_REQUEST = 4;
    private static final int METHODID_RETRIEVE = 5;
    private static final int METHODID_UPDATE = 6;

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

        MethodHandlers(CRMerchandisingLoanFacilityServiceImplBase 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_CONTROL:
                    io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.merchandisingloan.v10.api.crmerchandisingloanfacilityservice.CrMerchandisingLoanFacilityService.ControlRequest) request,
                            (io.grpc.stub.StreamObserver) responseObserver,
                            compression,
                            serviceImpl::control);
                    break;
                case METHODID_EXCHANGE:
                    io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.merchandisingloan.v10.api.crmerchandisingloanfacilityservice.CrMerchandisingLoanFacilityService.ExchangeRequest) request,
                            (io.grpc.stub.StreamObserver) responseObserver,
                            compression,
                            serviceImpl::exchange);
                    break;
                case METHODID_EXECUTE:
                    io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.merchandisingloan.v10.api.crmerchandisingloanfacilityservice.CrMerchandisingLoanFacilityService.ExecuteRequest) request,
                            (io.grpc.stub.StreamObserver) responseObserver,
                            compression,
                            serviceImpl::execute);
                    break;
                case METHODID_INITIATE:
                    io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.merchandisingloan.v10.api.crmerchandisingloanfacilityservice.CrMerchandisingLoanFacilityService.InitiateRequest) request,
                            (io.grpc.stub.StreamObserver) responseObserver,
                            compression,
                            serviceImpl::initiate);
                    break;
                case METHODID_REQUEST:
                    io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.merchandisingloan.v10.api.crmerchandisingloanfacilityservice.CrMerchandisingLoanFacilityService.RequestRequest) request,
                            (io.grpc.stub.StreamObserver) responseObserver,
                            compression,
                            serviceImpl::request);
                    break;
                case METHODID_RETRIEVE:
                    io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.merchandisingloan.v10.api.crmerchandisingloanfacilityservice.CrMerchandisingLoanFacilityService.RetrieveRequest) request,
                            (io.grpc.stub.StreamObserver) responseObserver,
                            compression,
                            serviceImpl::retrieve);
                    break;
                case METHODID_UPDATE:
                    io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.merchandisingloan.v10.api.crmerchandisingloanfacilityservice.CrMerchandisingLoanFacilityService.UpdateRequest) request,
                            (io.grpc.stub.StreamObserver) responseObserver,
                            compression,
                            serviceImpl::update);
                    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