parameters: (self, message)
docstring: Handle a Request message.
  
      Args:
        message: The RpcMessage object.
docstring_summary: Handle a Request message.
docstring_tokens: Handle a Request message .
function: def _HandleRequest(self, message):
      """Handle a Request message.
  
      Args:
        message: The RpcMessage object.
      """
      if not self._service:
        ola_logger.warning('No service registered')
        return
  
      descriptor = self._service.GetDescriptor()
      method = descriptor.FindMethodByName(message.name)
      if not method:
        ola_logger.warning('Failed to get method descriptor for %s', message.name)
        self._SendNotImplemented(message.id)
        return
  
      request_pb = self._service.GetRequestClass(method)()
      request_pb.ParseFromString(message.buffer)
      controller = SimpleRpcController()
      request = OutstandingRequest(message.id, controller)
  
      if message.id in self._outstanding_requests:
        ola_logger.warning('Duplicate request for %d', message.id)
        self._SendRequestFailed(message.id)
  
      self._outstanding_requests[message.id] = request
      self._service.CallMethod(method, request.controller, request_pb,
                               lambda x: self.RequestComplete(request, x))
function_tokens: def _HandleRequest ( self , message ) : if not self . _service : ola_logger . warning ( 'No service registered' ) return descriptor = self . _service . GetDescriptor ( ) method = descriptor . FindMethodByName ( message . name ) if not method : ola_logger . warning ( 'Failed to get method descriptor for %s' , message . name ) self . _SendNotImplemented ( message . id ) return request_pb = self . _service . GetRequestClass ( method ) ( ) request_pb . ParseFromString ( message . buffer ) controller = SimpleRpcController ( ) request = OutstandingRequest ( message . id , controller ) if message . id in self . _outstanding_requests : ola_logger . warning ( 'Duplicate request for %d' , message . id ) self . _SendRequestFailed ( message . id ) self . _outstanding_requests [ message . id ] = request self . _service . CallMethod ( method , request . controller , request_pb , lambda x : self . RequestComplete ( request , x ) )