com.redhat.mercury.customerrelationshipmanagement.v10.api.crcustomerrelationshipmanagementplanservice.CRCustomerRelationshipManagementPlanServiceGrpc Maven / Gradle / Ivy
package com.redhat.mercury.customerrelationshipmanagement.v10.api.crcustomerrelationshipmanagementplanservice;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.42.1)",
comments = "Source: v10/api/cr_customer_relationship_management_plan_service.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class CRCustomerRelationshipManagementPlanServiceGrpc {
private CRCustomerRelationshipManagementPlanServiceGrpc() {}
public static final String SERVICE_NAME = "com.redhat.mercury.customerrelationshipmanagement.v10.api.crcustomerrelationshipmanagementplanservice.CRCustomerRelationshipManagementPlanService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getCreateMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Create",
requestType = com.redhat.mercury.customerrelationshipmanagement.v10.api.crcustomerrelationshipmanagementplanservice.CrCustomerRelationshipManagementPlanService.CreateRequest.class,
responseType = com.redhat.mercury.customerrelationshipmanagement.v10.CreateCustomerRelationshipManagementPlanResponseOuterClass.CreateCustomerRelationshipManagementPlanResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getCreateMethod() {
io.grpc.MethodDescriptor getCreateMethod;
if ((getCreateMethod = CRCustomerRelationshipManagementPlanServiceGrpc.getCreateMethod) == null) {
synchronized (CRCustomerRelationshipManagementPlanServiceGrpc.class) {
if ((getCreateMethod = CRCustomerRelationshipManagementPlanServiceGrpc.getCreateMethod) == null) {
CRCustomerRelationshipManagementPlanServiceGrpc.getCreateMethod = getCreateMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Create"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.redhat.mercury.customerrelationshipmanagement.v10.api.crcustomerrelationshipmanagementplanservice.CrCustomerRelationshipManagementPlanService.CreateRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.redhat.mercury.customerrelationshipmanagement.v10.CreateCustomerRelationshipManagementPlanResponseOuterClass.CreateCustomerRelationshipManagementPlanResponse.getDefaultInstance()))
.setSchemaDescriptor(new CRCustomerRelationshipManagementPlanServiceMethodDescriptorSupplier("Create"))
.build();
}
}
}
return getCreateMethod;
}
private static volatile io.grpc.MethodDescriptor getRetrieveMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Retrieve",
requestType = com.redhat.mercury.customerrelationshipmanagement.v10.api.crcustomerrelationshipmanagementplanservice.CrCustomerRelationshipManagementPlanService.RetrieveRequest.class,
responseType = com.redhat.mercury.customerrelationshipmanagement.v10.RetrieveCustomerRelationshipManagementPlanResponseOuterClass.RetrieveCustomerRelationshipManagementPlanResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getRetrieveMethod() {
io.grpc.MethodDescriptor getRetrieveMethod;
if ((getRetrieveMethod = CRCustomerRelationshipManagementPlanServiceGrpc.getRetrieveMethod) == null) {
synchronized (CRCustomerRelationshipManagementPlanServiceGrpc.class) {
if ((getRetrieveMethod = CRCustomerRelationshipManagementPlanServiceGrpc.getRetrieveMethod) == null) {
CRCustomerRelationshipManagementPlanServiceGrpc.getRetrieveMethod = getRetrieveMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Retrieve"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.redhat.mercury.customerrelationshipmanagement.v10.api.crcustomerrelationshipmanagementplanservice.CrCustomerRelationshipManagementPlanService.RetrieveRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.redhat.mercury.customerrelationshipmanagement.v10.RetrieveCustomerRelationshipManagementPlanResponseOuterClass.RetrieveCustomerRelationshipManagementPlanResponse.getDefaultInstance()))
.setSchemaDescriptor(new CRCustomerRelationshipManagementPlanServiceMethodDescriptorSupplier("Retrieve"))
.build();
}
}
}
return getRetrieveMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static CRCustomerRelationshipManagementPlanServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public CRCustomerRelationshipManagementPlanServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new CRCustomerRelationshipManagementPlanServiceStub(channel, callOptions);
}
};
return CRCustomerRelationshipManagementPlanServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static CRCustomerRelationshipManagementPlanServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public CRCustomerRelationshipManagementPlanServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new CRCustomerRelationshipManagementPlanServiceBlockingStub(channel, callOptions);
}
};
return CRCustomerRelationshipManagementPlanServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static CRCustomerRelationshipManagementPlanServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public CRCustomerRelationshipManagementPlanServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new CRCustomerRelationshipManagementPlanServiceFutureStub(channel, callOptions);
}
};
return CRCustomerRelationshipManagementPlanServiceFutureStub.newStub(factory, channel);
}
/**
*/
public static abstract class CRCustomerRelationshipManagementPlanServiceImplBase implements io.grpc.BindableService {
/**
*/
public void create(com.redhat.mercury.customerrelationshipmanagement.v10.api.crcustomerrelationshipmanagementplanservice.CrCustomerRelationshipManagementPlanService.CreateRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateMethod(), responseObserver);
}
/**
*/
public void retrieve(com.redhat.mercury.customerrelationshipmanagement.v10.api.crcustomerrelationshipmanagementplanservice.CrCustomerRelationshipManagementPlanService.RetrieveRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRetrieveMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getCreateMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.redhat.mercury.customerrelationshipmanagement.v10.api.crcustomerrelationshipmanagementplanservice.CrCustomerRelationshipManagementPlanService.CreateRequest,
com.redhat.mercury.customerrelationshipmanagement.v10.CreateCustomerRelationshipManagementPlanResponseOuterClass.CreateCustomerRelationshipManagementPlanResponse>(
this, METHODID_CREATE)))
.addMethod(
getRetrieveMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.redhat.mercury.customerrelationshipmanagement.v10.api.crcustomerrelationshipmanagementplanservice.CrCustomerRelationshipManagementPlanService.RetrieveRequest,
com.redhat.mercury.customerrelationshipmanagement.v10.RetrieveCustomerRelationshipManagementPlanResponseOuterClass.RetrieveCustomerRelationshipManagementPlanResponse>(
this, METHODID_RETRIEVE)))
.build();
}
}
/**
*/
public static final class CRCustomerRelationshipManagementPlanServiceStub extends io.grpc.stub.AbstractAsyncStub {
private CRCustomerRelationshipManagementPlanServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected CRCustomerRelationshipManagementPlanServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new CRCustomerRelationshipManagementPlanServiceStub(channel, callOptions);
}
/**
*/
public void create(com.redhat.mercury.customerrelationshipmanagement.v10.api.crcustomerrelationshipmanagementplanservice.CrCustomerRelationshipManagementPlanService.CreateRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCreateMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void retrieve(com.redhat.mercury.customerrelationshipmanagement.v10.api.crcustomerrelationshipmanagementplanservice.CrCustomerRelationshipManagementPlanService.RetrieveRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getRetrieveMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*/
public static final class CRCustomerRelationshipManagementPlanServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub {
private CRCustomerRelationshipManagementPlanServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected CRCustomerRelationshipManagementPlanServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new CRCustomerRelationshipManagementPlanServiceBlockingStub(channel, callOptions);
}
/**
*/
public com.redhat.mercury.customerrelationshipmanagement.v10.CreateCustomerRelationshipManagementPlanResponseOuterClass.CreateCustomerRelationshipManagementPlanResponse create(com.redhat.mercury.customerrelationshipmanagement.v10.api.crcustomerrelationshipmanagementplanservice.CrCustomerRelationshipManagementPlanService.CreateRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateMethod(), getCallOptions(), request);
}
/**
*/
public com.redhat.mercury.customerrelationshipmanagement.v10.RetrieveCustomerRelationshipManagementPlanResponseOuterClass.RetrieveCustomerRelationshipManagementPlanResponse retrieve(com.redhat.mercury.customerrelationshipmanagement.v10.api.crcustomerrelationshipmanagementplanservice.CrCustomerRelationshipManagementPlanService.RetrieveRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRetrieveMethod(), getCallOptions(), request);
}
}
/**
*/
public static final class CRCustomerRelationshipManagementPlanServiceFutureStub extends io.grpc.stub.AbstractFutureStub {
private CRCustomerRelationshipManagementPlanServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected CRCustomerRelationshipManagementPlanServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new CRCustomerRelationshipManagementPlanServiceFutureStub(channel, callOptions);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture create(
com.redhat.mercury.customerrelationshipmanagement.v10.api.crcustomerrelationshipmanagementplanservice.CrCustomerRelationshipManagementPlanService.CreateRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCreateMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture retrieve(
com.redhat.mercury.customerrelationshipmanagement.v10.api.crcustomerrelationshipmanagementplanservice.CrCustomerRelationshipManagementPlanService.RetrieveRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRetrieveMethod(), getCallOptions()), request);
}
}
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;
MethodHandlers(CRCustomerRelationshipManagementPlanServiceImplBase 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_CREATE:
serviceImpl.create((com.redhat.mercury.customerrelationshipmanagement.v10.api.crcustomerrelationshipmanagementplanservice.CrCustomerRelationshipManagementPlanService.CreateRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_RETRIEVE:
serviceImpl.retrieve((com.redhat.mercury.customerrelationshipmanagement.v10.api.crcustomerrelationshipmanagementplanservice.CrCustomerRelationshipManagementPlanService.RetrieveRequest) 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 CRCustomerRelationshipManagementPlanServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
CRCustomerRelationshipManagementPlanServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return com.redhat.mercury.customerrelationshipmanagement.v10.api.crcustomerrelationshipmanagementplanservice.CrCustomerRelationshipManagementPlanService.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("CRCustomerRelationshipManagementPlanService");
}
}
private static final class CRCustomerRelationshipManagementPlanServiceFileDescriptorSupplier
extends CRCustomerRelationshipManagementPlanServiceBaseDescriptorSupplier {
CRCustomerRelationshipManagementPlanServiceFileDescriptorSupplier() {}
}
private static final class CRCustomerRelationshipManagementPlanServiceMethodDescriptorSupplier
extends CRCustomerRelationshipManagementPlanServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
CRCustomerRelationshipManagementPlanServiceMethodDescriptorSupplier(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 (CRCustomerRelationshipManagementPlanServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new CRCustomerRelationshipManagementPlanServiceFileDescriptorSupplier())
.addMethod(getCreateMethod())
.addMethod(getRetrieveMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy