com.redhat.mercury.customerrelationshipmanagement.v10.api.crcustomerrelationshipmanagementplanservice.MutinyCRCustomerRelationshipManagementPlanServiceGrpc Maven / Gradle / Ivy
package com.redhat.mercury.customerrelationshipmanagement.v10.api.crcustomerrelationshipmanagementplanservice;
import static com.redhat.mercury.customerrelationshipmanagement.v10.api.crcustomerrelationshipmanagementplanservice.CRCustomerRelationshipManagementPlanServiceGrpc.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_customer_relationship_management_plan_service.proto")
public final class MutinyCRCustomerRelationshipManagementPlanServiceGrpc implements io.quarkus.grpc.runtime.MutinyGrpc {
private MutinyCRCustomerRelationshipManagementPlanServiceGrpc() {}
public static MutinyCRCustomerRelationshipManagementPlanServiceStub newMutinyStub(io.grpc.Channel channel) {
return new MutinyCRCustomerRelationshipManagementPlanServiceStub(channel);
}
public static final class MutinyCRCustomerRelationshipManagementPlanServiceStub extends io.grpc.stub.AbstractStub implements io.quarkus.grpc.runtime.MutinyStub {
private CRCustomerRelationshipManagementPlanServiceGrpc.CRCustomerRelationshipManagementPlanServiceStub delegateStub;
private MutinyCRCustomerRelationshipManagementPlanServiceStub(io.grpc.Channel channel) {
super(channel);
delegateStub = CRCustomerRelationshipManagementPlanServiceGrpc.newStub(channel);
}
private MutinyCRCustomerRelationshipManagementPlanServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
delegateStub = CRCustomerRelationshipManagementPlanServiceGrpc.newStub(channel).build(channel, callOptions);
}
@Override
protected MutinyCRCustomerRelationshipManagementPlanServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new MutinyCRCustomerRelationshipManagementPlanServiceStub(channel, callOptions);
}
public io.smallrye.mutiny.Uni create(com.redhat.mercury.customerrelationshipmanagement.v10.api.crcustomerrelationshipmanagementplanservice.CrCustomerRelationshipManagementPlanService.CreateRequest request) {
return io.quarkus.grpc.runtime.ClientCalls.oneToOne(request, delegateStub::create);
}
public io.smallrye.mutiny.Uni retrieve(com.redhat.mercury.customerrelationshipmanagement.v10.api.crcustomerrelationshipmanagementplanservice.CrCustomerRelationshipManagementPlanService.RetrieveRequest request) {
return io.quarkus.grpc.runtime.ClientCalls.oneToOne(request, delegateStub::retrieve);
}
}
public static abstract class CRCustomerRelationshipManagementPlanServiceImplBase 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 CRCustomerRelationshipManagementPlanServiceImplBase withCompression(String compression) {
this.compression = compression;
return this;
}
public io.smallrye.mutiny.Uni create(com.redhat.mercury.customerrelationshipmanagement.v10.api.crcustomerrelationshipmanagementplanservice.CrCustomerRelationshipManagementPlanService.CreateRequest request) {
throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED);
}
public io.smallrye.mutiny.Uni retrieve(com.redhat.mercury.customerrelationshipmanagement.v10.api.crcustomerrelationshipmanagementplanservice.CrCustomerRelationshipManagementPlanService.RetrieveRequest 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.crcustomerrelationshipmanagementplanservice.CRCustomerRelationshipManagementPlanServiceGrpc.getCreateMethod(),
asyncUnaryCall(
new MethodHandlers<
com.redhat.mercury.customerrelationshipmanagement.v10.api.crcustomerrelationshipmanagementplanservice.CrCustomerRelationshipManagementPlanService.CreateRequest,
com.redhat.mercury.customerrelationshipmanagement.v10.CreateCustomerRelationshipManagementPlanResponseOuterClass.CreateCustomerRelationshipManagementPlanResponse>(
this, METHODID_CREATE, compression)))
.addMethod(
com.redhat.mercury.customerrelationshipmanagement.v10.api.crcustomerrelationshipmanagementplanservice.CRCustomerRelationshipManagementPlanServiceGrpc.getRetrieveMethod(),
asyncUnaryCall(
new MethodHandlers<
com.redhat.mercury.customerrelationshipmanagement.v10.api.crcustomerrelationshipmanagementplanservice.CrCustomerRelationshipManagementPlanService.RetrieveRequest,
com.redhat.mercury.customerrelationshipmanagement.v10.RetrieveCustomerRelationshipManagementPlanResponseOuterClass.RetrieveCustomerRelationshipManagementPlanResponse>(
this, METHODID_RETRIEVE, compression)))
.build();
}
}
private static final int METHODID_CREATE = 0;
private static final int METHODID_RETRIEVE = 1;
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 CRCustomerRelationshipManagementPlanServiceImplBase serviceImpl;
private final int methodId;
private final String compression;
MethodHandlers(CRCustomerRelationshipManagementPlanServiceImplBase 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:
io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.customerrelationshipmanagement.v10.api.crcustomerrelationshipmanagementplanservice.CrCustomerRelationshipManagementPlanService.CreateRequest) request,
(io.grpc.stub.StreamObserver) responseObserver,
compression,
serviceImpl::create);
break;
case METHODID_RETRIEVE:
io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.customerrelationshipmanagement.v10.api.crcustomerrelationshipmanagementplanservice.CrCustomerRelationshipManagementPlanService.RetrieveRequest) request,
(io.grpc.stub.StreamObserver) responseObserver,
compression,
serviceImpl::retrieve);
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