In addition to the large Protostuff library that has already been mentioned, perhaps you can also try JSON instead, unless you should use protobuf for compatibility reasons. Java JSON processing is not only very convenient (annotation-based, automatic detection), but also competitive in performance (see jvm-serializers results, for example).
source share