com.zepben.protobuf.dc.DiagramConsumerGrpc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of evolve-grpc Show documentation
Show all versions of evolve-grpc Show documentation
Protobuf and gRPC definitions for the evolve platform
package com.zepben.protobuf.dc;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.59.1)",
comments = "Source: zepben/protobuf/dc/dc.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class DiagramConsumerGrpc {
private DiagramConsumerGrpc() {}
public static final java.lang.String SERVICE_NAME = "zepben.protobuf.dc.DiagramConsumer";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getGetIdentifiedObjectsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "getIdentifiedObjects",
requestType = com.zepben.protobuf.dc.GetIdentifiedObjectsRequest.class,
responseType = com.zepben.protobuf.dc.GetIdentifiedObjectsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
public static io.grpc.MethodDescriptor getGetIdentifiedObjectsMethod() {
io.grpc.MethodDescriptor getGetIdentifiedObjectsMethod;
if ((getGetIdentifiedObjectsMethod = DiagramConsumerGrpc.getGetIdentifiedObjectsMethod) == null) {
synchronized (DiagramConsumerGrpc.class) {
if ((getGetIdentifiedObjectsMethod = DiagramConsumerGrpc.getGetIdentifiedObjectsMethod) == null) {
DiagramConsumerGrpc.getGetIdentifiedObjectsMethod = getGetIdentifiedObjectsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "getIdentifiedObjects"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.zepben.protobuf.dc.GetIdentifiedObjectsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.zepben.protobuf.dc.GetIdentifiedObjectsResponse.getDefaultInstance()))
.setSchemaDescriptor(new DiagramConsumerMethodDescriptorSupplier("getIdentifiedObjects"))
.build();
}
}
}
return getGetIdentifiedObjectsMethod;
}
private static volatile io.grpc.MethodDescriptor getGetDiagramObjectsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "getDiagramObjects",
requestType = com.zepben.protobuf.dc.GetDiagramObjectsRequest.class,
responseType = com.zepben.protobuf.dc.GetDiagramObjectsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
public static io.grpc.MethodDescriptor getGetDiagramObjectsMethod() {
io.grpc.MethodDescriptor getGetDiagramObjectsMethod;
if ((getGetDiagramObjectsMethod = DiagramConsumerGrpc.getGetDiagramObjectsMethod) == null) {
synchronized (DiagramConsumerGrpc.class) {
if ((getGetDiagramObjectsMethod = DiagramConsumerGrpc.getGetDiagramObjectsMethod) == null) {
DiagramConsumerGrpc.getGetDiagramObjectsMethod = getGetDiagramObjectsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "getDiagramObjects"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.zepben.protobuf.dc.GetDiagramObjectsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.zepben.protobuf.dc.GetDiagramObjectsResponse.getDefaultInstance()))
.setSchemaDescriptor(new DiagramConsumerMethodDescriptorSupplier("getDiagramObjects"))
.build();
}
}
}
return getGetDiagramObjectsMethod;
}
private static volatile io.grpc.MethodDescriptor getGetMetadataMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "getMetadata",
requestType = com.zepben.protobuf.metadata.GetMetadataRequest.class,
responseType = com.zepben.protobuf.metadata.GetMetadataResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetMetadataMethod() {
io.grpc.MethodDescriptor getGetMetadataMethod;
if ((getGetMetadataMethod = DiagramConsumerGrpc.getGetMetadataMethod) == null) {
synchronized (DiagramConsumerGrpc.class) {
if ((getGetMetadataMethod = DiagramConsumerGrpc.getGetMetadataMethod) == null) {
DiagramConsumerGrpc.getGetMetadataMethod = getGetMetadataMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "getMetadata"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.zepben.protobuf.metadata.GetMetadataRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.zepben.protobuf.metadata.GetMetadataResponse.getDefaultInstance()))
.setSchemaDescriptor(new DiagramConsumerMethodDescriptorSupplier("getMetadata"))
.build();
}
}
}
return getGetMetadataMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static DiagramConsumerStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public DiagramConsumerStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new DiagramConsumerStub(channel, callOptions);
}
};
return DiagramConsumerStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static DiagramConsumerBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public DiagramConsumerBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new DiagramConsumerBlockingStub(channel, callOptions);
}
};
return DiagramConsumerBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static DiagramConsumerFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public DiagramConsumerFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new DiagramConsumerFutureStub(channel, callOptions);
}
};
return DiagramConsumerFutureStub.newStub(factory, channel);
}
/**
*/
public interface AsyncService {
/**
*
* Get identified objects
*
*/
default io.grpc.stub.StreamObserver getIdentifiedObjects(
io.grpc.stub.StreamObserver responseObserver) {
return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getGetIdentifiedObjectsMethod(), responseObserver);
}
/**
*
* Get diagram objects
*
*/
default io.grpc.stub.StreamObserver getDiagramObjects(
io.grpc.stub.StreamObserver responseObserver) {
return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getGetDiagramObjectsMethod(), responseObserver);
}
/**
*
* Get Metadata related to the service
*
*/
default void getMetadata(com.zepben.protobuf.metadata.GetMetadataRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMetadataMethod(), responseObserver);
}
}
/**
* Base class for the server implementation of the service DiagramConsumer.
*/
public static abstract class DiagramConsumerImplBase
implements io.grpc.BindableService, AsyncService {
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return DiagramConsumerGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service DiagramConsumer.
*/
public static final class DiagramConsumerStub
extends io.grpc.stub.AbstractAsyncStub {
private DiagramConsumerStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected DiagramConsumerStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new DiagramConsumerStub(channel, callOptions);
}
/**
*
* Get identified objects
*
*/
public io.grpc.stub.StreamObserver getIdentifiedObjects(
io.grpc.stub.StreamObserver responseObserver) {
return io.grpc.stub.ClientCalls.asyncBidiStreamingCall(
getChannel().newCall(getGetIdentifiedObjectsMethod(), getCallOptions()), responseObserver);
}
/**
*
* Get diagram objects
*
*/
public io.grpc.stub.StreamObserver getDiagramObjects(
io.grpc.stub.StreamObserver responseObserver) {
return io.grpc.stub.ClientCalls.asyncBidiStreamingCall(
getChannel().newCall(getGetDiagramObjectsMethod(), getCallOptions()), responseObserver);
}
/**
*
* Get Metadata related to the service
*
*/
public void getMetadata(com.zepben.protobuf.metadata.GetMetadataRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetMetadataMethod(), getCallOptions()), request, responseObserver);
}
}
/**
* A stub to allow clients to do synchronous rpc calls to service DiagramConsumer.
*/
public static final class DiagramConsumerBlockingStub
extends io.grpc.stub.AbstractBlockingStub {
private DiagramConsumerBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected DiagramConsumerBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new DiagramConsumerBlockingStub(channel, callOptions);
}
/**
*
* Get Metadata related to the service
*
*/
public com.zepben.protobuf.metadata.GetMetadataResponse getMetadata(com.zepben.protobuf.metadata.GetMetadataRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetMetadataMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service DiagramConsumer.
*/
public static final class DiagramConsumerFutureStub
extends io.grpc.stub.AbstractFutureStub {
private DiagramConsumerFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected DiagramConsumerFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new DiagramConsumerFutureStub(channel, callOptions);
}
/**
*
* Get Metadata related to the service
*
*/
public com.google.common.util.concurrent.ListenableFuture getMetadata(
com.zepben.protobuf.metadata.GetMetadataRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetMetadataMethod(), getCallOptions()), request);
}
}
private static final int METHODID_GET_METADATA = 0;
private static final int METHODID_GET_IDENTIFIED_OBJECTS = 1;
private static final int METHODID_GET_DIAGRAM_OBJECTS = 2;
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 AsyncService serviceImpl;
private final int methodId;
MethodHandlers(AsyncService 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_GET_METADATA:
serviceImpl.getMetadata((com.zepben.protobuf.metadata.GetMetadataRequest) 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) {
case METHODID_GET_IDENTIFIED_OBJECTS:
return (io.grpc.stub.StreamObserver) serviceImpl.getIdentifiedObjects(
(io.grpc.stub.StreamObserver) responseObserver);
case METHODID_GET_DIAGRAM_OBJECTS:
return (io.grpc.stub.StreamObserver) serviceImpl.getDiagramObjects(
(io.grpc.stub.StreamObserver) responseObserver);
default:
throw new AssertionError();
}
}
}
public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getGetIdentifiedObjectsMethod(),
io.grpc.stub.ServerCalls.asyncBidiStreamingCall(
new MethodHandlers<
com.zepben.protobuf.dc.GetIdentifiedObjectsRequest,
com.zepben.protobuf.dc.GetIdentifiedObjectsResponse>(
service, METHODID_GET_IDENTIFIED_OBJECTS)))
.addMethod(
getGetDiagramObjectsMethod(),
io.grpc.stub.ServerCalls.asyncBidiStreamingCall(
new MethodHandlers<
com.zepben.protobuf.dc.GetDiagramObjectsRequest,
com.zepben.protobuf.dc.GetDiagramObjectsResponse>(
service, METHODID_GET_DIAGRAM_OBJECTS)))
.addMethod(
getGetMetadataMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.zepben.protobuf.metadata.GetMetadataRequest,
com.zepben.protobuf.metadata.GetMetadataResponse>(
service, METHODID_GET_METADATA)))
.build();
}
private static abstract class DiagramConsumerBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
DiagramConsumerBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return com.zepben.protobuf.dc.Dc.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("DiagramConsumer");
}
}
private static final class DiagramConsumerFileDescriptorSupplier
extends DiagramConsumerBaseDescriptorSupplier {
DiagramConsumerFileDescriptorSupplier() {}
}
private static final class DiagramConsumerMethodDescriptorSupplier
extends DiagramConsumerBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final java.lang.String methodName;
DiagramConsumerMethodDescriptorSupplier(java.lang.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 (DiagramConsumerGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new DiagramConsumerFileDescriptorSupplier())
.addMethod(getGetIdentifiedObjectsMethod())
.addMethod(getGetDiagramObjectsMethod())
.addMethod(getGetMetadataMethod())
.build();
}
}
}
return result;
}
}