The documentation says it's immutable:
this code is heavily used in production, so you can bank on that.

The only way I can see that this would be accomplished would be by
returning a *copy* of the underlying protocol buffer, wrapped in something
without mutators.  Copying protocol buffers is quite cheap and this
wouldn't require volatile or any locks to work. But I don't have access to
code right here, right now to check this...

You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to