yandex.cloud.api.k8s.v1.NodeGroupServiceGrpc Maven / Gradle / Ivy
package yandex.cloud.api.k8s.v1;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
 * 
 * A set of methods for managing node groups.
 * 
 */
@javax.annotation.Generated(
    value = "by gRPC proto compiler (version 1.43.2)",
    comments = "Source: yandex/cloud/k8s/v1/node_group_service.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class NodeGroupServiceGrpc {
  private NodeGroupServiceGrpc() {}
  public static final String SERVICE_NAME = "yandex.cloud.k8s.v1.NodeGroupService";
  // Static method descriptors that strictly reflect the proto.
  private static volatile io.grpc.MethodDescriptor getGetMethod;
  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "Get",
      requestType = yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.GetNodeGroupRequest.class,
      responseType = yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroup.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getGetMethod() {
    io.grpc.MethodDescriptor getGetMethod;
    if ((getGetMethod = NodeGroupServiceGrpc.getGetMethod) == null) {
      synchronized (NodeGroupServiceGrpc.class) {
        if ((getGetMethod = NodeGroupServiceGrpc.getGetMethod) == null) {
          NodeGroupServiceGrpc.getGetMethod = getGetMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Get"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.GetNodeGroupRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroup.getDefaultInstance()))
              .setSchemaDescriptor(new NodeGroupServiceMethodDescriptorSupplier("Get"))
              .build();
        }
      }
    }
    return getGetMethod;
  }
  private static volatile io.grpc.MethodDescriptor getListMethod;
  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "List",
      requestType = yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.ListNodeGroupsRequest.class,
      responseType = yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.ListNodeGroupsResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getListMethod() {
    io.grpc.MethodDescriptor getListMethod;
    if ((getListMethod = NodeGroupServiceGrpc.getListMethod) == null) {
      synchronized (NodeGroupServiceGrpc.class) {
        if ((getListMethod = NodeGroupServiceGrpc.getListMethod) == null) {
          NodeGroupServiceGrpc.getListMethod = getListMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "List"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.ListNodeGroupsRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.ListNodeGroupsResponse.getDefaultInstance()))
              .setSchemaDescriptor(new NodeGroupServiceMethodDescriptorSupplier("List"))
              .build();
        }
      }
    }
    return getListMethod;
  }
  private static volatile io.grpc.MethodDescriptor getCreateMethod;
  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "Create",
      requestType = yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.CreateNodeGroupRequest.class,
      responseType = yandex.cloud.api.operation.OperationOuterClass.Operation.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getCreateMethod() {
    io.grpc.MethodDescriptor getCreateMethod;
    if ((getCreateMethod = NodeGroupServiceGrpc.getCreateMethod) == null) {
      synchronized (NodeGroupServiceGrpc.class) {
        if ((getCreateMethod = NodeGroupServiceGrpc.getCreateMethod) == null) {
          NodeGroupServiceGrpc.getCreateMethod = getCreateMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Create"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.CreateNodeGroupRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()))
              .setSchemaDescriptor(new NodeGroupServiceMethodDescriptorSupplier("Create"))
              .build();
        }
      }
    }
    return getCreateMethod;
  }
  private static volatile io.grpc.MethodDescriptor getUpdateMethod;
  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "Update",
      requestType = yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.UpdateNodeGroupRequest.class,
      responseType = yandex.cloud.api.operation.OperationOuterClass.Operation.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getUpdateMethod() {
    io.grpc.MethodDescriptor getUpdateMethod;
    if ((getUpdateMethod = NodeGroupServiceGrpc.getUpdateMethod) == null) {
      synchronized (NodeGroupServiceGrpc.class) {
        if ((getUpdateMethod = NodeGroupServiceGrpc.getUpdateMethod) == null) {
          NodeGroupServiceGrpc.getUpdateMethod = getUpdateMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Update"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.UpdateNodeGroupRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()))
              .setSchemaDescriptor(new NodeGroupServiceMethodDescriptorSupplier("Update"))
              .build();
        }
      }
    }
    return getUpdateMethod;
  }
  private static volatile io.grpc.MethodDescriptor getDeleteMethod;
  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "Delete",
      requestType = yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.DeleteNodeGroupRequest.class,
      responseType = yandex.cloud.api.operation.OperationOuterClass.Operation.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getDeleteMethod() {
    io.grpc.MethodDescriptor getDeleteMethod;
    if ((getDeleteMethod = NodeGroupServiceGrpc.getDeleteMethod) == null) {
      synchronized (NodeGroupServiceGrpc.class) {
        if ((getDeleteMethod = NodeGroupServiceGrpc.getDeleteMethod) == null) {
          NodeGroupServiceGrpc.getDeleteMethod = getDeleteMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Delete"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.DeleteNodeGroupRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()))
              .setSchemaDescriptor(new NodeGroupServiceMethodDescriptorSupplier("Delete"))
              .build();
        }
      }
    }
    return getDeleteMethod;
  }
  private static volatile io.grpc.MethodDescriptor getListOperationsMethod;
  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "ListOperations",
      requestType = yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.ListNodeGroupOperationsRequest.class,
      responseType = yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.ListNodeGroupOperationsResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getListOperationsMethod() {
    io.grpc.MethodDescriptor getListOperationsMethod;
    if ((getListOperationsMethod = NodeGroupServiceGrpc.getListOperationsMethod) == null) {
      synchronized (NodeGroupServiceGrpc.class) {
        if ((getListOperationsMethod = NodeGroupServiceGrpc.getListOperationsMethod) == null) {
          NodeGroupServiceGrpc.getListOperationsMethod = getListOperationsMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListOperations"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.ListNodeGroupOperationsRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.ListNodeGroupOperationsResponse.getDefaultInstance()))
              .setSchemaDescriptor(new NodeGroupServiceMethodDescriptorSupplier("ListOperations"))
              .build();
        }
      }
    }
    return getListOperationsMethod;
  }
  private static volatile io.grpc.MethodDescriptor getListNodesMethod;
  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "ListNodes",
      requestType = yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.ListNodeGroupNodesRequest.class,
      responseType = yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.ListNodeGroupNodesResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getListNodesMethod() {
    io.grpc.MethodDescriptor getListNodesMethod;
    if ((getListNodesMethod = NodeGroupServiceGrpc.getListNodesMethod) == null) {
      synchronized (NodeGroupServiceGrpc.class) {
        if ((getListNodesMethod = NodeGroupServiceGrpc.getListNodesMethod) == null) {
          NodeGroupServiceGrpc.getListNodesMethod = getListNodesMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNodes"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.ListNodeGroupNodesRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.ListNodeGroupNodesResponse.getDefaultInstance()))
              .setSchemaDescriptor(new NodeGroupServiceMethodDescriptorSupplier("ListNodes"))
              .build();
        }
      }
    }
    return getListNodesMethod;
  }
  /**
   * Creates a new async stub that supports all call types for the service
   */
  public static NodeGroupServiceStub newStub(io.grpc.Channel channel) {
    io.grpc.stub.AbstractStub.StubFactory factory =
      new io.grpc.stub.AbstractStub.StubFactory() {
        @java.lang.Override
        public NodeGroupServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          return new NodeGroupServiceStub(channel, callOptions);
        }
      };
    return NodeGroupServiceStub.newStub(factory, channel);
  }
  /**
   * Creates a new blocking-style stub that supports unary and streaming output calls on the service
   */
  public static NodeGroupServiceBlockingStub newBlockingStub(
      io.grpc.Channel channel) {
    io.grpc.stub.AbstractStub.StubFactory factory =
      new io.grpc.stub.AbstractStub.StubFactory() {
        @java.lang.Override
        public NodeGroupServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          return new NodeGroupServiceBlockingStub(channel, callOptions);
        }
      };
    return NodeGroupServiceBlockingStub.newStub(factory, channel);
  }
  /**
   * Creates a new ListenableFuture-style stub that supports unary calls on the service
   */
  public static NodeGroupServiceFutureStub newFutureStub(
      io.grpc.Channel channel) {
    io.grpc.stub.AbstractStub.StubFactory factory =
      new io.grpc.stub.AbstractStub.StubFactory() {
        @java.lang.Override
        public NodeGroupServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          return new NodeGroupServiceFutureStub(channel, callOptions);
        }
      };
    return NodeGroupServiceFutureStub.newStub(factory, channel);
  }
  /**
   * 
   * A set of methods for managing node groups.
   * 
   */
  public static abstract class NodeGroupServiceImplBase implements io.grpc.BindableService {
    /**
     * 
     * Returns the specified node group.
     * To get the list of available node group, make a [List] request.
     * 
     */
    public void get(yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.GetNodeGroupRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMethod(), responseObserver);
    }
    /**
     * 
     * Retrieves the list of node group in the specified Kubernetes cluster.
     * 
     */
    public void list(yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.ListNodeGroupsRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListMethod(), responseObserver);
    }
    /**
     * 
     * Creates a node group in the specified Kubernetes cluster.
     * 
     */
    public void create(yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.CreateNodeGroupRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateMethod(), responseObserver);
    }
    /**
     * 
     * Updates the specified node group.
     * 
     */
    public void update(yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.UpdateNodeGroupRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateMethod(), responseObserver);
    }
    /**
     * 
     * Deletes the specified node group.
     * 
     */
    public void delete(yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.DeleteNodeGroupRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteMethod(), responseObserver);
    }
    /**
     * 
     * Lists operations for the specified node group.
     * 
     */
    public void listOperations(yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.ListNodeGroupOperationsRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListOperationsMethod(), responseObserver);
    }
    /**
     * 
     * Retrieves the list of nodes in the specified Kubernetes cluster.
     * 
     */
    public void listNodes(yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.ListNodeGroupNodesRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNodesMethod(), responseObserver);
    }
    @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
      return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
          .addMethod(
            getGetMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.GetNodeGroupRequest,
                yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroup>(
                  this, METHODID_GET)))
          .addMethod(
            getListMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.ListNodeGroupsRequest,
                yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.ListNodeGroupsResponse>(
                  this, METHODID_LIST)))
          .addMethod(
            getCreateMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.CreateNodeGroupRequest,
                yandex.cloud.api.operation.OperationOuterClass.Operation>(
                  this, METHODID_CREATE)))
          .addMethod(
            getUpdateMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.UpdateNodeGroupRequest,
                yandex.cloud.api.operation.OperationOuterClass.Operation>(
                  this, METHODID_UPDATE)))
          .addMethod(
            getDeleteMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.DeleteNodeGroupRequest,
                yandex.cloud.api.operation.OperationOuterClass.Operation>(
                  this, METHODID_DELETE)))
          .addMethod(
            getListOperationsMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.ListNodeGroupOperationsRequest,
                yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.ListNodeGroupOperationsResponse>(
                  this, METHODID_LIST_OPERATIONS)))
          .addMethod(
            getListNodesMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.ListNodeGroupNodesRequest,
                yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.ListNodeGroupNodesResponse>(
                  this, METHODID_LIST_NODES)))
          .build();
    }
  }
  /**
   * 
   * A set of methods for managing node groups.
   * 
   */
  public static final class NodeGroupServiceStub extends io.grpc.stub.AbstractAsyncStub {
    private NodeGroupServiceStub(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }
    @java.lang.Override
    protected NodeGroupServiceStub build(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      return new NodeGroupServiceStub(channel, callOptions);
    }
    /**
     * 
     * Returns the specified node group.
     * To get the list of available node group, make a [List] request.
     * 
     */
    public void get(yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.GetNodeGroupRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getGetMethod(), getCallOptions()), request, responseObserver);
    }
    /**
     * 
     * Retrieves the list of node group in the specified Kubernetes cluster.
     * 
     */
    public void list(yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.ListNodeGroupsRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getListMethod(), getCallOptions()), request, responseObserver);
    }
    /**
     * 
     * Creates a node group in the specified Kubernetes cluster.
     * 
     */
    public void create(yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.CreateNodeGroupRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getCreateMethod(), getCallOptions()), request, responseObserver);
    }
    /**
     * 
     * Updates the specified node group.
     * 
     */
    public void update(yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.UpdateNodeGroupRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getUpdateMethod(), getCallOptions()), request, responseObserver);
    }
    /**
     * 
     * Deletes the specified node group.
     * 
     */
    public void delete(yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.DeleteNodeGroupRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getDeleteMethod(), getCallOptions()), request, responseObserver);
    }
    /**
     * 
     * Lists operations for the specified node group.
     * 
     */
    public void listOperations(yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.ListNodeGroupOperationsRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getListOperationsMethod(), getCallOptions()), request, responseObserver);
    }
    /**
     * 
     * Retrieves the list of nodes in the specified Kubernetes cluster.
     * 
     */
    public void listNodes(yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.ListNodeGroupNodesRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getListNodesMethod(), getCallOptions()), request, responseObserver);
    }
  }
  /**
   * 
   * A set of methods for managing node groups.
   * 
   */
  public static final class NodeGroupServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub {
    private NodeGroupServiceBlockingStub(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }
    @java.lang.Override
    protected NodeGroupServiceBlockingStub build(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      return new NodeGroupServiceBlockingStub(channel, callOptions);
    }
    /**
     * 
     * Returns the specified node group.
     * To get the list of available node group, make a [List] request.
     * 
     */
    public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroup get(yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.GetNodeGroupRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getGetMethod(), getCallOptions(), request);
    }
    /**
     * 
     * Retrieves the list of node group in the specified Kubernetes cluster.
     * 
     */
    public yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.ListNodeGroupsResponse list(yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.ListNodeGroupsRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getListMethod(), getCallOptions(), request);
    }
    /**
     * 
     * Creates a node group in the specified Kubernetes cluster.
     * 
     */
    public yandex.cloud.api.operation.OperationOuterClass.Operation create(yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.CreateNodeGroupRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getCreateMethod(), getCallOptions(), request);
    }
    /**
     * 
     * Updates the specified node group.
     * 
     */
    public yandex.cloud.api.operation.OperationOuterClass.Operation update(yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.UpdateNodeGroupRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getUpdateMethod(), getCallOptions(), request);
    }
    /**
     * 
     * Deletes the specified node group.
     * 
     */
    public yandex.cloud.api.operation.OperationOuterClass.Operation delete(yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.DeleteNodeGroupRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getDeleteMethod(), getCallOptions(), request);
    }
    /**
     * 
     * Lists operations for the specified node group.
     * 
     */
    public yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.ListNodeGroupOperationsResponse listOperations(yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.ListNodeGroupOperationsRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getListOperationsMethod(), getCallOptions(), request);
    }
    /**
     * 
     * Retrieves the list of nodes in the specified Kubernetes cluster.
     * 
     */
    public yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.ListNodeGroupNodesResponse listNodes(yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.ListNodeGroupNodesRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getListNodesMethod(), getCallOptions(), request);
    }
  }
  /**
   * 
   * A set of methods for managing node groups.
   * 
   */
  public static final class NodeGroupServiceFutureStub extends io.grpc.stub.AbstractFutureStub {
    private NodeGroupServiceFutureStub(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }
    @java.lang.Override
    protected NodeGroupServiceFutureStub build(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      return new NodeGroupServiceFutureStub(channel, callOptions);
    }
    /**
     * 
     * Returns the specified node group.
     * To get the list of available node group, make a [List] request.
     * 
     */
    public com.google.common.util.concurrent.ListenableFuture get(
        yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.GetNodeGroupRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getGetMethod(), getCallOptions()), request);
    }
    /**
     * 
     * Retrieves the list of node group in the specified Kubernetes cluster.
     * 
     */
    public com.google.common.util.concurrent.ListenableFuture list(
        yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.ListNodeGroupsRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getListMethod(), getCallOptions()), request);
    }
    /**
     * 
     * Creates a node group in the specified Kubernetes cluster.
     * 
     */
    public com.google.common.util.concurrent.ListenableFuture create(
        yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.CreateNodeGroupRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getCreateMethod(), getCallOptions()), request);
    }
    /**
     * 
     * Updates the specified node group.
     * 
     */
    public com.google.common.util.concurrent.ListenableFuture update(
        yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.UpdateNodeGroupRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getUpdateMethod(), getCallOptions()), request);
    }
    /**
     * 
     * Deletes the specified node group.
     * 
     */
    public com.google.common.util.concurrent.ListenableFuture delete(
        yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.DeleteNodeGroupRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getDeleteMethod(), getCallOptions()), request);
    }
    /**
     * 
     * Lists operations for the specified node group.
     * 
     */
    public com.google.common.util.concurrent.ListenableFuture listOperations(
        yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.ListNodeGroupOperationsRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getListOperationsMethod(), getCallOptions()), request);
    }
    /**
     * 
     * Retrieves the list of nodes in the specified Kubernetes cluster.
     * 
     */
    public com.google.common.util.concurrent.ListenableFuture listNodes(
        yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.ListNodeGroupNodesRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getListNodesMethod(), getCallOptions()), request);
    }
  }
  private static final int METHODID_GET = 0;
  private static final int METHODID_LIST = 1;
  private static final int METHODID_CREATE = 2;
  private static final int METHODID_UPDATE = 3;
  private static final int METHODID_DELETE = 4;
  private static final int METHODID_LIST_OPERATIONS = 5;
  private static final int METHODID_LIST_NODES = 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 NodeGroupServiceImplBase serviceImpl;
    private final int methodId;
    MethodHandlers(NodeGroupServiceImplBase 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:
          serviceImpl.get((yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.GetNodeGroupRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_LIST:
          serviceImpl.list((yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.ListNodeGroupsRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_CREATE:
          serviceImpl.create((yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.CreateNodeGroupRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_UPDATE:
          serviceImpl.update((yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.UpdateNodeGroupRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_DELETE:
          serviceImpl.delete((yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.DeleteNodeGroupRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_LIST_OPERATIONS:
          serviceImpl.listOperations((yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.ListNodeGroupOperationsRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_LIST_NODES:
          serviceImpl.listNodes((yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.ListNodeGroupNodesRequest) 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 NodeGroupServiceBaseDescriptorSupplier
      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
    NodeGroupServiceBaseDescriptorSupplier() {}
    @java.lang.Override
    public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
      return yandex.cloud.api.k8s.v1.NodeGroupServiceOuterClass.getDescriptor();
    }
    @java.lang.Override
    public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
      return getFileDescriptor().findServiceByName("NodeGroupService");
    }
  }
  private static final class NodeGroupServiceFileDescriptorSupplier
      extends NodeGroupServiceBaseDescriptorSupplier {
    NodeGroupServiceFileDescriptorSupplier() {}
  }
  private static final class NodeGroupServiceMethodDescriptorSupplier
      extends NodeGroupServiceBaseDescriptorSupplier
      implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
    private final String methodName;
    NodeGroupServiceMethodDescriptorSupplier(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 (NodeGroupServiceGrpc.class) {
        result = serviceDescriptor;
        if (result == null) {
          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
              .setSchemaDescriptor(new NodeGroupServiceFileDescriptorSupplier())
              .addMethod(getGetMethod())
              .addMethod(getListMethod())
              .addMethod(getCreateMethod())
              .addMethod(getUpdateMethod())
              .addMethod(getDeleteMethod())
              .addMethod(getListOperationsMethod())
              .addMethod(getListNodesMethod())
              .build();
        }
      }
    }
    return result;
  }
}
                                                                             © 2015 - 2025 Weber Informatics LLC | Privacy Policy