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

com.redhat.mercury.merchandisingloan.v10.api.bqdepositsservice.MutinyBQDepositsServiceGrpc Maven / Gradle / Ivy

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

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

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

    
    public static final class MutinyBQDepositsServiceStub extends io.grpc.stub.AbstractStub implements io.quarkus.grpc.runtime.MutinyStub {
        private BQDepositsServiceGrpc.BQDepositsServiceStub delegateStub;

        private MutinyBQDepositsServiceStub(io.grpc.Channel channel) {
            super(channel);
            delegateStub = BQDepositsServiceGrpc.newStub(channel);
        }

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

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

        
        public io.smallrye.mutiny.Uni initiateDeposits(com.redhat.mercury.merchandisingloan.v10.api.bqdepositsservice.BqDepositsService.InitiateDepositsRequest request) {
            return io.quarkus.grpc.runtime.ClientCalls.oneToOne(request, delegateStub::initiateDeposits);
        }

        
        public io.smallrye.mutiny.Uni retrieveDeposits(com.redhat.mercury.merchandisingloan.v10.api.bqdepositsservice.BqDepositsService.RetrieveDepositsRequest request) {
            return io.quarkus.grpc.runtime.ClientCalls.oneToOne(request, delegateStub::retrieveDeposits);
        }

        
        public io.smallrye.mutiny.Uni updateDeposits(com.redhat.mercury.merchandisingloan.v10.api.bqdepositsservice.BqDepositsService.UpdateDepositsRequest request) {
            return io.quarkus.grpc.runtime.ClientCalls.oneToOne(request, delegateStub::updateDeposits);
        }

    }

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


        
        public io.smallrye.mutiny.Uni initiateDeposits(com.redhat.mercury.merchandisingloan.v10.api.bqdepositsservice.BqDepositsService.InitiateDepositsRequest request) {
            throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED);
        }

        
        public io.smallrye.mutiny.Uni retrieveDeposits(com.redhat.mercury.merchandisingloan.v10.api.bqdepositsservice.BqDepositsService.RetrieveDepositsRequest request) {
            throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED);
        }

        
        public io.smallrye.mutiny.Uni updateDeposits(com.redhat.mercury.merchandisingloan.v10.api.bqdepositsservice.BqDepositsService.UpdateDepositsRequest 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.bqdepositsservice.BQDepositsServiceGrpc.getInitiateDepositsMethod(),
                            asyncUnaryCall(
                                    new MethodHandlers<
                                            com.redhat.mercury.merchandisingloan.v10.api.bqdepositsservice.BqDepositsService.InitiateDepositsRequest,
                                            com.redhat.mercury.merchandisingloan.v10.DepositsOuterClass.Deposits>(
                                            this, METHODID_INITIATE_DEPOSITS, compression)))
                    .addMethod(
                            com.redhat.mercury.merchandisingloan.v10.api.bqdepositsservice.BQDepositsServiceGrpc.getRetrieveDepositsMethod(),
                            asyncUnaryCall(
                                    new MethodHandlers<
                                            com.redhat.mercury.merchandisingloan.v10.api.bqdepositsservice.BqDepositsService.RetrieveDepositsRequest,
                                            com.redhat.mercury.merchandisingloan.v10.DepositsOuterClass.Deposits>(
                                            this, METHODID_RETRIEVE_DEPOSITS, compression)))
                    .addMethod(
                            com.redhat.mercury.merchandisingloan.v10.api.bqdepositsservice.BQDepositsServiceGrpc.getUpdateDepositsMethod(),
                            asyncUnaryCall(
                                    new MethodHandlers<
                                            com.redhat.mercury.merchandisingloan.v10.api.bqdepositsservice.BqDepositsService.UpdateDepositsRequest,
                                            com.redhat.mercury.merchandisingloan.v10.DepositsOuterClass.Deposits>(
                                            this, METHODID_UPDATE_DEPOSITS, compression)))
                    .build();
        }
    }

    private static final int METHODID_INITIATE_DEPOSITS = 0;
    private static final int METHODID_RETRIEVE_DEPOSITS = 1;
    private static final int METHODID_UPDATE_DEPOSITS = 2;

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

        MethodHandlers(BQDepositsServiceImplBase 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_INITIATE_DEPOSITS:
                    io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.merchandisingloan.v10.api.bqdepositsservice.BqDepositsService.InitiateDepositsRequest) request,
                            (io.grpc.stub.StreamObserver) responseObserver,
                            compression,
                            serviceImpl::initiateDeposits);
                    break;
                case METHODID_RETRIEVE_DEPOSITS:
                    io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.merchandisingloan.v10.api.bqdepositsservice.BqDepositsService.RetrieveDepositsRequest) request,
                            (io.grpc.stub.StreamObserver) responseObserver,
                            compression,
                            serviceImpl::retrieveDeposits);
                    break;
                case METHODID_UPDATE_DEPOSITS:
                    io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.merchandisingloan.v10.api.bqdepositsservice.BqDepositsService.UpdateDepositsRequest) request,
                            (io.grpc.stub.StreamObserver) responseObserver,
                            compression,
                            serviceImpl::updateDeposits);
                    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