Re: [protobuf] ProtocolBuffers and existing classes

2011-01-25 Thread David Yu
Have you looked at http://code.google.com/p/protostuff? It allows you to skip all the code generation and simply use your existing classes (support for cyclic references too) On Tue, Jan 25, 2011 at 10:39 PM, Marco@worldcorp wrote: > Hello > i was wondering if protobuffer supports having an alre

Re: [protobuf] ProtocolBuffers and existing classes

2011-01-25 Thread Jason Hsueh
No, you cannot refer to arbitrary classes. Doing so would be difficult to support across languages, and significantly complicates features like reflection. On Tue, Jan 25, 2011 at 6:39 AM, Marco@worldcorp wrote: > Hello > i was wondering if protobuffer supports having an already existing > class

[protobuf] ProtocolBuffers and existing classes

2011-01-25 Thread Marco@worldcorp
Hello i was wondering if protobuffer supports having an already existing class embedded in the message. What i mean: from example i have seen, use writes a .proto buffer and protobuffer generates all related java classes. However, i have already existing classe which i'd like to embed in a .pro