Class: Google::Shopping::Merchant::DataSources::V1beta::PrimaryProductDataSource::DefaultRule

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/shopping/merchant/datasources/v1beta/datasourcetypes.rb

Overview

Default rule management of the data source.

Instance Attribute Summary collapse

Instance Attribute Details

#take_from_data_sources::Array<::Google::Shopping::Merchant::DataSources::V1beta::DataSourceReference>

Returns 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.

Returns:

  • (::Array<::Google::Shopping::Merchant::DataSources::V1beta::DataSourceReference>)

    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.



113
114
115
116
# File 'proto_docs/google/shopping/merchant/datasources/v1beta/datasourcetypes.rb', line 113

class DefaultRule
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end