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

from harix.rdk.proto.serviceapp import recognizeVision_pb2 as rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2


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

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

    Args:
      channel: A grpc.Channel.
    """
    self.BeforeRecognize = channel.unary_unary(
        '/serviceapp.Vision/BeforeRecognize',
        request_serializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.ImageInfo.SerializeToString,
        response_deserializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.VisionResponse.FromString,
        )
    self.CompleteRecognize = channel.unary_unary(
        '/serviceapp.Vision/CompleteRecognize',
        request_serializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.VisionRequest.SerializeToString,
        response_deserializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.VisionResponse.FromString,
        )
    self.OcrEvent = channel.unary_unary(
        '/serviceapp.Vision/OcrEvent',
        request_serializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.VisionRequest.SerializeToString,
        response_deserializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.EventResponse.FromString,
        )
    self.MoneyEvent = channel.unary_unary(
        '/serviceapp.Vision/MoneyEvent',
        request_serializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.VisionRequest.SerializeToString,
        response_deserializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.EventResponse.FromString,
        )
    self.CarPlateEvent = channel.unary_unary(
        '/serviceapp.Vision/CarPlateEvent',
        request_serializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.VisionRequest.SerializeToString,
        response_deserializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.EventResponse.FromString,
        )
    self.ObjectEvent = channel.unary_unary(
        '/serviceapp.Vision/ObjectEvent',
        request_serializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.VisionRequest.SerializeToString,
        response_deserializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.EventResponse.FromString,
        )
    self.FaceEvent = channel.unary_unary(
        '/serviceapp.Vision/FaceEvent',
        request_serializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.VisionRequest.SerializeToString,
        response_deserializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.EventResponse.FromString,
        )
    self.FaceAttrEvent = channel.unary_unary(
        '/serviceapp.Vision/FaceAttrEvent',
        request_serializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.VisionRequest.SerializeToString,
        response_deserializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.EventResponse.FromString,
        )
    self.CaptionEvent = channel.unary_unary(
        '/serviceapp.Vision/CaptionEvent',
        request_serializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.VisionRequest.SerializeToString,
        response_deserializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.EventResponse.FromString,
        )
    self.ClassifyEvent = channel.unary_unary(
        '/serviceapp.Vision/ClassifyEvent',
        request_serializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.VisionRequest.SerializeToString,
        response_deserializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.EventResponse.FromString,
        )
    self.FallEvent = channel.unary_unary(
        '/serviceapp.Vision/FallEvent',
        request_serializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.VisionRequest.SerializeToString,
        response_deserializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.EventResponse.FromString,
        )
    self.CompareEvent = channel.unary_unary(
        '/serviceapp.Vision/CompareEvent',
        request_serializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.VisionRequest.SerializeToString,
        response_deserializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.EventResponse.FromString,
        )
    self.VendingEvent = channel.unary_unary(
        '/serviceapp.Vision/VendingEvent',
        request_serializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.VisionRequest.SerializeToString,
        response_deserializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.EventResponse.FromString,
        )


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

  def BeforeRecognize(self, request, context):
    """can ask if recognize and other param info
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def CompleteRecognize(self, request, context):
    """send recognize result to service-app
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def OcrEvent(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 MoneyEvent(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 CarPlateEvent(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 ObjectEvent(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 FaceEvent(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 FaceAttrEvent(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 CaptionEvent(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 ClassifyEvent(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 FallEvent(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 CompareEvent(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 VendingEvent(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_VisionServicer_to_server(servicer, server):
  rpc_method_handlers = {
      'BeforeRecognize': grpc.unary_unary_rpc_method_handler(
          servicer.BeforeRecognize,
          request_deserializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.ImageInfo.FromString,
          response_serializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.VisionResponse.SerializeToString,
      ),
      'CompleteRecognize': grpc.unary_unary_rpc_method_handler(
          servicer.CompleteRecognize,
          request_deserializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.VisionRequest.FromString,
          response_serializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.VisionResponse.SerializeToString,
      ),
      'OcrEvent': grpc.unary_unary_rpc_method_handler(
          servicer.OcrEvent,
          request_deserializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.VisionRequest.FromString,
          response_serializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.EventResponse.SerializeToString,
      ),
      'MoneyEvent': grpc.unary_unary_rpc_method_handler(
          servicer.MoneyEvent,
          request_deserializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.VisionRequest.FromString,
          response_serializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.EventResponse.SerializeToString,
      ),
      'CarPlateEvent': grpc.unary_unary_rpc_method_handler(
          servicer.CarPlateEvent,
          request_deserializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.VisionRequest.FromString,
          response_serializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.EventResponse.SerializeToString,
      ),
      'ObjectEvent': grpc.unary_unary_rpc_method_handler(
          servicer.ObjectEvent,
          request_deserializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.VisionRequest.FromString,
          response_serializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.EventResponse.SerializeToString,
      ),
      'FaceEvent': grpc.unary_unary_rpc_method_handler(
          servicer.FaceEvent,
          request_deserializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.VisionRequest.FromString,
          response_serializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.EventResponse.SerializeToString,
      ),
      'FaceAttrEvent': grpc.unary_unary_rpc_method_handler(
          servicer.FaceAttrEvent,
          request_deserializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.VisionRequest.FromString,
          response_serializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.EventResponse.SerializeToString,
      ),
      'CaptionEvent': grpc.unary_unary_rpc_method_handler(
          servicer.CaptionEvent,
          request_deserializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.VisionRequest.FromString,
          response_serializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.EventResponse.SerializeToString,
      ),
      'ClassifyEvent': grpc.unary_unary_rpc_method_handler(
          servicer.ClassifyEvent,
          request_deserializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.VisionRequest.FromString,
          response_serializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.EventResponse.SerializeToString,
      ),
      'FallEvent': grpc.unary_unary_rpc_method_handler(
          servicer.FallEvent,
          request_deserializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.VisionRequest.FromString,
          response_serializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.EventResponse.SerializeToString,
      ),
      'CompareEvent': grpc.unary_unary_rpc_method_handler(
          servicer.CompareEvent,
          request_deserializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.VisionRequest.FromString,
          response_serializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.EventResponse.SerializeToString,
      ),
      'VendingEvent': grpc.unary_unary_rpc_method_handler(
          servicer.VendingEvent,
          request_deserializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.VisionRequest.FromString,
          response_serializer=rdk_dot_proto_dot_serviceapp_dot_recognizeVision__pb2.EventResponse.SerializeToString,
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'serviceapp.Vision', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))
