Class: Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacet
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacet
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/retail_v2/classes.rb,
lib/google/apis/retail_v2/representations.rb,
lib/google/apis/retail_v2/representations.rb
Overview
The current facet key (i.e. attribute config) maps into the merged_facet_key. A facet key can have at most one child. The current facet key and the merged facet key need both to be textual custom attributes or both numerical custom attributes (same type).
Instance Attribute Summary collapse
-
#merged_facet_key ⇒ String
The merged facet key should be a valid facet key that is different than the facet key of the current catalog attribute.
-
#merged_facet_values ⇒ Array<Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacetValue>
Each instance is a list of facet values that map into the same (possibly different) merged facet value.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacet
constructor
A new instance of GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacet.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacet
Returns a new instance of GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacet.
931 932 933 |
# File 'lib/google/apis/retail_v2/classes.rb', line 931 def initialize(**args) update!(**args) end |
Instance Attribute Details
#merged_facet_key ⇒ String
The merged facet key should be a valid facet key that is different than the
facet key of the current catalog attribute. We refer this is merged facet key
as the child of the current catalog attribute. This merged facet key can't be
a parent of another facet key (i.e. no directed path of length 2). This merged
facet key needs to be either a textual custom attribute or a numerical custom
attribute.
Corresponds to the JSON property mergedFacetKey
922 923 924 |
# File 'lib/google/apis/retail_v2/classes.rb', line 922 def merged_facet_key @merged_facet_key end |
#merged_facet_values ⇒ Array<Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacetValue>
Each instance is a list of facet values that map into the same (possibly
different) merged facet value. For the current attribute config, each facet
value should map to at most one merged facet value.
Corresponds to the JSON property mergedFacetValues
929 930 931 |
# File 'lib/google/apis/retail_v2/classes.rb', line 929 def merged_facet_values @merged_facet_values end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
936 937 938 939 |
# File 'lib/google/apis/retail_v2/classes.rb', line 936 def update!(**args) @merged_facet_key = args[:merged_facet_key] if args.key?(:merged_facet_key) @merged_facet_values = args[:merged_facet_values] if args.key?(:merged_facet_values) end |