# 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 DistributedCyberSecurityServiceStub(object):
  # missing associated documentation comment in .proto file
  pass

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

    Args:
      channel: A grpc.Channel.
    """
    self.DetectAttack = channel.unary_unary(
        '/distributed_cybersecurity.DistributedCyberSecurityService/DetectAttack',
        request_serializer=context__pb2.Empty.SerializeToString,
        response_deserializer=context__pb2.Empty.FromString,
        )
    self.ReportKpi = channel.unary_unary(
        '/distributed_cybersecurity.DistributedCyberSecurityService/ReportKpi',
        request_serializer=monitoring__pb2.KpiList.SerializeToString,
        response_deserializer=context__pb2.Empty.FromString,
        )


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

  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 ReportKpi(self, request, context):
    """receiving KPIs from monitored devices (packed processors)
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')


def add_DistributedCyberSecurityServiceServicer_to_server(servicer, server):
  rpc_method_handlers = {
      'DetectAttack': grpc.unary_unary_rpc_method_handler(
          servicer.DetectAttack,
          request_deserializer=context__pb2.Empty.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(
      'distributed_cybersecurity.DistributedCyberSecurityService', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))
