Dynamic protocol buffer generation in Java

18 views
Skip to first unread message

sh z

unread,
Jul 12, 2024, 11:49:55 AM (6 days ago) Jul 12
to Protocol Buffers
Is this issue resolved now? Is there any solution?


Em Rauch

unread,
8:44 AM (9 hours ago) 8:44 AM
to sh z, Protocol Buffers
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 <a7459...@gmail.com> wrote:
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 protobuf+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/protobuf/dd2732fa-e2d0-4b9d-b421-b92d923cbb3dn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages