bool
When merging message fields, the default
behavior is to merge the content of two message
fields together. If you instead want to use the
field from the source message to replace the
corresponding field in the destination message,
set this flag to true. When this flag is set,
specified submessage fields that are missing in
source will be cleared in destination.
This field is a member of oneof_ _replace_message_fields.
replace_repeated_fields
bool
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.
This field is a member of oneof_ _replace_repeated_fields.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Class MergeFieldsOptions (0.7.16)\n\nVersion latestkeyboard_arrow_down\n\n- [0.7.16 (latest)](/python/docs/reference/contentwarehouse/latest/google.cloud.contentwarehouse_v1.types.MergeFieldsOptions)\n- [0.7.15](/python/docs/reference/contentwarehouse/0.7.15/google.cloud.contentwarehouse_v1.types.MergeFieldsOptions)\n- [0.6.0](/python/docs/reference/contentwarehouse/0.6.0/google.cloud.contentwarehouse_v1.types.MergeFieldsOptions)\n- [0.5.1](/python/docs/reference/contentwarehouse/0.5.1/google.cloud.contentwarehouse_v1.types.MergeFieldsOptions)\n- [0.4.1](/python/docs/reference/contentwarehouse/0.4.1/google.cloud.contentwarehouse_v1.types.MergeFieldsOptions)\n- [0.3.1](/python/docs/reference/contentwarehouse/0.3.1/google.cloud.contentwarehouse_v1.types.MergeFieldsOptions)\n- [0.2.1](/python/docs/reference/contentwarehouse/0.2.1/google.cloud.contentwarehouse_v1.types.MergeFieldsOptions)\n- [0.1.0](/python/docs/reference/contentwarehouse/0.1.0/google.cloud.contentwarehouse_v1.types.MergeFieldsOptions) \n\n MergeFieldsOptions(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nOptions for merging updated fields.\n\n.. _oneof: \u003chttps://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields\u003e"]]