[protobuf] How to construct a Builder from a FieldDescriptor with JavaType.MESSAGE

2015-01-26 Thread Jon Emerson
Hi There, I'm writing a utility to convert data stored in MongoDB back to protocol buffer format. My strategy is to look for each field in the protocol buffer definition, and if there's a matching field from my MongoDB object, then pull that data and set it on my protocol buffer builder.

Re: [protobuf] How to construct a Builder from a FieldDescriptor with JavaType.MESSAGE

2015-01-26 Thread Jon Emerson
Xiao xiaof...@google.com wrote: As it's a repeated field, you should use getRepeatedFieldBuilder. On Mon Jan 26 2015 at 5:38:23 PM Jon Emerson panac...@gmail.com wrote: Hi There, I'm writing a utility to convert data stored in MongoDB back to protocol buffer format. My strategy is to look