On 23 juin, 07:02, Dheeraj <dhee...@gmail.com> wrote:
> How do I delete an entry from a list in a protobuf (repeated field)? I
> can add, I can modify, but I cannot delete using any of the generated
> APIs. A getList() returns an unmodifiable collection.

Clear the field and then re-add values. You can also set the field
with a List<?> (setField with the FieldDescriptor for your repeated
field), which has the same effect.

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to proto...@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.

Reply via email to