In order to use FindAllMessageNames you should be working directly with a DescriptorDatabase.
What context are you trying to get all message names? How have you added them to the generated pool? On Monday, May 23, 2022 at 6:45:41 AM UTC-7 Ryan Herbert wrote: > I've been trying to figure out how to get a list of all message names in > the generated pool with the C++ API. It looks like I can > use FindAllMessageNames if I have a pointer to the DescriptorDatabase, but > I can't find a way to get access to that. The documentation describes > DescriptorPool::internal_generated_database() (which I probably shouldn't > use anyway), but that doesn't appear to exist in my 3.12.4 version. > > Is there a way to get this list? If not in C++, is there a way in Python? > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/protobuf/fa651f86-5e1c-435f-b05b-381aabba5357n%40googlegroups.com.
