Re: Get the chain of message names

2009-06-02 Thread Kenton Varda
Nope, there's no easier way. Message objects do not contain pointers to their parents, so you have to remember what message objects you traversed through as you traverse them. On Mon, Jun 1, 2009 at 9:09 PM, Ajoy Frank wrote: > The protos would be a chain ... e.g. lets say I have A.proto , B.pr

Re: Get the chain of message names

2009-06-01 Thread Ajoy Frank
The protos would be a chain ... e.g. lets say I have A.proto , B.proto, C.proto, D.proto Message A{ optional B b; . } Message B{ optional C c; ... } Message C{ optional D d; } Message D{ optional int e; } And i get a message of type A. Curren

Re: Get the chain of message names

2009-06-01 Thread Kenton Varda
Sorry, I don't understand your question. Can you write out the hypothetical .proto file that defines these types, and example code showing what you imagine the solution looking like? On Mon, Jun 1, 2009 at 3:44 PM, ajoy wrote: > > Hi, > > If I have a chain of enclosed messages, e.g. A->B->C->D-