code: def payload(self, value):
      
      if not isinstance(value, rdfvalue.RDFValue):
        raise RuntimeError("Payload must be an RDFValue.")
  
      self.Set("args", value.SerializeToString())
  
      # pylint: disable=protected-access
      if value._age is not None:
        self.args_age = value._age
      # pylint: enable=protected-access
  
      self.args_rdf_name = value.__class__.__name__
docs: Automatically encode RDFValues into the message.