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

import bakerstreet.bakerstreet_pb2 as bakerstreet__pb2


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

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

    Args:
      channel: A grpc.Channel.
    """
    self.Info = channel.unary_unary(
        '/com.appknox.bakerstreet.Moriarty/Info',
        request_serializer=bakerstreet__pb2.Message.SerializeToString,
        response_deserializer=bakerstreet__pb2.Device.FromString,
        )
    self.Echo = channel.unary_unary(
        '/com.appknox.bakerstreet.Moriarty/Echo',
        request_serializer=bakerstreet__pb2.Message.SerializeToString,
        response_deserializer=bakerstreet__pb2.Message.FromString,
        )
    self.LaunchApp = channel.unary_unary(
        '/com.appknox.bakerstreet.Moriarty/LaunchApp',
        request_serializer=bakerstreet__pb2.Message.SerializeToString,
        response_deserializer=bakerstreet__pb2.Message.FromString,
        )
    self.HealthCheck = channel.unary_unary(
        '/com.appknox.bakerstreet.Moriarty/HealthCheck',
        request_serializer=bakerstreet__pb2.Message.SerializeToString,
        response_deserializer=bakerstreet__pb2.Message.FromString,
        )
    self.RemovePackage = channel.unary_unary(
        '/com.appknox.bakerstreet.Moriarty/RemovePackage',
        request_serializer=bakerstreet__pb2.Message.SerializeToString,
        response_deserializer=bakerstreet__pb2.Message.FromString,
        )
    self.InstallPackage = channel.unary_unary(
        '/com.appknox.bakerstreet.Moriarty/InstallPackage',
        request_serializer=bakerstreet__pb2.Message.SerializeToString,
        response_deserializer=bakerstreet__pb2.Message.FromString,
        )
    self.ListPackages = channel.unary_unary(
        '/com.appknox.bakerstreet.Moriarty/ListPackages',
        request_serializer=bakerstreet__pb2.Message.SerializeToString,
        response_deserializer=bakerstreet__pb2.Packages.FromString,
        )
    self.ConfigureProxy = channel.unary_unary(
        '/com.appknox.bakerstreet.Moriarty/ConfigureProxy',
        request_serializer=bakerstreet__pb2.Message.SerializeToString,
        response_deserializer=bakerstreet__pb2.Message.FromString,
        )
    self.ConfigureGadget = channel.unary_unary(
        '/com.appknox.bakerstreet.Moriarty/ConfigureGadget',
        request_serializer=bakerstreet__pb2.Message.SerializeToString,
        response_deserializer=bakerstreet__pb2.Message.FromString,
        )


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

  def Info(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 Echo(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 LaunchApp(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 HealthCheck(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 RemovePackage(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 InstallPackage(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 ListPackages(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 ConfigureProxy(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 ConfigureGadget(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_MoriartyServicer_to_server(servicer, server):
  rpc_method_handlers = {
      'Info': grpc.unary_unary_rpc_method_handler(
          servicer.Info,
          request_deserializer=bakerstreet__pb2.Message.FromString,
          response_serializer=bakerstreet__pb2.Device.SerializeToString,
      ),
      'Echo': grpc.unary_unary_rpc_method_handler(
          servicer.Echo,
          request_deserializer=bakerstreet__pb2.Message.FromString,
          response_serializer=bakerstreet__pb2.Message.SerializeToString,
      ),
      'LaunchApp': grpc.unary_unary_rpc_method_handler(
          servicer.LaunchApp,
          request_deserializer=bakerstreet__pb2.Message.FromString,
          response_serializer=bakerstreet__pb2.Message.SerializeToString,
      ),
      'HealthCheck': grpc.unary_unary_rpc_method_handler(
          servicer.HealthCheck,
          request_deserializer=bakerstreet__pb2.Message.FromString,
          response_serializer=bakerstreet__pb2.Message.SerializeToString,
      ),
      'RemovePackage': grpc.unary_unary_rpc_method_handler(
          servicer.RemovePackage,
          request_deserializer=bakerstreet__pb2.Message.FromString,
          response_serializer=bakerstreet__pb2.Message.SerializeToString,
      ),
      'InstallPackage': grpc.unary_unary_rpc_method_handler(
          servicer.InstallPackage,
          request_deserializer=bakerstreet__pb2.Message.FromString,
          response_serializer=bakerstreet__pb2.Message.SerializeToString,
      ),
      'ListPackages': grpc.unary_unary_rpc_method_handler(
          servicer.ListPackages,
          request_deserializer=bakerstreet__pb2.Message.FromString,
          response_serializer=bakerstreet__pb2.Packages.SerializeToString,
      ),
      'ConfigureProxy': grpc.unary_unary_rpc_method_handler(
          servicer.ConfigureProxy,
          request_deserializer=bakerstreet__pb2.Message.FromString,
          response_serializer=bakerstreet__pb2.Message.SerializeToString,
      ),
      'ConfigureGadget': grpc.unary_unary_rpc_method_handler(
          servicer.ConfigureGadget,
          request_deserializer=bakerstreet__pb2.Message.FromString,
          response_serializer=bakerstreet__pb2.Message.SerializeToString,
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'com.appknox.bakerstreet.Moriarty', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))


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

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

    Args:
      channel: A grpc.Channel.
    """
    self.Poll = channel.unary_unary(
        '/com.appknox.bakerstreet.Mycroft/Poll',
        request_serializer=bakerstreet__pb2.Device.SerializeToString,
        response_deserializer=bakerstreet__pb2.Message.FromString,
        )
    self.PushFinding = channel.unary_unary(
        '/com.appknox.bakerstreet.Mycroft/PushFinding',
        request_serializer=bakerstreet__pb2.Finding.SerializeToString,
        response_deserializer=bakerstreet__pb2.Message.FromString,
        )


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

  def Poll(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 PushFinding(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_MycroftServicer_to_server(servicer, server):
  rpc_method_handlers = {
      'Poll': grpc.unary_unary_rpc_method_handler(
          servicer.Poll,
          request_deserializer=bakerstreet__pb2.Device.FromString,
          response_serializer=bakerstreet__pb2.Message.SerializeToString,
      ),
      'PushFinding': grpc.unary_unary_rpc_method_handler(
          servicer.PushFinding,
          request_deserializer=bakerstreet__pb2.Finding.FromString,
          response_serializer=bakerstreet__pb2.Message.SerializeToString,
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'com.appknox.bakerstreet.Mycroft', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))
