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

import context_pb2 as context__pb2
import monitoring_pb2 as monitoring__pb2


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

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

    Args:
      channel: A grpc.Channel.
    """
    self.IncludeKpi = channel.unary_unary(
        '/monitoring.MonitoringService/IncludeKpi',
        request_serializer=monitoring__pb2.Kpi.SerializeToString,
        response_deserializer=context__pb2.Empty.FromString,
        )
    self.MonitorKpi = channel.unary_unary(
        '/monitoring.MonitoringService/MonitorKpi',
        request_serializer=monitoring__pb2.KpiDevice.SerializeToString,
        response_deserializer=context__pb2.Empty.FromString,
        )
    self.GetStream_kpi = channel.unary_stream(
        '/monitoring.MonitoringService/GetStream_kpi',
        request_serializer=monitoring__pb2.KpiId.SerializeToString,
        response_deserializer=monitoring__pb2.Kpi.FromString,
        )
    self.GetInstantKpi = channel.unary_unary(
        '/monitoring.MonitoringService/GetInstantKpi',
        request_serializer=monitoring__pb2.KpiId.SerializeToString,
        response_deserializer=monitoring__pb2.Kpi.FromString,
        )


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

  def IncludeKpi(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 MonitorKpi(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 GetStream_kpi(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 GetInstantKpi(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_MonitoringServiceServicer_to_server(servicer, server):
  rpc_method_handlers = {
      'IncludeKpi': grpc.unary_unary_rpc_method_handler(
          servicer.IncludeKpi,
          request_deserializer=monitoring__pb2.Kpi.FromString,
          response_serializer=context__pb2.Empty.SerializeToString,
      ),
      'MonitorKpi': grpc.unary_unary_rpc_method_handler(
          servicer.MonitorKpi,
          request_deserializer=monitoring__pb2.KpiDevice.FromString,
          response_serializer=context__pb2.Empty.SerializeToString,
      ),
      'GetStream_kpi': grpc.unary_stream_rpc_method_handler(
          servicer.GetStream_kpi,
          request_deserializer=monitoring__pb2.KpiId.FromString,
          response_serializer=monitoring__pb2.Kpi.SerializeToString,
      ),
      'GetInstantKpi': grpc.unary_unary_rpc_method_handler(
          servicer.GetInstantKpi,
          request_deserializer=monitoring__pb2.KpiId.FromString,
          response_serializer=monitoring__pb2.Kpi.SerializeToString,
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'monitoring.MonitoringService', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))
