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

com.alibaba.graphscope.proto.groot.GrootDdlServiceGrpc Maven / Gradle / Ivy

There is a newer version: 0.28.1
Show newest version
package com.alibaba.graphscope.proto.groot;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 */
@javax.annotation.Generated(
    value = "by gRPC proto compiler (version 1.51.1)",
    comments = "Source: ddl_service.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class GrootDdlServiceGrpc {

  private GrootDdlServiceGrpc() {}

  public static final String SERVICE_NAME = "gs.rpc.groot.GrootDdlService";

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

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "batchSubmit",
      requestType = com.alibaba.graphscope.proto.groot.BatchSubmitRequest.class,
      responseType = com.alibaba.graphscope.proto.groot.BatchSubmitResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getBatchSubmitMethod() {
    io.grpc.MethodDescriptor getBatchSubmitMethod;
    if ((getBatchSubmitMethod = GrootDdlServiceGrpc.getBatchSubmitMethod) == null) {
      synchronized (GrootDdlServiceGrpc.class) {
        if ((getBatchSubmitMethod = GrootDdlServiceGrpc.getBatchSubmitMethod) == null) {
          GrootDdlServiceGrpc.getBatchSubmitMethod = getBatchSubmitMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "batchSubmit"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.alibaba.graphscope.proto.groot.BatchSubmitRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.alibaba.graphscope.proto.groot.BatchSubmitResponse.getDefaultInstance()))
              .setSchemaDescriptor(new GrootDdlServiceMethodDescriptorSupplier("batchSubmit"))
              .build();
        }
      }
    }
    return getBatchSubmitMethod;
  }

  private static volatile io.grpc.MethodDescriptor getGetGraphDefMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "getGraphDef",
      requestType = com.alibaba.graphscope.proto.groot.GetGraphDefRequest.class,
      responseType = com.alibaba.graphscope.proto.groot.GetGraphDefResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getGetGraphDefMethod() {
    io.grpc.MethodDescriptor getGetGraphDefMethod;
    if ((getGetGraphDefMethod = GrootDdlServiceGrpc.getGetGraphDefMethod) == null) {
      synchronized (GrootDdlServiceGrpc.class) {
        if ((getGetGraphDefMethod = GrootDdlServiceGrpc.getGetGraphDefMethod) == null) {
          GrootDdlServiceGrpc.getGetGraphDefMethod = getGetGraphDefMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "getGraphDef"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.alibaba.graphscope.proto.groot.GetGraphDefRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.alibaba.graphscope.proto.groot.GetGraphDefResponse.getDefaultInstance()))
              .setSchemaDescriptor(new GrootDdlServiceMethodDescriptorSupplier("getGraphDef"))
              .build();
        }
      }
    }
    return getGetGraphDefMethod;
  }

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

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

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

  /**
   */
  public static abstract class GrootDdlServiceImplBase implements io.grpc.BindableService {

    /**
     */
    public void batchSubmit(com.alibaba.graphscope.proto.groot.BatchSubmitRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchSubmitMethod(), responseObserver);
    }

    /**
     */
    public void getGraphDef(com.alibaba.graphscope.proto.groot.GetGraphDefRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetGraphDefMethod(), responseObserver);
    }

    @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
      return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
          .addMethod(
            getBatchSubmitMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                com.alibaba.graphscope.proto.groot.BatchSubmitRequest,
                com.alibaba.graphscope.proto.groot.BatchSubmitResponse>(
                  this, METHODID_BATCH_SUBMIT)))
          .addMethod(
            getGetGraphDefMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                com.alibaba.graphscope.proto.groot.GetGraphDefRequest,
                com.alibaba.graphscope.proto.groot.GetGraphDefResponse>(
                  this, METHODID_GET_GRAPH_DEF)))
          .build();
    }
  }

  /**
   */
  public static final class GrootDdlServiceStub extends io.grpc.stub.AbstractAsyncStub {
    private GrootDdlServiceStub(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }

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

    /**
     */
    public void batchSubmit(com.alibaba.graphscope.proto.groot.BatchSubmitRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getBatchSubmitMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void getGraphDef(com.alibaba.graphscope.proto.groot.GetGraphDefRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getGetGraphDefMethod(), getCallOptions()), request, responseObserver);
    }
  }

  /**
   */
  public static final class GrootDdlServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub {
    private GrootDdlServiceBlockingStub(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }

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

    /**
     */
    public com.alibaba.graphscope.proto.groot.BatchSubmitResponse batchSubmit(com.alibaba.graphscope.proto.groot.BatchSubmitRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getBatchSubmitMethod(), getCallOptions(), request);
    }

    /**
     */
    public com.alibaba.graphscope.proto.groot.GetGraphDefResponse getGraphDef(com.alibaba.graphscope.proto.groot.GetGraphDefRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getGetGraphDefMethod(), getCallOptions(), request);
    }
  }

  /**
   */
  public static final class GrootDdlServiceFutureStub extends io.grpc.stub.AbstractFutureStub {
    private GrootDdlServiceFutureStub(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }

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

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture batchSubmit(
        com.alibaba.graphscope.proto.groot.BatchSubmitRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getBatchSubmitMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture getGraphDef(
        com.alibaba.graphscope.proto.groot.GetGraphDefRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getGetGraphDefMethod(), getCallOptions()), request);
    }
  }

  private static final int METHODID_BATCH_SUBMIT = 0;
  private static final int METHODID_GET_GRAPH_DEF = 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 GrootDdlServiceImplBase serviceImpl;
    private final int methodId;

    MethodHandlers(GrootDdlServiceImplBase 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_BATCH_SUBMIT:
          serviceImpl.batchSubmit((com.alibaba.graphscope.proto.groot.BatchSubmitRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_GET_GRAPH_DEF:
          serviceImpl.getGraphDef((com.alibaba.graphscope.proto.groot.GetGraphDefRequest) 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 GrootDdlServiceBaseDescriptorSupplier
      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
    GrootDdlServiceBaseDescriptorSupplier() {}

    @java.lang.Override
    public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
      return com.alibaba.graphscope.proto.groot.DdlService.getDescriptor();
    }

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

  private static final class GrootDdlServiceFileDescriptorSupplier
      extends GrootDdlServiceBaseDescriptorSupplier {
    GrootDdlServiceFileDescriptorSupplier() {}
  }

  private static final class GrootDdlServiceMethodDescriptorSupplier
      extends GrootDdlServiceBaseDescriptorSupplier
      implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
    private final String methodName;

    GrootDdlServiceMethodDescriptorSupplier(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 (GrootDdlServiceGrpc.class) {
        result = serviceDescriptor;
        if (result == null) {
          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
              .setSchemaDescriptor(new GrootDdlServiceFileDescriptorSupplier())
              .addMethod(getBatchSubmitMethod())
              .addMethod(getGetGraphDefMethod())
              .build();
        }
      }
    }
    return result;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy