Class: Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacetValue
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacetValue
 
 
- 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
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
- 
  
    
      #merged_value  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
All the previous values are replaced by this merged facet value.
 - 
  
    
      #values  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
All the facet values that are replaces by the same merged_value that follows.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacetValue 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacetValue.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacetValue
Returns a new instance of GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacetValue.
      953 954 955  | 
    
      # File 'lib/google/apis/retail_v2/classes.rb', line 953 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#merged_value ⇒ String
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
      944 945 946  | 
    
      # File 'lib/google/apis/retail_v2/classes.rb', line 944 def merged_value @merged_value end  | 
  
#values ⇒ Array<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
      951 952 953  | 
    
      # File 'lib/google/apis/retail_v2/classes.rb', line 951 def values @values end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      958 959 960 961  | 
    
      # File 'lib/google/apis/retail_v2/classes.rb', line 958 def update!(**args) @merged_value = args[:merged_value] if args.key?(:merged_value) @values = args[:values] if args.key?(:values) end  |