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 JavaPerson and vice versa and I don't want to do it manually by writing getter and setter for each fields because my object can have more than 10 fields. Is there a utility from protocol buffer that helps me doing that. So the would expect a utility class that does something like: JavaPerson javaPerson = PBConverter.convert(PBPerson pbPerson); PBPerson pbPerson = PBConverter.convert(JavaPerson javaPerson); Thanks, -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to proto...@googlegroups.com. To unsubscribe from this group, send email to protobuf+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.