# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc

from kikimr.public.api.protos import ydb_export_pb2 as kikimr_dot_public_dot_api_dot_protos_dot_ydb__export__pb2


class ExportServiceStub(object):
  # missing associated documentation comment in .proto file
  pass

  def __init__(self, channel):
    """Constructor.

    Args:
      channel: A grpc.Channel.
    """
    self.ExportToYt = channel.unary_unary(
        '/Ydb.Export.V1.ExportService/ExportToYt',
        request_serializer=kikimr_dot_public_dot_api_dot_protos_dot_ydb__export__pb2.ExportToYtRequest.SerializeToString,
        response_deserializer=kikimr_dot_public_dot_api_dot_protos_dot_ydb__export__pb2.ExportToYtResponse.FromString,
        )
    self.ExportToS3 = channel.unary_unary(
        '/Ydb.Export.V1.ExportService/ExportToS3',
        request_serializer=kikimr_dot_public_dot_api_dot_protos_dot_ydb__export__pb2.ExportToS3Request.SerializeToString,
        response_deserializer=kikimr_dot_public_dot_api_dot_protos_dot_ydb__export__pb2.ExportToS3Response.FromString,
        )


class ExportServiceServicer(object):
  # missing associated documentation comment in .proto file
  pass

  def ExportToYt(self, request, context):
    """Exports data to YT.
    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 ExportToS3(self, request, context):
    """Exports data to S3.
    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 add_ExportServiceServicer_to_server(servicer, server):
  rpc_method_handlers = {
      'ExportToYt': grpc.unary_unary_rpc_method_handler(
          servicer.ExportToYt,
          request_deserializer=kikimr_dot_public_dot_api_dot_protos_dot_ydb__export__pb2.ExportToYtRequest.FromString,
          response_serializer=kikimr_dot_public_dot_api_dot_protos_dot_ydb__export__pb2.ExportToYtResponse.SerializeToString,
      ),
      'ExportToS3': grpc.unary_unary_rpc_method_handler(
          servicer.ExportToS3,
          request_deserializer=kikimr_dot_public_dot_api_dot_protos_dot_ydb__export__pb2.ExportToS3Request.FromString,
          response_serializer=kikimr_dot_public_dot_api_dot_protos_dot_ydb__export__pb2.ExportToS3Response.SerializeToString,
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'Ydb.Export.V1.ExportService', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))
