com.redhat.mercury.customerrelationshipmanagement.v10.api.bqdevelopmentservice.MutinyBQDevelopmentServiceGrpc Maven / Gradle / Ivy
package com.redhat.mercury.customerrelationshipmanagement.v10.api.bqdevelopmentservice;
import static com.redhat.mercury.customerrelationshipmanagement.v10.api.bqdevelopmentservice.BQDevelopmentServiceGrpc.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_development_service.proto")
public final class MutinyBQDevelopmentServiceGrpc implements io.quarkus.grpc.runtime.MutinyGrpc {
private MutinyBQDevelopmentServiceGrpc() {}
public static MutinyBQDevelopmentServiceStub newMutinyStub(io.grpc.Channel channel) {
return new MutinyBQDevelopmentServiceStub(channel);
}
public static final class MutinyBQDevelopmentServiceStub extends io.grpc.stub.AbstractStub implements io.quarkus.grpc.runtime.MutinyStub {
private BQDevelopmentServiceGrpc.BQDevelopmentServiceStub delegateStub;
private MutinyBQDevelopmentServiceStub(io.grpc.Channel channel) {
super(channel);
delegateStub = BQDevelopmentServiceGrpc.newStub(channel);
}
private MutinyBQDevelopmentServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
delegateStub = BQDevelopmentServiceGrpc.newStub(channel).build(channel, callOptions);
}
@Override
protected MutinyBQDevelopmentServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new MutinyBQDevelopmentServiceStub(channel, callOptions);
}
public io.smallrye.mutiny.Uni createDevelopment(com.redhat.mercury.customerrelationshipmanagement.v10.api.bqdevelopmentservice.BqDevelopmentService.CreateDevelopmentRequest request) {
return io.quarkus.grpc.runtime.ClientCalls.oneToOne(request, delegateStub::createDevelopment);
}
public io.smallrye.mutiny.Uni requestDevelopment(com.redhat.mercury.customerrelationshipmanagement.v10.api.bqdevelopmentservice.BqDevelopmentService.RequestDevelopmentRequest request) {
return io.quarkus.grpc.runtime.ClientCalls.oneToOne(request, delegateStub::requestDevelopment);
}
public io.smallrye.mutiny.Uni retrieveDevelopment(com.redhat.mercury.customerrelationshipmanagement.v10.api.bqdevelopmentservice.BqDevelopmentService.RetrieveDevelopmentRequest request) {
return io.quarkus.grpc.runtime.ClientCalls.oneToOne(request, delegateStub::retrieveDevelopment);
}
public io.smallrye.mutiny.Uni updateDevelopment(com.redhat.mercury.customerrelationshipmanagement.v10.api.bqdevelopmentservice.BqDevelopmentService.UpdateDevelopmentRequest request) {
return io.quarkus.grpc.runtime.ClientCalls.oneToOne(request, delegateStub::updateDevelopment);
}
}
public static abstract class BQDevelopmentServiceImplBase 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 BQDevelopmentServiceImplBase withCompression(String compression) {
this.compression = compression;
return this;
}
public io.smallrye.mutiny.Uni createDevelopment(com.redhat.mercury.customerrelationshipmanagement.v10.api.bqdevelopmentservice.BqDevelopmentService.CreateDevelopmentRequest request) {
throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED);
}
public io.smallrye.mutiny.Uni requestDevelopment(com.redhat.mercury.customerrelationshipmanagement.v10.api.bqdevelopmentservice.BqDevelopmentService.RequestDevelopmentRequest request) {
throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED);
}
public io.smallrye.mutiny.Uni retrieveDevelopment(com.redhat.mercury.customerrelationshipmanagement.v10.api.bqdevelopmentservice.BqDevelopmentService.RetrieveDevelopmentRequest request) {
throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED);
}
public io.smallrye.mutiny.Uni updateDevelopment(com.redhat.mercury.customerrelationshipmanagement.v10.api.bqdevelopmentservice.BqDevelopmentService.UpdateDevelopmentRequest 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.customerrelationshipmanagement.v10.api.bqdevelopmentservice.BQDevelopmentServiceGrpc.getCreateDevelopmentMethod(),
asyncUnaryCall(
new MethodHandlers<
com.redhat.mercury.customerrelationshipmanagement.v10.api.bqdevelopmentservice.BqDevelopmentService.CreateDevelopmentRequest,
com.redhat.mercury.customerrelationshipmanagement.v10.CreateDevelopmentResponseOuterClass.CreateDevelopmentResponse>(
this, METHODID_CREATE_DEVELOPMENT, compression)))
.addMethod(
com.redhat.mercury.customerrelationshipmanagement.v10.api.bqdevelopmentservice.BQDevelopmentServiceGrpc.getRequestDevelopmentMethod(),
asyncUnaryCall(
new MethodHandlers<
com.redhat.mercury.customerrelationshipmanagement.v10.api.bqdevelopmentservice.BqDevelopmentService.RequestDevelopmentRequest,
com.redhat.mercury.customerrelationshipmanagement.v10.RequestDevelopmentResponseOuterClass.RequestDevelopmentResponse>(
this, METHODID_REQUEST_DEVELOPMENT, compression)))
.addMethod(
com.redhat.mercury.customerrelationshipmanagement.v10.api.bqdevelopmentservice.BQDevelopmentServiceGrpc.getRetrieveDevelopmentMethod(),
asyncUnaryCall(
new MethodHandlers<
com.redhat.mercury.customerrelationshipmanagement.v10.api.bqdevelopmentservice.BqDevelopmentService.RetrieveDevelopmentRequest,
com.redhat.mercury.customerrelationshipmanagement.v10.RetrieveDevelopmentResponseOuterClass.RetrieveDevelopmentResponse>(
this, METHODID_RETRIEVE_DEVELOPMENT, compression)))
.addMethod(
com.redhat.mercury.customerrelationshipmanagement.v10.api.bqdevelopmentservice.BQDevelopmentServiceGrpc.getUpdateDevelopmentMethod(),
asyncUnaryCall(
new MethodHandlers<
com.redhat.mercury.customerrelationshipmanagement.v10.api.bqdevelopmentservice.BqDevelopmentService.UpdateDevelopmentRequest,
com.redhat.mercury.customerrelationshipmanagement.v10.UpdateDevelopmentResponseOuterClass.UpdateDevelopmentResponse>(
this, METHODID_UPDATE_DEVELOPMENT, compression)))
.build();
}
}
private static final int METHODID_CREATE_DEVELOPMENT = 0;
private static final int METHODID_REQUEST_DEVELOPMENT = 1;
private static final int METHODID_RETRIEVE_DEVELOPMENT = 2;
private static final int METHODID_UPDATE_DEVELOPMENT = 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 BQDevelopmentServiceImplBase serviceImpl;
private final int methodId;
private final String compression;
MethodHandlers(BQDevelopmentServiceImplBase 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_CREATE_DEVELOPMENT:
io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.customerrelationshipmanagement.v10.api.bqdevelopmentservice.BqDevelopmentService.CreateDevelopmentRequest) request,
(io.grpc.stub.StreamObserver) responseObserver,
compression,
serviceImpl::createDevelopment);
break;
case METHODID_REQUEST_DEVELOPMENT:
io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.customerrelationshipmanagement.v10.api.bqdevelopmentservice.BqDevelopmentService.RequestDevelopmentRequest) request,
(io.grpc.stub.StreamObserver) responseObserver,
compression,
serviceImpl::requestDevelopment);
break;
case METHODID_RETRIEVE_DEVELOPMENT:
io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.customerrelationshipmanagement.v10.api.bqdevelopmentservice.BqDevelopmentService.RetrieveDevelopmentRequest) request,
(io.grpc.stub.StreamObserver) responseObserver,
compression,
serviceImpl::retrieveDevelopment);
break;
case METHODID_UPDATE_DEVELOPMENT:
io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.customerrelationshipmanagement.v10.api.bqdevelopmentservice.BqDevelopmentService.UpdateDevelopmentRequest) request,
(io.grpc.stub.StreamObserver) responseObserver,
compression,
serviceImpl::updateDevelopment);
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 - 2025 Weber Informatics LLC | Privacy Policy