[protobuf] creating a message from another but changing only one field

2011-10-10 Thread marco gaddoni
Hello, i am using protocol buffers to comunicate between two programs, one in c# and the other in c++. it is working well. i have a generic question with the c# (and i think the java) api: how do you create a different message from an existing one but changin only one field? say that i have

Re: [protobuf] creating a message from another but changing only one field

2011-10-11 Thread marco gaddoni
7;s methods, then > build a new (immutable) message using Builder.build(). > there's also the method foo.toBuilder() which will do the same thing. > > ---------- > *From:* marco gaddoni > *To:* prot...@googlegroups.com > *Sent:* Monday, October 10, 2011