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

com.dimajix.flowman.kernel.proto.workspace.WorkspaceServiceGrpc Maven / Gradle / Ivy

The newest version!
package com.dimajix.flowman.kernel.proto.workspace;

import static com.dimajix.shaded.grpc.MethodDescriptor.generateFullMethodName;

/**
 */
@javax.annotation.Generated(
    value = "by gRPC proto compiler (version 1.56.0)",
    comments = "Source: workspace.proto")
@com.dimajix.shaded.grpc.stub.annotations.GrpcGenerated
public final class WorkspaceServiceGrpc {

  private WorkspaceServiceGrpc() {}

  public static final String SERVICE_NAME = "com.dimajix.flowman.kernel.workspace.WorkspaceService";

  // Static method descriptors that strictly reflect the proto.
  private static volatile com.dimajix.shaded.grpc.MethodDescriptor getCreateWorkspaceMethod;

  @com.dimajix.shaded.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "CreateWorkspace",
      requestType = com.dimajix.flowman.kernel.proto.workspace.CreateWorkspaceRequest.class,
      responseType = com.dimajix.flowman.kernel.proto.workspace.CreateWorkspaceResponse.class,
      methodType = com.dimajix.shaded.grpc.MethodDescriptor.MethodType.UNARY)
  public static com.dimajix.shaded.grpc.MethodDescriptor getCreateWorkspaceMethod() {
    com.dimajix.shaded.grpc.MethodDescriptor getCreateWorkspaceMethod;
    if ((getCreateWorkspaceMethod = WorkspaceServiceGrpc.getCreateWorkspaceMethod) == null) {
      synchronized (WorkspaceServiceGrpc.class) {
        if ((getCreateWorkspaceMethod = WorkspaceServiceGrpc.getCreateWorkspaceMethod) == null) {
          WorkspaceServiceGrpc.getCreateWorkspaceMethod = getCreateWorkspaceMethod =
              com.dimajix.shaded.grpc.MethodDescriptor.newBuilder()
              .setType(com.dimajix.shaded.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkspace"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(com.dimajix.shaded.grpc.protobuf.ProtoUtils.marshaller(
                  com.dimajix.flowman.kernel.proto.workspace.CreateWorkspaceRequest.getDefaultInstance()))
              .setResponseMarshaller(com.dimajix.shaded.grpc.protobuf.ProtoUtils.marshaller(
                  com.dimajix.flowman.kernel.proto.workspace.CreateWorkspaceResponse.getDefaultInstance()))
              .setSchemaDescriptor(new WorkspaceServiceMethodDescriptorSupplier("CreateWorkspace"))
              .build();
        }
      }
    }
    return getCreateWorkspaceMethod;
  }

  private static volatile com.dimajix.shaded.grpc.MethodDescriptor getListWorkspacesMethod;

  @com.dimajix.shaded.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "ListWorkspaces",
      requestType = com.dimajix.flowman.kernel.proto.workspace.ListWorkspacesRequest.class,
      responseType = com.dimajix.flowman.kernel.proto.workspace.ListWorkspacesResponse.class,
      methodType = com.dimajix.shaded.grpc.MethodDescriptor.MethodType.UNARY)
  public static com.dimajix.shaded.grpc.MethodDescriptor getListWorkspacesMethod() {
    com.dimajix.shaded.grpc.MethodDescriptor getListWorkspacesMethod;
    if ((getListWorkspacesMethod = WorkspaceServiceGrpc.getListWorkspacesMethod) == null) {
      synchronized (WorkspaceServiceGrpc.class) {
        if ((getListWorkspacesMethod = WorkspaceServiceGrpc.getListWorkspacesMethod) == null) {
          WorkspaceServiceGrpc.getListWorkspacesMethod = getListWorkspacesMethod =
              com.dimajix.shaded.grpc.MethodDescriptor.newBuilder()
              .setType(com.dimajix.shaded.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkspaces"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(com.dimajix.shaded.grpc.protobuf.ProtoUtils.marshaller(
                  com.dimajix.flowman.kernel.proto.workspace.ListWorkspacesRequest.getDefaultInstance()))
              .setResponseMarshaller(com.dimajix.shaded.grpc.protobuf.ProtoUtils.marshaller(
                  com.dimajix.flowman.kernel.proto.workspace.ListWorkspacesResponse.getDefaultInstance()))
              .setSchemaDescriptor(new WorkspaceServiceMethodDescriptorSupplier("ListWorkspaces"))
              .build();
        }
      }
    }
    return getListWorkspacesMethod;
  }

  private static volatile com.dimajix.shaded.grpc.MethodDescriptor getGetWorkspaceMethod;

  @com.dimajix.shaded.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "GetWorkspace",
      requestType = com.dimajix.flowman.kernel.proto.workspace.GetWorkspaceRequest.class,
      responseType = com.dimajix.flowman.kernel.proto.workspace.GetWorkspaceResponse.class,
      methodType = com.dimajix.shaded.grpc.MethodDescriptor.MethodType.UNARY)
  public static com.dimajix.shaded.grpc.MethodDescriptor getGetWorkspaceMethod() {
    com.dimajix.shaded.grpc.MethodDescriptor getGetWorkspaceMethod;
    if ((getGetWorkspaceMethod = WorkspaceServiceGrpc.getGetWorkspaceMethod) == null) {
      synchronized (WorkspaceServiceGrpc.class) {
        if ((getGetWorkspaceMethod = WorkspaceServiceGrpc.getGetWorkspaceMethod) == null) {
          WorkspaceServiceGrpc.getGetWorkspaceMethod = getGetWorkspaceMethod =
              com.dimajix.shaded.grpc.MethodDescriptor.newBuilder()
              .setType(com.dimajix.shaded.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkspace"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(com.dimajix.shaded.grpc.protobuf.ProtoUtils.marshaller(
                  com.dimajix.flowman.kernel.proto.workspace.GetWorkspaceRequest.getDefaultInstance()))
              .setResponseMarshaller(com.dimajix.shaded.grpc.protobuf.ProtoUtils.marshaller(
                  com.dimajix.flowman.kernel.proto.workspace.GetWorkspaceResponse.getDefaultInstance()))
              .setSchemaDescriptor(new WorkspaceServiceMethodDescriptorSupplier("GetWorkspace"))
              .build();
        }
      }
    }
    return getGetWorkspaceMethod;
  }

  private static volatile com.dimajix.shaded.grpc.MethodDescriptor getDeleteWorkspaceMethod;

  @com.dimajix.shaded.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "DeleteWorkspace",
      requestType = com.dimajix.flowman.kernel.proto.workspace.DeleteWorkspaceRequest.class,
      responseType = com.dimajix.flowman.kernel.proto.workspace.DeleteWorkspaceResponse.class,
      methodType = com.dimajix.shaded.grpc.MethodDescriptor.MethodType.UNARY)
  public static com.dimajix.shaded.grpc.MethodDescriptor getDeleteWorkspaceMethod() {
    com.dimajix.shaded.grpc.MethodDescriptor getDeleteWorkspaceMethod;
    if ((getDeleteWorkspaceMethod = WorkspaceServiceGrpc.getDeleteWorkspaceMethod) == null) {
      synchronized (WorkspaceServiceGrpc.class) {
        if ((getDeleteWorkspaceMethod = WorkspaceServiceGrpc.getDeleteWorkspaceMethod) == null) {
          WorkspaceServiceGrpc.getDeleteWorkspaceMethod = getDeleteWorkspaceMethod =
              com.dimajix.shaded.grpc.MethodDescriptor.newBuilder()
              .setType(com.dimajix.shaded.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkspace"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(com.dimajix.shaded.grpc.protobuf.ProtoUtils.marshaller(
                  com.dimajix.flowman.kernel.proto.workspace.DeleteWorkspaceRequest.getDefaultInstance()))
              .setResponseMarshaller(com.dimajix.shaded.grpc.protobuf.ProtoUtils.marshaller(
                  com.dimajix.flowman.kernel.proto.workspace.DeleteWorkspaceResponse.getDefaultInstance()))
              .setSchemaDescriptor(new WorkspaceServiceMethodDescriptorSupplier("DeleteWorkspace"))
              .build();
        }
      }
    }
    return getDeleteWorkspaceMethod;
  }

  private static volatile com.dimajix.shaded.grpc.MethodDescriptor getCleanWorkspaceMethod;

  @com.dimajix.shaded.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "CleanWorkspace",
      requestType = com.dimajix.flowman.kernel.proto.workspace.CleanWorkspaceRequest.class,
      responseType = com.dimajix.flowman.kernel.proto.workspace.CleanWorkspaceResponse.class,
      methodType = com.dimajix.shaded.grpc.MethodDescriptor.MethodType.UNARY)
  public static com.dimajix.shaded.grpc.MethodDescriptor getCleanWorkspaceMethod() {
    com.dimajix.shaded.grpc.MethodDescriptor getCleanWorkspaceMethod;
    if ((getCleanWorkspaceMethod = WorkspaceServiceGrpc.getCleanWorkspaceMethod) == null) {
      synchronized (WorkspaceServiceGrpc.class) {
        if ((getCleanWorkspaceMethod = WorkspaceServiceGrpc.getCleanWorkspaceMethod) == null) {
          WorkspaceServiceGrpc.getCleanWorkspaceMethod = getCleanWorkspaceMethod =
              com.dimajix.shaded.grpc.MethodDescriptor.newBuilder()
              .setType(com.dimajix.shaded.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CleanWorkspace"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(com.dimajix.shaded.grpc.protobuf.ProtoUtils.marshaller(
                  com.dimajix.flowman.kernel.proto.workspace.CleanWorkspaceRequest.getDefaultInstance()))
              .setResponseMarshaller(com.dimajix.shaded.grpc.protobuf.ProtoUtils.marshaller(
                  com.dimajix.flowman.kernel.proto.workspace.CleanWorkspaceResponse.getDefaultInstance()))
              .setSchemaDescriptor(new WorkspaceServiceMethodDescriptorSupplier("CleanWorkspace"))
              .build();
        }
      }
    }
    return getCleanWorkspaceMethod;
  }

  private static volatile com.dimajix.shaded.grpc.MethodDescriptor getUploadFilesMethod;

  @com.dimajix.shaded.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "UploadFiles",
      requestType = com.dimajix.flowman.kernel.proto.workspace.UploadFilesRequest.class,
      responseType = com.dimajix.flowman.kernel.proto.workspace.UploadFilesResponse.class,
      methodType = com.dimajix.shaded.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
  public static com.dimajix.shaded.grpc.MethodDescriptor getUploadFilesMethod() {
    com.dimajix.shaded.grpc.MethodDescriptor getUploadFilesMethod;
    if ((getUploadFilesMethod = WorkspaceServiceGrpc.getUploadFilesMethod) == null) {
      synchronized (WorkspaceServiceGrpc.class) {
        if ((getUploadFilesMethod = WorkspaceServiceGrpc.getUploadFilesMethod) == null) {
          WorkspaceServiceGrpc.getUploadFilesMethod = getUploadFilesMethod =
              com.dimajix.shaded.grpc.MethodDescriptor.newBuilder()
              .setType(com.dimajix.shaded.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UploadFiles"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(com.dimajix.shaded.grpc.protobuf.ProtoUtils.marshaller(
                  com.dimajix.flowman.kernel.proto.workspace.UploadFilesRequest.getDefaultInstance()))
              .setResponseMarshaller(com.dimajix.shaded.grpc.protobuf.ProtoUtils.marshaller(
                  com.dimajix.flowman.kernel.proto.workspace.UploadFilesResponse.getDefaultInstance()))
              .setSchemaDescriptor(new WorkspaceServiceMethodDescriptorSupplier("UploadFiles"))
              .build();
        }
      }
    }
    return getUploadFilesMethod;
  }

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

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

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

  /**
   */
  public interface AsyncService {

    /**
     */
    default void createWorkspace(com.dimajix.flowman.kernel.proto.workspace.CreateWorkspaceRequest request,
        com.dimajix.shaded.grpc.stub.StreamObserver responseObserver) {
      com.dimajix.shaded.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateWorkspaceMethod(), responseObserver);
    }

    /**
     */
    default void listWorkspaces(com.dimajix.flowman.kernel.proto.workspace.ListWorkspacesRequest request,
        com.dimajix.shaded.grpc.stub.StreamObserver responseObserver) {
      com.dimajix.shaded.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListWorkspacesMethod(), responseObserver);
    }

    /**
     */
    default void getWorkspace(com.dimajix.flowman.kernel.proto.workspace.GetWorkspaceRequest request,
        com.dimajix.shaded.grpc.stub.StreamObserver responseObserver) {
      com.dimajix.shaded.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetWorkspaceMethod(), responseObserver);
    }

    /**
     */
    default void deleteWorkspace(com.dimajix.flowman.kernel.proto.workspace.DeleteWorkspaceRequest request,
        com.dimajix.shaded.grpc.stub.StreamObserver responseObserver) {
      com.dimajix.shaded.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteWorkspaceMethod(), responseObserver);
    }

    /**
     */
    default void cleanWorkspace(com.dimajix.flowman.kernel.proto.workspace.CleanWorkspaceRequest request,
        com.dimajix.shaded.grpc.stub.StreamObserver responseObserver) {
      com.dimajix.shaded.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCleanWorkspaceMethod(), responseObserver);
    }

    /**
     */
    default io.grpc.stub.StreamObserver uploadFiles(
        com.dimajix.shaded.grpc.stub.StreamObserver responseObserver) {
      return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getUploadFilesMethod(), responseObserver);
    }
  }

  /**
   * Base class for the server implementation of the service WorkspaceService.
   */
  public static abstract class WorkspaceServiceImplBase
      implements com.dimajix.shaded.grpc.BindableService, AsyncService {

    @java.lang.Override public final com.dimajix.shaded.grpc.ServerServiceDefinition bindService() {
      return WorkspaceServiceGrpc.bindService(this);
    }
  }

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

    @java.lang.Override
    protected WorkspaceServiceStub build(
        com.dimajix.shaded.grpc.Channel channel, com.dimajix.shaded.grpc.CallOptions callOptions) {
      return new WorkspaceServiceStub(channel, callOptions);
    }

    /**
     */
    public void createWorkspace(com.dimajix.flowman.kernel.proto.workspace.CreateWorkspaceRequest request,
        com.dimajix.shaded.grpc.stub.StreamObserver responseObserver) {
      com.dimajix.shaded.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getCreateWorkspaceMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void listWorkspaces(com.dimajix.flowman.kernel.proto.workspace.ListWorkspacesRequest request,
        com.dimajix.shaded.grpc.stub.StreamObserver responseObserver) {
      com.dimajix.shaded.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getListWorkspacesMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void getWorkspace(com.dimajix.flowman.kernel.proto.workspace.GetWorkspaceRequest request,
        com.dimajix.shaded.grpc.stub.StreamObserver responseObserver) {
      com.dimajix.shaded.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getGetWorkspaceMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void deleteWorkspace(com.dimajix.flowman.kernel.proto.workspace.DeleteWorkspaceRequest request,
        com.dimajix.shaded.grpc.stub.StreamObserver responseObserver) {
      com.dimajix.shaded.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getDeleteWorkspaceMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void cleanWorkspace(com.dimajix.flowman.kernel.proto.workspace.CleanWorkspaceRequest request,
        com.dimajix.shaded.grpc.stub.StreamObserver responseObserver) {
      com.dimajix.shaded.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getCleanWorkspaceMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public com.dimajix.shaded.grpc.stub.StreamObserver uploadFiles(
        com.dimajix.shaded.grpc.stub.StreamObserver responseObserver) {
      return io.grpc.stub.ClientCalls.asyncClientStreamingCall(
          getChannel().newCall(getUploadFilesMethod(), getCallOptions()), responseObserver);
    }
  }

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

    @java.lang.Override
    protected WorkspaceServiceBlockingStub build(
        com.dimajix.shaded.grpc.Channel channel, com.dimajix.shaded.grpc.CallOptions callOptions) {
      return new WorkspaceServiceBlockingStub(channel, callOptions);
    }

    /**
     */
    public com.dimajix.flowman.kernel.proto.workspace.CreateWorkspaceResponse createWorkspace(com.dimajix.flowman.kernel.proto.workspace.CreateWorkspaceRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getCreateWorkspaceMethod(), getCallOptions(), request);
    }

    /**
     */
    public com.dimajix.flowman.kernel.proto.workspace.ListWorkspacesResponse listWorkspaces(com.dimajix.flowman.kernel.proto.workspace.ListWorkspacesRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getListWorkspacesMethod(), getCallOptions(), request);
    }

    /**
     */
    public com.dimajix.flowman.kernel.proto.workspace.GetWorkspaceResponse getWorkspace(com.dimajix.flowman.kernel.proto.workspace.GetWorkspaceRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getGetWorkspaceMethod(), getCallOptions(), request);
    }

    /**
     */
    public com.dimajix.flowman.kernel.proto.workspace.DeleteWorkspaceResponse deleteWorkspace(com.dimajix.flowman.kernel.proto.workspace.DeleteWorkspaceRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getDeleteWorkspaceMethod(), getCallOptions(), request);
    }

    /**
     */
    public com.dimajix.flowman.kernel.proto.workspace.CleanWorkspaceResponse cleanWorkspace(com.dimajix.flowman.kernel.proto.workspace.CleanWorkspaceRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getCleanWorkspaceMethod(), getCallOptions(), request);
    }
  }

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

    @java.lang.Override
    protected WorkspaceServiceFutureStub build(
        com.dimajix.shaded.grpc.Channel channel, com.dimajix.shaded.grpc.CallOptions callOptions) {
      return new WorkspaceServiceFutureStub(channel, callOptions);
    }

    /**
     */
    public com.dimajix.shaded.guava.util.concurrent.ListenableFuture createWorkspace(
        com.dimajix.flowman.kernel.proto.workspace.CreateWorkspaceRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getCreateWorkspaceMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.dimajix.shaded.guava.util.concurrent.ListenableFuture listWorkspaces(
        com.dimajix.flowman.kernel.proto.workspace.ListWorkspacesRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getListWorkspacesMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.dimajix.shaded.guava.util.concurrent.ListenableFuture getWorkspace(
        com.dimajix.flowman.kernel.proto.workspace.GetWorkspaceRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getGetWorkspaceMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.dimajix.shaded.guava.util.concurrent.ListenableFuture deleteWorkspace(
        com.dimajix.flowman.kernel.proto.workspace.DeleteWorkspaceRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getDeleteWorkspaceMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.dimajix.shaded.guava.util.concurrent.ListenableFuture cleanWorkspace(
        com.dimajix.flowman.kernel.proto.workspace.CleanWorkspaceRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getCleanWorkspaceMethod(), getCallOptions()), request);
    }
  }

  private static final int METHODID_CREATE_WORKSPACE = 0;
  private static final int METHODID_LIST_WORKSPACES = 1;
  private static final int METHODID_GET_WORKSPACE = 2;
  private static final int METHODID_DELETE_WORKSPACE = 3;
  private static final int METHODID_CLEAN_WORKSPACE = 4;
  private static final int METHODID_UPLOAD_FILES = 5;

  private static final class MethodHandlers implements
      com.dimajix.shaded.grpc.stub.ServerCalls.UnaryMethod,
      com.dimajix.shaded.grpc.stub.ServerCalls.ServerStreamingMethod,
      com.dimajix.shaded.grpc.stub.ServerCalls.ClientStreamingMethod,
      com.dimajix.shaded.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, com.dimajix.shaded.grpc.stub.StreamObserver responseObserver) {
      switch (methodId) {
        case METHODID_CREATE_WORKSPACE:
          serviceImpl.createWorkspace((com.dimajix.flowman.kernel.proto.workspace.CreateWorkspaceRequest) request,
              (com.dimajix.shaded.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_LIST_WORKSPACES:
          serviceImpl.listWorkspaces((com.dimajix.flowman.kernel.proto.workspace.ListWorkspacesRequest) request,
              (com.dimajix.shaded.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_GET_WORKSPACE:
          serviceImpl.getWorkspace((com.dimajix.flowman.kernel.proto.workspace.GetWorkspaceRequest) request,
              (com.dimajix.shaded.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_DELETE_WORKSPACE:
          serviceImpl.deleteWorkspace((com.dimajix.flowman.kernel.proto.workspace.DeleteWorkspaceRequest) request,
              (com.dimajix.shaded.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_CLEAN_WORKSPACE:
          serviceImpl.cleanWorkspace((com.dimajix.flowman.kernel.proto.workspace.CleanWorkspaceRequest) request,
              (com.dimajix.shaded.grpc.stub.StreamObserver) responseObserver);
          break;
        default:
          throw new AssertionError();
      }
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("unchecked")
    public com.dimajix.shaded.grpc.stub.StreamObserver invoke(
        com.dimajix.shaded.grpc.stub.StreamObserver responseObserver) {
      switch (methodId) {
        case METHODID_UPLOAD_FILES:
          return (com.dimajix.shaded.grpc.stub.StreamObserver) serviceImpl.uploadFiles(
              (com.dimajix.shaded.grpc.stub.StreamObserver) responseObserver);
        default:
          throw new AssertionError();
      }
    }
  }

  public static final com.dimajix.shaded.grpc.ServerServiceDefinition bindService(AsyncService service) {
    return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
        .addMethod(
          getCreateWorkspaceMethod(),
          com.dimajix.shaded.grpc.stub.ServerCalls.asyncUnaryCall(
            new MethodHandlers<
              com.dimajix.flowman.kernel.proto.workspace.CreateWorkspaceRequest,
              com.dimajix.flowman.kernel.proto.workspace.CreateWorkspaceResponse>(
                service, METHODID_CREATE_WORKSPACE)))
        .addMethod(
          getListWorkspacesMethod(),
          com.dimajix.shaded.grpc.stub.ServerCalls.asyncUnaryCall(
            new MethodHandlers<
              com.dimajix.flowman.kernel.proto.workspace.ListWorkspacesRequest,
              com.dimajix.flowman.kernel.proto.workspace.ListWorkspacesResponse>(
                service, METHODID_LIST_WORKSPACES)))
        .addMethod(
          getGetWorkspaceMethod(),
          com.dimajix.shaded.grpc.stub.ServerCalls.asyncUnaryCall(
            new MethodHandlers<
              com.dimajix.flowman.kernel.proto.workspace.GetWorkspaceRequest,
              com.dimajix.flowman.kernel.proto.workspace.GetWorkspaceResponse>(
                service, METHODID_GET_WORKSPACE)))
        .addMethod(
          getDeleteWorkspaceMethod(),
          com.dimajix.shaded.grpc.stub.ServerCalls.asyncUnaryCall(
            new MethodHandlers<
              com.dimajix.flowman.kernel.proto.workspace.DeleteWorkspaceRequest,
              com.dimajix.flowman.kernel.proto.workspace.DeleteWorkspaceResponse>(
                service, METHODID_DELETE_WORKSPACE)))
        .addMethod(
          getCleanWorkspaceMethod(),
          com.dimajix.shaded.grpc.stub.ServerCalls.asyncUnaryCall(
            new MethodHandlers<
              com.dimajix.flowman.kernel.proto.workspace.CleanWorkspaceRequest,
              com.dimajix.flowman.kernel.proto.workspace.CleanWorkspaceResponse>(
                service, METHODID_CLEAN_WORKSPACE)))
        .addMethod(
          getUploadFilesMethod(),
          com.dimajix.shaded.grpc.stub.ServerCalls.asyncClientStreamingCall(
            new MethodHandlers<
              com.dimajix.flowman.kernel.proto.workspace.UploadFilesRequest,
              com.dimajix.flowman.kernel.proto.workspace.UploadFilesResponse>(
                service, METHODID_UPLOAD_FILES)))
        .build();
  }

  private static abstract class WorkspaceServiceBaseDescriptorSupplier
      implements com.dimajix.shaded.grpc.protobuf.ProtoFileDescriptorSupplier, com.dimajix.shaded.grpc.protobuf.ProtoServiceDescriptorSupplier {
    WorkspaceServiceBaseDescriptorSupplier() {}

    @java.lang.Override
    public com.dimajix.shaded.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
      return com.dimajix.flowman.kernel.proto.workspace.WorkspaceProto.getDescriptor();
    }

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

  private static final class WorkspaceServiceFileDescriptorSupplier
      extends WorkspaceServiceBaseDescriptorSupplier {
    WorkspaceServiceFileDescriptorSupplier() {}
  }

  private static final class WorkspaceServiceMethodDescriptorSupplier
      extends WorkspaceServiceBaseDescriptorSupplier
      implements com.dimajix.shaded.grpc.protobuf.ProtoMethodDescriptorSupplier {
    private final String methodName;

    WorkspaceServiceMethodDescriptorSupplier(String methodName) {
      this.methodName = methodName;
    }

    @java.lang.Override
    public com.dimajix.shaded.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
      return getServiceDescriptor().findMethodByName(methodName);
    }
  }

  private static volatile com.dimajix.shaded.grpc.ServiceDescriptor serviceDescriptor;

  public static com.dimajix.shaded.grpc.ServiceDescriptor getServiceDescriptor() {
    com.dimajix.shaded.grpc.ServiceDescriptor result = serviceDescriptor;
    if (result == null) {
      synchronized (WorkspaceServiceGrpc.class) {
        result = serviceDescriptor;
        if (result == null) {
          serviceDescriptor = result = com.dimajix.shaded.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
              .setSchemaDescriptor(new WorkspaceServiceFileDescriptorSupplier())
              .addMethod(getCreateWorkspaceMethod())
              .addMethod(getListWorkspacesMethod())
              .addMethod(getGetWorkspaceMethod())
              .addMethod(getDeleteWorkspaceMethod())
              .addMethod(getCleanWorkspaceMethod())
              .addMethod(getUploadFilesMethod())
              .build();
        }
      }
    }
    return result;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy