No, there isn't a way to set a default value for repeated fields.

On Thu, Oct 3, 2013 at 1:15 AM, Robert Reeves <reeves445...@gmail.com>wrote:

> Hi,
>
> By default, when I call the 'getDefaultInstance' method of a Message, the
> repeated fields are empty (list size = 0). Is there a way to change this
> behaviour (set a list size > 0) ?
>
> Thank you for your help
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to protobuf+unsubscr...@googlegroups.com.
> To post to this group, send email to protobuf@googlegroups.com.
> Visit this group at http://groups.google.com/group/protobuf.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to