yandex.cloud.api.compute.v1.GpuClusterServiceGrpc Maven / Gradle / Ivy
package yandex.cloud.api.compute.v1;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*
* A set of methods for managing GPU clusters.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.43.2)",
comments = "Source: yandex/cloud/compute/v1/gpu_cluster_service.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class GpuClusterServiceGrpc {
private GpuClusterServiceGrpc() {}
public static final String SERVICE_NAME = "yandex.cloud.compute.v1.GpuClusterService";
// 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.compute.v1.GpuClusterServiceOuterClass.GetGpuClusterRequest.class,
responseType = yandex.cloud.api.compute.v1.GpuClusterOuterClass.GpuCluster.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetMethod() {
io.grpc.MethodDescriptor getGetMethod;
if ((getGetMethod = GpuClusterServiceGrpc.getGetMethod) == null) {
synchronized (GpuClusterServiceGrpc.class) {
if ((getGetMethod = GpuClusterServiceGrpc.getGetMethod) == null) {
GpuClusterServiceGrpc.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.compute.v1.GpuClusterServiceOuterClass.GetGpuClusterRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.compute.v1.GpuClusterOuterClass.GpuCluster.getDefaultInstance()))
.setSchemaDescriptor(new GpuClusterServiceMethodDescriptorSupplier("Get"))
.build();
}
}
}
return getGetMethod;
}
private static volatile io.grpc.MethodDescriptor getListMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "List",
requestType = yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.ListGpuClustersRequest.class,
responseType = yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.ListGpuClustersResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getListMethod() {
io.grpc.MethodDescriptor getListMethod;
if ((getListMethod = GpuClusterServiceGrpc.getListMethod) == null) {
synchronized (GpuClusterServiceGrpc.class) {
if ((getListMethod = GpuClusterServiceGrpc.getListMethod) == null) {
GpuClusterServiceGrpc.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.compute.v1.GpuClusterServiceOuterClass.ListGpuClustersRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.ListGpuClustersResponse.getDefaultInstance()))
.setSchemaDescriptor(new GpuClusterServiceMethodDescriptorSupplier("List"))
.build();
}
}
}
return getListMethod;
}
private static volatile io.grpc.MethodDescriptor getCreateMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Create",
requestType = yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.CreateGpuClusterRequest.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 = GpuClusterServiceGrpc.getCreateMethod) == null) {
synchronized (GpuClusterServiceGrpc.class) {
if ((getCreateMethod = GpuClusterServiceGrpc.getCreateMethod) == null) {
GpuClusterServiceGrpc.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.compute.v1.GpuClusterServiceOuterClass.CreateGpuClusterRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()))
.setSchemaDescriptor(new GpuClusterServiceMethodDescriptorSupplier("Create"))
.build();
}
}
}
return getCreateMethod;
}
private static volatile io.grpc.MethodDescriptor getUpdateMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Update",
requestType = yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.UpdateGpuClusterRequest.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 = GpuClusterServiceGrpc.getUpdateMethod) == null) {
synchronized (GpuClusterServiceGrpc.class) {
if ((getUpdateMethod = GpuClusterServiceGrpc.getUpdateMethod) == null) {
GpuClusterServiceGrpc.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.compute.v1.GpuClusterServiceOuterClass.UpdateGpuClusterRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()))
.setSchemaDescriptor(new GpuClusterServiceMethodDescriptorSupplier("Update"))
.build();
}
}
}
return getUpdateMethod;
}
private static volatile io.grpc.MethodDescriptor getDeleteMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Delete",
requestType = yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.DeleteGpuClusterRequest.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 = GpuClusterServiceGrpc.getDeleteMethod) == null) {
synchronized (GpuClusterServiceGrpc.class) {
if ((getDeleteMethod = GpuClusterServiceGrpc.getDeleteMethod) == null) {
GpuClusterServiceGrpc.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.compute.v1.GpuClusterServiceOuterClass.DeleteGpuClusterRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()))
.setSchemaDescriptor(new GpuClusterServiceMethodDescriptorSupplier("Delete"))
.build();
}
}
}
return getDeleteMethod;
}
private static volatile io.grpc.MethodDescriptor getListOperationsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ListOperations",
requestType = yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.ListGpuClusterOperationsRequest.class,
responseType = yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.ListGpuClusterOperationsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getListOperationsMethod() {
io.grpc.MethodDescriptor getListOperationsMethod;
if ((getListOperationsMethod = GpuClusterServiceGrpc.getListOperationsMethod) == null) {
synchronized (GpuClusterServiceGrpc.class) {
if ((getListOperationsMethod = GpuClusterServiceGrpc.getListOperationsMethod) == null) {
GpuClusterServiceGrpc.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.compute.v1.GpuClusterServiceOuterClass.ListGpuClusterOperationsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.ListGpuClusterOperationsResponse.getDefaultInstance()))
.setSchemaDescriptor(new GpuClusterServiceMethodDescriptorSupplier("ListOperations"))
.build();
}
}
}
return getListOperationsMethod;
}
private static volatile io.grpc.MethodDescriptor getListInstancesMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ListInstances",
requestType = yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.ListGpuClusterInstancesRequest.class,
responseType = yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.ListGpuClusterInstancesResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getListInstancesMethod() {
io.grpc.MethodDescriptor getListInstancesMethod;
if ((getListInstancesMethod = GpuClusterServiceGrpc.getListInstancesMethod) == null) {
synchronized (GpuClusterServiceGrpc.class) {
if ((getListInstancesMethod = GpuClusterServiceGrpc.getListInstancesMethod) == null) {
GpuClusterServiceGrpc.getListInstancesMethod = getListInstancesMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListInstances"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.ListGpuClusterInstancesRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.ListGpuClusterInstancesResponse.getDefaultInstance()))
.setSchemaDescriptor(new GpuClusterServiceMethodDescriptorSupplier("ListInstances"))
.build();
}
}
}
return getListInstancesMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static GpuClusterServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public GpuClusterServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new GpuClusterServiceStub(channel, callOptions);
}
};
return GpuClusterServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static GpuClusterServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public GpuClusterServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new GpuClusterServiceBlockingStub(channel, callOptions);
}
};
return GpuClusterServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static GpuClusterServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public GpuClusterServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new GpuClusterServiceFutureStub(channel, callOptions);
}
};
return GpuClusterServiceFutureStub.newStub(factory, channel);
}
/**
*
* A set of methods for managing GPU clusters.
*
*/
public static abstract class GpuClusterServiceImplBase implements io.grpc.BindableService {
/**
*
* Returns the specified GPU cluster.
* To get the list of available GPU clusters, make a [List] request.
*
*/
public void get(yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.GetGpuClusterRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMethod(), responseObserver);
}
/**
*
* Retrieves the list of GPU clusters in the specified folder.
*
*/
public void list(yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.ListGpuClustersRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListMethod(), responseObserver);
}
/**
*
* Creates a GPU cluster in the specified folder.
*
*/
public void create(yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.CreateGpuClusterRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateMethod(), responseObserver);
}
/**
*
* Updates the specified GPU cluster.
* Currently only name, description and labels can be updated.
*
*/
public void update(yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.UpdateGpuClusterRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateMethod(), responseObserver);
}
/**
*
* Deletes the specified GPU cluster.
* GPU cluster can be deleted only if it doesn't have any instances associated with it.
*
*/
public void delete(yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.DeleteGpuClusterRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteMethod(), responseObserver);
}
/**
*
* Lists operations for the specified GPU cluster.
*
*/
public void listOperations(yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.ListGpuClusterOperationsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListOperationsMethod(), responseObserver);
}
/**
*
* List instances created in this GPU cluster.
*
*/
public void listInstances(yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.ListGpuClusterInstancesRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListInstancesMethod(), 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.compute.v1.GpuClusterServiceOuterClass.GetGpuClusterRequest,
yandex.cloud.api.compute.v1.GpuClusterOuterClass.GpuCluster>(
this, METHODID_GET)))
.addMethod(
getListMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.ListGpuClustersRequest,
yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.ListGpuClustersResponse>(
this, METHODID_LIST)))
.addMethod(
getCreateMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.CreateGpuClusterRequest,
yandex.cloud.api.operation.OperationOuterClass.Operation>(
this, METHODID_CREATE)))
.addMethod(
getUpdateMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.UpdateGpuClusterRequest,
yandex.cloud.api.operation.OperationOuterClass.Operation>(
this, METHODID_UPDATE)))
.addMethod(
getDeleteMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.DeleteGpuClusterRequest,
yandex.cloud.api.operation.OperationOuterClass.Operation>(
this, METHODID_DELETE)))
.addMethod(
getListOperationsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.ListGpuClusterOperationsRequest,
yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.ListGpuClusterOperationsResponse>(
this, METHODID_LIST_OPERATIONS)))
.addMethod(
getListInstancesMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.ListGpuClusterInstancesRequest,
yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.ListGpuClusterInstancesResponse>(
this, METHODID_LIST_INSTANCES)))
.build();
}
}
/**
*
* A set of methods for managing GPU clusters.
*
*/
public static final class GpuClusterServiceStub extends io.grpc.stub.AbstractAsyncStub {
private GpuClusterServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected GpuClusterServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new GpuClusterServiceStub(channel, callOptions);
}
/**
*
* Returns the specified GPU cluster.
* To get the list of available GPU clusters, make a [List] request.
*
*/
public void get(yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.GetGpuClusterRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Retrieves the list of GPU clusters in the specified folder.
*
*/
public void list(yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.ListGpuClustersRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Creates a GPU cluster in the specified folder.
*
*/
public void create(yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.CreateGpuClusterRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCreateMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Updates the specified GPU cluster.
* Currently only name, description and labels can be updated.
*
*/
public void update(yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.UpdateGpuClusterRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdateMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Deletes the specified GPU cluster.
* GPU cluster can be deleted only if it doesn't have any instances associated with it.
*
*/
public void delete(yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.DeleteGpuClusterRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDeleteMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Lists operations for the specified GPU cluster.
*
*/
public void listOperations(yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.ListGpuClusterOperationsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListOperationsMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* List instances created in this GPU cluster.
*
*/
public void listInstances(yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.ListGpuClusterInstancesRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListInstancesMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*
* A set of methods for managing GPU clusters.
*
*/
public static final class GpuClusterServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub {
private GpuClusterServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected GpuClusterServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new GpuClusterServiceBlockingStub(channel, callOptions);
}
/**
*
* Returns the specified GPU cluster.
* To get the list of available GPU clusters, make a [List] request.
*
*/
public yandex.cloud.api.compute.v1.GpuClusterOuterClass.GpuCluster get(yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.GetGpuClusterRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetMethod(), getCallOptions(), request);
}
/**
*
* Retrieves the list of GPU clusters in the specified folder.
*
*/
public yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.ListGpuClustersResponse list(yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.ListGpuClustersRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListMethod(), getCallOptions(), request);
}
/**
*
* Creates a GPU cluster in the specified folder.
*
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation create(yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.CreateGpuClusterRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateMethod(), getCallOptions(), request);
}
/**
*
* Updates the specified GPU cluster.
* Currently only name, description and labels can be updated.
*
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation update(yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.UpdateGpuClusterRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateMethod(), getCallOptions(), request);
}
/**
*
* Deletes the specified GPU cluster.
* GPU cluster can be deleted only if it doesn't have any instances associated with it.
*
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation delete(yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.DeleteGpuClusterRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDeleteMethod(), getCallOptions(), request);
}
/**
*
* Lists operations for the specified GPU cluster.
*
*/
public yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.ListGpuClusterOperationsResponse listOperations(yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.ListGpuClusterOperationsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListOperationsMethod(), getCallOptions(), request);
}
/**
*
* List instances created in this GPU cluster.
*
*/
public yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.ListGpuClusterInstancesResponse listInstances(yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.ListGpuClusterInstancesRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListInstancesMethod(), getCallOptions(), request);
}
}
/**
*
* A set of methods for managing GPU clusters.
*
*/
public static final class GpuClusterServiceFutureStub extends io.grpc.stub.AbstractFutureStub {
private GpuClusterServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected GpuClusterServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new GpuClusterServiceFutureStub(channel, callOptions);
}
/**
*
* Returns the specified GPU cluster.
* To get the list of available GPU clusters, make a [List] request.
*
*/
public com.google.common.util.concurrent.ListenableFuture get(
yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.GetGpuClusterRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetMethod(), getCallOptions()), request);
}
/**
*
* Retrieves the list of GPU clusters in the specified folder.
*
*/
public com.google.common.util.concurrent.ListenableFuture list(
yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.ListGpuClustersRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListMethod(), getCallOptions()), request);
}
/**
*
* Creates a GPU cluster in the specified folder.
*
*/
public com.google.common.util.concurrent.ListenableFuture create(
yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.CreateGpuClusterRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCreateMethod(), getCallOptions()), request);
}
/**
*
* Updates the specified GPU cluster.
* Currently only name, description and labels can be updated.
*
*/
public com.google.common.util.concurrent.ListenableFuture update(
yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.UpdateGpuClusterRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdateMethod(), getCallOptions()), request);
}
/**
*
* Deletes the specified GPU cluster.
* GPU cluster can be deleted only if it doesn't have any instances associated with it.
*
*/
public com.google.common.util.concurrent.ListenableFuture delete(
yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.DeleteGpuClusterRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDeleteMethod(), getCallOptions()), request);
}
/**
*
* Lists operations for the specified GPU cluster.
*
*/
public com.google.common.util.concurrent.ListenableFuture listOperations(
yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.ListGpuClusterOperationsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListOperationsMethod(), getCallOptions()), request);
}
/**
*
* List instances created in this GPU cluster.
*
*/
public com.google.common.util.concurrent.ListenableFuture listInstances(
yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.ListGpuClusterInstancesRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListInstancesMethod(), 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_INSTANCES = 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 GpuClusterServiceImplBase serviceImpl;
private final int methodId;
MethodHandlers(GpuClusterServiceImplBase 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.compute.v1.GpuClusterServiceOuterClass.GetGpuClusterRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_LIST:
serviceImpl.list((yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.ListGpuClustersRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_CREATE:
serviceImpl.create((yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.CreateGpuClusterRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE:
serviceImpl.update((yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.UpdateGpuClusterRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DELETE:
serviceImpl.delete((yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.DeleteGpuClusterRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_LIST_OPERATIONS:
serviceImpl.listOperations((yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.ListGpuClusterOperationsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_LIST_INSTANCES:
serviceImpl.listInstances((yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.ListGpuClusterInstancesRequest) 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 GpuClusterServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
GpuClusterServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return yandex.cloud.api.compute.v1.GpuClusterServiceOuterClass.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("GpuClusterService");
}
}
private static final class GpuClusterServiceFileDescriptorSupplier
extends GpuClusterServiceBaseDescriptorSupplier {
GpuClusterServiceFileDescriptorSupplier() {}
}
private static final class GpuClusterServiceMethodDescriptorSupplier
extends GpuClusterServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
GpuClusterServiceMethodDescriptorSupplier(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 (GpuClusterServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new GpuClusterServiceFileDescriptorSupplier())
.addMethod(getGetMethod())
.addMethod(getListMethod())
.addMethod(getCreateMethod())
.addMethod(getUpdateMethod())
.addMethod(getDeleteMethod())
.addMethod(getListOperationsMethod())
.addMethod(getListInstancesMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy