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

com.redhat.mercury.merchandisingloan.v10.api.bqwithdrawalsservice.MutinyBQWithdrawalsServiceGrpc Maven / Gradle / Ivy

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

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

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

    
    public static final class MutinyBQWithdrawalsServiceStub extends io.grpc.stub.AbstractStub implements io.quarkus.grpc.runtime.MutinyStub {
        private BQWithdrawalsServiceGrpc.BQWithdrawalsServiceStub delegateStub;

        private MutinyBQWithdrawalsServiceStub(io.grpc.Channel channel) {
            super(channel);
            delegateStub = BQWithdrawalsServiceGrpc.newStub(channel);
        }

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

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

        
        public io.smallrye.mutiny.Uni initiateWithdrawals(com.redhat.mercury.merchandisingloan.v10.api.bqwithdrawalsservice.BqWithdrawalsService.InitiateWithdrawalsRequest request) {
            return io.quarkus.grpc.runtime.ClientCalls.oneToOne(request, delegateStub::initiateWithdrawals);
        }

        
        public io.smallrye.mutiny.Uni retrieveWithdrawals(com.redhat.mercury.merchandisingloan.v10.api.bqwithdrawalsservice.BqWithdrawalsService.RetrieveWithdrawalsRequest request) {
            return io.quarkus.grpc.runtime.ClientCalls.oneToOne(request, delegateStub::retrieveWithdrawals);
        }

        
        public io.smallrye.mutiny.Uni updateWithdrawals(com.redhat.mercury.merchandisingloan.v10.api.bqwithdrawalsservice.BqWithdrawalsService.UpdateWithdrawalsRequest request) {
            return io.quarkus.grpc.runtime.ClientCalls.oneToOne(request, delegateStub::updateWithdrawals);
        }

    }

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


        
        public io.smallrye.mutiny.Uni initiateWithdrawals(com.redhat.mercury.merchandisingloan.v10.api.bqwithdrawalsservice.BqWithdrawalsService.InitiateWithdrawalsRequest request) {
            throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED);
        }

        
        public io.smallrye.mutiny.Uni retrieveWithdrawals(com.redhat.mercury.merchandisingloan.v10.api.bqwithdrawalsservice.BqWithdrawalsService.RetrieveWithdrawalsRequest request) {
            throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED);
        }

        
        public io.smallrye.mutiny.Uni updateWithdrawals(com.redhat.mercury.merchandisingloan.v10.api.bqwithdrawalsservice.BqWithdrawalsService.UpdateWithdrawalsRequest 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.bqwithdrawalsservice.BQWithdrawalsServiceGrpc.getInitiateWithdrawalsMethod(),
                            asyncUnaryCall(
                                    new MethodHandlers<
                                            com.redhat.mercury.merchandisingloan.v10.api.bqwithdrawalsservice.BqWithdrawalsService.InitiateWithdrawalsRequest,
                                            com.redhat.mercury.merchandisingloan.v10.WithdrawalsOuterClass.Withdrawals>(
                                            this, METHODID_INITIATE_WITHDRAWALS, compression)))
                    .addMethod(
                            com.redhat.mercury.merchandisingloan.v10.api.bqwithdrawalsservice.BQWithdrawalsServiceGrpc.getRetrieveWithdrawalsMethod(),
                            asyncUnaryCall(
                                    new MethodHandlers<
                                            com.redhat.mercury.merchandisingloan.v10.api.bqwithdrawalsservice.BqWithdrawalsService.RetrieveWithdrawalsRequest,
                                            com.redhat.mercury.merchandisingloan.v10.WithdrawalsOuterClass.Withdrawals>(
                                            this, METHODID_RETRIEVE_WITHDRAWALS, compression)))
                    .addMethod(
                            com.redhat.mercury.merchandisingloan.v10.api.bqwithdrawalsservice.BQWithdrawalsServiceGrpc.getUpdateWithdrawalsMethod(),
                            asyncUnaryCall(
                                    new MethodHandlers<
                                            com.redhat.mercury.merchandisingloan.v10.api.bqwithdrawalsservice.BqWithdrawalsService.UpdateWithdrawalsRequest,
                                            com.redhat.mercury.merchandisingloan.v10.WithdrawalsOuterClass.Withdrawals>(
                                            this, METHODID_UPDATE_WITHDRAWALS, compression)))
                    .build();
        }
    }

    private static final int METHODID_INITIATE_WITHDRAWALS = 0;
    private static final int METHODID_RETRIEVE_WITHDRAWALS = 1;
    private static final int METHODID_UPDATE_WITHDRAWALS = 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 BQWithdrawalsServiceImplBase serviceImpl;
        private final int methodId;
        private final String compression;

        MethodHandlers(BQWithdrawalsServiceImplBase 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_WITHDRAWALS:
                    io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.merchandisingloan.v10.api.bqwithdrawalsservice.BqWithdrawalsService.InitiateWithdrawalsRequest) request,
                            (io.grpc.stub.StreamObserver) responseObserver,
                            compression,
                            serviceImpl::initiateWithdrawals);
                    break;
                case METHODID_RETRIEVE_WITHDRAWALS:
                    io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.merchandisingloan.v10.api.bqwithdrawalsservice.BqWithdrawalsService.RetrieveWithdrawalsRequest) request,
                            (io.grpc.stub.StreamObserver) responseObserver,
                            compression,
                            serviceImpl::retrieveWithdrawals);
                    break;
                case METHODID_UPDATE_WITHDRAWALS:
                    io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.merchandisingloan.v10.api.bqwithdrawalsservice.BqWithdrawalsService.UpdateWithdrawalsRequest) request,
                            (io.grpc.stub.StreamObserver) responseObserver,
                            compression,
                            serviceImpl::updateWithdrawals);
                    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