I'm using R for coding. I need to add/update an optional field in my protobuffer files. The function "add" works well for repeated fields; but it does not seem to be compatible for optional fields.
example:
A$add("gender", X["gender"]); # Works if A is repeated; but not when it's optional!
Do you know what function I should use for this purpose?
Thanks