All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.janusgraph.graphdb.grpc.schema.SchemaManagerServiceGrpc Maven / Gradle / Ivy

There is a newer version: 1.2.0-20241116-110554.8064ac9
Show newest version
package org.janusgraph.graphdb.grpc.schema;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 */
@javax.annotation.Generated(
    value = "by gRPC proto compiler (version 1.63.0)",
    comments = "Source: janusgraph/schema/v1/schema_manager.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class SchemaManagerServiceGrpc {

  private SchemaManagerServiceGrpc() {}

  public static final java.lang.String SERVICE_NAME = "janusgraph.schema.v1.SchemaManagerService";

  // Static method descriptors that strictly reflect the proto.
  private static volatile io.grpc.MethodDescriptor getGetVertexLabelByNameMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "GetVertexLabelByName",
      requestType = org.janusgraph.graphdb.grpc.schema.GetVertexLabelByNameRequest.class,
      responseType = org.janusgraph.graphdb.grpc.schema.GetVertexLabelByNameResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getGetVertexLabelByNameMethod() {
    io.grpc.MethodDescriptor getGetVertexLabelByNameMethod;
    if ((getGetVertexLabelByNameMethod = SchemaManagerServiceGrpc.getGetVertexLabelByNameMethod) == null) {
      synchronized (SchemaManagerServiceGrpc.class) {
        if ((getGetVertexLabelByNameMethod = SchemaManagerServiceGrpc.getGetVertexLabelByNameMethod) == null) {
          SchemaManagerServiceGrpc.getGetVertexLabelByNameMethod = getGetVertexLabelByNameMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetVertexLabelByName"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  org.janusgraph.graphdb.grpc.schema.GetVertexLabelByNameRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  org.janusgraph.graphdb.grpc.schema.GetVertexLabelByNameResponse.getDefaultInstance()))
              .setSchemaDescriptor(new SchemaManagerServiceMethodDescriptorSupplier("GetVertexLabelByName"))
              .build();
        }
      }
    }
    return getGetVertexLabelByNameMethod;
  }

  private static volatile io.grpc.MethodDescriptor getGetVertexLabelsMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "GetVertexLabels",
      requestType = org.janusgraph.graphdb.grpc.schema.GetVertexLabelsRequest.class,
      responseType = org.janusgraph.graphdb.grpc.schema.GetVertexLabelsResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getGetVertexLabelsMethod() {
    io.grpc.MethodDescriptor getGetVertexLabelsMethod;
    if ((getGetVertexLabelsMethod = SchemaManagerServiceGrpc.getGetVertexLabelsMethod) == null) {
      synchronized (SchemaManagerServiceGrpc.class) {
        if ((getGetVertexLabelsMethod = SchemaManagerServiceGrpc.getGetVertexLabelsMethod) == null) {
          SchemaManagerServiceGrpc.getGetVertexLabelsMethod = getGetVertexLabelsMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetVertexLabels"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  org.janusgraph.graphdb.grpc.schema.GetVertexLabelsRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  org.janusgraph.graphdb.grpc.schema.GetVertexLabelsResponse.getDefaultInstance()))
              .setSchemaDescriptor(new SchemaManagerServiceMethodDescriptorSupplier("GetVertexLabels"))
              .build();
        }
      }
    }
    return getGetVertexLabelsMethod;
  }

  private static volatile io.grpc.MethodDescriptor getGetVertexCompositeGraphIndexByNameMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "GetVertexCompositeGraphIndexByName",
      requestType = org.janusgraph.graphdb.grpc.schema.GetVertexCompositeGraphIndexByNameRequest.class,
      responseType = org.janusgraph.graphdb.grpc.schema.GetVertexCompositeGraphIndexByNameResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getGetVertexCompositeGraphIndexByNameMethod() {
    io.grpc.MethodDescriptor getGetVertexCompositeGraphIndexByNameMethod;
    if ((getGetVertexCompositeGraphIndexByNameMethod = SchemaManagerServiceGrpc.getGetVertexCompositeGraphIndexByNameMethod) == null) {
      synchronized (SchemaManagerServiceGrpc.class) {
        if ((getGetVertexCompositeGraphIndexByNameMethod = SchemaManagerServiceGrpc.getGetVertexCompositeGraphIndexByNameMethod) == null) {
          SchemaManagerServiceGrpc.getGetVertexCompositeGraphIndexByNameMethod = getGetVertexCompositeGraphIndexByNameMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetVertexCompositeGraphIndexByName"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  org.janusgraph.graphdb.grpc.schema.GetVertexCompositeGraphIndexByNameRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  org.janusgraph.graphdb.grpc.schema.GetVertexCompositeGraphIndexByNameResponse.getDefaultInstance()))
              .setSchemaDescriptor(new SchemaManagerServiceMethodDescriptorSupplier("GetVertexCompositeGraphIndexByName"))
              .build();
        }
      }
    }
    return getGetVertexCompositeGraphIndexByNameMethod;
  }

  private static volatile io.grpc.MethodDescriptor getGetVertexCompositeGraphIndicesMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "GetVertexCompositeGraphIndices",
      requestType = org.janusgraph.graphdb.grpc.schema.GetVertexCompositeGraphIndicesRequest.class,
      responseType = org.janusgraph.graphdb.grpc.schema.GetVertexCompositeGraphIndicesResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getGetVertexCompositeGraphIndicesMethod() {
    io.grpc.MethodDescriptor getGetVertexCompositeGraphIndicesMethod;
    if ((getGetVertexCompositeGraphIndicesMethod = SchemaManagerServiceGrpc.getGetVertexCompositeGraphIndicesMethod) == null) {
      synchronized (SchemaManagerServiceGrpc.class) {
        if ((getGetVertexCompositeGraphIndicesMethod = SchemaManagerServiceGrpc.getGetVertexCompositeGraphIndicesMethod) == null) {
          SchemaManagerServiceGrpc.getGetVertexCompositeGraphIndicesMethod = getGetVertexCompositeGraphIndicesMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetVertexCompositeGraphIndices"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  org.janusgraph.graphdb.grpc.schema.GetVertexCompositeGraphIndicesRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  org.janusgraph.graphdb.grpc.schema.GetVertexCompositeGraphIndicesResponse.getDefaultInstance()))
              .setSchemaDescriptor(new SchemaManagerServiceMethodDescriptorSupplier("GetVertexCompositeGraphIndices"))
              .build();
        }
      }
    }
    return getGetVertexCompositeGraphIndicesMethod;
  }

  private static volatile io.grpc.MethodDescriptor getGetEdgeLabelByNameMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "GetEdgeLabelByName",
      requestType = org.janusgraph.graphdb.grpc.schema.GetEdgeLabelByNameRequest.class,
      responseType = org.janusgraph.graphdb.grpc.schema.GetEdgeLabelByNameResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getGetEdgeLabelByNameMethod() {
    io.grpc.MethodDescriptor getGetEdgeLabelByNameMethod;
    if ((getGetEdgeLabelByNameMethod = SchemaManagerServiceGrpc.getGetEdgeLabelByNameMethod) == null) {
      synchronized (SchemaManagerServiceGrpc.class) {
        if ((getGetEdgeLabelByNameMethod = SchemaManagerServiceGrpc.getGetEdgeLabelByNameMethod) == null) {
          SchemaManagerServiceGrpc.getGetEdgeLabelByNameMethod = getGetEdgeLabelByNameMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEdgeLabelByName"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  org.janusgraph.graphdb.grpc.schema.GetEdgeLabelByNameRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  org.janusgraph.graphdb.grpc.schema.GetEdgeLabelByNameResponse.getDefaultInstance()))
              .setSchemaDescriptor(new SchemaManagerServiceMethodDescriptorSupplier("GetEdgeLabelByName"))
              .build();
        }
      }
    }
    return getGetEdgeLabelByNameMethod;
  }

  private static volatile io.grpc.MethodDescriptor getGetEdgeLabelsMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "GetEdgeLabels",
      requestType = org.janusgraph.graphdb.grpc.schema.GetEdgeLabelsRequest.class,
      responseType = org.janusgraph.graphdb.grpc.schema.GetEdgeLabelsResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getGetEdgeLabelsMethod() {
    io.grpc.MethodDescriptor getGetEdgeLabelsMethod;
    if ((getGetEdgeLabelsMethod = SchemaManagerServiceGrpc.getGetEdgeLabelsMethod) == null) {
      synchronized (SchemaManagerServiceGrpc.class) {
        if ((getGetEdgeLabelsMethod = SchemaManagerServiceGrpc.getGetEdgeLabelsMethod) == null) {
          SchemaManagerServiceGrpc.getGetEdgeLabelsMethod = getGetEdgeLabelsMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEdgeLabels"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  org.janusgraph.graphdb.grpc.schema.GetEdgeLabelsRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  org.janusgraph.graphdb.grpc.schema.GetEdgeLabelsResponse.getDefaultInstance()))
              .setSchemaDescriptor(new SchemaManagerServiceMethodDescriptorSupplier("GetEdgeLabels"))
              .build();
        }
      }
    }
    return getGetEdgeLabelsMethod;
  }

  /**
   * Creates a new async stub that supports all call types for the service
   */
  public static SchemaManagerServiceStub newStub(io.grpc.Channel channel) {
    io.grpc.stub.AbstractStub.StubFactory factory =
      new io.grpc.stub.AbstractStub.StubFactory() {
        @java.lang.Override
        public SchemaManagerServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          return new SchemaManagerServiceStub(channel, callOptions);
        }
      };
    return SchemaManagerServiceStub.newStub(factory, channel);
  }

  /**
   * Creates a new blocking-style stub that supports unary and streaming output calls on the service
   */
  public static SchemaManagerServiceBlockingStub newBlockingStub(
      io.grpc.Channel channel) {
    io.grpc.stub.AbstractStub.StubFactory factory =
      new io.grpc.stub.AbstractStub.StubFactory() {
        @java.lang.Override
        public SchemaManagerServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          return new SchemaManagerServiceBlockingStub(channel, callOptions);
        }
      };
    return SchemaManagerServiceBlockingStub.newStub(factory, channel);
  }

  /**
   * Creates a new ListenableFuture-style stub that supports unary calls on the service
   */
  public static SchemaManagerServiceFutureStub newFutureStub(
      io.grpc.Channel channel) {
    io.grpc.stub.AbstractStub.StubFactory factory =
      new io.grpc.stub.AbstractStub.StubFactory() {
        @java.lang.Override
        public SchemaManagerServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          return new SchemaManagerServiceFutureStub(channel, callOptions);
        }
      };
    return SchemaManagerServiceFutureStub.newStub(factory, channel);
  }

  /**
   */
  public interface AsyncService {

    /**
     */
    default void getVertexLabelByName(org.janusgraph.graphdb.grpc.schema.GetVertexLabelByNameRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetVertexLabelByNameMethod(), responseObserver);
    }

    /**
     */
    default void getVertexLabels(org.janusgraph.graphdb.grpc.schema.GetVertexLabelsRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetVertexLabelsMethod(), responseObserver);
    }

    /**
     */
    default void getVertexCompositeGraphIndexByName(org.janusgraph.graphdb.grpc.schema.GetVertexCompositeGraphIndexByNameRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetVertexCompositeGraphIndexByNameMethod(), responseObserver);
    }

    /**
     */
    default void getVertexCompositeGraphIndices(org.janusgraph.graphdb.grpc.schema.GetVertexCompositeGraphIndicesRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetVertexCompositeGraphIndicesMethod(), responseObserver);
    }

    /**
     */
    default void getEdgeLabelByName(org.janusgraph.graphdb.grpc.schema.GetEdgeLabelByNameRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetEdgeLabelByNameMethod(), responseObserver);
    }

    /**
     */
    default void getEdgeLabels(org.janusgraph.graphdb.grpc.schema.GetEdgeLabelsRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetEdgeLabelsMethod(), responseObserver);
    }
  }

  /**
   * Base class for the server implementation of the service SchemaManagerService.
   */
  public static abstract class SchemaManagerServiceImplBase
      implements io.grpc.BindableService, AsyncService {

    @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
      return SchemaManagerServiceGrpc.bindService(this);
    }
  }

  /**
   * A stub to allow clients to do asynchronous rpc calls to service SchemaManagerService.
   */
  public static final class SchemaManagerServiceStub
      extends io.grpc.stub.AbstractAsyncStub {
    private SchemaManagerServiceStub(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }

    @java.lang.Override
    protected SchemaManagerServiceStub build(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      return new SchemaManagerServiceStub(channel, callOptions);
    }

    /**
     */
    public void getVertexLabelByName(org.janusgraph.graphdb.grpc.schema.GetVertexLabelByNameRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getGetVertexLabelByNameMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void getVertexLabels(org.janusgraph.graphdb.grpc.schema.GetVertexLabelsRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getGetVertexLabelsMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void getVertexCompositeGraphIndexByName(org.janusgraph.graphdb.grpc.schema.GetVertexCompositeGraphIndexByNameRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getGetVertexCompositeGraphIndexByNameMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void getVertexCompositeGraphIndices(org.janusgraph.graphdb.grpc.schema.GetVertexCompositeGraphIndicesRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getGetVertexCompositeGraphIndicesMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void getEdgeLabelByName(org.janusgraph.graphdb.grpc.schema.GetEdgeLabelByNameRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getGetEdgeLabelByNameMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void getEdgeLabels(org.janusgraph.graphdb.grpc.schema.GetEdgeLabelsRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getGetEdgeLabelsMethod(), getCallOptions()), request, responseObserver);
    }
  }

  /**
   * A stub to allow clients to do synchronous rpc calls to service SchemaManagerService.
   */
  public static final class SchemaManagerServiceBlockingStub
      extends io.grpc.stub.AbstractBlockingStub {
    private SchemaManagerServiceBlockingStub(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }

    @java.lang.Override
    protected SchemaManagerServiceBlockingStub build(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      return new SchemaManagerServiceBlockingStub(channel, callOptions);
    }

    /**
     */
    public org.janusgraph.graphdb.grpc.schema.GetVertexLabelByNameResponse getVertexLabelByName(org.janusgraph.graphdb.grpc.schema.GetVertexLabelByNameRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getGetVertexLabelByNameMethod(), getCallOptions(), request);
    }

    /**
     */
    public org.janusgraph.graphdb.grpc.schema.GetVertexLabelsResponse getVertexLabels(org.janusgraph.graphdb.grpc.schema.GetVertexLabelsRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getGetVertexLabelsMethod(), getCallOptions(), request);
    }

    /**
     */
    public org.janusgraph.graphdb.grpc.schema.GetVertexCompositeGraphIndexByNameResponse getVertexCompositeGraphIndexByName(org.janusgraph.graphdb.grpc.schema.GetVertexCompositeGraphIndexByNameRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getGetVertexCompositeGraphIndexByNameMethod(), getCallOptions(), request);
    }

    /**
     */
    public org.janusgraph.graphdb.grpc.schema.GetVertexCompositeGraphIndicesResponse getVertexCompositeGraphIndices(org.janusgraph.graphdb.grpc.schema.GetVertexCompositeGraphIndicesRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getGetVertexCompositeGraphIndicesMethod(), getCallOptions(), request);
    }

    /**
     */
    public org.janusgraph.graphdb.grpc.schema.GetEdgeLabelByNameResponse getEdgeLabelByName(org.janusgraph.graphdb.grpc.schema.GetEdgeLabelByNameRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getGetEdgeLabelByNameMethod(), getCallOptions(), request);
    }

    /**
     */
    public org.janusgraph.graphdb.grpc.schema.GetEdgeLabelsResponse getEdgeLabels(org.janusgraph.graphdb.grpc.schema.GetEdgeLabelsRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getGetEdgeLabelsMethod(), getCallOptions(), request);
    }
  }

  /**
   * A stub to allow clients to do ListenableFuture-style rpc calls to service SchemaManagerService.
   */
  public static final class SchemaManagerServiceFutureStub
      extends io.grpc.stub.AbstractFutureStub {
    private SchemaManagerServiceFutureStub(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }

    @java.lang.Override
    protected SchemaManagerServiceFutureStub build(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      return new SchemaManagerServiceFutureStub(channel, callOptions);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture getVertexLabelByName(
        org.janusgraph.graphdb.grpc.schema.GetVertexLabelByNameRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getGetVertexLabelByNameMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture getVertexLabels(
        org.janusgraph.graphdb.grpc.schema.GetVertexLabelsRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getGetVertexLabelsMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture getVertexCompositeGraphIndexByName(
        org.janusgraph.graphdb.grpc.schema.GetVertexCompositeGraphIndexByNameRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getGetVertexCompositeGraphIndexByNameMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture getVertexCompositeGraphIndices(
        org.janusgraph.graphdb.grpc.schema.GetVertexCompositeGraphIndicesRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getGetVertexCompositeGraphIndicesMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture getEdgeLabelByName(
        org.janusgraph.graphdb.grpc.schema.GetEdgeLabelByNameRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getGetEdgeLabelByNameMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture getEdgeLabels(
        org.janusgraph.graphdb.grpc.schema.GetEdgeLabelsRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getGetEdgeLabelsMethod(), getCallOptions()), request);
    }
  }

  private static final int METHODID_GET_VERTEX_LABEL_BY_NAME = 0;
  private static final int METHODID_GET_VERTEX_LABELS = 1;
  private static final int METHODID_GET_VERTEX_COMPOSITE_GRAPH_INDEX_BY_NAME = 2;
  private static final int METHODID_GET_VERTEX_COMPOSITE_GRAPH_INDICES = 3;
  private static final int METHODID_GET_EDGE_LABEL_BY_NAME = 4;
  private static final int METHODID_GET_EDGE_LABELS = 5;

  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_VERTEX_LABEL_BY_NAME:
          serviceImpl.getVertexLabelByName((org.janusgraph.graphdb.grpc.schema.GetVertexLabelByNameRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_GET_VERTEX_LABELS:
          serviceImpl.getVertexLabels((org.janusgraph.graphdb.grpc.schema.GetVertexLabelsRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_GET_VERTEX_COMPOSITE_GRAPH_INDEX_BY_NAME:
          serviceImpl.getVertexCompositeGraphIndexByName((org.janusgraph.graphdb.grpc.schema.GetVertexCompositeGraphIndexByNameRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_GET_VERTEX_COMPOSITE_GRAPH_INDICES:
          serviceImpl.getVertexCompositeGraphIndices((org.janusgraph.graphdb.grpc.schema.GetVertexCompositeGraphIndicesRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_GET_EDGE_LABEL_BY_NAME:
          serviceImpl.getEdgeLabelByName((org.janusgraph.graphdb.grpc.schema.GetEdgeLabelByNameRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_GET_EDGE_LABELS:
          serviceImpl.getEdgeLabels((org.janusgraph.graphdb.grpc.schema.GetEdgeLabelsRequest) 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(
          getGetVertexLabelByNameMethod(),
          io.grpc.stub.ServerCalls.asyncUnaryCall(
            new MethodHandlers<
              org.janusgraph.graphdb.grpc.schema.GetVertexLabelByNameRequest,
              org.janusgraph.graphdb.grpc.schema.GetVertexLabelByNameResponse>(
                service, METHODID_GET_VERTEX_LABEL_BY_NAME)))
        .addMethod(
          getGetVertexLabelsMethod(),
          io.grpc.stub.ServerCalls.asyncUnaryCall(
            new MethodHandlers<
              org.janusgraph.graphdb.grpc.schema.GetVertexLabelsRequest,
              org.janusgraph.graphdb.grpc.schema.GetVertexLabelsResponse>(
                service, METHODID_GET_VERTEX_LABELS)))
        .addMethod(
          getGetVertexCompositeGraphIndexByNameMethod(),
          io.grpc.stub.ServerCalls.asyncUnaryCall(
            new MethodHandlers<
              org.janusgraph.graphdb.grpc.schema.GetVertexCompositeGraphIndexByNameRequest,
              org.janusgraph.graphdb.grpc.schema.GetVertexCompositeGraphIndexByNameResponse>(
                service, METHODID_GET_VERTEX_COMPOSITE_GRAPH_INDEX_BY_NAME)))
        .addMethod(
          getGetVertexCompositeGraphIndicesMethod(),
          io.grpc.stub.ServerCalls.asyncUnaryCall(
            new MethodHandlers<
              org.janusgraph.graphdb.grpc.schema.GetVertexCompositeGraphIndicesRequest,
              org.janusgraph.graphdb.grpc.schema.GetVertexCompositeGraphIndicesResponse>(
                service, METHODID_GET_VERTEX_COMPOSITE_GRAPH_INDICES)))
        .addMethod(
          getGetEdgeLabelByNameMethod(),
          io.grpc.stub.ServerCalls.asyncUnaryCall(
            new MethodHandlers<
              org.janusgraph.graphdb.grpc.schema.GetEdgeLabelByNameRequest,
              org.janusgraph.graphdb.grpc.schema.GetEdgeLabelByNameResponse>(
                service, METHODID_GET_EDGE_LABEL_BY_NAME)))
        .addMethod(
          getGetEdgeLabelsMethod(),
          io.grpc.stub.ServerCalls.asyncUnaryCall(
            new MethodHandlers<
              org.janusgraph.graphdb.grpc.schema.GetEdgeLabelsRequest,
              org.janusgraph.graphdb.grpc.schema.GetEdgeLabelsResponse>(
                service, METHODID_GET_EDGE_LABELS)))
        .build();
  }

  private static abstract class SchemaManagerServiceBaseDescriptorSupplier
      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
    SchemaManagerServiceBaseDescriptorSupplier() {}

    @java.lang.Override
    public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
      return org.janusgraph.graphdb.grpc.schema.SchemaManager.getDescriptor();
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
      return getFileDescriptor().findServiceByName("SchemaManagerService");
    }
  }

  private static final class SchemaManagerServiceFileDescriptorSupplier
      extends SchemaManagerServiceBaseDescriptorSupplier {
    SchemaManagerServiceFileDescriptorSupplier() {}
  }

  private static final class SchemaManagerServiceMethodDescriptorSupplier
      extends SchemaManagerServiceBaseDescriptorSupplier
      implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
    private final java.lang.String methodName;

    SchemaManagerServiceMethodDescriptorSupplier(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 (SchemaManagerServiceGrpc.class) {
        result = serviceDescriptor;
        if (result == null) {
          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
              .setSchemaDescriptor(new SchemaManagerServiceFileDescriptorSupplier())
              .addMethod(getGetVertexLabelByNameMethod())
              .addMethod(getGetVertexLabelsMethod())
              .addMethod(getGetVertexCompositeGraphIndexByNameMethod())
              .addMethod(getGetVertexCompositeGraphIndicesMethod())
              .addMethod(getGetEdgeLabelByNameMethod())
              .addMethod(getGetEdgeLabelsMethod())
              .build();
        }
      }
    }
    return result;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy