def __getstate__(self):
    return dict(data=self.SerializeToString())
Applies pre_save and get_db_prep_save of embedded instance
dataset/ETHPy150Open google/grr/grr/lib/rdfvalues/structs.py/RDFStruct.__getstate__--crossover with--dataset/ETHPy150Open django-nonrel/djangotoolbox/djangotoolbox/fields.py/EmbeddedModelField.get_db_prep_save