Re: [protobuf] Transfer protocol buffer object to POJO java object

2010-12-28 Thread Kenton Varda
I don't know of any existing tools for this. You could write code that does this via reflection (protobuf reflection on the protobuf object, and basic java reflection on the POJO). Or, you could write a protoc plugin which generates the code you need, though that will be a lot more complicated.

[protobuf] Transfer protocol buffer object to POJO java object

2010-12-28 Thread Sean Nguyen
Hi, I have a protocol buffer object like: message PBPerson { optional string lastName = 1; optional string firstName = 2; } I also have another java object class JavaPerson { private String lastName; private String firstName; // setter and getter } I want to convert from PBPerson to JavaPerso