You can use protoc to output the compiled schema (one of the command-line-options - something "file descriptor set"), and deserialize the resultant binary file as a FileDescriptorSet instance, deserializing via your choice of language via descriptor.proto - any use?
As an aside, I also have a separate implementation of a .proto parser, implemented in C#/.NET (so it can be used in 100% managed .NET code). Not sure if that is any use to you, but if so: let me know. On Wed, 17 Feb 2021, 00:12 Gerardo Mora, <[email protected]> wrote: > Hello everyone, I would like to create an application that analyzes a > .proto file and dynamically creates GraphQL queries, I don't want to parse > the .proto files because it will outdated and probably buggy at some point, > but I was reading the source code and the only available thing is create a > plugin that ouputs a file after the processing which is not idea. > > Is there an API/SDK available for it? > > -- > 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/f78681b8-47f2-44ac-955a-73b828f1b08dn%40googlegroups.com > <https://groups.google.com/d/msgid/protobuf/f78681b8-47f2-44ac-955a-73b828f1b08dn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CAF95VAz3nWGiqsHRQNaEBgWN5VvnXtvP-W6SsjekDHhzFt6Ctg%40mail.gmail.com.
