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

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

    Args:
      channel: A grpc.Channel.
    """
    self.check_credentials = channel.unary_unary(
        '/compute.ComputeService/check_credentials',
        request_serializer=context__pb2.TeraFlowController.SerializeToString,
        response_deserializer=context__pb2.AuthenticationResult.FromString,
        )
    self.get_connectivity_service_status = channel.unary_unary(
        '/compute.ComputeService/get_connectivity_service_status',
        request_serializer=service__pb2.ServiceId.SerializeToString,
        response_deserializer=service__pb2.ServiceState.FromString,
        )
    self.create_connectivity_service = channel.unary_unary(
        '/compute.ComputeService/create_connectivity_service',
        request_serializer=service__pb2.Service.SerializeToString,
        response_deserializer=service__pb2.ServiceId.FromString,
        )
    self.edit_connectivity_service = channel.unary_unary(
        '/compute.ComputeService/edit_connectivity_service',
        request_serializer=service__pb2.Service.SerializeToString,
        response_deserializer=service__pb2.ServiceId.FromString,
        )
    self.delete_connectivity_service = channel.unary_unary(
        '/compute.ComputeService/delete_connectivity_service',
        request_serializer=service__pb2.Service.SerializeToString,
        response_deserializer=context__pb2.Empty.FromString,
        )
    self.get_all_active_connectivity_services = channel.unary_unary(
        '/compute.ComputeService/get_all_active_connectivity_services',
        request_serializer=context__pb2.Empty.SerializeToString,
        response_deserializer=service__pb2.ServiceIdList.FromString,
        )
    self.clear_all_connectivity_services = channel.unary_unary(
        '/compute.ComputeService/clear_all_connectivity_services',
        request_serializer=context__pb2.Empty.SerializeToString,
        response_deserializer=context__pb2.Empty.FromString,
        )


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

  def check_credentials(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 get_connectivity_service_status(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 create_connectivity_service(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 edit_connectivity_service(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 delete_connectivity_service(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 get_all_active_connectivity_services(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 clear_all_connectivity_services(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_ComputeServiceServicer_to_server(servicer, server):
  rpc_method_handlers = {
      'check_credentials': grpc.unary_unary_rpc_method_handler(
          servicer.check_credentials,
          request_deserializer=context__pb2.TeraFlowController.FromString,
          response_serializer=context__pb2.AuthenticationResult.SerializeToString,
      ),
      'get_connectivity_service_status': grpc.unary_unary_rpc_method_handler(
          servicer.get_connectivity_service_status,
          request_deserializer=service__pb2.ServiceId.FromString,
          response_serializer=service__pb2.ServiceState.SerializeToString,
      ),
      'create_connectivity_service': grpc.unary_unary_rpc_method_handler(
          servicer.create_connectivity_service,
          request_deserializer=service__pb2.Service.FromString,
          response_serializer=service__pb2.ServiceId.SerializeToString,
      ),
      'edit_connectivity_service': grpc.unary_unary_rpc_method_handler(
          servicer.edit_connectivity_service,
          request_deserializer=service__pb2.Service.FromString,
          response_serializer=service__pb2.ServiceId.SerializeToString,
      ),
      'delete_connectivity_service': grpc.unary_unary_rpc_method_handler(
          servicer.delete_connectivity_service,
          request_deserializer=service__pb2.Service.FromString,
          response_serializer=context__pb2.Empty.SerializeToString,
      ),
      'get_all_active_connectivity_services': grpc.unary_unary_rpc_method_handler(
          servicer.get_all_active_connectivity_services,
          request_deserializer=context__pb2.Empty.FromString,
          response_serializer=service__pb2.ServiceIdList.SerializeToString,
      ),
      'clear_all_connectivity_services': grpc.unary_unary_rpc_method_handler(
          servicer.clear_all_connectivity_services,
          request_deserializer=context__pb2.Empty.FromString,
          response_serializer=context__pb2.Empty.SerializeToString,
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'compute.ComputeService', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))
