
io.deephaven.proto.backplane.grpc.ObjectServiceGrpc Maven / Gradle / Ivy
package io.deephaven.proto.backplane.grpc;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.50.2)",
comments = "Source: deephaven/proto/object.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class ObjectServiceGrpc {
private ObjectServiceGrpc() {}
public static final String SERVICE_NAME = "io.deephaven.proto.backplane.grpc.ObjectService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getFetchObjectMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "FetchObject",
requestType = io.deephaven.proto.backplane.grpc.FetchObjectRequest.class,
responseType = io.deephaven.proto.backplane.grpc.FetchObjectResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getFetchObjectMethod() {
io.grpc.MethodDescriptor getFetchObjectMethod;
if ((getFetchObjectMethod = ObjectServiceGrpc.getFetchObjectMethod) == null) {
synchronized (ObjectServiceGrpc.class) {
if ((getFetchObjectMethod = ObjectServiceGrpc.getFetchObjectMethod) == null) {
ObjectServiceGrpc.getFetchObjectMethod = getFetchObjectMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "FetchObject"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.deephaven.proto.backplane.grpc.FetchObjectRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.deephaven.proto.backplane.grpc.FetchObjectResponse.getDefaultInstance()))
.setSchemaDescriptor(new ObjectServiceMethodDescriptorSupplier("FetchObject"))
.build();
}
}
}
return getFetchObjectMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static ObjectServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public ObjectServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ObjectServiceStub(channel, callOptions);
}
};
return ObjectServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static ObjectServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public ObjectServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ObjectServiceBlockingStub(channel, callOptions);
}
};
return ObjectServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static ObjectServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public ObjectServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ObjectServiceFutureStub(channel, callOptions);
}
};
return ObjectServiceFutureStub.newStub(factory, channel);
}
/**
*/
public static abstract class ObjectServiceImplBase implements io.grpc.BindableService {
/**
*/
public void fetchObject(io.deephaven.proto.backplane.grpc.FetchObjectRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFetchObjectMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getFetchObjectMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
io.deephaven.proto.backplane.grpc.FetchObjectRequest,
io.deephaven.proto.backplane.grpc.FetchObjectResponse>(
this, METHODID_FETCH_OBJECT)))
.build();
}
}
/**
*/
public static final class ObjectServiceStub extends io.grpc.stub.AbstractAsyncStub {
private ObjectServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected ObjectServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ObjectServiceStub(channel, callOptions);
}
/**
*/
public void fetchObject(io.deephaven.proto.backplane.grpc.FetchObjectRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getFetchObjectMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*/
public static final class ObjectServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub {
private ObjectServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected ObjectServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ObjectServiceBlockingStub(channel, callOptions);
}
/**
*/
public io.deephaven.proto.backplane.grpc.FetchObjectResponse fetchObject(io.deephaven.proto.backplane.grpc.FetchObjectRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getFetchObjectMethod(), getCallOptions(), request);
}
}
/**
*/
public static final class ObjectServiceFutureStub extends io.grpc.stub.AbstractFutureStub {
private ObjectServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected ObjectServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ObjectServiceFutureStub(channel, callOptions);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture fetchObject(
io.deephaven.proto.backplane.grpc.FetchObjectRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getFetchObjectMethod(), getCallOptions()), request);
}
}
private static final int METHODID_FETCH_OBJECT = 0;
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 ObjectServiceImplBase serviceImpl;
private final int methodId;
MethodHandlers(ObjectServiceImplBase 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_FETCH_OBJECT:
serviceImpl.fetchObject((io.deephaven.proto.backplane.grpc.FetchObjectRequest) 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 ObjectServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
ObjectServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return io.deephaven.proto.backplane.grpc.Object.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("ObjectService");
}
}
private static final class ObjectServiceFileDescriptorSupplier
extends ObjectServiceBaseDescriptorSupplier {
ObjectServiceFileDescriptorSupplier() {}
}
private static final class ObjectServiceMethodDescriptorSupplier
extends ObjectServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
ObjectServiceMethodDescriptorSupplier(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 (ObjectServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new ObjectServiceFileDescriptorSupplier())
.addMethod(getFetchObjectMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy