replaceRepeatedFields property

bool? replaceRepeatedFields
getter/setter pair

When merging repeated fields, the default behavior is to append entries from the source repeated field to the destination repeated field.

If you instead want to keep only the entries from the source repeated field, set this flag to true. If you want to replace a repeated field within a message field on the destination message, you must set both replace_repeated_fields and replace_message_fields to true, otherwise the repeated fields will be appended.

Implementation

core.bool? replaceRepeatedFields;