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
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
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-