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

tech.ydb.proto.draft.maintenance.MaintenanceServiceGrpc Maven / Gradle / Ivy

package tech.ydb.proto.draft.maintenance;

import static io.grpc.MethodDescriptor.generateFullMethodName;

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

  private MaintenanceServiceGrpc() {}

  public static final java.lang.String SERVICE_NAME = "Ydb.Maintenance.V1.MaintenanceService";

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

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "ListClusterNodes",
      requestType = tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.ListClusterNodesRequest.class,
      responseType = tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.ListClusterNodesResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getListClusterNodesMethod() {
    io.grpc.MethodDescriptor getListClusterNodesMethod;
    if ((getListClusterNodesMethod = MaintenanceServiceGrpc.getListClusterNodesMethod) == null) {
      synchronized (MaintenanceServiceGrpc.class) {
        if ((getListClusterNodesMethod = MaintenanceServiceGrpc.getListClusterNodesMethod) == null) {
          MaintenanceServiceGrpc.getListClusterNodesMethod = getListClusterNodesMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListClusterNodes"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.ListClusterNodesRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.ListClusterNodesResponse.getDefaultInstance()))
              .setSchemaDescriptor(new MaintenanceServiceMethodDescriptorSupplier("ListClusterNodes"))
              .build();
        }
      }
    }
    return getListClusterNodesMethod;
  }

  private static volatile io.grpc.MethodDescriptor getCreateMaintenanceTaskMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "CreateMaintenanceTask",
      requestType = tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.CreateMaintenanceTaskRequest.class,
      responseType = tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.MaintenanceTaskResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getCreateMaintenanceTaskMethod() {
    io.grpc.MethodDescriptor getCreateMaintenanceTaskMethod;
    if ((getCreateMaintenanceTaskMethod = MaintenanceServiceGrpc.getCreateMaintenanceTaskMethod) == null) {
      synchronized (MaintenanceServiceGrpc.class) {
        if ((getCreateMaintenanceTaskMethod = MaintenanceServiceGrpc.getCreateMaintenanceTaskMethod) == null) {
          MaintenanceServiceGrpc.getCreateMaintenanceTaskMethod = getCreateMaintenanceTaskMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateMaintenanceTask"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.CreateMaintenanceTaskRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.MaintenanceTaskResponse.getDefaultInstance()))
              .setSchemaDescriptor(new MaintenanceServiceMethodDescriptorSupplier("CreateMaintenanceTask"))
              .build();
        }
      }
    }
    return getCreateMaintenanceTaskMethod;
  }

  private static volatile io.grpc.MethodDescriptor getRefreshMaintenanceTaskMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "RefreshMaintenanceTask",
      requestType = tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.RefreshMaintenanceTaskRequest.class,
      responseType = tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.MaintenanceTaskResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getRefreshMaintenanceTaskMethod() {
    io.grpc.MethodDescriptor getRefreshMaintenanceTaskMethod;
    if ((getRefreshMaintenanceTaskMethod = MaintenanceServiceGrpc.getRefreshMaintenanceTaskMethod) == null) {
      synchronized (MaintenanceServiceGrpc.class) {
        if ((getRefreshMaintenanceTaskMethod = MaintenanceServiceGrpc.getRefreshMaintenanceTaskMethod) == null) {
          MaintenanceServiceGrpc.getRefreshMaintenanceTaskMethod = getRefreshMaintenanceTaskMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RefreshMaintenanceTask"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.RefreshMaintenanceTaskRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.MaintenanceTaskResponse.getDefaultInstance()))
              .setSchemaDescriptor(new MaintenanceServiceMethodDescriptorSupplier("RefreshMaintenanceTask"))
              .build();
        }
      }
    }
    return getRefreshMaintenanceTaskMethod;
  }

  private static volatile io.grpc.MethodDescriptor getGetMaintenanceTaskMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "GetMaintenanceTask",
      requestType = tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.GetMaintenanceTaskRequest.class,
      responseType = tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.GetMaintenanceTaskResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getGetMaintenanceTaskMethod() {
    io.grpc.MethodDescriptor getGetMaintenanceTaskMethod;
    if ((getGetMaintenanceTaskMethod = MaintenanceServiceGrpc.getGetMaintenanceTaskMethod) == null) {
      synchronized (MaintenanceServiceGrpc.class) {
        if ((getGetMaintenanceTaskMethod = MaintenanceServiceGrpc.getGetMaintenanceTaskMethod) == null) {
          MaintenanceServiceGrpc.getGetMaintenanceTaskMethod = getGetMaintenanceTaskMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMaintenanceTask"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.GetMaintenanceTaskRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.GetMaintenanceTaskResponse.getDefaultInstance()))
              .setSchemaDescriptor(new MaintenanceServiceMethodDescriptorSupplier("GetMaintenanceTask"))
              .build();
        }
      }
    }
    return getGetMaintenanceTaskMethod;
  }

  private static volatile io.grpc.MethodDescriptor getListMaintenanceTasksMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "ListMaintenanceTasks",
      requestType = tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.ListMaintenanceTasksRequest.class,
      responseType = tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.ListMaintenanceTasksResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getListMaintenanceTasksMethod() {
    io.grpc.MethodDescriptor getListMaintenanceTasksMethod;
    if ((getListMaintenanceTasksMethod = MaintenanceServiceGrpc.getListMaintenanceTasksMethod) == null) {
      synchronized (MaintenanceServiceGrpc.class) {
        if ((getListMaintenanceTasksMethod = MaintenanceServiceGrpc.getListMaintenanceTasksMethod) == null) {
          MaintenanceServiceGrpc.getListMaintenanceTasksMethod = getListMaintenanceTasksMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListMaintenanceTasks"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.ListMaintenanceTasksRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.ListMaintenanceTasksResponse.getDefaultInstance()))
              .setSchemaDescriptor(new MaintenanceServiceMethodDescriptorSupplier("ListMaintenanceTasks"))
              .build();
        }
      }
    }
    return getListMaintenanceTasksMethod;
  }

  private static volatile io.grpc.MethodDescriptor getDropMaintenanceTaskMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "DropMaintenanceTask",
      requestType = tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.DropMaintenanceTaskRequest.class,
      responseType = tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.ManageMaintenanceTaskResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getDropMaintenanceTaskMethod() {
    io.grpc.MethodDescriptor getDropMaintenanceTaskMethod;
    if ((getDropMaintenanceTaskMethod = MaintenanceServiceGrpc.getDropMaintenanceTaskMethod) == null) {
      synchronized (MaintenanceServiceGrpc.class) {
        if ((getDropMaintenanceTaskMethod = MaintenanceServiceGrpc.getDropMaintenanceTaskMethod) == null) {
          MaintenanceServiceGrpc.getDropMaintenanceTaskMethod = getDropMaintenanceTaskMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DropMaintenanceTask"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.DropMaintenanceTaskRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.ManageMaintenanceTaskResponse.getDefaultInstance()))
              .setSchemaDescriptor(new MaintenanceServiceMethodDescriptorSupplier("DropMaintenanceTask"))
              .build();
        }
      }
    }
    return getDropMaintenanceTaskMethod;
  }

  private static volatile io.grpc.MethodDescriptor getCompleteActionMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "CompleteAction",
      requestType = tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.CompleteActionRequest.class,
      responseType = tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.ManageActionResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getCompleteActionMethod() {
    io.grpc.MethodDescriptor getCompleteActionMethod;
    if ((getCompleteActionMethod = MaintenanceServiceGrpc.getCompleteActionMethod) == null) {
      synchronized (MaintenanceServiceGrpc.class) {
        if ((getCompleteActionMethod = MaintenanceServiceGrpc.getCompleteActionMethod) == null) {
          MaintenanceServiceGrpc.getCompleteActionMethod = getCompleteActionMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CompleteAction"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.CompleteActionRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.ManageActionResponse.getDefaultInstance()))
              .setSchemaDescriptor(new MaintenanceServiceMethodDescriptorSupplier("CompleteAction"))
              .build();
        }
      }
    }
    return getCompleteActionMethod;
  }

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

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

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

  /**
   */
  public interface AsyncService {

    /**
     * 
     * List cluster nodes.
     * 
*/ default void listClusterNodes(tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.ListClusterNodesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListClusterNodesMethod(), responseObserver); } /** *
     * Create maintenance task.
     * 
*/ default void createMaintenanceTask(tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.CreateMaintenanceTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateMaintenanceTaskMethod(), responseObserver); } /** *
     * Try to perform maintenance task's actions (polling).
     * 
*/ default void refreshMaintenanceTask(tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.RefreshMaintenanceTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRefreshMaintenanceTaskMethod(), responseObserver); } /** *
     * Get detailed task information.
     * 
*/ default void getMaintenanceTask(tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.GetMaintenanceTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMaintenanceTaskMethod(), responseObserver); } /** *
     * List maintenance tasks.
     * 
*/ default void listMaintenanceTasks(tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.ListMaintenanceTasksRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListMaintenanceTasksMethod(), responseObserver); } /** *
     * Drop maintenance task.
     * 
*/ default void dropMaintenanceTask(tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.DropMaintenanceTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDropMaintenanceTaskMethod(), responseObserver); } /** *
     * Mark action as completed.
     * 
*/ default void completeAction(tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.CompleteActionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCompleteActionMethod(), responseObserver); } } /** * Base class for the server implementation of the service MaintenanceService. */ public static abstract class MaintenanceServiceImplBase implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return MaintenanceServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service MaintenanceService. */ public static final class MaintenanceServiceStub extends io.grpc.stub.AbstractAsyncStub { private MaintenanceServiceStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected MaintenanceServiceStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new MaintenanceServiceStub(channel, callOptions); } /** *
     * List cluster nodes.
     * 
*/ public void listClusterNodes(tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.ListClusterNodesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListClusterNodesMethod(), getCallOptions()), request, responseObserver); } /** *
     * Create maintenance task.
     * 
*/ public void createMaintenanceTask(tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.CreateMaintenanceTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateMaintenanceTaskMethod(), getCallOptions()), request, responseObserver); } /** *
     * Try to perform maintenance task's actions (polling).
     * 
*/ public void refreshMaintenanceTask(tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.RefreshMaintenanceTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getRefreshMaintenanceTaskMethod(), getCallOptions()), request, responseObserver); } /** *
     * Get detailed task information.
     * 
*/ public void getMaintenanceTask(tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.GetMaintenanceTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetMaintenanceTaskMethod(), getCallOptions()), request, responseObserver); } /** *
     * List maintenance tasks.
     * 
*/ public void listMaintenanceTasks(tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.ListMaintenanceTasksRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListMaintenanceTasksMethod(), getCallOptions()), request, responseObserver); } /** *
     * Drop maintenance task.
     * 
*/ public void dropMaintenanceTask(tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.DropMaintenanceTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDropMaintenanceTaskMethod(), getCallOptions()), request, responseObserver); } /** *
     * Mark action as completed.
     * 
*/ public void completeAction(tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.CompleteActionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCompleteActionMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service MaintenanceService. */ public static final class MaintenanceServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private MaintenanceServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected MaintenanceServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new MaintenanceServiceBlockingStub(channel, callOptions); } /** *
     * List cluster nodes.
     * 
*/ public tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.ListClusterNodesResponse listClusterNodes(tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.ListClusterNodesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListClusterNodesMethod(), getCallOptions(), request); } /** *
     * Create maintenance task.
     * 
*/ public tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.MaintenanceTaskResponse createMaintenanceTask(tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.CreateMaintenanceTaskRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateMaintenanceTaskMethod(), getCallOptions(), request); } /** *
     * Try to perform maintenance task's actions (polling).
     * 
*/ public tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.MaintenanceTaskResponse refreshMaintenanceTask(tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.RefreshMaintenanceTaskRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getRefreshMaintenanceTaskMethod(), getCallOptions(), request); } /** *
     * Get detailed task information.
     * 
*/ public tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.GetMaintenanceTaskResponse getMaintenanceTask(tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.GetMaintenanceTaskRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetMaintenanceTaskMethod(), getCallOptions(), request); } /** *
     * List maintenance tasks.
     * 
*/ public tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.ListMaintenanceTasksResponse listMaintenanceTasks(tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.ListMaintenanceTasksRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListMaintenanceTasksMethod(), getCallOptions(), request); } /** *
     * Drop maintenance task.
     * 
*/ public tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.ManageMaintenanceTaskResponse dropMaintenanceTask(tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.DropMaintenanceTaskRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDropMaintenanceTaskMethod(), getCallOptions(), request); } /** *
     * Mark action as completed.
     * 
*/ public tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.ManageActionResponse completeAction(tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.CompleteActionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCompleteActionMethod(), getCallOptions(), request); } } /** * A stub to allow clients to do ListenableFuture-style rpc calls to service MaintenanceService. */ public static final class MaintenanceServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private MaintenanceServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected MaintenanceServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new MaintenanceServiceFutureStub(channel, callOptions); } /** *
     * List cluster nodes.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture listClusterNodes( tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.ListClusterNodesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListClusterNodesMethod(), getCallOptions()), request); } /** *
     * Create maintenance task.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture createMaintenanceTask( tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.CreateMaintenanceTaskRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateMaintenanceTaskMethod(), getCallOptions()), request); } /** *
     * Try to perform maintenance task's actions (polling).
     * 
*/ public com.google.common.util.concurrent.ListenableFuture refreshMaintenanceTask( tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.RefreshMaintenanceTaskRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRefreshMaintenanceTaskMethod(), getCallOptions()), request); } /** *
     * Get detailed task information.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getMaintenanceTask( tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.GetMaintenanceTaskRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetMaintenanceTaskMethod(), getCallOptions()), request); } /** *
     * List maintenance tasks.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture listMaintenanceTasks( tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.ListMaintenanceTasksRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListMaintenanceTasksMethod(), getCallOptions()), request); } /** *
     * Drop maintenance task.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture dropMaintenanceTask( tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.DropMaintenanceTaskRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDropMaintenanceTaskMethod(), getCallOptions()), request); } /** *
     * Mark action as completed.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture completeAction( tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.CompleteActionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCompleteActionMethod(), getCallOptions()), request); } } private static final int METHODID_LIST_CLUSTER_NODES = 0; private static final int METHODID_CREATE_MAINTENANCE_TASK = 1; private static final int METHODID_REFRESH_MAINTENANCE_TASK = 2; private static final int METHODID_GET_MAINTENANCE_TASK = 3; private static final int METHODID_LIST_MAINTENANCE_TASKS = 4; private static final int METHODID_DROP_MAINTENANCE_TASK = 5; private static final int METHODID_COMPLETE_ACTION = 6; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, io.grpc.stub.ServerCalls.ServerStreamingMethod, io.grpc.stub.ServerCalls.ClientStreamingMethod, io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; MethodHandlers(AsyncService serviceImpl, int methodId) { this.serviceImpl = serviceImpl; this.methodId = methodId; } @java.lang.Override @java.lang.SuppressWarnings("unchecked") public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_LIST_CLUSTER_NODES: serviceImpl.listClusterNodes((tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.ListClusterNodesRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_MAINTENANCE_TASK: serviceImpl.createMaintenanceTask((tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.CreateMaintenanceTaskRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_REFRESH_MAINTENANCE_TASK: serviceImpl.refreshMaintenanceTask((tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.RefreshMaintenanceTaskRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_MAINTENANCE_TASK: serviceImpl.getMaintenanceTask((tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.GetMaintenanceTaskRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_MAINTENANCE_TASKS: serviceImpl.listMaintenanceTasks((tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.ListMaintenanceTasksRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DROP_MAINTENANCE_TASK: serviceImpl.dropMaintenanceTask((tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.DropMaintenanceTaskRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_COMPLETE_ACTION: serviceImpl.completeAction((tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.CompleteActionRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); } } @java.lang.Override @java.lang.SuppressWarnings("unchecked") public io.grpc.stub.StreamObserver invoke( io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { default: throw new AssertionError(); } } } public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getListClusterNodesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.ListClusterNodesRequest, tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.ListClusterNodesResponse>( service, METHODID_LIST_CLUSTER_NODES))) .addMethod( getCreateMaintenanceTaskMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.CreateMaintenanceTaskRequest, tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.MaintenanceTaskResponse>( service, METHODID_CREATE_MAINTENANCE_TASK))) .addMethod( getRefreshMaintenanceTaskMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.RefreshMaintenanceTaskRequest, tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.MaintenanceTaskResponse>( service, METHODID_REFRESH_MAINTENANCE_TASK))) .addMethod( getGetMaintenanceTaskMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.GetMaintenanceTaskRequest, tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.GetMaintenanceTaskResponse>( service, METHODID_GET_MAINTENANCE_TASK))) .addMethod( getListMaintenanceTasksMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.ListMaintenanceTasksRequest, tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.ListMaintenanceTasksResponse>( service, METHODID_LIST_MAINTENANCE_TASKS))) .addMethod( getDropMaintenanceTaskMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.DropMaintenanceTaskRequest, tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.ManageMaintenanceTaskResponse>( service, METHODID_DROP_MAINTENANCE_TASK))) .addMethod( getCompleteActionMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.CompleteActionRequest, tech.ydb.proto.draft.maintenance.v1.YdbMaintenance.ManageActionResponse>( service, METHODID_COMPLETE_ACTION))) .build(); } private static abstract class MaintenanceServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { MaintenanceServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return tech.ydb.proto.draft.maintenance.YdbMaintenanceV1.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("MaintenanceService"); } } private static final class MaintenanceServiceFileDescriptorSupplier extends MaintenanceServiceBaseDescriptorSupplier { MaintenanceServiceFileDescriptorSupplier() {} } private static final class MaintenanceServiceMethodDescriptorSupplier extends MaintenanceServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final java.lang.String methodName; MaintenanceServiceMethodDescriptorSupplier(java.lang.String methodName) { this.methodName = methodName; } @java.lang.Override public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { return getServiceDescriptor().findMethodByName(methodName); } } private static volatile io.grpc.ServiceDescriptor serviceDescriptor; public static io.grpc.ServiceDescriptor getServiceDescriptor() { io.grpc.ServiceDescriptor result = serviceDescriptor; if (result == null) { synchronized (MaintenanceServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new MaintenanceServiceFileDescriptorSupplier()) .addMethod(getListClusterNodesMethod()) .addMethod(getCreateMaintenanceTaskMethod()) .addMethod(getRefreshMaintenanceTaskMethod()) .addMethod(getGetMaintenanceTaskMethod()) .addMethod(getListMaintenanceTasksMethod()) .addMethod(getDropMaintenanceTaskMethod()) .addMethod(getCompleteActionMethod()) .build(); } } } return result; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy