Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCatalogAttributeFacetConfigMergedFacetValue

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/retail_v2alpha/classes.rb,
lib/google/apis/retail_v2alpha/representations.rb,
lib/google/apis/retail_v2alpha/representations.rb

Overview

Replaces a set of textual facet values by the same (possibly different) merged facet value. Each facet value should appear at most once as a value per CatalogAttribute. This feature is available only for textual custom attributes.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2alphaCatalogAttributeFacetConfigMergedFacetValue

Returns a new instance of GoogleCloudRetailV2alphaCatalogAttributeFacetConfigMergedFacetValue.



2151
2152
2153
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 2151

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#merged_valueString

All the previous values are replaced by this merged facet value. This merged_value must be non-empty and can have up to 128 characters. Corresponds to the JSON property mergedValue

Returns:

  • (String)


2142
2143
2144
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 2142

def merged_value
  @merged_value
end

#valuesArray<String>

All the facet values that are replaces by the same merged_value that follows. The maximum number of values per MergedFacetValue is 25. Each value can have up to 128 characters. Corresponds to the JSON property values

Returns:

  • (Array<String>)


2149
2150
2151
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 2149

def values
  @values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2156
2157
2158
2159
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 2156

def update!(**args)
  @merged_value = args[:merged_value] if args.key?(:merged_value)
  @values = args[:values] if args.key?(:values)
end