com.redhat.mercury.openitemmanagement.v10.api.bqrepaymentservice.MutinyBQRepaymentServiceGrpc Maven / Gradle / Ivy
package com.redhat.mercury.openitemmanagement.v10.api.bqrepaymentservice;
import static com.redhat.mercury.openitemmanagement.v10.api.bqrepaymentservice.BQRepaymentServiceGrpc.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_repayment_service.proto")
public final class MutinyBQRepaymentServiceGrpc implements io.quarkus.grpc.runtime.MutinyGrpc {
private MutinyBQRepaymentServiceGrpc() {}
public static MutinyBQRepaymentServiceStub newMutinyStub(io.grpc.Channel channel) {
return new MutinyBQRepaymentServiceStub(channel);
}
public static final class MutinyBQRepaymentServiceStub extends io.grpc.stub.AbstractStub implements io.quarkus.grpc.runtime.MutinyStub {
private BQRepaymentServiceGrpc.BQRepaymentServiceStub delegateStub;
private MutinyBQRepaymentServiceStub(io.grpc.Channel channel) {
super(channel);
delegateStub = BQRepaymentServiceGrpc.newStub(channel);
}
private MutinyBQRepaymentServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
delegateStub = BQRepaymentServiceGrpc.newStub(channel).build(channel, callOptions);
}
@Override
protected MutinyBQRepaymentServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new MutinyBQRepaymentServiceStub(channel, callOptions);
}
public io.smallrye.mutiny.Uni executeRepayment(com.redhat.mercury.openitemmanagement.v10.api.bqrepaymentservice.BqRepaymentService.ExecuteRepaymentRequest request) {
return io.quarkus.grpc.runtime.ClientCalls.oneToOne(request, delegateStub::executeRepayment);
}
public io.smallrye.mutiny.Uni initiateRepayment(com.redhat.mercury.openitemmanagement.v10.api.bqrepaymentservice.BqRepaymentService.InitiateRepaymentRequest request) {
return io.quarkus.grpc.runtime.ClientCalls.oneToOne(request, delegateStub::initiateRepayment);
}
public io.smallrye.mutiny.Uni retrieveRepayment(com.redhat.mercury.openitemmanagement.v10.api.bqrepaymentservice.BqRepaymentService.RetrieveRepaymentRequest request) {
return io.quarkus.grpc.runtime.ClientCalls.oneToOne(request, delegateStub::retrieveRepayment);
}
public io.smallrye.mutiny.Uni updateRepayment(com.redhat.mercury.openitemmanagement.v10.api.bqrepaymentservice.BqRepaymentService.UpdateRepaymentRequest request) {
return io.quarkus.grpc.runtime.ClientCalls.oneToOne(request, delegateStub::updateRepayment);
}
}
public static abstract class BQRepaymentServiceImplBase 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 BQRepaymentServiceImplBase withCompression(String compression) {
this.compression = compression;
return this;
}
public io.smallrye.mutiny.Uni executeRepayment(com.redhat.mercury.openitemmanagement.v10.api.bqrepaymentservice.BqRepaymentService.ExecuteRepaymentRequest request) {
throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED);
}
public io.smallrye.mutiny.Uni initiateRepayment(com.redhat.mercury.openitemmanagement.v10.api.bqrepaymentservice.BqRepaymentService.InitiateRepaymentRequest request) {
throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED);
}
public io.smallrye.mutiny.Uni retrieveRepayment(com.redhat.mercury.openitemmanagement.v10.api.bqrepaymentservice.BqRepaymentService.RetrieveRepaymentRequest request) {
throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED);
}
public io.smallrye.mutiny.Uni updateRepayment(com.redhat.mercury.openitemmanagement.v10.api.bqrepaymentservice.BqRepaymentService.UpdateRepaymentRequest 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.openitemmanagement.v10.api.bqrepaymentservice.BQRepaymentServiceGrpc.getExecuteRepaymentMethod(),
asyncUnaryCall(
new MethodHandlers<
com.redhat.mercury.openitemmanagement.v10.api.bqrepaymentservice.BqRepaymentService.ExecuteRepaymentRequest,
com.redhat.mercury.openitemmanagement.v10.RepaymentOuterClass.Repayment>(
this, METHODID_EXECUTE_REPAYMENT, compression)))
.addMethod(
com.redhat.mercury.openitemmanagement.v10.api.bqrepaymentservice.BQRepaymentServiceGrpc.getInitiateRepaymentMethod(),
asyncUnaryCall(
new MethodHandlers<
com.redhat.mercury.openitemmanagement.v10.api.bqrepaymentservice.BqRepaymentService.InitiateRepaymentRequest,
com.redhat.mercury.openitemmanagement.v10.InitiateRepaymentResponseOuterClass.InitiateRepaymentResponse>(
this, METHODID_INITIATE_REPAYMENT, compression)))
.addMethod(
com.redhat.mercury.openitemmanagement.v10.api.bqrepaymentservice.BQRepaymentServiceGrpc.getRetrieveRepaymentMethod(),
asyncUnaryCall(
new MethodHandlers<
com.redhat.mercury.openitemmanagement.v10.api.bqrepaymentservice.BqRepaymentService.RetrieveRepaymentRequest,
com.redhat.mercury.openitemmanagement.v10.RetrieveRepaymentResponseOuterClass.RetrieveRepaymentResponse>(
this, METHODID_RETRIEVE_REPAYMENT, compression)))
.addMethod(
com.redhat.mercury.openitemmanagement.v10.api.bqrepaymentservice.BQRepaymentServiceGrpc.getUpdateRepaymentMethod(),
asyncUnaryCall(
new MethodHandlers<
com.redhat.mercury.openitemmanagement.v10.api.bqrepaymentservice.BqRepaymentService.UpdateRepaymentRequest,
com.redhat.mercury.openitemmanagement.v10.RepaymentOuterClass.Repayment>(
this, METHODID_UPDATE_REPAYMENT, compression)))
.build();
}
}
private static final int METHODID_EXECUTE_REPAYMENT = 0;
private static final int METHODID_INITIATE_REPAYMENT = 1;
private static final int METHODID_RETRIEVE_REPAYMENT = 2;
private static final int METHODID_UPDATE_REPAYMENT = 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 BQRepaymentServiceImplBase serviceImpl;
private final int methodId;
private final String compression;
MethodHandlers(BQRepaymentServiceImplBase 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_EXECUTE_REPAYMENT:
io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.openitemmanagement.v10.api.bqrepaymentservice.BqRepaymentService.ExecuteRepaymentRequest) request,
(io.grpc.stub.StreamObserver) responseObserver,
compression,
serviceImpl::executeRepayment);
break;
case METHODID_INITIATE_REPAYMENT:
io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.openitemmanagement.v10.api.bqrepaymentservice.BqRepaymentService.InitiateRepaymentRequest) request,
(io.grpc.stub.StreamObserver) responseObserver,
compression,
serviceImpl::initiateRepayment);
break;
case METHODID_RETRIEVE_REPAYMENT:
io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.openitemmanagement.v10.api.bqrepaymentservice.BqRepaymentService.RetrieveRepaymentRequest) request,
(io.grpc.stub.StreamObserver) responseObserver,
compression,
serviceImpl::retrieveRepayment);
break;
case METHODID_UPDATE_REPAYMENT:
io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.openitemmanagement.v10.api.bqrepaymentservice.BqRepaymentService.UpdateRepaymentRequest) request,
(io.grpc.stub.StreamObserver) responseObserver,
compression,
serviceImpl::updateRepayment);
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