The MergeFrom semantics are clearly defined: For primitive types the
values are replaced when set; for repeated types the values are
It would be a useful enhancement to support a second method:
MergeFromReplace – which would have symmetric behavior for primitive
as well as repeated types. Instead of concatenating the array
elements – the array contents of the source (if set) – would replace
the array contents of the destination.
You received this message because you are subscribed to the Google Groups
"Protocol Buffers" group.
To post to this group, send email to firstname.lastname@example.org.
To unsubscribe from this group, send email to
For more options, visit this group at