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

com.alibaba.graphscope.proto.groot.ClientDdlGrpc 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_ddl_service.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class ClientDdlGrpc {

  private ClientDdlGrpc() {}

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

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

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

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

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

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

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

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

    @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
      return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
          .addMethod(
            getSubmitDdlMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                com.alibaba.graphscope.proto.groot.SubmitDdlRequest,
                com.alibaba.graphscope.proto.groot.SubmitDdlResponse>(
                  this, METHODID_SUBMIT_DDL)))
          .build();
    }
  }

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

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

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

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

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

    /**
     */
    public com.alibaba.graphscope.proto.groot.SubmitDdlResponse submitDdl(com.alibaba.graphscope.proto.groot.SubmitDdlRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getSubmitDdlMethod(), getCallOptions(), request);
    }
  }

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

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

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

  private static final int METHODID_SUBMIT_DDL = 0;

  private static final class MethodHandlers implements
      io.grpc.stub.ServerCalls.UnaryMethod,
      io.grpc.stub.ServerCalls.ServerStreamingMethod,
      io.grpc.stub.ServerCalls.ClientStreamingMethod,
      io.grpc.stub.ServerCalls.BidiStreamingMethod {
    private final ClientDdlImplBase serviceImpl;
    private final int methodId;

    MethodHandlers(ClientDdlImplBase 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_SUBMIT_DDL:
          serviceImpl.submitDdl((com.alibaba.graphscope.proto.groot.SubmitDdlRequest) 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 ClientDdlBaseDescriptorSupplier
      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
    ClientDdlBaseDescriptorSupplier() {}

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

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

  private static final class ClientDdlFileDescriptorSupplier
      extends ClientDdlBaseDescriptorSupplier {
    ClientDdlFileDescriptorSupplier() {}
  }

  private static final class ClientDdlMethodDescriptorSupplier
      extends ClientDdlBaseDescriptorSupplier
      implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
    private final String methodName;

    ClientDdlMethodDescriptorSupplier(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 (ClientDdlGrpc.class) {
        result = serviceDescriptor;
        if (result == null) {
          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
              .setSchemaDescriptor(new ClientDdlFileDescriptorSupplier())
              .addMethod(getSubmitDdlMethod())
              .build();
        }
      }
    }
    return result;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy