org.janusgraph.graphdb.grpc.JanusGraphManagerServiceGrpc Maven / Gradle / Ivy
package org.janusgraph.graphdb.grpc;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.66.0)",
comments = "Source: janusgraph/v1/graph_manager.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class JanusGraphManagerServiceGrpc {
private JanusGraphManagerServiceGrpc() {}
public static final java.lang.String SERVICE_NAME = "janusgraph.v1.JanusGraphManagerService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getGetJanusGraphContextsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetJanusGraphContexts",
requestType = org.janusgraph.graphdb.grpc.GetJanusGraphContextsRequest.class,
responseType = org.janusgraph.graphdb.grpc.GetJanusGraphContextsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetJanusGraphContextsMethod() {
io.grpc.MethodDescriptor getGetJanusGraphContextsMethod;
if ((getGetJanusGraphContextsMethod = JanusGraphManagerServiceGrpc.getGetJanusGraphContextsMethod) == null) {
synchronized (JanusGraphManagerServiceGrpc.class) {
if ((getGetJanusGraphContextsMethod = JanusGraphManagerServiceGrpc.getGetJanusGraphContextsMethod) == null) {
JanusGraphManagerServiceGrpc.getGetJanusGraphContextsMethod = getGetJanusGraphContextsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetJanusGraphContexts"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.janusgraph.graphdb.grpc.GetJanusGraphContextsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.janusgraph.graphdb.grpc.GetJanusGraphContextsResponse.getDefaultInstance()))
.setSchemaDescriptor(new JanusGraphManagerServiceMethodDescriptorSupplier("GetJanusGraphContexts"))
.build();
}
}
}
return getGetJanusGraphContextsMethod;
}
private static volatile io.grpc.MethodDescriptor getGetJanusGraphContextByGraphNameMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetJanusGraphContextByGraphName",
requestType = org.janusgraph.graphdb.grpc.GetJanusGraphContextByGraphNameRequest.class,
responseType = org.janusgraph.graphdb.grpc.GetJanusGraphContextByGraphNameResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetJanusGraphContextByGraphNameMethod() {
io.grpc.MethodDescriptor getGetJanusGraphContextByGraphNameMethod;
if ((getGetJanusGraphContextByGraphNameMethod = JanusGraphManagerServiceGrpc.getGetJanusGraphContextByGraphNameMethod) == null) {
synchronized (JanusGraphManagerServiceGrpc.class) {
if ((getGetJanusGraphContextByGraphNameMethod = JanusGraphManagerServiceGrpc.getGetJanusGraphContextByGraphNameMethod) == null) {
JanusGraphManagerServiceGrpc.getGetJanusGraphContextByGraphNameMethod = getGetJanusGraphContextByGraphNameMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetJanusGraphContextByGraphName"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.janusgraph.graphdb.grpc.GetJanusGraphContextByGraphNameRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.janusgraph.graphdb.grpc.GetJanusGraphContextByGraphNameResponse.getDefaultInstance()))
.setSchemaDescriptor(new JanusGraphManagerServiceMethodDescriptorSupplier("GetJanusGraphContextByGraphName"))
.build();
}
}
}
return getGetJanusGraphContextByGraphNameMethod;
}
private static volatile io.grpc.MethodDescriptor getGetVersionMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetVersion",
requestType = org.janusgraph.graphdb.grpc.GetVersionRequest.class,
responseType = org.janusgraph.graphdb.grpc.GetVersionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetVersionMethod() {
io.grpc.MethodDescriptor getGetVersionMethod;
if ((getGetVersionMethod = JanusGraphManagerServiceGrpc.getGetVersionMethod) == null) {
synchronized (JanusGraphManagerServiceGrpc.class) {
if ((getGetVersionMethod = JanusGraphManagerServiceGrpc.getGetVersionMethod) == null) {
JanusGraphManagerServiceGrpc.getGetVersionMethod = getGetVersionMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetVersion"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.janusgraph.graphdb.grpc.GetVersionRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.janusgraph.graphdb.grpc.GetVersionResponse.getDefaultInstance()))
.setSchemaDescriptor(new JanusGraphManagerServiceMethodDescriptorSupplier("GetVersion"))
.build();
}
}
}
return getGetVersionMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static JanusGraphManagerServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public JanusGraphManagerServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new JanusGraphManagerServiceStub(channel, callOptions);
}
};
return JanusGraphManagerServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static JanusGraphManagerServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public JanusGraphManagerServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new JanusGraphManagerServiceBlockingStub(channel, callOptions);
}
};
return JanusGraphManagerServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static JanusGraphManagerServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public JanusGraphManagerServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new JanusGraphManagerServiceFutureStub(channel, callOptions);
}
};
return JanusGraphManagerServiceFutureStub.newStub(factory, channel);
}
/**
*/
public interface AsyncService {
/**
*/
default void getJanusGraphContexts(org.janusgraph.graphdb.grpc.GetJanusGraphContextsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetJanusGraphContextsMethod(), responseObserver);
}
/**
*/
default void getJanusGraphContextByGraphName(org.janusgraph.graphdb.grpc.GetJanusGraphContextByGraphNameRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetJanusGraphContextByGraphNameMethod(), responseObserver);
}
/**
*/
default void getVersion(org.janusgraph.graphdb.grpc.GetVersionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetVersionMethod(), responseObserver);
}
}
/**
* Base class for the server implementation of the service JanusGraphManagerService.
*/
public static abstract class JanusGraphManagerServiceImplBase
implements io.grpc.BindableService, AsyncService {
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return JanusGraphManagerServiceGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service JanusGraphManagerService.
*/
public static final class JanusGraphManagerServiceStub
extends io.grpc.stub.AbstractAsyncStub {
private JanusGraphManagerServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected JanusGraphManagerServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new JanusGraphManagerServiceStub(channel, callOptions);
}
/**
*/
public void getJanusGraphContexts(org.janusgraph.graphdb.grpc.GetJanusGraphContextsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetJanusGraphContextsMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void getJanusGraphContextByGraphName(org.janusgraph.graphdb.grpc.GetJanusGraphContextByGraphNameRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetJanusGraphContextByGraphNameMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void getVersion(org.janusgraph.graphdb.grpc.GetVersionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetVersionMethod(), getCallOptions()), request, responseObserver);
}
}
/**
* A stub to allow clients to do synchronous rpc calls to service JanusGraphManagerService.
*/
public static final class JanusGraphManagerServiceBlockingStub
extends io.grpc.stub.AbstractBlockingStub {
private JanusGraphManagerServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected JanusGraphManagerServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new JanusGraphManagerServiceBlockingStub(channel, callOptions);
}
/**
*/
public org.janusgraph.graphdb.grpc.GetJanusGraphContextsResponse getJanusGraphContexts(org.janusgraph.graphdb.grpc.GetJanusGraphContextsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetJanusGraphContextsMethod(), getCallOptions(), request);
}
/**
*/
public org.janusgraph.graphdb.grpc.GetJanusGraphContextByGraphNameResponse getJanusGraphContextByGraphName(org.janusgraph.graphdb.grpc.GetJanusGraphContextByGraphNameRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetJanusGraphContextByGraphNameMethod(), getCallOptions(), request);
}
/**
*/
public org.janusgraph.graphdb.grpc.GetVersionResponse getVersion(org.janusgraph.graphdb.grpc.GetVersionRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetVersionMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service JanusGraphManagerService.
*/
public static final class JanusGraphManagerServiceFutureStub
extends io.grpc.stub.AbstractFutureStub {
private JanusGraphManagerServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected JanusGraphManagerServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new JanusGraphManagerServiceFutureStub(channel, callOptions);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture getJanusGraphContexts(
org.janusgraph.graphdb.grpc.GetJanusGraphContextsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetJanusGraphContextsMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture getJanusGraphContextByGraphName(
org.janusgraph.graphdb.grpc.GetJanusGraphContextByGraphNameRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetJanusGraphContextByGraphNameMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture getVersion(
org.janusgraph.graphdb.grpc.GetVersionRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetVersionMethod(), getCallOptions()), request);
}
}
private static final int METHODID_GET_JANUS_GRAPH_CONTEXTS = 0;
private static final int METHODID_GET_JANUS_GRAPH_CONTEXT_BY_GRAPH_NAME = 1;
private static final int METHODID_GET_VERSION = 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_JANUS_GRAPH_CONTEXTS:
serviceImpl.getJanusGraphContexts((org.janusgraph.graphdb.grpc.GetJanusGraphContextsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_JANUS_GRAPH_CONTEXT_BY_GRAPH_NAME:
serviceImpl.getJanusGraphContextByGraphName((org.janusgraph.graphdb.grpc.GetJanusGraphContextByGraphNameRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_VERSION:
serviceImpl.getVersion((org.janusgraph.graphdb.grpc.GetVersionRequest) 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();
}
}
}
public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getGetJanusGraphContextsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
org.janusgraph.graphdb.grpc.GetJanusGraphContextsRequest,
org.janusgraph.graphdb.grpc.GetJanusGraphContextsResponse>(
service, METHODID_GET_JANUS_GRAPH_CONTEXTS)))
.addMethod(
getGetJanusGraphContextByGraphNameMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
org.janusgraph.graphdb.grpc.GetJanusGraphContextByGraphNameRequest,
org.janusgraph.graphdb.grpc.GetJanusGraphContextByGraphNameResponse>(
service, METHODID_GET_JANUS_GRAPH_CONTEXT_BY_GRAPH_NAME)))
.addMethod(
getGetVersionMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
org.janusgraph.graphdb.grpc.GetVersionRequest,
org.janusgraph.graphdb.grpc.GetVersionResponse>(
service, METHODID_GET_VERSION)))
.build();
}
private static abstract class JanusGraphManagerServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
JanusGraphManagerServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return org.janusgraph.graphdb.grpc.GraphManagerService.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("JanusGraphManagerService");
}
}
private static final class JanusGraphManagerServiceFileDescriptorSupplier
extends JanusGraphManagerServiceBaseDescriptorSupplier {
JanusGraphManagerServiceFileDescriptorSupplier() {}
}
private static final class JanusGraphManagerServiceMethodDescriptorSupplier
extends JanusGraphManagerServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final java.lang.String methodName;
JanusGraphManagerServiceMethodDescriptorSupplier(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 (JanusGraphManagerServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new JanusGraphManagerServiceFileDescriptorSupplier())
.addMethod(getGetJanusGraphContextsMethod())
.addMethod(getGetJanusGraphContextByGraphNameMethod())
.addMethod(getGetVersionMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy