com.redhat.mercury.merchandisingloan.v10.api.bqlienservice.BQLienServiceGrpc Maven / Gradle / Ivy
The newest version!
package com.redhat.mercury.merchandisingloan.v10.api.bqlienservice;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.42.1)",
comments = "Source: v10/api/bq_lien_service.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class BQLienServiceGrpc {
private BQLienServiceGrpc() {}
public static final String SERVICE_NAME = "com.redhat.mercury.merchandisingloan.v10.api.bqlienservice.BQLienService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getExchangeLienMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ExchangeLien",
requestType = com.redhat.mercury.merchandisingloan.v10.api.bqlienservice.BqLienService.ExchangeLienRequest.class,
responseType = com.redhat.mercury.merchandisingloan.v10.LienOuterClass.Lien.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getExchangeLienMethod() {
io.grpc.MethodDescriptor getExchangeLienMethod;
if ((getExchangeLienMethod = BQLienServiceGrpc.getExchangeLienMethod) == null) {
synchronized (BQLienServiceGrpc.class) {
if ((getExchangeLienMethod = BQLienServiceGrpc.getExchangeLienMethod) == null) {
BQLienServiceGrpc.getExchangeLienMethod = getExchangeLienMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExchangeLien"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.redhat.mercury.merchandisingloan.v10.api.bqlienservice.BqLienService.ExchangeLienRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.redhat.mercury.merchandisingloan.v10.LienOuterClass.Lien.getDefaultInstance()))
.setSchemaDescriptor(new BQLienServiceMethodDescriptorSupplier("ExchangeLien"))
.build();
}
}
}
return getExchangeLienMethod;
}
private static volatile io.grpc.MethodDescriptor getInitiateLienMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "InitiateLien",
requestType = com.redhat.mercury.merchandisingloan.v10.api.bqlienservice.BqLienService.InitiateLienRequest.class,
responseType = com.redhat.mercury.merchandisingloan.v10.LienOuterClass.Lien.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getInitiateLienMethod() {
io.grpc.MethodDescriptor getInitiateLienMethod;
if ((getInitiateLienMethod = BQLienServiceGrpc.getInitiateLienMethod) == null) {
synchronized (BQLienServiceGrpc.class) {
if ((getInitiateLienMethod = BQLienServiceGrpc.getInitiateLienMethod) == null) {
BQLienServiceGrpc.getInitiateLienMethod = getInitiateLienMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "InitiateLien"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.redhat.mercury.merchandisingloan.v10.api.bqlienservice.BqLienService.InitiateLienRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.redhat.mercury.merchandisingloan.v10.LienOuterClass.Lien.getDefaultInstance()))
.setSchemaDescriptor(new BQLienServiceMethodDescriptorSupplier("InitiateLien"))
.build();
}
}
}
return getInitiateLienMethod;
}
private static volatile io.grpc.MethodDescriptor getRetrieveLienMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "RetrieveLien",
requestType = com.redhat.mercury.merchandisingloan.v10.api.bqlienservice.BqLienService.RetrieveLienRequest.class,
responseType = com.redhat.mercury.merchandisingloan.v10.LienOuterClass.Lien.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getRetrieveLienMethod() {
io.grpc.MethodDescriptor getRetrieveLienMethod;
if ((getRetrieveLienMethod = BQLienServiceGrpc.getRetrieveLienMethod) == null) {
synchronized (BQLienServiceGrpc.class) {
if ((getRetrieveLienMethod = BQLienServiceGrpc.getRetrieveLienMethod) == null) {
BQLienServiceGrpc.getRetrieveLienMethod = getRetrieveLienMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "RetrieveLien"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.redhat.mercury.merchandisingloan.v10.api.bqlienservice.BqLienService.RetrieveLienRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.redhat.mercury.merchandisingloan.v10.LienOuterClass.Lien.getDefaultInstance()))
.setSchemaDescriptor(new BQLienServiceMethodDescriptorSupplier("RetrieveLien"))
.build();
}
}
}
return getRetrieveLienMethod;
}
private static volatile io.grpc.MethodDescriptor getUpdateLienMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "UpdateLien",
requestType = com.redhat.mercury.merchandisingloan.v10.api.bqlienservice.BqLienService.UpdateLienRequest.class,
responseType = com.redhat.mercury.merchandisingloan.v10.LienOuterClass.Lien.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getUpdateLienMethod() {
io.grpc.MethodDescriptor getUpdateLienMethod;
if ((getUpdateLienMethod = BQLienServiceGrpc.getUpdateLienMethod) == null) {
synchronized (BQLienServiceGrpc.class) {
if ((getUpdateLienMethod = BQLienServiceGrpc.getUpdateLienMethod) == null) {
BQLienServiceGrpc.getUpdateLienMethod = getUpdateLienMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateLien"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.redhat.mercury.merchandisingloan.v10.api.bqlienservice.BqLienService.UpdateLienRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.redhat.mercury.merchandisingloan.v10.LienOuterClass.Lien.getDefaultInstance()))
.setSchemaDescriptor(new BQLienServiceMethodDescriptorSupplier("UpdateLien"))
.build();
}
}
}
return getUpdateLienMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static BQLienServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public BQLienServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new BQLienServiceStub(channel, callOptions);
}
};
return BQLienServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static BQLienServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public BQLienServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new BQLienServiceBlockingStub(channel, callOptions);
}
};
return BQLienServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static BQLienServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public BQLienServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new BQLienServiceFutureStub(channel, callOptions);
}
};
return BQLienServiceFutureStub.newStub(factory, channel);
}
/**
*/
public static abstract class BQLienServiceImplBase implements io.grpc.BindableService {
/**
*/
public void exchangeLien(com.redhat.mercury.merchandisingloan.v10.api.bqlienservice.BqLienService.ExchangeLienRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExchangeLienMethod(), responseObserver);
}
/**
*/
public void initiateLien(com.redhat.mercury.merchandisingloan.v10.api.bqlienservice.BqLienService.InitiateLienRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getInitiateLienMethod(), responseObserver);
}
/**
*/
public void retrieveLien(com.redhat.mercury.merchandisingloan.v10.api.bqlienservice.BqLienService.RetrieveLienRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRetrieveLienMethod(), responseObserver);
}
/**
*/
public void updateLien(com.redhat.mercury.merchandisingloan.v10.api.bqlienservice.BqLienService.UpdateLienRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateLienMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getExchangeLienMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.redhat.mercury.merchandisingloan.v10.api.bqlienservice.BqLienService.ExchangeLienRequest,
com.redhat.mercury.merchandisingloan.v10.LienOuterClass.Lien>(
this, METHODID_EXCHANGE_LIEN)))
.addMethod(
getInitiateLienMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.redhat.mercury.merchandisingloan.v10.api.bqlienservice.BqLienService.InitiateLienRequest,
com.redhat.mercury.merchandisingloan.v10.LienOuterClass.Lien>(
this, METHODID_INITIATE_LIEN)))
.addMethod(
getRetrieveLienMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.redhat.mercury.merchandisingloan.v10.api.bqlienservice.BqLienService.RetrieveLienRequest,
com.redhat.mercury.merchandisingloan.v10.LienOuterClass.Lien>(
this, METHODID_RETRIEVE_LIEN)))
.addMethod(
getUpdateLienMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.redhat.mercury.merchandisingloan.v10.api.bqlienservice.BqLienService.UpdateLienRequest,
com.redhat.mercury.merchandisingloan.v10.LienOuterClass.Lien>(
this, METHODID_UPDATE_LIEN)))
.build();
}
}
/**
*/
public static final class BQLienServiceStub extends io.grpc.stub.AbstractAsyncStub {
private BQLienServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected BQLienServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new BQLienServiceStub(channel, callOptions);
}
/**
*/
public void exchangeLien(com.redhat.mercury.merchandisingloan.v10.api.bqlienservice.BqLienService.ExchangeLienRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getExchangeLienMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void initiateLien(com.redhat.mercury.merchandisingloan.v10.api.bqlienservice.BqLienService.InitiateLienRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getInitiateLienMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void retrieveLien(com.redhat.mercury.merchandisingloan.v10.api.bqlienservice.BqLienService.RetrieveLienRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getRetrieveLienMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void updateLien(com.redhat.mercury.merchandisingloan.v10.api.bqlienservice.BqLienService.UpdateLienRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdateLienMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*/
public static final class BQLienServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub {
private BQLienServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected BQLienServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new BQLienServiceBlockingStub(channel, callOptions);
}
/**
*/
public com.redhat.mercury.merchandisingloan.v10.LienOuterClass.Lien exchangeLien(com.redhat.mercury.merchandisingloan.v10.api.bqlienservice.BqLienService.ExchangeLienRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getExchangeLienMethod(), getCallOptions(), request);
}
/**
*/
public com.redhat.mercury.merchandisingloan.v10.LienOuterClass.Lien initiateLien(com.redhat.mercury.merchandisingloan.v10.api.bqlienservice.BqLienService.InitiateLienRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getInitiateLienMethod(), getCallOptions(), request);
}
/**
*/
public com.redhat.mercury.merchandisingloan.v10.LienOuterClass.Lien retrieveLien(com.redhat.mercury.merchandisingloan.v10.api.bqlienservice.BqLienService.RetrieveLienRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRetrieveLienMethod(), getCallOptions(), request);
}
/**
*/
public com.redhat.mercury.merchandisingloan.v10.LienOuterClass.Lien updateLien(com.redhat.mercury.merchandisingloan.v10.api.bqlienservice.BqLienService.UpdateLienRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateLienMethod(), getCallOptions(), request);
}
}
/**
*/
public static final class BQLienServiceFutureStub extends io.grpc.stub.AbstractFutureStub {
private BQLienServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected BQLienServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new BQLienServiceFutureStub(channel, callOptions);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture exchangeLien(
com.redhat.mercury.merchandisingloan.v10.api.bqlienservice.BqLienService.ExchangeLienRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getExchangeLienMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture initiateLien(
com.redhat.mercury.merchandisingloan.v10.api.bqlienservice.BqLienService.InitiateLienRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getInitiateLienMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture retrieveLien(
com.redhat.mercury.merchandisingloan.v10.api.bqlienservice.BqLienService.RetrieveLienRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRetrieveLienMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture updateLien(
com.redhat.mercury.merchandisingloan.v10.api.bqlienservice.BqLienService.UpdateLienRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdateLienMethod(), getCallOptions()), request);
}
}
private static final int METHODID_EXCHANGE_LIEN = 0;
private static final int METHODID_INITIATE_LIEN = 1;
private static final int METHODID_RETRIEVE_LIEN = 2;
private static final int METHODID_UPDATE_LIEN = 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 BQLienServiceImplBase serviceImpl;
private final int methodId;
MethodHandlers(BQLienServiceImplBase serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
switch (methodId) {
case METHODID_EXCHANGE_LIEN:
serviceImpl.exchangeLien((com.redhat.mercury.merchandisingloan.v10.api.bqlienservice.BqLienService.ExchangeLienRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_INITIATE_LIEN:
serviceImpl.initiateLien((com.redhat.mercury.merchandisingloan.v10.api.bqlienservice.BqLienService.InitiateLienRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_RETRIEVE_LIEN:
serviceImpl.retrieveLien((com.redhat.mercury.merchandisingloan.v10.api.bqlienservice.BqLienService.RetrieveLienRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE_LIEN:
serviceImpl.updateLien((com.redhat.mercury.merchandisingloan.v10.api.bqlienservice.BqLienService.UpdateLienRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
default:
throw new AssertionError();
}
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public io.grpc.stub.StreamObserver invoke(
io.grpc.stub.StreamObserver responseObserver) {
switch (methodId) {
default:
throw new AssertionError();
}
}
}
private static abstract class BQLienServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
BQLienServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return com.redhat.mercury.merchandisingloan.v10.api.bqlienservice.BqLienService.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("BQLienService");
}
}
private static final class BQLienServiceFileDescriptorSupplier
extends BQLienServiceBaseDescriptorSupplier {
BQLienServiceFileDescriptorSupplier() {}
}
private static final class BQLienServiceMethodDescriptorSupplier
extends BQLienServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
BQLienServiceMethodDescriptorSupplier(String methodName) {
this.methodName = methodName;
}
@java.lang.Override
public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
return getServiceDescriptor().findMethodByName(methodName);
}
}
private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
public static io.grpc.ServiceDescriptor getServiceDescriptor() {
io.grpc.ServiceDescriptor result = serviceDescriptor;
if (result == null) {
synchronized (BQLienServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new BQLienServiceFileDescriptorSupplier())
.addMethod(getExchangeLienMethod())
.addMethod(getInitiateLienMethod())
.addMethod(getRetrieveLienMethod())
.addMethod(getUpdateLienMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy