com.redhat.mercury.merchandisingloan.v10.api.bqbillingservice.MutinyBQBillingServiceGrpc Maven / Gradle / Ivy
The newest version!
package com.redhat.mercury.merchandisingloan.v10.api.bqbillingservice;
import static com.redhat.mercury.merchandisingloan.v10.api.bqbillingservice.BQBillingServiceGrpc.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_billing_service.proto")
public final class MutinyBQBillingServiceGrpc implements io.quarkus.grpc.runtime.MutinyGrpc {
private MutinyBQBillingServiceGrpc() {}
public static MutinyBQBillingServiceStub newMutinyStub(io.grpc.Channel channel) {
return new MutinyBQBillingServiceStub(channel);
}
public static final class MutinyBQBillingServiceStub extends io.grpc.stub.AbstractStub implements io.quarkus.grpc.runtime.MutinyStub {
private BQBillingServiceGrpc.BQBillingServiceStub delegateStub;
private MutinyBQBillingServiceStub(io.grpc.Channel channel) {
super(channel);
delegateStub = BQBillingServiceGrpc.newStub(channel);
}
private MutinyBQBillingServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
delegateStub = BQBillingServiceGrpc.newStub(channel).build(channel, callOptions);
}
@Override
protected MutinyBQBillingServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new MutinyBQBillingServiceStub(channel, callOptions);
}
public io.smallrye.mutiny.Uni exchangeBilling(com.redhat.mercury.merchandisingloan.v10.api.bqbillingservice.BqBillingService.ExchangeBillingRequest request) {
return io.quarkus.grpc.runtime.ClientCalls.oneToOne(request, delegateStub::exchangeBilling);
}
public io.smallrye.mutiny.Uni initiateBilling(com.redhat.mercury.merchandisingloan.v10.api.bqbillingservice.BqBillingService.InitiateBillingRequest request) {
return io.quarkus.grpc.runtime.ClientCalls.oneToOne(request, delegateStub::initiateBilling);
}
public io.smallrye.mutiny.Uni retrieveBilling(com.redhat.mercury.merchandisingloan.v10.api.bqbillingservice.BqBillingService.RetrieveBillingRequest request) {
return io.quarkus.grpc.runtime.ClientCalls.oneToOne(request, delegateStub::retrieveBilling);
}
public io.smallrye.mutiny.Uni updateBilling(com.redhat.mercury.merchandisingloan.v10.api.bqbillingservice.BqBillingService.UpdateBillingRequest request) {
return io.quarkus.grpc.runtime.ClientCalls.oneToOne(request, delegateStub::updateBilling);
}
}
public static abstract class BQBillingServiceImplBase 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 BQBillingServiceImplBase withCompression(String compression) {
this.compression = compression;
return this;
}
public io.smallrye.mutiny.Uni exchangeBilling(com.redhat.mercury.merchandisingloan.v10.api.bqbillingservice.BqBillingService.ExchangeBillingRequest request) {
throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED);
}
public io.smallrye.mutiny.Uni initiateBilling(com.redhat.mercury.merchandisingloan.v10.api.bqbillingservice.BqBillingService.InitiateBillingRequest request) {
throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED);
}
public io.smallrye.mutiny.Uni retrieveBilling(com.redhat.mercury.merchandisingloan.v10.api.bqbillingservice.BqBillingService.RetrieveBillingRequest request) {
throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED);
}
public io.smallrye.mutiny.Uni updateBilling(com.redhat.mercury.merchandisingloan.v10.api.bqbillingservice.BqBillingService.UpdateBillingRequest 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.merchandisingloan.v10.api.bqbillingservice.BQBillingServiceGrpc.getExchangeBillingMethod(),
asyncUnaryCall(
new MethodHandlers<
com.redhat.mercury.merchandisingloan.v10.api.bqbillingservice.BqBillingService.ExchangeBillingRequest,
com.redhat.mercury.merchandisingloan.v10.BillingOuterClass.Billing>(
this, METHODID_EXCHANGE_BILLING, compression)))
.addMethod(
com.redhat.mercury.merchandisingloan.v10.api.bqbillingservice.BQBillingServiceGrpc.getInitiateBillingMethod(),
asyncUnaryCall(
new MethodHandlers<
com.redhat.mercury.merchandisingloan.v10.api.bqbillingservice.BqBillingService.InitiateBillingRequest,
com.redhat.mercury.merchandisingloan.v10.BillingOuterClass.Billing>(
this, METHODID_INITIATE_BILLING, compression)))
.addMethod(
com.redhat.mercury.merchandisingloan.v10.api.bqbillingservice.BQBillingServiceGrpc.getRetrieveBillingMethod(),
asyncUnaryCall(
new MethodHandlers<
com.redhat.mercury.merchandisingloan.v10.api.bqbillingservice.BqBillingService.RetrieveBillingRequest,
com.redhat.mercury.merchandisingloan.v10.BillingOuterClass.Billing>(
this, METHODID_RETRIEVE_BILLING, compression)))
.addMethod(
com.redhat.mercury.merchandisingloan.v10.api.bqbillingservice.BQBillingServiceGrpc.getUpdateBillingMethod(),
asyncUnaryCall(
new MethodHandlers<
com.redhat.mercury.merchandisingloan.v10.api.bqbillingservice.BqBillingService.UpdateBillingRequest,
com.redhat.mercury.merchandisingloan.v10.BillingOuterClass.Billing>(
this, METHODID_UPDATE_BILLING, compression)))
.build();
}
}
private static final int METHODID_EXCHANGE_BILLING = 0;
private static final int METHODID_INITIATE_BILLING = 1;
private static final int METHODID_RETRIEVE_BILLING = 2;
private static final int METHODID_UPDATE_BILLING = 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 BQBillingServiceImplBase serviceImpl;
private final int methodId;
private final String compression;
MethodHandlers(BQBillingServiceImplBase 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_EXCHANGE_BILLING:
io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.merchandisingloan.v10.api.bqbillingservice.BqBillingService.ExchangeBillingRequest) request,
(io.grpc.stub.StreamObserver) responseObserver,
compression,
serviceImpl::exchangeBilling);
break;
case METHODID_INITIATE_BILLING:
io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.merchandisingloan.v10.api.bqbillingservice.BqBillingService.InitiateBillingRequest) request,
(io.grpc.stub.StreamObserver) responseObserver,
compression,
serviceImpl::initiateBilling);
break;
case METHODID_RETRIEVE_BILLING:
io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.merchandisingloan.v10.api.bqbillingservice.BqBillingService.RetrieveBillingRequest) request,
(io.grpc.stub.StreamObserver) responseObserver,
compression,
serviceImpl::retrieveBilling);
break;
case METHODID_UPDATE_BILLING:
io.quarkus.grpc.runtime.ServerCalls.oneToOne((com.redhat.mercury.merchandisingloan.v10.api.bqbillingservice.BqBillingService.UpdateBillingRequest) request,
(io.grpc.stub.StreamObserver) responseObserver,
compression,
serviceImpl::updateBilling);
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