text: # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
  import grpc
  
  from yandex.cloud.compute.v1 import image_pb2 as yandex_dot_cloud_dot_compute_dot_v1_dot_image__pb2
  from yandex.cloud.compute.v1 import image_service_pb2 as yandex_dot_cloud_dot_compute_dot_v1_dot_image__service__pb2
  from yandex.cloud.operation import operation_pb2 as yandex_dot_cloud_dot_operation_dot_operation__pb2
  
  
  class ImageServiceStub(object):
    """A set of methods for managing Image resources.
    """
  
    def __init__(self, channel):
      """Constructor.
  
      Args:
        channel: A grpc.Channel.
      """
      self.Get = channel.unary_unary(
          '/yandex.cloud.compute.v1.ImageService/Get',
          request_serializer=yandex_dot_cloud_dot_compute_dot_v1_dot_image__service__pb2.GetImageRequest.SerializeToString,
          response_deserializer=yandex_dot_cloud_dot_compute_dot_v1_dot_image__pb2.Image.FromString,
          )
      self.GetLatestByFamily = channel.unary_unary(
          '/yandex.cloud.compute.v1.ImageService/GetLatestByFamily',
          request_serializer=yandex_dot_cloud_dot_compute_dot_v1_dot_image__service__pb2.GetImageLatestByFamilyRequest.SerializeToString,
          response_deserializer=yandex_dot_cloud_dot_compute_dot_v1_dot_image__pb2.Image.FromString,
          )
      self.List = channel.unary_unary(
          '/yandex.cloud.compute.v1.ImageService/List',
          request_serializer=yandex_dot_cloud_dot_compute_dot_v1_dot_image__service__pb2.ListImagesRequest.SerializeToString,
          response_deserializer=yandex_dot_cloud_dot_compute_dot_v1_dot_image__service__pb2.ListImagesResponse.FromString,
          )
      self.Create = channel.unary_unary(
          '/yandex.cloud.compute.v1.ImageService/Create',
          request_serializer=yandex_dot_cloud_dot_compute_dot_v1_dot_image__service__pb2.CreateImageRequest.SerializeToString,
          response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
          )
      self.Update = channel.unary_unary(
          '/yandex.cloud.compute.v1.ImageService/Update',
          request_serializer=yandex_dot_cloud_dot_compute_dot_v1_dot_image__service__pb2.UpdateImageRequest.SerializeToString,
          response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
          )
      self.Delete = channel.unary_unary(
          '/yandex.cloud.compute.v1.ImageService/Delete',
          request_serializer=yandex_dot_cloud_dot_compute_dot_v1_dot_image__service__pb2.DeleteImageRequest.SerializeToString,
          response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
          )
      self.ListOperations = channel.unary_unary(
          '/yandex.cloud.compute.v1.ImageService/ListOperations',
          request_serializer=yandex_dot_cloud_dot_compute_dot_v1_dot_image__service__pb2.ListImageOperationsRequest.SerializeToString,
          response_deserializer=yandex_dot_cloud_dot_compute_dot_v1_dot_image__service__pb2.ListImageOperationsResponse.FromString,
          )
  
  
  class ImageServiceServicer(object):
    """A set of methods for managing Image resources.
    """
  
    def Get(self, request, context):
      """Returns the specified Image resource.
  
      To get the list of available Image resources, make a [List] request.
      """
      context.set_code(grpc.StatusCode.UNIMPLEMENTED)
      context.set_details('Method not implemented!')
      raise NotImplementedError('Method not implemented!')
  
    def GetLatestByFamily(self, request, context):
      """Returns the latest image that is part of an image family.
      """
      context.set_code(grpc.StatusCode.UNIMPLEMENTED)
      context.set_details('Method not implemented!')
      raise NotImplementedError('Method not implemented!')
  
    def List(self, request, context):
      """Retrieves the list of Image resources in the specified folder.
      """
      context.set_code(grpc.StatusCode.UNIMPLEMENTED)
      context.set_details('Method not implemented!')
      raise NotImplementedError('Method not implemented!')
  
    def Create(self, request, context):
      """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.
      """
      context.set_code(grpc.StatusCode.UNIMPLEMENTED)
      context.set_details('Method not implemented!')
      raise NotImplementedError('Method not implemented!')
  
    def Update(self, request, context):
      """Updates the specified image.
      """
      context.set_code(grpc.StatusCode.UNIMPLEMENTED)
      context.set_details('Method not implemented!')
      raise NotImplementedError('Method not implemented!')
  
    def Delete(self, request, context):
      """Deletes the specified image.
  
      Deleting an image removes its data permanently and is irreversible.
      """
      context.set_code(grpc.StatusCode.UNIMPLEMENTED)
      context.set_details('Method not implemented!')
      raise NotImplementedError('Method not implemented!')
  
    def ListOperations(self, request, context):
      """Lists operations for the specified image.
      """
      context.set_code(grpc.StatusCode.UNIMPLEMENTED)
      context.set_details('Method not implemented!')
      raise NotImplementedError('Method not implemented!')
  
  
  def add_ImageServiceServicer_to_server(servicer, server):
    rpc_method_handlers = {
        'Get': grpc.unary_unary_rpc_method_handler(
            servicer.Get,
            request_deserializer=yandex_dot_cloud_dot_compute_dot_v1_dot_image__service__pb2.GetImageRequest.FromString,
            response_serializer=yandex_dot_cloud_dot_compute_dot_v1_dot_image__pb2.Image.SerializeToString,
        ),
        'GetLatestByFamily': grpc.unary_unary_rpc_method_handler(
            servicer.GetLatestByFamily,
            request_deserializer=yandex_dot_cloud_dot_compute_dot_v1_dot_image__service__pb2.GetImageLatestByFamilyRequest.FromString,
            response_serializer=yandex_dot_cloud_dot_compute_dot_v1_dot_image__pb2.Image.SerializeToString,
        ),
        'List': grpc.unary_unary_rpc_method_handler(
            servicer.List,
            request_deserializer=yandex_dot_cloud_dot_compute_dot_v1_dot_image__service__pb2.ListImagesRequest.FromString,
            response_serializer=yandex_dot_cloud_dot_compute_dot_v1_dot_image__service__pb2.ListImagesResponse.SerializeToString,
        ),
        'Create': grpc.unary_unary_rpc_method_handler(
            servicer.Create,
            request_deserializer=yandex_dot_cloud_dot_compute_dot_v1_dot_image__service__pb2.CreateImageRequest.FromString,
            response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
        ),
        'Update': grpc.unary_unary_rpc_method_handler(
            servicer.Update,
            request_deserializer=yandex_dot_cloud_dot_compute_dot_v1_dot_image__service__pb2.UpdateImageRequest.FromString,
            response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
        ),
        'Delete': grpc.unary_unary_rpc_method_handler(
            servicer.Delete,
            request_deserializer=yandex_dot_cloud_dot_compute_dot_v1_dot_image__service__pb2.DeleteImageRequest.FromString,
            response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
        ),
        'ListOperations': grpc.unary_unary_rpc_method_handler(
            servicer.ListOperations,
            request_deserializer=yandex_dot_cloud_dot_compute_dot_v1_dot_image__service__pb2.ListImageOperationsRequest.FromString,
            response_serializer=yandex_dot_cloud_dot_compute_dot_v1_dot_image__service__pb2.ListImageOperationsResponse.SerializeToString,
        ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
        'yandex.cloud.compute.v1.ImageService', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))
  