[protobuf] Re: Faster way to convert C++ protobuf into a Python protobuf?

2016-01-14 Thread Philipp Schrader
Hi Josh, Thanks for the reply. I was worried someone would say as much :) Also, I am indeed using the C++ implementation. I'm very happy that this is possible! Thanks Phil On Tuesday, January 12, 2016 at 2:42:07 PM UTC-8, Josh Haberman wrote: > > Hi Phil, > > If you are not doing so already,

[protobuf] Strings and Arenas

2016-01-14 Thread Austin Schuh
Hi, I've got an application where I can't allocate memory while using protobufs. Arenas have been awesome for doing that. I'm able to allocate a big block of memory at startup time or stack allocate memory for the arena, and then use that for allocating protobufs. Thanks! I'd like to be able

[protobuf] Check whether a oneof field is set via reflection(C++ in v3.0.0-alpha-2)

2016-01-14 Thread Alfred Kwan
I would like to check (via reflection) whether a particular field within a oneof. This is the example message: message Foo { oneof Bar { int32 A = 1; string B = 2; } } I browse through the .h and it seems like the only plausible check is to examine it via

Re: [protobuf] Check whether a oneof field is set via reflection(C++ in v3.0.0-alpha-2)

2016-01-14 Thread 'Feng Xiao' via Protocol Buffers
On Thu, Jan 14, 2016 at 1:19 PM, Alfred Kwan wrote: > I would like to check (via reflection) whether a particular field within a > oneof. This is the example message: > > message Foo { >oneof Bar { > int32 A = 1; > string B = 2; >} > } > > > > I browse