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

import context_pb2 as context__pb2
import service_pb2 as service__pb2


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

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

    Args:
      channel: A grpc.Channel.
    """
    self.GetServiceList = channel.unary_unary(
        '/service.ServiceService/GetServiceList',
        request_serializer=context__pb2.Empty.SerializeToString,
        response_deserializer=service__pb2.ServiceList.FromString,
        )
    self.CreateService = channel.unary_unary(
        '/service.ServiceService/CreateService',
        request_serializer=service__pb2.Service.SerializeToString,
        response_deserializer=service__pb2.ServiceId.FromString,
        )
    self.UpdateService = channel.unary_unary(
        '/service.ServiceService/UpdateService',
        request_serializer=service__pb2.Service.SerializeToString,
        response_deserializer=service__pb2.ServiceId.FromString,
        )
    self.DeleteService = channel.unary_unary(
        '/service.ServiceService/DeleteService',
        request_serializer=service__pb2.Service.SerializeToString,
        response_deserializer=service__pb2.ServiceId.FromString,
        )
    self.GetServiceById = channel.unary_unary(
        '/service.ServiceService/GetServiceById',
        request_serializer=service__pb2.ServiceId.SerializeToString,
        response_deserializer=service__pb2.Service.FromString,
        )
    self.GetConnectionList = channel.unary_unary(
        '/service.ServiceService/GetConnectionList',
        request_serializer=context__pb2.Empty.SerializeToString,
        response_deserializer=service__pb2.ConnectionList.FromString,
        )


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

  def GetServiceList(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 CreateService(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 UpdateService(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 DeleteService(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 GetServiceById(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 GetConnectionList(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_ServiceServiceServicer_to_server(servicer, server):
  rpc_method_handlers = {
      'GetServiceList': grpc.unary_unary_rpc_method_handler(
          servicer.GetServiceList,
          request_deserializer=context__pb2.Empty.FromString,
          response_serializer=service__pb2.ServiceList.SerializeToString,
      ),
      'CreateService': grpc.unary_unary_rpc_method_handler(
          servicer.CreateService,
          request_deserializer=service__pb2.Service.FromString,
          response_serializer=service__pb2.ServiceId.SerializeToString,
      ),
      'UpdateService': grpc.unary_unary_rpc_method_handler(
          servicer.UpdateService,
          request_deserializer=service__pb2.Service.FromString,
          response_serializer=service__pb2.ServiceId.SerializeToString,
      ),
      'DeleteService': grpc.unary_unary_rpc_method_handler(
          servicer.DeleteService,
          request_deserializer=service__pb2.Service.FromString,
          response_serializer=service__pb2.ServiceId.SerializeToString,
      ),
      'GetServiceById': grpc.unary_unary_rpc_method_handler(
          servicer.GetServiceById,
          request_deserializer=service__pb2.ServiceId.FromString,
          response_serializer=service__pb2.Service.SerializeToString,
      ),
      'GetConnectionList': grpc.unary_unary_rpc_method_handler(
          servicer.GetConnectionList,
          request_deserializer=context__pb2.Empty.FromString,
          response_serializer=service__pb2.ConnectionList.SerializeToString,
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'service.ServiceService', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))
