# 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
import service_pb2 as service__pb2


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

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

    Args:
      channel: A grpc.Channel.
    """
    self.NotifyServiceUpdate = channel.unary_unary(
        '/centralized_cybersecurity.CentralizedCyberSecurityService/NotifyServiceUpdate',
        request_serializer=service__pb2.Service.SerializeToString,
        response_deserializer=context__pb2.Empty.FromString,
        )
    self.DetectAttack = channel.unary_unary(
        '/centralized_cybersecurity.CentralizedCyberSecurityService/DetectAttack',
        request_serializer=context__pb2.Empty.SerializeToString,
        response_deserializer=context__pb2.Empty.FromString,
        )
    self.ReportSummarizedKpi = channel.unary_unary(
        '/centralized_cybersecurity.CentralizedCyberSecurityService/ReportSummarizedKpi',
        request_serializer=monitoring__pb2.KpiList.SerializeToString,
        response_deserializer=context__pb2.Empty.FromString,
        )
    self.ReportKpi = channel.unary_unary(
        '/centralized_cybersecurity.CentralizedCyberSecurityService/ReportKpi',
        request_serializer=monitoring__pb2.KpiList.SerializeToString,
        response_deserializer=context__pb2.Empty.FromString,
        )


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

  def NotifyServiceUpdate(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 DetectAttack(self, request, context):
    """rpc that triggers the attack detection loop
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def ReportSummarizedKpi(self, request, context):
    """rpc called by the distributed component to report KPIs
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def ReportKpi(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_CentralizedCyberSecurityServiceServicer_to_server(servicer, server):
  rpc_method_handlers = {
      'NotifyServiceUpdate': grpc.unary_unary_rpc_method_handler(
          servicer.NotifyServiceUpdate,
          request_deserializer=service__pb2.Service.FromString,
          response_serializer=context__pb2.Empty.SerializeToString,
      ),
      'DetectAttack': grpc.unary_unary_rpc_method_handler(
          servicer.DetectAttack,
          request_deserializer=context__pb2.Empty.FromString,
          response_serializer=context__pb2.Empty.SerializeToString,
      ),
      'ReportSummarizedKpi': grpc.unary_unary_rpc_method_handler(
          servicer.ReportSummarizedKpi,
          request_deserializer=monitoring__pb2.KpiList.FromString,
          response_serializer=context__pb2.Empty.SerializeToString,
      ),
      'ReportKpi': grpc.unary_unary_rpc_method_handler(
          servicer.ReportKpi,
          request_deserializer=monitoring__pb2.KpiList.FromString,
          response_serializer=context__pb2.Empty.SerializeToString,
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'centralized_cybersecurity.CentralizedCyberSecurityService', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))
