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

from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
from voltha_protos import ponsim_pb2 as voltha__protos_dot_ponsim__pb2


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

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

    Args:
      channel: A grpc.Channel.
    """
    self.SendFrame = channel.unary_unary(
        '/voltha.PonSim/SendFrame',
        request_serializer=voltha__protos_dot_ponsim__pb2.PonSimFrame.SerializeToString,
        response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
        )
    self.ReceiveFrames = channel.unary_stream(
        '/voltha.PonSim/ReceiveFrames',
        request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
        response_deserializer=voltha__protos_dot_ponsim__pb2.PonSimFrame.FromString,
        )
    self.GetDeviceInfo = channel.unary_unary(
        '/voltha.PonSim/GetDeviceInfo',
        request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
        response_deserializer=voltha__protos_dot_ponsim__pb2.PonSimDeviceInfo.FromString,
        )
    self.UpdateFlowTable = channel.unary_unary(
        '/voltha.PonSim/UpdateFlowTable',
        request_serializer=voltha__protos_dot_ponsim__pb2.FlowTable.SerializeToString,
        response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
        )
    self.GetStats = channel.unary_unary(
        '/voltha.PonSim/GetStats',
        request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
        response_deserializer=voltha__protos_dot_ponsim__pb2.PonSimMetrics.FromString,
        )


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

  def SendFrame(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 ReceiveFrames(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 GetDeviceInfo(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 UpdateFlowTable(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 GetStats(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_PonSimServicer_to_server(servicer, server):
  rpc_method_handlers = {
      'SendFrame': grpc.unary_unary_rpc_method_handler(
          servicer.SendFrame,
          request_deserializer=voltha__protos_dot_ponsim__pb2.PonSimFrame.FromString,
          response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
      ),
      'ReceiveFrames': grpc.unary_stream_rpc_method_handler(
          servicer.ReceiveFrames,
          request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
          response_serializer=voltha__protos_dot_ponsim__pb2.PonSimFrame.SerializeToString,
      ),
      'GetDeviceInfo': grpc.unary_unary_rpc_method_handler(
          servicer.GetDeviceInfo,
          request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
          response_serializer=voltha__protos_dot_ponsim__pb2.PonSimDeviceInfo.SerializeToString,
      ),
      'UpdateFlowTable': grpc.unary_unary_rpc_method_handler(
          servicer.UpdateFlowTable,
          request_deserializer=voltha__protos_dot_ponsim__pb2.FlowTable.FromString,
          response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
      ),
      'GetStats': grpc.unary_unary_rpc_method_handler(
          servicer.GetStats,
          request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
          response_serializer=voltha__protos_dot_ponsim__pb2.PonSimMetrics.SerializeToString,
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'voltha.PonSim', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))
