Re: [protobuf] Re: Converting JSON Text Into PB Bytes Type

2011-01-03 Thread Siju Varghese
You could use https://github.com/sijuv/protobuf-codec . You can check the test case at https://github.com/sijuv/protobuf-codec/blob/master/protobuf-codec-json/src/test/java/protobuf/codec/json/JsonCodecTest.javafor usage. This library is listed under the google protobuf ThirdPartyAddOns wiki as "An

[protobuf] Re: Issue 60 in protobuf: Support static values in .proto files

2011-01-03 Thread protobuf
Comment #8 on issue 60 by mer...@google.com: Support static values in .proto files http://code.google.com/p/protobuf/issues/detail?id=60 I've been wishing for this once in a while. There's a workaround: Protobuf actually does have a syntax for literal values: field defaults. So you can def