Re: [protobuf] Re: Protobuf Buffers v3.0.0-alpha-1

2015-02-08 Thread 'Feng Xiao' via Protocol Buffers
The union types are obsoleted by oneof: https://developers.google.com/protocol-buffers/docs/proto#oneof On Sat, Feb 7, 2015 at 4:53 AM, Alfred Kwan alfred...@gmail.com wrote: To implement the has_boo() in 3.0 implies one boolean per each truly optional field, which means additional maintenance

[protobuf] How to compile protocol buffers schema at runtime in Java?

2015-02-08 Thread Burak Emre Kabakcı
I can create the schema (Descriptors.Descriptor) at runtime dynamically using FileDescriptorProto, also I'm able to serialize and deserialize messages using DynamicMessage. However performance of DynamicMessage is not good enough because of the way it constructs the messages. I wonder whether

Re: [protobuf] Re: Protobuf Buffers v3.0.0-alpha-1

2015-02-08 Thread 'Feng Xiao' via Protocol Buffers
On Sat, Feb 7, 2015 at 4:31 AM, Jeremy Swigart jswig...@gmail.com wrote: I don't understand. If a message is a simple struct then the generated wrapper code would populate it with the default as defined by the proto it was compiled with wouldn't it? Are you suggesting that the implementation

Re: [protobuf] Re: Protobuf Buffers v3.0.0-alpha-1

2015-02-08 Thread Alfred Kwan
It seems to be an annoyance now to implement the recommended union types https://developers.google.com/protocol-buffers/docs/techniques#union with the 3.0 because has_foo() is not longer supported. Instead of one bool for each possible message within the union, what do you think about adding a