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

from metamoto.services import scenario_service_pb2 as metamoto_dot_services_dot_scenario__service__pb2


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

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

    Args:
      channel: A grpc.Channel.
    """
    self.Setup = channel.unary_unary(
        '/metamoto.services.Scenario/Setup',
        request_serializer=metamoto_dot_services_dot_scenario__service__pb2.ScenarioSetupRequest.SerializeToString,
        response_deserializer=metamoto_dot_services_dot_scenario__service__pb2.ScenarioSetupReply.FromString,
        )
    self.Update = channel.unary_unary(
        '/metamoto.services.Scenario/Update',
        request_serializer=metamoto_dot_services_dot_scenario__service__pb2.ScenarioUpdateRequest.SerializeToString,
        response_deserializer=metamoto_dot_services_dot_scenario__service__pb2.ScenarioUpdateReply.FromString,
        )
    self.GetVehicleWaypoints = channel.unary_unary(
        '/metamoto.services.Scenario/GetVehicleWaypoints',
        request_serializer=metamoto_dot_services_dot_scenario__service__pb2.ScenarioGetVehicleWaypointsRequest.SerializeToString,
        response_deserializer=metamoto_dot_services_dot_scenario__service__pb2.ScenarioGetVehicleWaypointsReply.FromString,
        )
    self.SetVehicleWaypoints = channel.unary_unary(
        '/metamoto.services.Scenario/SetVehicleWaypoints',
        request_serializer=metamoto_dot_services_dot_scenario__service__pb2.ScenarioSetVehicleWaypointsRequest.SerializeToString,
        response_deserializer=metamoto_dot_services_dot_scenario__service__pb2.ScenarioSetVehicleWaypointsReply.FromString,
        )
    self.SetDriverModel = channel.unary_unary(
        '/metamoto.services.Scenario/SetDriverModel',
        request_serializer=metamoto_dot_services_dot_scenario__service__pb2.ScenarioSetDriverModelRequest.SerializeToString,
        response_deserializer=metamoto_dot_services_dot_scenario__service__pb2.ScenarioSetDriverModelReply.FromString,
        )


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

  def Setup(self, request, context):
    """Intended to be called from Controller or Sensor Setup in order to overwrite scenario fields prior to initialization.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def Update(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 GetVehicleWaypoints(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 SetVehicleWaypoints(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 SetDriverModel(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_ScenarioServicer_to_server(servicer, server):
  rpc_method_handlers = {
      'Setup': grpc.unary_unary_rpc_method_handler(
          servicer.Setup,
          request_deserializer=metamoto_dot_services_dot_scenario__service__pb2.ScenarioSetupRequest.FromString,
          response_serializer=metamoto_dot_services_dot_scenario__service__pb2.ScenarioSetupReply.SerializeToString,
      ),
      'Update': grpc.unary_unary_rpc_method_handler(
          servicer.Update,
          request_deserializer=metamoto_dot_services_dot_scenario__service__pb2.ScenarioUpdateRequest.FromString,
          response_serializer=metamoto_dot_services_dot_scenario__service__pb2.ScenarioUpdateReply.SerializeToString,
      ),
      'GetVehicleWaypoints': grpc.unary_unary_rpc_method_handler(
          servicer.GetVehicleWaypoints,
          request_deserializer=metamoto_dot_services_dot_scenario__service__pb2.ScenarioGetVehicleWaypointsRequest.FromString,
          response_serializer=metamoto_dot_services_dot_scenario__service__pb2.ScenarioGetVehicleWaypointsReply.SerializeToString,
      ),
      'SetVehicleWaypoints': grpc.unary_unary_rpc_method_handler(
          servicer.SetVehicleWaypoints,
          request_deserializer=metamoto_dot_services_dot_scenario__service__pb2.ScenarioSetVehicleWaypointsRequest.FromString,
          response_serializer=metamoto_dot_services_dot_scenario__service__pb2.ScenarioSetVehicleWaypointsReply.SerializeToString,
      ),
      'SetDriverModel': grpc.unary_unary_rpc_method_handler(
          servicer.SetDriverModel,
          request_deserializer=metamoto_dot_services_dot_scenario__service__pb2.ScenarioSetDriverModelRequest.FromString,
          response_serializer=metamoto_dot_services_dot_scenario__service__pb2.ScenarioSetDriverModelReply.SerializeToString,
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'metamoto.services.Scenario', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))
