How can I programmatically set the value of a field by its name for a google protobuffer object in python. I checked the documentation and the API, but it was just not clear to me, and I could not find any examples.
I would like to do something like:
protoBufObj.set_field('foo', 42)
Thank.
source
share