[protobuf] Message References

2009-12-08 Thread Chris
Hey, there are some threads in this group hinting to special solutions in cases where you want to have some kind of references build in - or on top of - protobuf messages. For example you would want that to model DAG (or even cyclic graph) structures. I was thinking about how I would want such

Re: [protobuf] Message References

2009-12-08 Thread Marc Gravell
That is actually pretty similar to a scheme I had in mind to (opt-in only) get protobuf-net working at graph serialization. I don't think it would be easy to fit into the existing .proto or codegen, but protobuf-net doesn't actually demand these. Before I go on - the first thing I'll say is that

Re: [protobuf] Message References

2009-12-08 Thread Adam Vartanian
A standard protocol buffer message type ptr_B from which a flat Java class will be generated does not seem adequat to to so. Instead some new abstract Class RefMessageT extends Message with a method T getReferencedObject() would be the solution. ptr_X messages simply had to be transformed to