Re: [protobuf] Newbie question about union types

2013-10-08 Thread Howard
OK, well you can really excuse me now, as I think I figured this out. Looks like I use the mutable_create_request method to access the create_request message, then I can use the accessors from that class to set the fields. I was expecting to create my own class, then somehow add that class

Re: [protobuf] Newbie question about union types

2013-10-08 Thread Feng Xiao
See the section of Singular Embedded Message Fields: https://developers.google.com/protocol-buffers/docs/reference/cpp-generated#fields On Tue, Oct 8, 2013 at 10:58 AM, Howard Lander how...@renci.org wrote: Hi all Please excuse this question from a newcomer; any assistance is greatly

Re: [protobuf] Newbie question about union types

2013-10-08 Thread Jie Luo
If you want a similar way of set_ function, you could use mutable_ and CopyFrom https://cs.corp.google.com/#piper///depot/google3/net/proto2/public/message.hl=158 Or set_allocated_ 2013/10/9 Howard how...@renci.org: OK, well you can really excuse me now, as I think I figured this out. Looks