I am trying to write a service in Java which will convert back and forth using protobufs. The docs say that this should be easy as "Reflection is provided as part of the Message and Message.Builder interfaces". However I cannot seem to find what this is referring to.
I would like have a generic method which takes a Descriptor and a stream which gives back an instance of message which I can later cast to my desired type. I have tried DynamicMessage from = DynamicMessage.parseFrom(descriptor, inputStream); but I get an exception when I attempt to cast this as my generate proto class. Is there a solution to this? Thanks, Martin. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/protobuf?hl=en -~----------~----~----~----~------~----~------~--~---
