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

com.redhat.mercury.issueddevicetracking.v10.api.bqinternalnotificationservice.MutinyBQInternalNotificationServiceGrpc Maven / Gradle / Ivy

The newest version!
package com.redhat.mercury.issueddevicetracking.v10.api.bqinternalnotificationservice;

import static com.redhat.mercury.issueddevicetracking.v10.api.bqinternalnotificationservice.BQInternalNotificationServiceGrpc.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_internal_notification_service.proto")
public final class MutinyBQInternalNotificationServiceGrpc implements io.quarkus.grpc.runtime.MutinyGrpc {
    private MutinyBQInternalNotificationServiceGrpc() {}

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

    
    public static final class MutinyBQInternalNotificationServiceStub extends io.grpc.stub.AbstractStub implements io.quarkus.grpc.runtime.MutinyStub {
        private BQInternalNotificationServiceGrpc.BQInternalNotificationServiceStub delegateStub;

        private MutinyBQInternalNotificationServiceStub(io.grpc.Channel channel) {
            super(channel);
            delegateStub = BQInternalNotificationServiceGrpc.newStub(channel);
        }

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

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

        
        public io.smallrye.mutiny.Uni captureInternalNotification(com.redhat.mercury.issueddevicetracking.v10.api.bqinternalnotificationservice.BqInternalNotificationService.CaptureInternalNotificationRequest request) {
            return io.quarkus.grpc.runtime.ClientCalls.oneToOne(request, delegateStub::captureInternalNotification);
        }

        
        public io.smallrye.mutiny.Uni retrieveInternalNotification(com.redhat.mercury.issueddevicetracking.v10.api.bqinternalnotificationservice.BqInternalNotificationService.RetrieveInternalNotificationRequest request) {
            return io.quarkus.grpc.runtime.ClientCalls.oneToOne(request, delegateStub::retrieveInternalNotification);
        }

        
        public io.smallrye.mutiny.Uni updateInternalNotification(com.redhat.mercury.issueddevicetracking.v10.api.bqinternalnotificationservice.BqInternalNotificationService.UpdateInternalNotificationRequest request) {
            return io.quarkus.grpc.runtime.ClientCalls.oneToOne(request, delegateStub::updateInternalNotification);
        }

    }

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


        
        public io.smallrye.mutiny.Uni captureInternalNotification(com.redhat.mercury.issueddevicetracking.v10.api.bqinternalnotificationservice.BqInternalNotificationService.CaptureInternalNotificationRequest request) {
            throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED);
        }

        
        public io.smallrye.mutiny.Uni retrieveInternalNotification(com.redhat.mercury.issueddevicetracking.v10.api.bqinternalnotificationservice.BqInternalNotificationService.RetrieveInternalNotificationRequest request) {
            throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED);
        }

        
        public io.smallrye.mutiny.Uni updateInternalNotification(com.redhat.mercury.issueddevicetracking.v10.api.bqinternalnotificationservice.BqInternalNotificationService.UpdateInternalNotificationRequest 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.issueddevicetracking.v10.api.bqinternalnotificationservice.BQInternalNotificationServiceGrpc.getCaptureInternalNotificationMethod(),
                            asyncUnaryCall(
                                    new MethodHandlers<
                                            com.redhat.mercury.issueddevicetracking.v10.api.bqinternalnotificationservice.BqInternalNotificationService.CaptureInternalNotificationRequest,
                                            com.redhat.mercury.issueddevicetracking.v10.CaptureInternalNotificationResponseOuterClass.CaptureInternalNotificationResponse>(
                                            this, METHODID_CAPTURE_INTERNAL_NOTIFICATION, compression)))
                    .addMethod(
                            com.redhat.mercury.issueddevicetracking.v10.api.bqinternalnotificationservice.BQInternalNotificationServiceGrpc.getRetrieveInternalNotificationMethod(),
                            asyncUnaryCall(
                                    new MethodHandlers<
                                            com.redhat.mercury.issueddevicetracking.v10.api.bqinternalnotificationservice.BqInternalNotificationService.RetrieveInternalNotificationRequest,
                                            com.redhat.mercury.issueddevicetracking.v10.RetrieveInternalNotificationResponseOuterClass.RetrieveInternalNotificationResponse>(
                                            this, METHODID_RETRIEVE_INTERNAL_NOTIFICATION, compression)))
                    .addMethod(
                            com.redhat.mercury.issueddevicetracking.v10.api.bqinternalnotificationservice.BQInternalNotificationServiceGrpc.getUpdateInternalNotificationMethod(),
                            asyncUnaryCall(
                                    new MethodHandlers<
                                            com.redhat.mercury.issueddevicetracking.v10.api.bqinternalnotificationservice.BqInternalNotificationService.UpdateInternalNotificationRequest,
                                            com.redhat.mercury.issueddevicetracking.v10.UpdateInternalNotificationResponseOuterClass.UpdateInternalNotificationResponse>(
                                            this, METHODID_UPDATE_INTERNAL_NOTIFICATION, compression)))
                    .build();
        }
    }

    private static final int METHODID_CAPTURE_INTERNAL_NOTIFICATION = 0;
    private static final int METHODID_RETRIEVE_INTERNAL_NOTIFICATION = 1;
    private static final int METHODID_UPDATE_INTERNAL_NOTIFICATION = 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 BQInternalNotificationServiceImplBase serviceImpl;
        private final int methodId;
        private final String compression;

        MethodHandlers(BQInternalNotificationServiceImplBase 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_INTERNAL_NOTIFICATION:
                    io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.issueddevicetracking.v10.api.bqinternalnotificationservice.BqInternalNotificationService.CaptureInternalNotificationRequest) request,
                            (io.grpc.stub.StreamObserver) responseObserver,
                            compression,
                            serviceImpl::captureInternalNotification);
                    break;
                case METHODID_RETRIEVE_INTERNAL_NOTIFICATION:
                    io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.issueddevicetracking.v10.api.bqinternalnotificationservice.BqInternalNotificationService.RetrieveInternalNotificationRequest) request,
                            (io.grpc.stub.StreamObserver) responseObserver,
                            compression,
                            serviceImpl::retrieveInternalNotification);
                    break;
                case METHODID_UPDATE_INTERNAL_NOTIFICATION:
                    io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.issueddevicetracking.v10.api.bqinternalnotificationservice.BqInternalNotificationService.UpdateInternalNotificationRequest) request,
                            (io.grpc.stub.StreamObserver) responseObserver,
                            compression,
                            serviceImpl::updateInternalNotification);
                    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