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
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