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

com.redhat.mercury.prospectcampaigndesign.v10.api.crprospectcampaignspecificationservice.MutinyCRProspectCampaignSpecificationServiceGrpc Maven / Gradle / Ivy

package com.redhat.mercury.prospectcampaigndesign.v10.api.crprospectcampaignspecificationservice;

import static com.redhat.mercury.prospectcampaigndesign.v10.api.crprospectcampaignspecificationservice.CRProspectCampaignSpecificationServiceGrpc.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_prospect_campaign_specification_service.proto")
public final class MutinyCRProspectCampaignSpecificationServiceGrpc implements io.quarkus.grpc.runtime.MutinyGrpc {
    private MutinyCRProspectCampaignSpecificationServiceGrpc() {}

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

    
    public static final class MutinyCRProspectCampaignSpecificationServiceStub extends io.grpc.stub.AbstractStub implements io.quarkus.grpc.runtime.MutinyStub {
        private CRProspectCampaignSpecificationServiceGrpc.CRProspectCampaignSpecificationServiceStub delegateStub;

        private MutinyCRProspectCampaignSpecificationServiceStub(io.grpc.Channel channel) {
            super(channel);
            delegateStub = CRProspectCampaignSpecificationServiceGrpc.newStub(channel);
        }

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

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

        
        public io.smallrye.mutiny.Uni capture(com.redhat.mercury.prospectcampaigndesign.v10.api.crprospectcampaignspecificationservice.CrProspectCampaignSpecificationService.CaptureRequest request) {
            return io.quarkus.grpc.runtime.ClientCalls.oneToOne(request, delegateStub::capture);
        }

        
        public io.smallrye.mutiny.Uni create(com.redhat.mercury.prospectcampaigndesign.v10.api.crprospectcampaignspecificationservice.CrProspectCampaignSpecificationService.CreateRequest request) {
            return io.quarkus.grpc.runtime.ClientCalls.oneToOne(request, delegateStub::create);
        }

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

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

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

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

    }

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


        
        public io.smallrye.mutiny.Uni capture(com.redhat.mercury.prospectcampaigndesign.v10.api.crprospectcampaignspecificationservice.CrProspectCampaignSpecificationService.CaptureRequest request) {
            throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED);
        }

        
        public io.smallrye.mutiny.Uni create(com.redhat.mercury.prospectcampaigndesign.v10.api.crprospectcampaignspecificationservice.CrProspectCampaignSpecificationService.CreateRequest request) {
            throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED);
        }

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

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

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

        
        public io.smallrye.mutiny.Uni update(com.redhat.mercury.prospectcampaigndesign.v10.api.crprospectcampaignspecificationservice.CrProspectCampaignSpecificationService.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.prospectcampaigndesign.v10.api.crprospectcampaignspecificationservice.CRProspectCampaignSpecificationServiceGrpc.getCaptureMethod(),
                            asyncUnaryCall(
                                    new MethodHandlers<
                                            com.redhat.mercury.prospectcampaigndesign.v10.api.crprospectcampaignspecificationservice.CrProspectCampaignSpecificationService.CaptureRequest,
                                            com.redhat.mercury.prospectcampaigndesign.v10.CaptureProspectCampaignSpecificationResponseOuterClass.CaptureProspectCampaignSpecificationResponse>(
                                            this, METHODID_CAPTURE, compression)))
                    .addMethod(
                            com.redhat.mercury.prospectcampaigndesign.v10.api.crprospectcampaignspecificationservice.CRProspectCampaignSpecificationServiceGrpc.getCreateMethod(),
                            asyncUnaryCall(
                                    new MethodHandlers<
                                            com.redhat.mercury.prospectcampaigndesign.v10.api.crprospectcampaignspecificationservice.CrProspectCampaignSpecificationService.CreateRequest,
                                            com.redhat.mercury.prospectcampaigndesign.v10.CreateProspectCampaignSpecificationResponseOuterClass.CreateProspectCampaignSpecificationResponse>(
                                            this, METHODID_CREATE, compression)))
                    .addMethod(
                            com.redhat.mercury.prospectcampaigndesign.v10.api.crprospectcampaignspecificationservice.CRProspectCampaignSpecificationServiceGrpc.getExecuteMethod(),
                            asyncUnaryCall(
                                    new MethodHandlers<
                                            com.redhat.mercury.prospectcampaigndesign.v10.api.crprospectcampaignspecificationservice.CrProspectCampaignSpecificationService.ExecuteRequest,
                                            com.redhat.mercury.prospectcampaigndesign.v10.ExecuteProspectCampaignSpecificationResponseOuterClass.ExecuteProspectCampaignSpecificationResponse>(
                                            this, METHODID_EXECUTE, compression)))
                    .addMethod(
                            com.redhat.mercury.prospectcampaigndesign.v10.api.crprospectcampaignspecificationservice.CRProspectCampaignSpecificationServiceGrpc.getRequestMethod(),
                            asyncUnaryCall(
                                    new MethodHandlers<
                                            com.redhat.mercury.prospectcampaigndesign.v10.api.crprospectcampaignspecificationservice.CrProspectCampaignSpecificationService.RequestRequest,
                                            com.redhat.mercury.prospectcampaigndesign.v10.RequestProspectCampaignSpecificationResponseOuterClass.RequestProspectCampaignSpecificationResponse>(
                                            this, METHODID_REQUEST, compression)))
                    .addMethod(
                            com.redhat.mercury.prospectcampaigndesign.v10.api.crprospectcampaignspecificationservice.CRProspectCampaignSpecificationServiceGrpc.getRetrieveMethod(),
                            asyncUnaryCall(
                                    new MethodHandlers<
                                            com.redhat.mercury.prospectcampaigndesign.v10.api.crprospectcampaignspecificationservice.CrProspectCampaignSpecificationService.RetrieveRequest,
                                            com.redhat.mercury.prospectcampaigndesign.v10.RetrieveProspectCampaignSpecificationResponseOuterClass.RetrieveProspectCampaignSpecificationResponse>(
                                            this, METHODID_RETRIEVE, compression)))
                    .addMethod(
                            com.redhat.mercury.prospectcampaigndesign.v10.api.crprospectcampaignspecificationservice.CRProspectCampaignSpecificationServiceGrpc.getUpdateMethod(),
                            asyncUnaryCall(
                                    new MethodHandlers<
                                            com.redhat.mercury.prospectcampaigndesign.v10.api.crprospectcampaignspecificationservice.CrProspectCampaignSpecificationService.UpdateRequest,
                                            com.redhat.mercury.prospectcampaigndesign.v10.UpdateProspectCampaignSpecificationResponseOuterClass.UpdateProspectCampaignSpecificationResponse>(
                                            this, METHODID_UPDATE, compression)))
                    .build();
        }
    }

    private static final int METHODID_CAPTURE = 0;
    private static final int METHODID_CREATE = 1;
    private static final int METHODID_EXECUTE = 2;
    private static final int METHODID_REQUEST = 3;
    private static final int METHODID_RETRIEVE = 4;
    private static final int METHODID_UPDATE = 5;

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

        MethodHandlers(CRProspectCampaignSpecificationServiceImplBase 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_CAPTURE:
                    io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.prospectcampaigndesign.v10.api.crprospectcampaignspecificationservice.CrProspectCampaignSpecificationService.CaptureRequest) request,
                            (io.grpc.stub.StreamObserver) responseObserver,
                            compression,
                            serviceImpl::capture);
                    break;
                case METHODID_CREATE:
                    io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.prospectcampaigndesign.v10.api.crprospectcampaignspecificationservice.CrProspectCampaignSpecificationService.CreateRequest) request,
                            (io.grpc.stub.StreamObserver) responseObserver,
                            compression,
                            serviceImpl::create);
                    break;
                case METHODID_EXECUTE:
                    io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.prospectcampaigndesign.v10.api.crprospectcampaignspecificationservice.CrProspectCampaignSpecificationService.ExecuteRequest) request,
                            (io.grpc.stub.StreamObserver) responseObserver,
                            compression,
                            serviceImpl::execute);
                    break;
                case METHODID_REQUEST:
                    io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.prospectcampaigndesign.v10.api.crprospectcampaignspecificationservice.CrProspectCampaignSpecificationService.RequestRequest) request,
                            (io.grpc.stub.StreamObserver) responseObserver,
                            compression,
                            serviceImpl::request);
                    break;
                case METHODID_RETRIEVE:
                    io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.prospectcampaigndesign.v10.api.crprospectcampaignspecificationservice.CrProspectCampaignSpecificationService.RetrieveRequest) request,
                            (io.grpc.stub.StreamObserver) responseObserver,
                            compression,
                            serviceImpl::retrieve);
                    break;
                case METHODID_UPDATE:
                    io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.prospectcampaigndesign.v10.api.crprospectcampaignspecificationservice.CrProspectCampaignSpecificationService.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