Thanks for the answers.

I am using Kotlin.
I will modify my sequence to yield on a pair.
* the current path
* the current object
It should be a minor change. 
Currently, the yield is on the current object only.

On Tuesday, November 22, 2022 at 11:16:29 AM UTC-6 thes...@gmail.com wrote:

> Hi Fred, you haven't mentioned a specific language you use, but in all the 
> standard implementations I am familiar with (Java, Python, C++) an instance 
> of a message doesn't hold a reference to its container. The opposite is 
> true, you can find all the fields if you start working from the root. To 
> construct the path, you can have the visitor build the partial path from 
> the root as it goes down the graph.
>
> -Nadav
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/cd26f0ff-c7bc-487a-a81b-6ceac3d0ba98n%40googlegroups.com.

Reply via email to