This exists in Java as DynamicMessage but I believe the equivalent does not exist in the official Go implementation.
You may find an OSS implementation that achieves the same (for example https://github.com/bufbuild/prototransform may do what you need). On Saturday, October 21, 2023 at 2:46:45 PM UTC-4 Gary Vidal wrote: > I have a use case where I need to dynamically read a .proto definition and > deserialize a byte array of matching message. I scoured the internet does > anyone have a working example. I am writing a kafka plugin that filters > messages and uses a schema registry to store and retrieve proto files. > > Something like the following: > DeserializeMessage(proto string, bytes byte[]). > > Must be in go please. > -- 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/ba3cb795-8743-4772-a286-ea378de5394fn%40googlegroups.com.
