[protobuf] Re: Issue 59 in protobuf: Add another option to support java_implement_interface

2010-05-18 Thread protobuf
Comment #14 on issue 59 by t.broyer: Add another option to support java_implement_interface http://code.google.com/p/protobuf/issues/detail?id=59 @kenton: neat idea! and it's not necessarily too late to add this as an alternate API to the existing writeTo/parseFrom/mergeFrom methods, to sho

[protobuf] Re: Issue 59 in protobuf: Add another option to support java_implement_interface

2010-05-17 Thread protobuf
Comment #13 on issue 59 by aantono: Add another option to support java_implement_interface http://code.google.com/p/protobuf/issues/detail?id=59 just an FYI, as its mentioned in issue 82, there is already a set of "formatters" for JSON, XML, etc, as part of the http://code.google.com/p/pro

[protobuf] Re: Issue 59 in protobuf: Add another option to support java_implement_interface

2010-05-17 Thread protobuf
Comment #12 on issue 59 by ken...@google.com: Add another option to support java_implement_interface http://code.google.com/p/protobuf/issues/detail?id=59 For the alternate codec case, I think a better approach would be to generate a separate class to perform the encoding/decoding. E.g.:

[protobuf] Re: Issue 59 in protobuf: Add another option to support java_implement_interface

2010-05-10 Thread protobuf
Comment #11 on issue 59 by t.broyer: Add another option to support java_implement_interface http://code.google.com/p/protobuf/issues/detail?id=59 Attached is a patch that adds insertion points (Java only) for code generator plugins. It uses a redundant but harmless "implements Message(Lite)