
com.redhat.mercury.locationdatamanagement.v10.api.bqoccupancyservice.MutinyBQOccupancyServiceGrpc Maven / Gradle / Ivy
package com.redhat.mercury.locationdatamanagement.v10.api.bqoccupancyservice;
import static com.redhat.mercury.locationdatamanagement.v10.api.bqoccupancyservice.BQOccupancyServiceGrpc.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_occupancy_service.proto")
public final class MutinyBQOccupancyServiceGrpc implements io.quarkus.grpc.runtime.MutinyGrpc {
private MutinyBQOccupancyServiceGrpc() {}
public static MutinyBQOccupancyServiceStub newMutinyStub(io.grpc.Channel channel) {
return new MutinyBQOccupancyServiceStub(channel);
}
public static final class MutinyBQOccupancyServiceStub extends io.grpc.stub.AbstractStub implements io.quarkus.grpc.runtime.MutinyStub {
private BQOccupancyServiceGrpc.BQOccupancyServiceStub delegateStub;
private MutinyBQOccupancyServiceStub(io.grpc.Channel channel) {
super(channel);
delegateStub = BQOccupancyServiceGrpc.newStub(channel);
}
private MutinyBQOccupancyServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
delegateStub = BQOccupancyServiceGrpc.newStub(channel).build(channel, callOptions);
}
@Override
protected MutinyBQOccupancyServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new MutinyBQOccupancyServiceStub(channel, callOptions);
}
public io.smallrye.mutiny.Uni retrieveOccupancy(com.redhat.mercury.locationdatamanagement.v10.api.bqoccupancyservice.BqOccupancyService.RetrieveOccupancyRequest request) {
return io.quarkus.grpc.runtime.ClientCalls.oneToOne(request, delegateStub::retrieveOccupancy);
}
public io.smallrye.mutiny.Uni updateOccupancy(com.redhat.mercury.locationdatamanagement.v10.api.bqoccupancyservice.BqOccupancyService.UpdateOccupancyRequest request) {
return io.quarkus.grpc.runtime.ClientCalls.oneToOne(request, delegateStub::updateOccupancy);
}
}
public static abstract class BQOccupancyServiceImplBase 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 BQOccupancyServiceImplBase withCompression(String compression) {
this.compression = compression;
return this;
}
public io.smallrye.mutiny.Uni retrieveOccupancy(com.redhat.mercury.locationdatamanagement.v10.api.bqoccupancyservice.BqOccupancyService.RetrieveOccupancyRequest request) {
throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED);
}
public io.smallrye.mutiny.Uni updateOccupancy(com.redhat.mercury.locationdatamanagement.v10.api.bqoccupancyservice.BqOccupancyService.UpdateOccupancyRequest 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.locationdatamanagement.v10.api.bqoccupancyservice.BQOccupancyServiceGrpc.getRetrieveOccupancyMethod(),
asyncUnaryCall(
new MethodHandlers<
com.redhat.mercury.locationdatamanagement.v10.api.bqoccupancyservice.BqOccupancyService.RetrieveOccupancyRequest,
com.redhat.mercury.locationdatamanagement.v10.RetrieveOccupancyResponseOuterClass.RetrieveOccupancyResponse>(
this, METHODID_RETRIEVE_OCCUPANCY, compression)))
.addMethod(
com.redhat.mercury.locationdatamanagement.v10.api.bqoccupancyservice.BQOccupancyServiceGrpc.getUpdateOccupancyMethod(),
asyncUnaryCall(
new MethodHandlers<
com.redhat.mercury.locationdatamanagement.v10.api.bqoccupancyservice.BqOccupancyService.UpdateOccupancyRequest,
com.redhat.mercury.locationdatamanagement.v10.UpdateOccupancyResponseOuterClass.UpdateOccupancyResponse>(
this, METHODID_UPDATE_OCCUPANCY, compression)))
.build();
}
}
private static final int METHODID_RETRIEVE_OCCUPANCY = 0;
private static final int METHODID_UPDATE_OCCUPANCY = 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 BQOccupancyServiceImplBase serviceImpl;
private final int methodId;
private final String compression;
MethodHandlers(BQOccupancyServiceImplBase 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_RETRIEVE_OCCUPANCY:
io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.locationdatamanagement.v10.api.bqoccupancyservice.BqOccupancyService.RetrieveOccupancyRequest) request,
(io.grpc.stub.StreamObserver) responseObserver,
compression,
serviceImpl::retrieveOccupancy);
break;
case METHODID_UPDATE_OCCUPANCY:
io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.locationdatamanagement.v10.api.bqoccupancyservice.BqOccupancyService.UpdateOccupancyRequest) request,
(io.grpc.stub.StreamObserver) responseObserver,
compression,
serviceImpl::updateOccupancy);
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