On Wed, Jul 15, 2009 at 10:56 AM, jasonh <jas...@google.com> wrote:

> Foo f = Foo.newBuilder().mergeFrom(...).setCookie(newCookieVal).build
> ();


There's actually a shortcut for this:  the toBuilder() method of the Message
interface returns a Builder that is pre-initialized as a copy of that
message.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to protobuf@googlegroups.com
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to