[protobuf] Re: Issue 515 in protobuf: More intelligent enums

2014-11-18 Thread protobuf
Comment #9 on issue 515 by peterhan...@yahoo.com: More intelligent enums https://code.google.com/p/protobuf/issues/detail?id=515 Wrapping enum with another message looks ugly to me, and only simple way for this so far would be adding prefix for it, like enum CURRENCY { UNKNOWN = 0;

[protobuf] Re: Issue 464 in protobuf: Inefficient Java handling of repeated list of primitive types

2014-11-18 Thread protobuf
Comment #5 on issue 464 by ryan.fog...@gmail.com: Inefficient Java handling of repeated list of primitive types https://code.google.com/p/protobuf/issues/detail?id=464 In case anyone is wondering. I just diffed GPB versions 1.6.0 and 1.6.1 and there is no significant changes that would

[protobuf] oneof and extended messages

2014-11-18 Thread Himanshu Agarwal
Hello I was trying to compile following scenerio using protoc: message SampleMessage { repeated fixed32 i = 1; extensions 100 to 199; } extend SampleMessage { oneof test_oneof { string name = 126; fixed32 sub_message = 127; } } But getting following errors.

[protobuf] list values and string values

2014-11-18 Thread Himanshu Agarwal
Hello I was trying to populate and deserialize following message to string: message SampleSubMessage{ repeated string str = 1; repeated fixed32 val = 2; } message SampleMessage { repeated SampleSubMessage sub = 1; } I had already set the SetUseShortRepeatedPrimitives to true before

Re: [protobuf] oneof and extended messages

2014-11-18 Thread 'Feng Xiao' via Protocol Buffers
On Tue, Nov 18, 2014 at 12:22 AM, Himanshu Agarwal agarwal.himanshu...@gmail.com wrote: Hello I was trying to compile following scenerio using protoc: message SampleMessage { repeated fixed32 i = 1; extensions 100 to 199; } extend SampleMessage { oneof test_oneof { string name