def METHOD_NAME(self, service, status):
    """Sets the status of a service.
    Args:
      service: string, the name of the service. NOTE, '' must be set.
      status: HealthCheckResponse.status enum value indicating the status of
        the service
    """
    with self._lock:
        if self._gracefully_shutting_down:
            return
        else:
            self._server_status[service] = status
            if service in self._send_response_callbacks:
                for send_response_callback in self._send_response_callbacks[
                        service]:
                    send_response_callback(
                        _health_pb2.HealthCheckResponse(status=status))