yandex.cloud.api.compute.v1.ImageServiceGrpc Maven / Gradle / Ivy
package yandex.cloud.api.compute.v1;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
 * 
 * A set of methods for managing Image resources.
 * 
 */
@javax.annotation.Generated(
    value = "by gRPC proto compiler (version 1.43.2)",
    comments = "Source: yandex/cloud/compute/v1/image_service.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class ImageServiceGrpc {
  private ImageServiceGrpc() {}
  public static final String SERVICE_NAME = "yandex.cloud.compute.v1.ImageService";
  // 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.ImageServiceOuterClass.GetImageRequest.class,
      responseType = yandex.cloud.api.compute.v1.ImageOuterClass.Image.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getGetMethod() {
    io.grpc.MethodDescriptor getGetMethod;
    if ((getGetMethod = ImageServiceGrpc.getGetMethod) == null) {
      synchronized (ImageServiceGrpc.class) {
        if ((getGetMethod = ImageServiceGrpc.getGetMethod) == null) {
          ImageServiceGrpc.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.ImageServiceOuterClass.GetImageRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  yandex.cloud.api.compute.v1.ImageOuterClass.Image.getDefaultInstance()))
              .setSchemaDescriptor(new ImageServiceMethodDescriptorSupplier("Get"))
              .build();
        }
      }
    }
    return getGetMethod;
  }
  private static volatile io.grpc.MethodDescriptor getGetLatestByFamilyMethod;
  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "GetLatestByFamily",
      requestType = yandex.cloud.api.compute.v1.ImageServiceOuterClass.GetImageLatestByFamilyRequest.class,
      responseType = yandex.cloud.api.compute.v1.ImageOuterClass.Image.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getGetLatestByFamilyMethod() {
    io.grpc.MethodDescriptor getGetLatestByFamilyMethod;
    if ((getGetLatestByFamilyMethod = ImageServiceGrpc.getGetLatestByFamilyMethod) == null) {
      synchronized (ImageServiceGrpc.class) {
        if ((getGetLatestByFamilyMethod = ImageServiceGrpc.getGetLatestByFamilyMethod) == null) {
          ImageServiceGrpc.getGetLatestByFamilyMethod = getGetLatestByFamilyMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLatestByFamily"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  yandex.cloud.api.compute.v1.ImageServiceOuterClass.GetImageLatestByFamilyRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  yandex.cloud.api.compute.v1.ImageOuterClass.Image.getDefaultInstance()))
              .setSchemaDescriptor(new ImageServiceMethodDescriptorSupplier("GetLatestByFamily"))
              .build();
        }
      }
    }
    return getGetLatestByFamilyMethod;
  }
  private static volatile io.grpc.MethodDescriptor getListMethod;
  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "List",
      requestType = yandex.cloud.api.compute.v1.ImageServiceOuterClass.ListImagesRequest.class,
      responseType = yandex.cloud.api.compute.v1.ImageServiceOuterClass.ListImagesResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getListMethod() {
    io.grpc.MethodDescriptor getListMethod;
    if ((getListMethod = ImageServiceGrpc.getListMethod) == null) {
      synchronized (ImageServiceGrpc.class) {
        if ((getListMethod = ImageServiceGrpc.getListMethod) == null) {
          ImageServiceGrpc.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.ImageServiceOuterClass.ListImagesRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  yandex.cloud.api.compute.v1.ImageServiceOuterClass.ListImagesResponse.getDefaultInstance()))
              .setSchemaDescriptor(new ImageServiceMethodDescriptorSupplier("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.ImageServiceOuterClass.CreateImageRequest.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 = ImageServiceGrpc.getCreateMethod) == null) {
      synchronized (ImageServiceGrpc.class) {
        if ((getCreateMethod = ImageServiceGrpc.getCreateMethod) == null) {
          ImageServiceGrpc.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.ImageServiceOuterClass.CreateImageRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()))
              .setSchemaDescriptor(new ImageServiceMethodDescriptorSupplier("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.ImageServiceOuterClass.UpdateImageRequest.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 = ImageServiceGrpc.getUpdateMethod) == null) {
      synchronized (ImageServiceGrpc.class) {
        if ((getUpdateMethod = ImageServiceGrpc.getUpdateMethod) == null) {
          ImageServiceGrpc.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.ImageServiceOuterClass.UpdateImageRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()))
              .setSchemaDescriptor(new ImageServiceMethodDescriptorSupplier("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.ImageServiceOuterClass.DeleteImageRequest.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 = ImageServiceGrpc.getDeleteMethod) == null) {
      synchronized (ImageServiceGrpc.class) {
        if ((getDeleteMethod = ImageServiceGrpc.getDeleteMethod) == null) {
          ImageServiceGrpc.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.ImageServiceOuterClass.DeleteImageRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()))
              .setSchemaDescriptor(new ImageServiceMethodDescriptorSupplier("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.ImageServiceOuterClass.ListImageOperationsRequest.class,
      responseType = yandex.cloud.api.compute.v1.ImageServiceOuterClass.ListImageOperationsResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getListOperationsMethod() {
    io.grpc.MethodDescriptor getListOperationsMethod;
    if ((getListOperationsMethod = ImageServiceGrpc.getListOperationsMethod) == null) {
      synchronized (ImageServiceGrpc.class) {
        if ((getListOperationsMethod = ImageServiceGrpc.getListOperationsMethod) == null) {
          ImageServiceGrpc.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.ImageServiceOuterClass.ListImageOperationsRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  yandex.cloud.api.compute.v1.ImageServiceOuterClass.ListImageOperationsResponse.getDefaultInstance()))
              .setSchemaDescriptor(new ImageServiceMethodDescriptorSupplier("ListOperations"))
              .build();
        }
      }
    }
    return getListOperationsMethod;
  }
  /**
   * Creates a new async stub that supports all call types for the service
   */
  public static ImageServiceStub newStub(io.grpc.Channel channel) {
    io.grpc.stub.AbstractStub.StubFactory factory =
      new io.grpc.stub.AbstractStub.StubFactory() {
        @java.lang.Override
        public ImageServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          return new ImageServiceStub(channel, callOptions);
        }
      };
    return ImageServiceStub.newStub(factory, channel);
  }
  /**
   * Creates a new blocking-style stub that supports unary and streaming output calls on the service
   */
  public static ImageServiceBlockingStub newBlockingStub(
      io.grpc.Channel channel) {
    io.grpc.stub.AbstractStub.StubFactory factory =
      new io.grpc.stub.AbstractStub.StubFactory() {
        @java.lang.Override
        public ImageServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          return new ImageServiceBlockingStub(channel, callOptions);
        }
      };
    return ImageServiceBlockingStub.newStub(factory, channel);
  }
  /**
   * Creates a new ListenableFuture-style stub that supports unary calls on the service
   */
  public static ImageServiceFutureStub newFutureStub(
      io.grpc.Channel channel) {
    io.grpc.stub.AbstractStub.StubFactory factory =
      new io.grpc.stub.AbstractStub.StubFactory() {
        @java.lang.Override
        public ImageServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          return new ImageServiceFutureStub(channel, callOptions);
        }
      };
    return ImageServiceFutureStub.newStub(factory, channel);
  }
  /**
   * 
   * A set of methods for managing Image resources.
   * 
   */
  public static abstract class ImageServiceImplBase implements io.grpc.BindableService {
    /**
     * 
     * Returns the specified Image resource.
     * To get the list of available Image resources, make a [List] request.
     * 
     */
    public void get(yandex.cloud.api.compute.v1.ImageServiceOuterClass.GetImageRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMethod(), responseObserver);
    }
    /**
     * 
     * Returns the latest image that is part of an image family.
     * 
     */
    public void getLatestByFamily(yandex.cloud.api.compute.v1.ImageServiceOuterClass.GetImageLatestByFamilyRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetLatestByFamilyMethod(), responseObserver);
    }
    /**
     * 
     * Retrieves the list of Image resources in the specified folder.
     * 
     */
    public void list(yandex.cloud.api.compute.v1.ImageServiceOuterClass.ListImagesRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListMethod(), responseObserver);
    }
    /**
     * 
     * Creates an image in the specified folder.
     * You can create an image from a disk, snapshot, other image or URI.
     * Method starts an asynchronous operation that can be cancelled while it is in progress.
     * 
     */
    public void create(yandex.cloud.api.compute.v1.ImageServiceOuterClass.CreateImageRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateMethod(), responseObserver);
    }
    /**
     * 
     * Updates the specified image.
     * 
     */
    public void update(yandex.cloud.api.compute.v1.ImageServiceOuterClass.UpdateImageRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateMethod(), responseObserver);
    }
    /**
     * 
     * Deletes the specified image.
     * Deleting an image removes its data permanently and is irreversible.
     * 
     */
    public void delete(yandex.cloud.api.compute.v1.ImageServiceOuterClass.DeleteImageRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteMethod(), responseObserver);
    }
    /**
     * 
     * Lists operations for the specified image.
     * 
     */
    public void listOperations(yandex.cloud.api.compute.v1.ImageServiceOuterClass.ListImageOperationsRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListOperationsMethod(), 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.ImageServiceOuterClass.GetImageRequest,
                yandex.cloud.api.compute.v1.ImageOuterClass.Image>(
                  this, METHODID_GET)))
          .addMethod(
            getGetLatestByFamilyMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                yandex.cloud.api.compute.v1.ImageServiceOuterClass.GetImageLatestByFamilyRequest,
                yandex.cloud.api.compute.v1.ImageOuterClass.Image>(
                  this, METHODID_GET_LATEST_BY_FAMILY)))
          .addMethod(
            getListMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                yandex.cloud.api.compute.v1.ImageServiceOuterClass.ListImagesRequest,
                yandex.cloud.api.compute.v1.ImageServiceOuterClass.ListImagesResponse>(
                  this, METHODID_LIST)))
          .addMethod(
            getCreateMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                yandex.cloud.api.compute.v1.ImageServiceOuterClass.CreateImageRequest,
                yandex.cloud.api.operation.OperationOuterClass.Operation>(
                  this, METHODID_CREATE)))
          .addMethod(
            getUpdateMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                yandex.cloud.api.compute.v1.ImageServiceOuterClass.UpdateImageRequest,
                yandex.cloud.api.operation.OperationOuterClass.Operation>(
                  this, METHODID_UPDATE)))
          .addMethod(
            getDeleteMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                yandex.cloud.api.compute.v1.ImageServiceOuterClass.DeleteImageRequest,
                yandex.cloud.api.operation.OperationOuterClass.Operation>(
                  this, METHODID_DELETE)))
          .addMethod(
            getListOperationsMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                yandex.cloud.api.compute.v1.ImageServiceOuterClass.ListImageOperationsRequest,
                yandex.cloud.api.compute.v1.ImageServiceOuterClass.ListImageOperationsResponse>(
                  this, METHODID_LIST_OPERATIONS)))
          .build();
    }
  }
  /**
   * 
   * A set of methods for managing Image resources.
   * 
   */
  public static final class ImageServiceStub extends io.grpc.stub.AbstractAsyncStub {
    private ImageServiceStub(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }
    @java.lang.Override
    protected ImageServiceStub build(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      return new ImageServiceStub(channel, callOptions);
    }
    /**
     * 
     * Returns the specified Image resource.
     * To get the list of available Image resources, make a [List] request.
     * 
     */
    public void get(yandex.cloud.api.compute.v1.ImageServiceOuterClass.GetImageRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getGetMethod(), getCallOptions()), request, responseObserver);
    }
    /**
     * 
     * Returns the latest image that is part of an image family.
     * 
     */
    public void getLatestByFamily(yandex.cloud.api.compute.v1.ImageServiceOuterClass.GetImageLatestByFamilyRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getGetLatestByFamilyMethod(), getCallOptions()), request, responseObserver);
    }
    /**
     * 
     * Retrieves the list of Image resources in the specified folder.
     * 
     */
    public void list(yandex.cloud.api.compute.v1.ImageServiceOuterClass.ListImagesRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getListMethod(), getCallOptions()), request, responseObserver);
    }
    /**
     * 
     * Creates an image in the specified folder.
     * You can create an image from a disk, snapshot, other image or URI.
     * Method starts an asynchronous operation that can be cancelled while it is in progress.
     * 
     */
    public void create(yandex.cloud.api.compute.v1.ImageServiceOuterClass.CreateImageRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getCreateMethod(), getCallOptions()), request, responseObserver);
    }
    /**
     * 
     * Updates the specified image.
     * 
     */
    public void update(yandex.cloud.api.compute.v1.ImageServiceOuterClass.UpdateImageRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getUpdateMethod(), getCallOptions()), request, responseObserver);
    }
    /**
     * 
     * Deletes the specified image.
     * Deleting an image removes its data permanently and is irreversible.
     * 
     */
    public void delete(yandex.cloud.api.compute.v1.ImageServiceOuterClass.DeleteImageRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getDeleteMethod(), getCallOptions()), request, responseObserver);
    }
    /**
     * 
     * Lists operations for the specified image.
     * 
     */
    public void listOperations(yandex.cloud.api.compute.v1.ImageServiceOuterClass.ListImageOperationsRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getListOperationsMethod(), getCallOptions()), request, responseObserver);
    }
  }
  /**
   * 
   * A set of methods for managing Image resources.
   * 
   */
  public static final class ImageServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub {
    private ImageServiceBlockingStub(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }
    @java.lang.Override
    protected ImageServiceBlockingStub build(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      return new ImageServiceBlockingStub(channel, callOptions);
    }
    /**
     * 
     * Returns the specified Image resource.
     * To get the list of available Image resources, make a [List] request.
     * 
     */
    public yandex.cloud.api.compute.v1.ImageOuterClass.Image get(yandex.cloud.api.compute.v1.ImageServiceOuterClass.GetImageRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getGetMethod(), getCallOptions(), request);
    }
    /**
     * 
     * Returns the latest image that is part of an image family.
     * 
     */
    public yandex.cloud.api.compute.v1.ImageOuterClass.Image getLatestByFamily(yandex.cloud.api.compute.v1.ImageServiceOuterClass.GetImageLatestByFamilyRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getGetLatestByFamilyMethod(), getCallOptions(), request);
    }
    /**
     * 
     * Retrieves the list of Image resources in the specified folder.
     * 
     */
    public yandex.cloud.api.compute.v1.ImageServiceOuterClass.ListImagesResponse list(yandex.cloud.api.compute.v1.ImageServiceOuterClass.ListImagesRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getListMethod(), getCallOptions(), request);
    }
    /**
     * 
     * Creates an image in the specified folder.
     * You can create an image from a disk, snapshot, other image or URI.
     * Method starts an asynchronous operation that can be cancelled while it is in progress.
     * 
     */
    public yandex.cloud.api.operation.OperationOuterClass.Operation create(yandex.cloud.api.compute.v1.ImageServiceOuterClass.CreateImageRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getCreateMethod(), getCallOptions(), request);
    }
    /**
     * 
     * Updates the specified image.
     * 
     */
    public yandex.cloud.api.operation.OperationOuterClass.Operation update(yandex.cloud.api.compute.v1.ImageServiceOuterClass.UpdateImageRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getUpdateMethod(), getCallOptions(), request);
    }
    /**
     * 
     * Deletes the specified image.
     * Deleting an image removes its data permanently and is irreversible.
     * 
     */
    public yandex.cloud.api.operation.OperationOuterClass.Operation delete(yandex.cloud.api.compute.v1.ImageServiceOuterClass.DeleteImageRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getDeleteMethod(), getCallOptions(), request);
    }
    /**
     * 
     * Lists operations for the specified image.
     * 
     */
    public yandex.cloud.api.compute.v1.ImageServiceOuterClass.ListImageOperationsResponse listOperations(yandex.cloud.api.compute.v1.ImageServiceOuterClass.ListImageOperationsRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getListOperationsMethod(), getCallOptions(), request);
    }
  }
  /**
   * 
   * A set of methods for managing Image resources.
   * 
   */
  public static final class ImageServiceFutureStub extends io.grpc.stub.AbstractFutureStub {
    private ImageServiceFutureStub(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }
    @java.lang.Override
    protected ImageServiceFutureStub build(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      return new ImageServiceFutureStub(channel, callOptions);
    }
    /**
     * 
     * Returns the specified Image resource.
     * To get the list of available Image resources, make a [List] request.
     * 
     */
    public com.google.common.util.concurrent.ListenableFuture get(
        yandex.cloud.api.compute.v1.ImageServiceOuterClass.GetImageRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getGetMethod(), getCallOptions()), request);
    }
    /**
     * 
     * Returns the latest image that is part of an image family.
     * 
     */
    public com.google.common.util.concurrent.ListenableFuture getLatestByFamily(
        yandex.cloud.api.compute.v1.ImageServiceOuterClass.GetImageLatestByFamilyRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getGetLatestByFamilyMethod(), getCallOptions()), request);
    }
    /**
     * 
     * Retrieves the list of Image resources in the specified folder.
     * 
     */
    public com.google.common.util.concurrent.ListenableFuture list(
        yandex.cloud.api.compute.v1.ImageServiceOuterClass.ListImagesRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getListMethod(), getCallOptions()), request);
    }
    /**
     * 
     * Creates an image in the specified folder.
     * You can create an image from a disk, snapshot, other image or URI.
     * Method starts an asynchronous operation that can be cancelled while it is in progress.
     * 
     */
    public com.google.common.util.concurrent.ListenableFuture create(
        yandex.cloud.api.compute.v1.ImageServiceOuterClass.CreateImageRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getCreateMethod(), getCallOptions()), request);
    }
    /**
     * 
     * Updates the specified image.
     * 
     */
    public com.google.common.util.concurrent.ListenableFuture update(
        yandex.cloud.api.compute.v1.ImageServiceOuterClass.UpdateImageRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getUpdateMethod(), getCallOptions()), request);
    }
    /**
     * 
     * Deletes the specified image.
     * Deleting an image removes its data permanently and is irreversible.
     * 
     */
    public com.google.common.util.concurrent.ListenableFuture delete(
        yandex.cloud.api.compute.v1.ImageServiceOuterClass.DeleteImageRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getDeleteMethod(), getCallOptions()), request);
    }
    /**
     * 
     * Lists operations for the specified image.
     * 
     */
    public com.google.common.util.concurrent.ListenableFuture listOperations(
        yandex.cloud.api.compute.v1.ImageServiceOuterClass.ListImageOperationsRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getListOperationsMethod(), getCallOptions()), request);
    }
  }
  private static final int METHODID_GET = 0;
  private static final int METHODID_GET_LATEST_BY_FAMILY = 1;
  private static final int METHODID_LIST = 2;
  private static final int METHODID_CREATE = 3;
  private static final int METHODID_UPDATE = 4;
  private static final int METHODID_DELETE = 5;
  private static final int METHODID_LIST_OPERATIONS = 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 ImageServiceImplBase serviceImpl;
    private final int methodId;
    MethodHandlers(ImageServiceImplBase 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.ImageServiceOuterClass.GetImageRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_GET_LATEST_BY_FAMILY:
          serviceImpl.getLatestByFamily((yandex.cloud.api.compute.v1.ImageServiceOuterClass.GetImageLatestByFamilyRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_LIST:
          serviceImpl.list((yandex.cloud.api.compute.v1.ImageServiceOuterClass.ListImagesRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_CREATE:
          serviceImpl.create((yandex.cloud.api.compute.v1.ImageServiceOuterClass.CreateImageRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_UPDATE:
          serviceImpl.update((yandex.cloud.api.compute.v1.ImageServiceOuterClass.UpdateImageRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_DELETE:
          serviceImpl.delete((yandex.cloud.api.compute.v1.ImageServiceOuterClass.DeleteImageRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_LIST_OPERATIONS:
          serviceImpl.listOperations((yandex.cloud.api.compute.v1.ImageServiceOuterClass.ListImageOperationsRequest) 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 ImageServiceBaseDescriptorSupplier
      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
    ImageServiceBaseDescriptorSupplier() {}
    @java.lang.Override
    public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
      return yandex.cloud.api.compute.v1.ImageServiceOuterClass.getDescriptor();
    }
    @java.lang.Override
    public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
      return getFileDescriptor().findServiceByName("ImageService");
    }
  }
  private static final class ImageServiceFileDescriptorSupplier
      extends ImageServiceBaseDescriptorSupplier {
    ImageServiceFileDescriptorSupplier() {}
  }
  private static final class ImageServiceMethodDescriptorSupplier
      extends ImageServiceBaseDescriptorSupplier
      implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
    private final String methodName;
    ImageServiceMethodDescriptorSupplier(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 (ImageServiceGrpc.class) {
        result = serviceDescriptor;
        if (result == null) {
          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
              .setSchemaDescriptor(new ImageServiceFileDescriptorSupplier())
              .addMethod(getGetMethod())
              .addMethod(getGetLatestByFamilyMethod())
              .addMethod(getListMethod())
              .addMethod(getCreateMethod())
              .addMethod(getUpdateMethod())
              .addMethod(getDeleteMethod())
              .addMethod(getListOperationsMethod())
              .build();
        }
      }
    }
    return result;
  }
}
                                                                             © 2015 - 2025 Weber Informatics LLC | Privacy Policy