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

com.redhat.mercury.merchandisingloan.v10.api.bqpaymentsservice.MutinyBQPaymentsServiceGrpc Maven / Gradle / Ivy

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

import static com.redhat.mercury.merchandisingloan.v10.api.bqpaymentsservice.BQPaymentsServiceGrpc.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_payments_service.proto")
public final class MutinyBQPaymentsServiceGrpc implements io.quarkus.grpc.runtime.MutinyGrpc {
    private MutinyBQPaymentsServiceGrpc() {}

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

    
    public static final class MutinyBQPaymentsServiceStub extends io.grpc.stub.AbstractStub implements io.quarkus.grpc.runtime.MutinyStub {
        private BQPaymentsServiceGrpc.BQPaymentsServiceStub delegateStub;

        private MutinyBQPaymentsServiceStub(io.grpc.Channel channel) {
            super(channel);
            delegateStub = BQPaymentsServiceGrpc.newStub(channel);
        }

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

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

        
        public io.smallrye.mutiny.Uni exchangePayments(com.redhat.mercury.merchandisingloan.v10.api.bqpaymentsservice.BqPaymentsService.ExchangePaymentsRequest request) {
            return io.quarkus.grpc.runtime.ClientCalls.oneToOne(request, delegateStub::exchangePayments);
        }

        
        public io.smallrye.mutiny.Uni initiatePayments(com.redhat.mercury.merchandisingloan.v10.api.bqpaymentsservice.BqPaymentsService.InitiatePaymentsRequest request) {
            return io.quarkus.grpc.runtime.ClientCalls.oneToOne(request, delegateStub::initiatePayments);
        }

        
        public io.smallrye.mutiny.Uni retrievePayments(com.redhat.mercury.merchandisingloan.v10.api.bqpaymentsservice.BqPaymentsService.RetrievePaymentsRequest request) {
            return io.quarkus.grpc.runtime.ClientCalls.oneToOne(request, delegateStub::retrievePayments);
        }

        
        public io.smallrye.mutiny.Uni updatePayments(com.redhat.mercury.merchandisingloan.v10.api.bqpaymentsservice.BqPaymentsService.UpdatePaymentsRequest request) {
            return io.quarkus.grpc.runtime.ClientCalls.oneToOne(request, delegateStub::updatePayments);
        }

    }

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


        
        public io.smallrye.mutiny.Uni exchangePayments(com.redhat.mercury.merchandisingloan.v10.api.bqpaymentsservice.BqPaymentsService.ExchangePaymentsRequest request) {
            throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED);
        }

        
        public io.smallrye.mutiny.Uni initiatePayments(com.redhat.mercury.merchandisingloan.v10.api.bqpaymentsservice.BqPaymentsService.InitiatePaymentsRequest request) {
            throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED);
        }

        
        public io.smallrye.mutiny.Uni retrievePayments(com.redhat.mercury.merchandisingloan.v10.api.bqpaymentsservice.BqPaymentsService.RetrievePaymentsRequest request) {
            throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED);
        }

        
        public io.smallrye.mutiny.Uni updatePayments(com.redhat.mercury.merchandisingloan.v10.api.bqpaymentsservice.BqPaymentsService.UpdatePaymentsRequest 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.bqpaymentsservice.BQPaymentsServiceGrpc.getExchangePaymentsMethod(),
                            asyncUnaryCall(
                                    new MethodHandlers<
                                            com.redhat.mercury.merchandisingloan.v10.api.bqpaymentsservice.BqPaymentsService.ExchangePaymentsRequest,
                                            com.redhat.mercury.merchandisingloan.v10.PaymentsOuterClass.Payments>(
                                            this, METHODID_EXCHANGE_PAYMENTS, compression)))
                    .addMethod(
                            com.redhat.mercury.merchandisingloan.v10.api.bqpaymentsservice.BQPaymentsServiceGrpc.getInitiatePaymentsMethod(),
                            asyncUnaryCall(
                                    new MethodHandlers<
                                            com.redhat.mercury.merchandisingloan.v10.api.bqpaymentsservice.BqPaymentsService.InitiatePaymentsRequest,
                                            com.redhat.mercury.merchandisingloan.v10.PaymentsOuterClass.Payments>(
                                            this, METHODID_INITIATE_PAYMENTS, compression)))
                    .addMethod(
                            com.redhat.mercury.merchandisingloan.v10.api.bqpaymentsservice.BQPaymentsServiceGrpc.getRetrievePaymentsMethod(),
                            asyncUnaryCall(
                                    new MethodHandlers<
                                            com.redhat.mercury.merchandisingloan.v10.api.bqpaymentsservice.BqPaymentsService.RetrievePaymentsRequest,
                                            com.redhat.mercury.merchandisingloan.v10.PaymentsOuterClass.Payments>(
                                            this, METHODID_RETRIEVE_PAYMENTS, compression)))
                    .addMethod(
                            com.redhat.mercury.merchandisingloan.v10.api.bqpaymentsservice.BQPaymentsServiceGrpc.getUpdatePaymentsMethod(),
                            asyncUnaryCall(
                                    new MethodHandlers<
                                            com.redhat.mercury.merchandisingloan.v10.api.bqpaymentsservice.BqPaymentsService.UpdatePaymentsRequest,
                                            com.redhat.mercury.merchandisingloan.v10.PaymentsOuterClass.Payments>(
                                            this, METHODID_UPDATE_PAYMENTS, compression)))
                    .build();
        }
    }

    private static final int METHODID_EXCHANGE_PAYMENTS = 0;
    private static final int METHODID_INITIATE_PAYMENTS = 1;
    private static final int METHODID_RETRIEVE_PAYMENTS = 2;
    private static final int METHODID_UPDATE_PAYMENTS = 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 BQPaymentsServiceImplBase serviceImpl;
        private final int methodId;
        private final String compression;

        MethodHandlers(BQPaymentsServiceImplBase 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_EXCHANGE_PAYMENTS:
                    io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.merchandisingloan.v10.api.bqpaymentsservice.BqPaymentsService.ExchangePaymentsRequest) request,
                            (io.grpc.stub.StreamObserver) responseObserver,
                            compression,
                            serviceImpl::exchangePayments);
                    break;
                case METHODID_INITIATE_PAYMENTS:
                    io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.merchandisingloan.v10.api.bqpaymentsservice.BqPaymentsService.InitiatePaymentsRequest) request,
                            (io.grpc.stub.StreamObserver) responseObserver,
                            compression,
                            serviceImpl::initiatePayments);
                    break;
                case METHODID_RETRIEVE_PAYMENTS:
                    io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.merchandisingloan.v10.api.bqpaymentsservice.BqPaymentsService.RetrievePaymentsRequest) request,
                            (io.grpc.stub.StreamObserver) responseObserver,
                            compression,
                            serviceImpl::retrievePayments);
                    break;
                case METHODID_UPDATE_PAYMENTS:
                    io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.merchandisingloan.v10.api.bqpaymentsservice.BqPaymentsService.UpdatePaymentsRequest) request,
                            (io.grpc.stub.StreamObserver) responseObserver,
                            compression,
                            serviceImpl::updatePayments);
                    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