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

from persontracking import lidar_tracker_pb2 as persontracking_dot_lidar__tracker__pb2


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

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

    Args:
      channel: A grpc.Channel.
    """
    self.set_tracking_group = channel.unary_unary(
        '/persontracking.PersonTracking/set_tracking_group',
        request_serializer=persontracking_dot_lidar__tracker__pb2.Int32Value.SerializeToString,
        response_deserializer=persontracking_dot_lidar__tracker__pb2.Empty.FromString,
        )
    self.stop_tracking = channel.unary_unary(
        '/persontracking.PersonTracking/stop_tracking',
        request_serializer=persontracking_dot_lidar__tracker__pb2.Empty.SerializeToString,
        response_deserializer=persontracking_dot_lidar__tracker__pb2.Empty.FromString,
        )
    self.start_tracking = channel.unary_unary(
        '/persontracking.PersonTracking/start_tracking',
        request_serializer=persontracking_dot_lidar__tracker__pb2.Int32Value.SerializeToString,
        response_deserializer=persontracking_dot_lidar__tracker__pb2.Empty.FromString,
        )


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

  def set_tracking_group(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 stop_tracking(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 start_tracking(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_PersonTrackingServicer_to_server(servicer, server):
  rpc_method_handlers = {
      'set_tracking_group': grpc.unary_unary_rpc_method_handler(
          servicer.set_tracking_group,
          request_deserializer=persontracking_dot_lidar__tracker__pb2.Int32Value.FromString,
          response_serializer=persontracking_dot_lidar__tracker__pb2.Empty.SerializeToString,
      ),
      'stop_tracking': grpc.unary_unary_rpc_method_handler(
          servicer.stop_tracking,
          request_deserializer=persontracking_dot_lidar__tracker__pb2.Empty.FromString,
          response_serializer=persontracking_dot_lidar__tracker__pb2.Empty.SerializeToString,
      ),
      'start_tracking': grpc.unary_unary_rpc_method_handler(
          servicer.start_tracking,
          request_deserializer=persontracking_dot_lidar__tracker__pb2.Int32Value.FromString,
          response_serializer=persontracking_dot_lidar__tracker__pb2.Empty.SerializeToString,
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'persontracking.PersonTracking', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))
