Hi,
I have very specific problem. I have data and proto file available and my
application should take both and based on external configuration determine
how to interpret data (many different types/messages in proto). Yet that
can be determine only during run. My question is if there is any
Protobuf supports creating message types dynamically at runtime and use
them for parsing/serialization/etc.
First you need to build up a DescriptorPool
https://code.google.com/p/protobuf/source/browse/trunk/src/google/protobuf/descriptor.h#1141
that contains all types that you may want to use.
Thank you for advice. I'll try it as soon as I am done with other task
currently at hand.
On Tuesday, 12 August 2014 19:36:13 UTC+2, Feng Xiao wrote:
Protobuf supports creating message types dynamically at runtime and use
them for parsing/serialization/etc.
First you need to build up a