Take a look at com.google.protobuf.Descriptors and com.google.protobuf.DynamicMessage
On Mon, Jul 18, 2011 at 8:20 AM, yoave <einavy...@gmail.com> wrote: > Hi all, > > I've got 2 questions: > > 1. how do I generate a Descriptor from a FileDescriptorProto in Java? > In cpp, I'm using DescriptorPool class's 'BuildFile()' > functionality. > Descriptors.FileDescriptor.buildFrom() > > 2. how do I generate a Dynamic Message from a Descriptor in Java? > In cpp, I'm using DynamicMessageFactory class's 'GetPrototype()' > functionality. > DynamicMessage.newBuilder(descirptor) > > thanks > > -- > You received this message because you are subscribed to the Google Groups > "Protocol Buffers" group. > To post to this group, send email to protobuf@googlegroups.com. > To unsubscribe from this group, send email to > protobuf+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/protobuf?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to protobuf@googlegroups.com. To unsubscribe from this group, send email to protobuf+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.