Required. The list of data sources linked in the default
rule.
This list is ordered by the default rule priority of joining the data.
It might include none or multiple references to self and supplemental
data sources.
The list must not be empty.
To link the data source to the default rule, you need to add a
new reference to this list (in sequential order).
To unlink the data source from the default rule, you need to
remove the given reference from this list.
Changing the order of this list will result in changing the priority of
data sources in the default rule.
For example, providing the following list: [1001, self] will
take attribute values from supplemental data source 1001, and fallback
to self if the attribute is not set in 1001.
Required. The list of data sources linked in the default
rule.
This list is ordered by the default rule priority of joining the data.
It might include none or multiple references to self and supplemental
data sources.
The list must not be empty.
To link the data source to the default rule, you need to add a
new reference to this list (in sequential order).
To unlink the data source from the default rule, you need to
remove the given reference from this list.
Changing the order of this list will result in changing the priority of
data sources in the default rule.
For example, providing the following list: [1001, self] will
take attribute values from supplemental data source 1001, and fallback
to self if the attribute is not set in 1001.
Required. The list of data sources linked in the default
rule.
This list is ordered by the default rule priority of joining the data.
It might include none or multiple references to self and supplemental
data sources.
The list must not be empty.
To link the data source to the default rule, you need to add a
new reference to this list (in sequential order).
To unlink the data source from the default rule, you need to
remove the given reference from this list.
Changing the order of this list will result in changing the priority of
data sources in the default rule.
For example, providing the following list: [1001, self] will
take attribute values from supplemental data source 1001, and fallback
to self if the attribute is not set in 1001.
Required. The list of data sources linked in the default
rule.
This list is ordered by the default rule priority of joining the data.
It might include none or multiple references to self and supplemental
data sources.
The list must not be empty.
To link the data source to the default rule, you need to add a
new reference to this list (in sequential order).
To unlink the data source from the default rule, you need to
remove the given reference from this list.
Changing the order of this list will result in changing the priority of
data sources in the default rule.
For example, providing the following list: [1001, self] will
take attribute values from supplemental data source 1001, and fallback
to self if the attribute is not set in 1001.
Required. The list of data sources linked in the default
rule.
This list is ordered by the default rule priority of joining the data.
It might include none or multiple references to self and supplemental
data sources.
The list must not be empty.
To link the data source to the default rule, you need to add a
new reference to this list (in sequential order).
To unlink the data source from the default rule, you need to
remove the given reference from this list.
Changing the order of this list will result in changing the priority of
data sources in the default rule.
For example, providing the following list: [1001, self] will
take attribute values from supplemental data source 1001, and fallback
to self if the attribute is not set in 1001.
[[["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-16 UTC."],[],[],null,["# Interface PrimaryProductDataSource.DefaultRuleOrBuilder (1.0.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0 (latest)](/java/docs/reference/google-shopping-merchant-datasources/latest/com.google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource.DefaultRuleOrBuilder)\n- [0.26.0](/java/docs/reference/google-shopping-merchant-datasources/0.26.0/com.google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource.DefaultRuleOrBuilder)\n- [0.24.0](/java/docs/reference/google-shopping-merchant-datasources/0.24.0/com.google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource.DefaultRuleOrBuilder)\n- [0.23.0](/java/docs/reference/google-shopping-merchant-datasources/0.23.0/com.google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource.DefaultRuleOrBuilder)\n- [0.20.0](/java/docs/reference/google-shopping-merchant-datasources/0.20.0/com.google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource.DefaultRuleOrBuilder)\n- [0.19.0](/java/docs/reference/google-shopping-merchant-datasources/0.19.0/com.google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource.DefaultRuleOrBuilder)\n- [0.18.0](/java/docs/reference/google-shopping-merchant-datasources/0.18.0/com.google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource.DefaultRuleOrBuilder)\n- [0.16.0](/java/docs/reference/google-shopping-merchant-datasources/0.16.0/com.google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource.DefaultRuleOrBuilder)\n- [0.15.0](/java/docs/reference/google-shopping-merchant-datasources/0.15.0/com.google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource.DefaultRuleOrBuilder)\n- [0.14.0](/java/docs/reference/google-shopping-merchant-datasources/0.14.0/com.google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource.DefaultRuleOrBuilder)\n- [0.13.0](/java/docs/reference/google-shopping-merchant-datasources/0.13.0/com.google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource.DefaultRuleOrBuilder)\n- [0.12.0](/java/docs/reference/google-shopping-merchant-datasources/0.12.0/com.google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource.DefaultRuleOrBuilder)\n- [0.11.0](/java/docs/reference/google-shopping-merchant-datasources/0.11.0/com.google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource.DefaultRuleOrBuilder)\n- [0.10.0](/java/docs/reference/google-shopping-merchant-datasources/0.10.0/com.google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource.DefaultRuleOrBuilder)\n- [0.9.0](/java/docs/reference/google-shopping-merchant-datasources/0.9.0/com.google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource.DefaultRuleOrBuilder)\n- [0.8.0](/java/docs/reference/google-shopping-merchant-datasources/0.8.0/com.google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource.DefaultRuleOrBuilder)\n- [0.7.0](/java/docs/reference/google-shopping-merchant-datasources/0.7.0/com.google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource.DefaultRuleOrBuilder)\n- [0.5.0](/java/docs/reference/google-shopping-merchant-datasources/0.5.0/com.google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource.DefaultRuleOrBuilder)\n- [0.4.0](/java/docs/reference/google-shopping-merchant-datasources/0.4.0/com.google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource.DefaultRuleOrBuilder)\n- [0.3.0](/java/docs/reference/google-shopping-merchant-datasources/0.3.0/com.google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource.DefaultRuleOrBuilder)\n- [0.2.0](/java/docs/reference/google-shopping-merchant-datasources/0.2.0/com.google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource.DefaultRuleOrBuilder)\n- [0.1.0](/java/docs/reference/google-shopping-merchant-datasources/0.1.0/com.google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource.DefaultRuleOrBuilder) \n\n public static interface PrimaryProductDataSource.DefaultRuleOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### getTakeFromDataSources(int index)\n\n public abstract DataSourceReference getTakeFromDataSources(int index)\n\nRequired. The list of data sources linked in the [default\nrule](https://support.google.com/merchants/answer/7450276).\nThis list is ordered by the default rule priority of joining the data.\nIt might include none or multiple references to `self` and supplemental\ndata sources.\n\nThe list must not be empty.\n\nTo link the data source to the default rule, you need to add a\nnew reference to this list (in sequential order).\n\nTo unlink the data source from the default rule, you need to\nremove the given reference from this list.\n\nChanging the order of this list will result in changing the priority of\ndata sources in the default rule.\n\nFor example, providing the following list: \\[`1001`, `self`\\] will\ntake attribute values from supplemental data source `1001`, and fallback\nto `self` if the attribute is not set in `1001`.\n\n`\nrepeated .google.shopping.merchant.datasources.v1beta.DataSourceReference take_from_data_sources = 1 [(.google.api.field_behavior) = REQUIRED];\n`\n\n### getTakeFromDataSourcesCount()\n\n public abstract int getTakeFromDataSourcesCount()\n\nRequired. The list of data sources linked in the [default\nrule](https://support.google.com/merchants/answer/7450276).\nThis list is ordered by the default rule priority of joining the data.\nIt might include none or multiple references to `self` and supplemental\ndata sources.\n\nThe list must not be empty.\n\nTo link the data source to the default rule, you need to add a\nnew reference to this list (in sequential order).\n\nTo unlink the data source from the default rule, you need to\nremove the given reference from this list.\n\nChanging the order of this list will result in changing the priority of\ndata sources in the default rule.\n\nFor example, providing the following list: \\[`1001`, `self`\\] will\ntake attribute values from supplemental data source `1001`, and fallback\nto `self` if the attribute is not set in `1001`.\n\n`\nrepeated .google.shopping.merchant.datasources.v1beta.DataSourceReference take_from_data_sources = 1 [(.google.api.field_behavior) = REQUIRED];\n`\n\n### getTakeFromDataSourcesList()\n\n public abstract List\u003cDataSourceReference\u003e getTakeFromDataSourcesList()\n\nRequired. The list of data sources linked in the [default\nrule](https://support.google.com/merchants/answer/7450276).\nThis list is ordered by the default rule priority of joining the data.\nIt might include none or multiple references to `self` and supplemental\ndata sources.\n\nThe list must not be empty.\n\nTo link the data source to the default rule, you need to add a\nnew reference to this list (in sequential order).\n\nTo unlink the data source from the default rule, you need to\nremove the given reference from this list.\n\nChanging the order of this list will result in changing the priority of\ndata sources in the default rule.\n\nFor example, providing the following list: \\[`1001`, `self`\\] will\ntake attribute values from supplemental data source `1001`, and fallback\nto `self` if the attribute is not set in `1001`.\n\n`\nrepeated .google.shopping.merchant.datasources.v1beta.DataSourceReference take_from_data_sources = 1 [(.google.api.field_behavior) = REQUIRED];\n`\n\n### getTakeFromDataSourcesOrBuilder(int index)\n\n public abstract DataSourceReferenceOrBuilder getTakeFromDataSourcesOrBuilder(int index)\n\nRequired. The list of data sources linked in the [default\nrule](https://support.google.com/merchants/answer/7450276).\nThis list is ordered by the default rule priority of joining the data.\nIt might include none or multiple references to `self` and supplemental\ndata sources.\n\nThe list must not be empty.\n\nTo link the data source to the default rule, you need to add a\nnew reference to this list (in sequential order).\n\nTo unlink the data source from the default rule, you need to\nremove the given reference from this list.\n\nChanging the order of this list will result in changing the priority of\ndata sources in the default rule.\n\nFor example, providing the following list: \\[`1001`, `self`\\] will\ntake attribute values from supplemental data source `1001`, and fallback\nto `self` if the attribute is not set in `1001`.\n\n`\nrepeated .google.shopping.merchant.datasources.v1beta.DataSourceReference take_from_data_sources = 1 [(.google.api.field_behavior) = REQUIRED];\n`\n\n### getTakeFromDataSourcesOrBuilderList()\n\n public abstract List\u003c? extends DataSourceReferenceOrBuilder\u003e getTakeFromDataSourcesOrBuilderList()\n\nRequired. The list of data sources linked in the [default\nrule](https://support.google.com/merchants/answer/7450276).\nThis list is ordered by the default rule priority of joining the data.\nIt might include none or multiple references to `self` and supplemental\ndata sources.\n\nThe list must not be empty.\n\nTo link the data source to the default rule, you need to add a\nnew reference to this list (in sequential order).\n\nTo unlink the data source from the default rule, you need to\nremove the given reference from this list.\n\nChanging the order of this list will result in changing the priority of\ndata sources in the default rule.\n\nFor example, providing the following list: \\[`1001`, `self`\\] will\ntake attribute values from supplemental data source `1001`, and fallback\nto `self` if the attribute is not set in `1001`.\n\n`\nrepeated .google.shopping.merchant.datasources.v1beta.DataSourceReference take_from_data_sources = 1 [(.google.api.field_behavior) = REQUIRED];\n`"]]