Not sure if I understand your question correctly. You can set the label in FieldDescriptorProto:
LABEL_OPTIONAL = 1; LABEL_REQUIRED = 2;LABEL_REPEATED = 3; On Tue, Jul 26, 2011 at 12:21 AM, Giancarlo Frison <gfri...@chelab.com>wrote: > There is this example that I'm approaching to re-implement > http://flori.posterous.com/dynamically-creating-protocol-buffer-objects > > a question: > > How to handle repeated fields? How can you describe them in the > fieldDescriptor? > > > > On Jul 18, 5:20 pm, 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. > > > > 2. how do I generate a Dynamic Message from a Descriptor in Java? > > In cpp, I'm using DynamicMessageFactory class's 'GetPrototype()' > > functionality. > > > > 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.