No need for asm or anything like that, the protobuffer libraries
already contain enough to do what you want to do.
To create a new message definition, you can use DescriptorProto to
create the message, put it in a FileDescriptorProto, and use
FileDescriptor.buildFrom() to build it. Now you can get the
descriptors out with FileDescriptor.getMessageTypes().
Once you have a message's Descriptor, you can parse messages using
DynamicMessage.parseFrom(), and you can create new messages using
DynamicMessage.Builder.
- Adam
To view this discussion on the web visit https://groups.google.com/d/msg/protobuf/-/piKV9a9TVPMJ.
}
--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To post to this group, send email to prot...@googlegroups.com.
To unsubscribe from this group, send email to protobuf+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.