There's no current official support for parsing text-based .proto file contents as a string at runtime in Java.
Java Protobuf does support DynamicMessage for certain advanced usecases ( https://protobuf.dev/reference/java/api-docs/com/google/protobuf/DynamicMessage), but it doesn't quite match the usecase of the prior thread as it requires a Descriptor to use, and there's no official support to runtime parsing the .proto file syntax in Java to get the Descriptor, rather you'd want to do that step offline and record the Descriptor proto. On Fri, Jul 12, 2024 at 11:49 AM sh z <[email protected]> wrote: > https://groups.google.com/g/protobuf/c/bWlJaaMmx4Q > Is this issue resolved now? Is there any solution? > > > -- > 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/dd2732fa-e2d0-4b9d-b421-b92d923cbb3dn%40googlegroups.com > <https://groups.google.com/d/msgid/protobuf/dd2732fa-e2d0-4b9d-b421-b92d923cbb3dn%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/CAKRmVH9Q5BmGRpFdsjK%2BFt6HeM5QrL9%3D%2BKcmdmze2c23d1G6Xw%40mail.gmail.com.
