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

import indoor_temperature_prediction_pb2 as indoor__temperature__prediction__pb2


class IndoorTemperaturePredictionStub(object):
  """The temperature service definition.
  """

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

    Args:
      channel: A grpc.Channel.
    """
    self.GetSecondOrderPrediction = channel.unary_unary(
        '/thermal_model.IndoorTemperaturePrediction/GetSecondOrderPrediction',
        request_serializer=indoor__temperature__prediction__pb2.SecondOrderPredictionRequest.SerializeToString,
        response_deserializer=indoor__temperature__prediction__pb2.PredictedTemperatureReply.FromString,
        )
    self.GetSecondOrderError = channel.unary_unary(
        '/thermal_model.IndoorTemperaturePrediction/GetSecondOrderError',
        request_serializer=indoor__temperature__prediction__pb2.ErrorRequest.SerializeToString,
        response_deserializer=indoor__temperature__prediction__pb2.ErrorReply.FromString,
        )


class IndoorTemperaturePredictionServicer(object):
  """The temperature service definition.
  """

  def GetSecondOrderPrediction(self, request, context):
    """A simple RPC.

    Predicts indoor temperatures.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def GetSecondOrderError(self, request, context):
    """Get errors associated with prediction
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')


def add_IndoorTemperaturePredictionServicer_to_server(servicer, server):
  rpc_method_handlers = {
      'GetSecondOrderPrediction': grpc.unary_unary_rpc_method_handler(
          servicer.GetSecondOrderPrediction,
          request_deserializer=indoor__temperature__prediction__pb2.SecondOrderPredictionRequest.FromString,
          response_serializer=indoor__temperature__prediction__pb2.PredictedTemperatureReply.SerializeToString,
      ),
      'GetSecondOrderError': grpc.unary_unary_rpc_method_handler(
          servicer.GetSecondOrderError,
          request_deserializer=indoor__temperature__prediction__pb2.ErrorRequest.FromString,
          response_serializer=indoor__temperature__prediction__pb2.ErrorReply.SerializeToString,
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'thermal_model.IndoorTemperaturePrediction', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))
