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

from flyteidl.datacatalog import datacatalog_pb2 as flyteidl_dot_datacatalog_dot_datacatalog__pb2


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

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

    Args:
      channel: A grpc.Channel.
    """
    self.Get = channel.unary_unary(
        '/pb.lyft.datacatalog.Artifacts/Get',
        request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetRequest.SerializeToString,
        response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetResponse.FromString,
        )
    self.Query = channel.unary_unary(
        '/pb.lyft.datacatalog.Artifacts/Query',
        request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.QueryRequest.SerializeToString,
        response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.QueryResponse.FromString,
        )
    self.Create = channel.unary_unary(
        '/pb.lyft.datacatalog.Artifacts/Create',
        request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateRequest.SerializeToString,
        response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateResponse.FromString,
        )
    self.GenerateProvenance = channel.unary_unary(
        '/pb.lyft.datacatalog.Artifacts/GenerateProvenance',
        request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GenerateProvenanceRequest.SerializeToString,
        response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GenerateProvenanceResponse.FromString,
        )


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

  def Get(self, request, context):
    # missing associated documentation comment in .proto file
    pass
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def Query(self, request, context):
    # missing associated documentation comment in .proto file
    pass
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def Create(self, request, context):
    # missing associated documentation comment in .proto file
    pass
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def GenerateProvenance(self, request, context):
    # missing associated documentation comment in .proto file
    pass
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')


def add_ArtifactsServicer_to_server(servicer, server):
  rpc_method_handlers = {
      'Get': grpc.unary_unary_rpc_method_handler(
          servicer.Get,
          request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetRequest.FromString,
          response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetResponse.SerializeToString,
      ),
      'Query': grpc.unary_unary_rpc_method_handler(
          servicer.Query,
          request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.QueryRequest.FromString,
          response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.QueryResponse.SerializeToString,
      ),
      'Create': grpc.unary_unary_rpc_method_handler(
          servicer.Create,
          request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateRequest.FromString,
          response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateResponse.SerializeToString,
      ),
      'GenerateProvenance': grpc.unary_unary_rpc_method_handler(
          servicer.GenerateProvenance,
          request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GenerateProvenanceRequest.FromString,
          response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GenerateProvenanceResponse.SerializeToString,
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'pb.lyft.datacatalog.Artifacts', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))
