'Automatically encode RDFValues into the message.'

@payload.setter
def payload(self, value):

    if (not isinstance(value, rdfvalue.RDFValue)):
        raise RuntimeError('Payload    must    be    an    RDFValue.')
    self.Set('args', value.SerializeToString())
    if (value._age is not None):
        self.args_age = value._age
    self.args_rdf_name = value.__class__.__name__
