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

from admobilize.proto.salestool.v1alpha1 import salestool_service_pb2 as admobilize_dot_salestool_dot_v1alpha1_dot_salestool__service__pb2
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2


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

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

    Args:
      channel: A grpc.Channel.
    """
    self.ListCustomers = channel.unary_unary(
        '/admobilize.salestool.v1alpha1.SalesToolService/ListCustomers',
        request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
        response_deserializer=admobilize_dot_salestool_dot_v1alpha1_dot_salestool__service__pb2.ListCustomersResponse.FromString,
        )
    self.GetCustomer = channel.unary_unary(
        '/admobilize.salestool.v1alpha1.SalesToolService/GetCustomer',
        request_serializer=admobilize_dot_salestool_dot_v1alpha1_dot_salestool__service__pb2.GetCustomerRequest.SerializeToString,
        response_deserializer=admobilize_dot_salestool_dot_v1alpha1_dot_salestool__service__pb2.Customer.FromString,
        )


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

  def ListCustomers(self, request, context):
    """List customers metadata only
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def GetCustomer(self, request, context):
    """Get a customer with their devices
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')


def add_SalesToolServiceServicer_to_server(servicer, server):
  rpc_method_handlers = {
      'ListCustomers': grpc.unary_unary_rpc_method_handler(
          servicer.ListCustomers,
          request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
          response_serializer=admobilize_dot_salestool_dot_v1alpha1_dot_salestool__service__pb2.ListCustomersResponse.SerializeToString,
      ),
      'GetCustomer': grpc.unary_unary_rpc_method_handler(
          servicer.GetCustomer,
          request_deserializer=admobilize_dot_salestool_dot_v1alpha1_dot_salestool__service__pb2.GetCustomerRequest.FromString,
          response_serializer=admobilize_dot_salestool_dot_v1alpha1_dot_salestool__service__pb2.Customer.SerializeToString,
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'admobilize.salestool.v1alpha1.SalesToolService', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))
