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

yandex.cloud.api.k8s.v1.ClusterServiceGrpc Maven / Gradle / Ivy

package yandex.cloud.api.k8s.v1;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 * 
 * A set of methods for managing Kubernetes cluster.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler (version 1.43.2)", comments = "Source: yandex/cloud/k8s/v1/cluster_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ClusterServiceGrpc { private ClusterServiceGrpc() {} public static final String SERVICE_NAME = "yandex.cloud.k8s.v1.ClusterService"; // 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.ClusterServiceOuterClass.GetClusterRequest.class, responseType = yandex.cloud.api.k8s.v1.ClusterOuterClass.Cluster.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetMethod() { io.grpc.MethodDescriptor getGetMethod; if ((getGetMethod = ClusterServiceGrpc.getGetMethod) == null) { synchronized (ClusterServiceGrpc.class) { if ((getGetMethod = ClusterServiceGrpc.getGetMethod) == null) { ClusterServiceGrpc.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.ClusterServiceOuterClass.GetClusterRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.k8s.v1.ClusterOuterClass.Cluster.getDefaultInstance())) .setSchemaDescriptor(new ClusterServiceMethodDescriptorSupplier("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.ClusterServiceOuterClass.ListClustersRequest.class, responseType = yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.ListClustersResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getListMethod() { io.grpc.MethodDescriptor getListMethod; if ((getListMethod = ClusterServiceGrpc.getListMethod) == null) { synchronized (ClusterServiceGrpc.class) { if ((getListMethod = ClusterServiceGrpc.getListMethod) == null) { ClusterServiceGrpc.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.ClusterServiceOuterClass.ListClustersRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.ListClustersResponse.getDefaultInstance())) .setSchemaDescriptor(new ClusterServiceMethodDescriptorSupplier("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.ClusterServiceOuterClass.CreateClusterRequest.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 = ClusterServiceGrpc.getCreateMethod) == null) { synchronized (ClusterServiceGrpc.class) { if ((getCreateMethod = ClusterServiceGrpc.getCreateMethod) == null) { ClusterServiceGrpc.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.ClusterServiceOuterClass.CreateClusterRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance())) .setSchemaDescriptor(new ClusterServiceMethodDescriptorSupplier("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.ClusterServiceOuterClass.UpdateClusterRequest.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 = ClusterServiceGrpc.getUpdateMethod) == null) { synchronized (ClusterServiceGrpc.class) { if ((getUpdateMethod = ClusterServiceGrpc.getUpdateMethod) == null) { ClusterServiceGrpc.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.ClusterServiceOuterClass.UpdateClusterRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance())) .setSchemaDescriptor(new ClusterServiceMethodDescriptorSupplier("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.ClusterServiceOuterClass.DeleteClusterRequest.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 = ClusterServiceGrpc.getDeleteMethod) == null) { synchronized (ClusterServiceGrpc.class) { if ((getDeleteMethod = ClusterServiceGrpc.getDeleteMethod) == null) { ClusterServiceGrpc.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.ClusterServiceOuterClass.DeleteClusterRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance())) .setSchemaDescriptor(new ClusterServiceMethodDescriptorSupplier("Delete")) .build(); } } } return getDeleteMethod; } private static volatile io.grpc.MethodDescriptor getStopMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Stop", requestType = yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.StopClusterRequest.class, responseType = yandex.cloud.api.operation.OperationOuterClass.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getStopMethod() { io.grpc.MethodDescriptor getStopMethod; if ((getStopMethod = ClusterServiceGrpc.getStopMethod) == null) { synchronized (ClusterServiceGrpc.class) { if ((getStopMethod = ClusterServiceGrpc.getStopMethod) == null) { ClusterServiceGrpc.getStopMethod = getStopMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Stop")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.StopClusterRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance())) .setSchemaDescriptor(new ClusterServiceMethodDescriptorSupplier("Stop")) .build(); } } } return getStopMethod; } private static volatile io.grpc.MethodDescriptor getStartMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Start", requestType = yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.StartClusterRequest.class, responseType = yandex.cloud.api.operation.OperationOuterClass.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getStartMethod() { io.grpc.MethodDescriptor getStartMethod; if ((getStartMethod = ClusterServiceGrpc.getStartMethod) == null) { synchronized (ClusterServiceGrpc.class) { if ((getStartMethod = ClusterServiceGrpc.getStartMethod) == null) { ClusterServiceGrpc.getStartMethod = getStartMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Start")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.StartClusterRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance())) .setSchemaDescriptor(new ClusterServiceMethodDescriptorSupplier("Start")) .build(); } } } return getStartMethod; } private static volatile io.grpc.MethodDescriptor getListNodeGroupsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListNodeGroups", requestType = yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.ListClusterNodeGroupsRequest.class, responseType = yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.ListClusterNodeGroupsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getListNodeGroupsMethod() { io.grpc.MethodDescriptor getListNodeGroupsMethod; if ((getListNodeGroupsMethod = ClusterServiceGrpc.getListNodeGroupsMethod) == null) { synchronized (ClusterServiceGrpc.class) { if ((getListNodeGroupsMethod = ClusterServiceGrpc.getListNodeGroupsMethod) == null) { ClusterServiceGrpc.getListNodeGroupsMethod = getListNodeGroupsMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNodeGroups")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.ListClusterNodeGroupsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.ListClusterNodeGroupsResponse.getDefaultInstance())) .setSchemaDescriptor(new ClusterServiceMethodDescriptorSupplier("ListNodeGroups")) .build(); } } } return getListNodeGroupsMethod; } private static volatile io.grpc.MethodDescriptor getListOperationsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListOperations", requestType = yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.ListClusterOperationsRequest.class, responseType = yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.ListClusterOperationsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getListOperationsMethod() { io.grpc.MethodDescriptor getListOperationsMethod; if ((getListOperationsMethod = ClusterServiceGrpc.getListOperationsMethod) == null) { synchronized (ClusterServiceGrpc.class) { if ((getListOperationsMethod = ClusterServiceGrpc.getListOperationsMethod) == null) { ClusterServiceGrpc.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.ClusterServiceOuterClass.ListClusterOperationsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.ListClusterOperationsResponse.getDefaultInstance())) .setSchemaDescriptor(new ClusterServiceMethodDescriptorSupplier("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.ClusterServiceOuterClass.ListClusterNodesRequest.class, responseType = yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.ListClusterNodesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getListNodesMethod() { io.grpc.MethodDescriptor getListNodesMethod; if ((getListNodesMethod = ClusterServiceGrpc.getListNodesMethod) == null) { synchronized (ClusterServiceGrpc.class) { if ((getListNodesMethod = ClusterServiceGrpc.getListNodesMethod) == null) { ClusterServiceGrpc.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.ClusterServiceOuterClass.ListClusterNodesRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.ListClusterNodesResponse.getDefaultInstance())) .setSchemaDescriptor(new ClusterServiceMethodDescriptorSupplier("ListNodes")) .build(); } } } return getListNodesMethod; } /** * Creates a new async stub that supports all call types for the service */ public static ClusterServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public ClusterServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ClusterServiceStub(channel, callOptions); } }; return ClusterServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static ClusterServiceBlockingStub newBlockingStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public ClusterServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ClusterServiceBlockingStub(channel, callOptions); } }; return ClusterServiceBlockingStub.newStub(factory, channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static ClusterServiceFutureStub newFutureStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public ClusterServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ClusterServiceFutureStub(channel, callOptions); } }; return ClusterServiceFutureStub.newStub(factory, channel); } /** *
   * A set of methods for managing Kubernetes cluster.
   * 
*/ public static abstract class ClusterServiceImplBase implements io.grpc.BindableService { /** *
     * Returns the specified Kubernetes cluster.
     * To get the list of available Kubernetes cluster, make a [List] request.
     * 
*/ public void get(yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.GetClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMethod(), responseObserver); } /** *
     * Retrieves the list of Kubernetes cluster in the specified folder.
     * 
*/ public void list(yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.ListClustersRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListMethod(), responseObserver); } /** *
     * Creates a Kubernetes cluster in the specified folder.
     * 
*/ public void create(yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.CreateClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateMethod(), responseObserver); } /** *
     * Updates the specified Kubernetes cluster.
     * 
*/ public void update(yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.UpdateClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateMethod(), responseObserver); } /** *
     * Deletes the specified Kubernetes cluster.
     * 
*/ public void delete(yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.DeleteClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteMethod(), responseObserver); } /** *
     * Stops the specified Kubernetes cluster.
     * 
*/ public void stop(yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.StopClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStopMethod(), responseObserver); } /** *
     * Starts the specified Kubernetes cluster.
     * 
*/ public void start(yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.StartClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartMethod(), responseObserver); } /** *
     * Lists nodegroup for the specified Kubernetes cluster.
     * 
*/ public void listNodeGroups(yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.ListClusterNodeGroupsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNodeGroupsMethod(), responseObserver); } /** *
     * Lists operations for the specified Kubernetes cluster.
     * 
*/ public void listOperations(yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.ListClusterOperationsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListOperationsMethod(), responseObserver); } /** *
     * Lists cluster's nodes.
     * 
*/ public void listNodes(yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.ListClusterNodesRequest 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.ClusterServiceOuterClass.GetClusterRequest, yandex.cloud.api.k8s.v1.ClusterOuterClass.Cluster>( this, METHODID_GET))) .addMethod( getListMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.ListClustersRequest, yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.ListClustersResponse>( this, METHODID_LIST))) .addMethod( getCreateMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.CreateClusterRequest, yandex.cloud.api.operation.OperationOuterClass.Operation>( this, METHODID_CREATE))) .addMethod( getUpdateMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.UpdateClusterRequest, yandex.cloud.api.operation.OperationOuterClass.Operation>( this, METHODID_UPDATE))) .addMethod( getDeleteMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.DeleteClusterRequest, yandex.cloud.api.operation.OperationOuterClass.Operation>( this, METHODID_DELETE))) .addMethod( getStopMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.StopClusterRequest, yandex.cloud.api.operation.OperationOuterClass.Operation>( this, METHODID_STOP))) .addMethod( getStartMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.StartClusterRequest, yandex.cloud.api.operation.OperationOuterClass.Operation>( this, METHODID_START))) .addMethod( getListNodeGroupsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.ListClusterNodeGroupsRequest, yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.ListClusterNodeGroupsResponse>( this, METHODID_LIST_NODE_GROUPS))) .addMethod( getListOperationsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.ListClusterOperationsRequest, yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.ListClusterOperationsResponse>( this, METHODID_LIST_OPERATIONS))) .addMethod( getListNodesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.ListClusterNodesRequest, yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.ListClusterNodesResponse>( this, METHODID_LIST_NODES))) .build(); } } /** *
   * A set of methods for managing Kubernetes cluster.
   * 
*/ public static final class ClusterServiceStub extends io.grpc.stub.AbstractAsyncStub { private ClusterServiceStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected ClusterServiceStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ClusterServiceStub(channel, callOptions); } /** *
     * Returns the specified Kubernetes cluster.
     * To get the list of available Kubernetes cluster, make a [List] request.
     * 
*/ public void get(yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.GetClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetMethod(), getCallOptions()), request, responseObserver); } /** *
     * Retrieves the list of Kubernetes cluster in the specified folder.
     * 
*/ public void list(yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.ListClustersRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListMethod(), getCallOptions()), request, responseObserver); } /** *
     * Creates a Kubernetes cluster in the specified folder.
     * 
*/ public void create(yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.CreateClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateMethod(), getCallOptions()), request, responseObserver); } /** *
     * Updates the specified Kubernetes cluster.
     * 
*/ public void update(yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.UpdateClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateMethod(), getCallOptions()), request, responseObserver); } /** *
     * Deletes the specified Kubernetes cluster.
     * 
*/ public void delete(yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.DeleteClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteMethod(), getCallOptions()), request, responseObserver); } /** *
     * Stops the specified Kubernetes cluster.
     * 
*/ public void stop(yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.StopClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getStopMethod(), getCallOptions()), request, responseObserver); } /** *
     * Starts the specified Kubernetes cluster.
     * 
*/ public void start(yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.StartClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getStartMethod(), getCallOptions()), request, responseObserver); } /** *
     * Lists nodegroup for the specified Kubernetes cluster.
     * 
*/ public void listNodeGroups(yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.ListClusterNodeGroupsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListNodeGroupsMethod(), getCallOptions()), request, responseObserver); } /** *
     * Lists operations for the specified Kubernetes cluster.
     * 
*/ public void listOperations(yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.ListClusterOperationsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListOperationsMethod(), getCallOptions()), request, responseObserver); } /** *
     * Lists cluster's nodes.
     * 
*/ public void listNodes(yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.ListClusterNodesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListNodesMethod(), getCallOptions()), request, responseObserver); } } /** *
   * A set of methods for managing Kubernetes cluster.
   * 
*/ public static final class ClusterServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private ClusterServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected ClusterServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ClusterServiceBlockingStub(channel, callOptions); } /** *
     * Returns the specified Kubernetes cluster.
     * To get the list of available Kubernetes cluster, make a [List] request.
     * 
*/ public yandex.cloud.api.k8s.v1.ClusterOuterClass.Cluster get(yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.GetClusterRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetMethod(), getCallOptions(), request); } /** *
     * Retrieves the list of Kubernetes cluster in the specified folder.
     * 
*/ public yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.ListClustersResponse list(yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.ListClustersRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListMethod(), getCallOptions(), request); } /** *
     * Creates a Kubernetes cluster in the specified folder.
     * 
*/ public yandex.cloud.api.operation.OperationOuterClass.Operation create(yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.CreateClusterRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateMethod(), getCallOptions(), request); } /** *
     * Updates the specified Kubernetes cluster.
     * 
*/ public yandex.cloud.api.operation.OperationOuterClass.Operation update(yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.UpdateClusterRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateMethod(), getCallOptions(), request); } /** *
     * Deletes the specified Kubernetes cluster.
     * 
*/ public yandex.cloud.api.operation.OperationOuterClass.Operation delete(yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.DeleteClusterRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteMethod(), getCallOptions(), request); } /** *
     * Stops the specified Kubernetes cluster.
     * 
*/ public yandex.cloud.api.operation.OperationOuterClass.Operation stop(yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.StopClusterRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getStopMethod(), getCallOptions(), request); } /** *
     * Starts the specified Kubernetes cluster.
     * 
*/ public yandex.cloud.api.operation.OperationOuterClass.Operation start(yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.StartClusterRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getStartMethod(), getCallOptions(), request); } /** *
     * Lists nodegroup for the specified Kubernetes cluster.
     * 
*/ public yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.ListClusterNodeGroupsResponse listNodeGroups(yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.ListClusterNodeGroupsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListNodeGroupsMethod(), getCallOptions(), request); } /** *
     * Lists operations for the specified Kubernetes cluster.
     * 
*/ public yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.ListClusterOperationsResponse listOperations(yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.ListClusterOperationsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListOperationsMethod(), getCallOptions(), request); } /** *
     * Lists cluster's nodes.
     * 
*/ public yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.ListClusterNodesResponse listNodes(yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.ListClusterNodesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListNodesMethod(), getCallOptions(), request); } } /** *
   * A set of methods for managing Kubernetes cluster.
   * 
*/ public static final class ClusterServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private ClusterServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected ClusterServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ClusterServiceFutureStub(channel, callOptions); } /** *
     * Returns the specified Kubernetes cluster.
     * To get the list of available Kubernetes cluster, make a [List] request.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture get( yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.GetClusterRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetMethod(), getCallOptions()), request); } /** *
     * Retrieves the list of Kubernetes cluster in the specified folder.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture list( yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.ListClustersRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListMethod(), getCallOptions()), request); } /** *
     * Creates a Kubernetes cluster in the specified folder.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture create( yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.CreateClusterRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateMethod(), getCallOptions()), request); } /** *
     * Updates the specified Kubernetes cluster.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture update( yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.UpdateClusterRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateMethod(), getCallOptions()), request); } /** *
     * Deletes the specified Kubernetes cluster.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture delete( yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.DeleteClusterRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteMethod(), getCallOptions()), request); } /** *
     * Stops the specified Kubernetes cluster.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture stop( yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.StopClusterRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getStopMethod(), getCallOptions()), request); } /** *
     * Starts the specified Kubernetes cluster.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture start( yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.StartClusterRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getStartMethod(), getCallOptions()), request); } /** *
     * Lists nodegroup for the specified Kubernetes cluster.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture listNodeGroups( yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.ListClusterNodeGroupsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListNodeGroupsMethod(), getCallOptions()), request); } /** *
     * Lists operations for the specified Kubernetes cluster.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture listOperations( yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.ListClusterOperationsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListOperationsMethod(), getCallOptions()), request); } /** *
     * Lists cluster's nodes.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture listNodes( yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.ListClusterNodesRequest 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_STOP = 5; private static final int METHODID_START = 6; private static final int METHODID_LIST_NODE_GROUPS = 7; private static final int METHODID_LIST_OPERATIONS = 8; private static final int METHODID_LIST_NODES = 9; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, io.grpc.stub.ServerCalls.ServerStreamingMethod, io.grpc.stub.ServerCalls.ClientStreamingMethod, io.grpc.stub.ServerCalls.BidiStreamingMethod { private final ClusterServiceImplBase serviceImpl; private final int methodId; MethodHandlers(ClusterServiceImplBase 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.ClusterServiceOuterClass.GetClusterRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST: serviceImpl.list((yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.ListClustersRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE: serviceImpl.create((yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.CreateClusterRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE: serviceImpl.update((yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.UpdateClusterRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE: serviceImpl.delete((yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.DeleteClusterRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_STOP: serviceImpl.stop((yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.StopClusterRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_START: serviceImpl.start((yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.StartClusterRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_NODE_GROUPS: serviceImpl.listNodeGroups((yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.ListClusterNodeGroupsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_OPERATIONS: serviceImpl.listOperations((yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.ListClusterOperationsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_NODES: serviceImpl.listNodes((yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.ListClusterNodesRequest) 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 ClusterServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { ClusterServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return yandex.cloud.api.k8s.v1.ClusterServiceOuterClass.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("ClusterService"); } } private static final class ClusterServiceFileDescriptorSupplier extends ClusterServiceBaseDescriptorSupplier { ClusterServiceFileDescriptorSupplier() {} } private static final class ClusterServiceMethodDescriptorSupplier extends ClusterServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; ClusterServiceMethodDescriptorSupplier(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 (ClusterServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new ClusterServiceFileDescriptorSupplier()) .addMethod(getGetMethod()) .addMethod(getListMethod()) .addMethod(getCreateMethod()) .addMethod(getUpdateMethod()) .addMethod(getDeleteMethod()) .addMethod(getStopMethod()) .addMethod(getStartMethod()) .addMethod(getListNodeGroupsMethod()) .addMethod(getListOperationsMethod()) .addMethod(getListNodesMethod()) .build(); } } } return result; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy