On 23 juin, 07:02, Dheeraj <[email protected]> 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.
