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

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

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: groot/sdk/client.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class ClientGrpc {

  private ClientGrpc() {}

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

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

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

  private static volatile io.grpc.MethodDescriptor getIngestDataMethod;

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

  private static volatile io.grpc.MethodDescriptor getGetMetricsMethod;

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

  private static volatile io.grpc.MethodDescriptor getLoadJsonSchemaMethod;

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

  private static volatile io.grpc.MethodDescriptor getDropSchemaMethod;

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

  private static volatile io.grpc.MethodDescriptor getPrepareDataLoadMethod;

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

  private static volatile io.grpc.MethodDescriptor getCommitDataLoadMethod;

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

  private static volatile io.grpc.MethodDescriptor getGetPartitionNumMethod;

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

  private static volatile io.grpc.MethodDescriptor getGetLoggerInfoMethod;

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

  private static volatile io.grpc.MethodDescriptor getClearIngestMethod;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
      return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
          .addMethod(
            getGetSchemaMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                com.alibaba.graphscope.proto.groot.GetSchemaRequest,
                com.alibaba.graphscope.proto.groot.GetSchemaResponse>(
                  this, METHODID_GET_SCHEMA)))
          .addMethod(
            getIngestDataMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                com.alibaba.graphscope.proto.groot.IngestDataRequest,
                com.alibaba.graphscope.proto.groot.IngestDataResponse>(
                  this, METHODID_INGEST_DATA)))
          .addMethod(
            getGetMetricsMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                com.alibaba.graphscope.proto.groot.GetMetricsRequest,
                com.alibaba.graphscope.proto.groot.GetMetricsResponse>(
                  this, METHODID_GET_METRICS)))
          .addMethod(
            getLoadJsonSchemaMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                com.alibaba.graphscope.proto.groot.LoadJsonSchemaRequest,
                com.alibaba.graphscope.proto.groot.LoadJsonSchemaResponse>(
                  this, METHODID_LOAD_JSON_SCHEMA)))
          .addMethod(
            getDropSchemaMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                com.alibaba.graphscope.proto.groot.DropSchemaRequest,
                com.alibaba.graphscope.proto.groot.DropSchemaResponse>(
                  this, METHODID_DROP_SCHEMA)))
          .addMethod(
            getPrepareDataLoadMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                com.alibaba.graphscope.proto.groot.PrepareDataLoadRequest,
                com.alibaba.graphscope.proto.groot.PrepareDataLoadResponse>(
                  this, METHODID_PREPARE_DATA_LOAD)))
          .addMethod(
            getCommitDataLoadMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                com.alibaba.graphscope.proto.groot.CommitDataLoadRequest,
                com.alibaba.graphscope.proto.groot.CommitDataLoadResponse>(
                  this, METHODID_COMMIT_DATA_LOAD)))
          .addMethod(
            getGetPartitionNumMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                com.alibaba.graphscope.proto.groot.GetPartitionNumRequest,
                com.alibaba.graphscope.proto.groot.GetPartitionNumResponse>(
                  this, METHODID_GET_PARTITION_NUM)))
          .addMethod(
            getGetLoggerInfoMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                com.alibaba.graphscope.proto.groot.GetLoggerInfoRequest,
                com.alibaba.graphscope.proto.groot.GetLoggerInfoResponse>(
                  this, METHODID_GET_LOGGER_INFO)))
          .addMethod(
            getClearIngestMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                com.alibaba.graphscope.proto.groot.ClearIngestRequest,
                com.alibaba.graphscope.proto.groot.ClearIngestResponse>(
                  this, METHODID_CLEAR_INGEST)))
          .build();
    }
  }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     */
    public com.alibaba.graphscope.proto.groot.GetSchemaResponse getSchema(com.alibaba.graphscope.proto.groot.GetSchemaRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getGetSchemaMethod(), getCallOptions(), request);
    }

    /**
     */
    public com.alibaba.graphscope.proto.groot.IngestDataResponse ingestData(com.alibaba.graphscope.proto.groot.IngestDataRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getIngestDataMethod(), getCallOptions(), request);
    }

    /**
     */
    public com.alibaba.graphscope.proto.groot.GetMetricsResponse getMetrics(com.alibaba.graphscope.proto.groot.GetMetricsRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getGetMetricsMethod(), getCallOptions(), request);
    }

    /**
     */
    public com.alibaba.graphscope.proto.groot.LoadJsonSchemaResponse loadJsonSchema(com.alibaba.graphscope.proto.groot.LoadJsonSchemaRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getLoadJsonSchemaMethod(), getCallOptions(), request);
    }

    /**
     */
    public com.alibaba.graphscope.proto.groot.DropSchemaResponse dropSchema(com.alibaba.graphscope.proto.groot.DropSchemaRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getDropSchemaMethod(), getCallOptions(), request);
    }

    /**
     */
    public com.alibaba.graphscope.proto.groot.PrepareDataLoadResponse prepareDataLoad(com.alibaba.graphscope.proto.groot.PrepareDataLoadRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getPrepareDataLoadMethod(), getCallOptions(), request);
    }

    /**
     */
    public com.alibaba.graphscope.proto.groot.CommitDataLoadResponse commitDataLoad(com.alibaba.graphscope.proto.groot.CommitDataLoadRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getCommitDataLoadMethod(), getCallOptions(), request);
    }

    /**
     */
    public com.alibaba.graphscope.proto.groot.GetPartitionNumResponse getPartitionNum(com.alibaba.graphscope.proto.groot.GetPartitionNumRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getGetPartitionNumMethod(), getCallOptions(), request);
    }

    /**
     */
    public com.alibaba.graphscope.proto.groot.GetLoggerInfoResponse getLoggerInfo(com.alibaba.graphscope.proto.groot.GetLoggerInfoRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getGetLoggerInfoMethod(), getCallOptions(), request);
    }

    /**
     */
    public com.alibaba.graphscope.proto.groot.ClearIngestResponse clearIngest(com.alibaba.graphscope.proto.groot.ClearIngestRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getClearIngestMethod(), getCallOptions(), request);
    }
  }

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

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

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

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

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

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

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

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

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

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

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

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

  private static final int METHODID_GET_SCHEMA = 0;
  private static final int METHODID_INGEST_DATA = 1;
  private static final int METHODID_GET_METRICS = 2;
  private static final int METHODID_LOAD_JSON_SCHEMA = 3;
  private static final int METHODID_DROP_SCHEMA = 4;
  private static final int METHODID_PREPARE_DATA_LOAD = 5;
  private static final int METHODID_COMMIT_DATA_LOAD = 6;
  private static final int METHODID_GET_PARTITION_NUM = 7;
  private static final int METHODID_GET_LOGGER_INFO = 8;
  private static final int METHODID_CLEAR_INGEST = 9;

  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 ClientImplBase serviceImpl;
    private final int methodId;

    MethodHandlers(ClientImplBase 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_SCHEMA:
          serviceImpl.getSchema((com.alibaba.graphscope.proto.groot.GetSchemaRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_INGEST_DATA:
          serviceImpl.ingestData((com.alibaba.graphscope.proto.groot.IngestDataRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_GET_METRICS:
          serviceImpl.getMetrics((com.alibaba.graphscope.proto.groot.GetMetricsRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_LOAD_JSON_SCHEMA:
          serviceImpl.loadJsonSchema((com.alibaba.graphscope.proto.groot.LoadJsonSchemaRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_DROP_SCHEMA:
          serviceImpl.dropSchema((com.alibaba.graphscope.proto.groot.DropSchemaRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_PREPARE_DATA_LOAD:
          serviceImpl.prepareDataLoad((com.alibaba.graphscope.proto.groot.PrepareDataLoadRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_COMMIT_DATA_LOAD:
          serviceImpl.commitDataLoad((com.alibaba.graphscope.proto.groot.CommitDataLoadRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_GET_PARTITION_NUM:
          serviceImpl.getPartitionNum((com.alibaba.graphscope.proto.groot.GetPartitionNumRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_GET_LOGGER_INFO:
          serviceImpl.getLoggerInfo((com.alibaba.graphscope.proto.groot.GetLoggerInfoRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_CLEAR_INGEST:
          serviceImpl.clearIngest((com.alibaba.graphscope.proto.groot.ClearIngestRequest) 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 ClientBaseDescriptorSupplier
      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
    ClientBaseDescriptorSupplier() {}

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

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

  private static final class ClientFileDescriptorSupplier
      extends ClientBaseDescriptorSupplier {
    ClientFileDescriptorSupplier() {}
  }

  private static final class ClientMethodDescriptorSupplier
      extends ClientBaseDescriptorSupplier
      implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
    private final String methodName;

    ClientMethodDescriptorSupplier(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 (ClientGrpc.class) {
        result = serviceDescriptor;
        if (result == null) {
          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
              .setSchemaDescriptor(new ClientFileDescriptorSupplier())
              .addMethod(getGetSchemaMethod())
              .addMethod(getIngestDataMethod())
              .addMethod(getGetMetricsMethod())
              .addMethod(getLoadJsonSchemaMethod())
              .addMethod(getDropSchemaMethod())
              .addMethod(getPrepareDataLoadMethod())
              .addMethod(getCommitDataLoadMethod())
              .addMethod(getGetPartitionNumMethod())
              .addMethod(getGetLoggerInfoMethod())
              .addMethod(getClearIngestMethod())
              .build();
        }
      }
    }
    return result;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy