Interface PrimaryProductDataSource.DefaultRuleOrBuilder (0.10.0)

public static interface PrimaryProductDataSource.DefaultRuleOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getTakeFromDataSources(int index)

public abstract DataSourceReference getTakeFromDataSources(int index)

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. To create attribute rules that are different from the default rule, see Set up your attribute rules.

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.

repeated .google.shopping.merchant.datasources.v1beta.DataSourceReference take_from_data_sources = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
DataSourceReference

getTakeFromDataSourcesCount()

public abstract int getTakeFromDataSourcesCount()

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. To create attribute rules that are different from the default rule, see Set up your attribute rules.

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.

repeated .google.shopping.merchant.datasources.v1beta.DataSourceReference take_from_data_sources = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getTakeFromDataSourcesList()

public abstract List<DataSourceReference> getTakeFromDataSourcesList()

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. To create attribute rules that are different from the default rule, see Set up your attribute rules.

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.

repeated .google.shopping.merchant.datasources.v1beta.DataSourceReference take_from_data_sources = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<DataSourceReference>

getTakeFromDataSourcesOrBuilder(int index)

public abstract DataSourceReferenceOrBuilder getTakeFromDataSourcesOrBuilder(int index)

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. To create attribute rules that are different from the default rule, see Set up your attribute rules.

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.

repeated .google.shopping.merchant.datasources.v1beta.DataSourceReference take_from_data_sources = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
DataSourceReferenceOrBuilder

getTakeFromDataSourcesOrBuilderList()

public abstract List<? extends DataSourceReferenceOrBuilder> getTakeFromDataSourcesOrBuilderList()

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. To create attribute rules that are different from the default rule, see Set up your attribute rules.

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.

repeated .google.shopping.merchant.datasources.v1beta.DataSourceReference take_from_data_sources = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.shopping.merchant.datasources.v1beta.DataSourceReferenceOrBuilder>