Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchResponseFacet
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchResponseFacet
- 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
A facet result.
Instance Attribute Summary collapse
-
#dynamic_facet ⇒ Boolean
(also: #dynamic_facet?)
Whether the facet is dynamically generated.
-
#key ⇒ String
The key for this facet.
-
#values ⇒ Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchResponseFacetFacetValue>
The facet values for this field.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2alphaSearchResponseFacet
constructor
A new instance of GoogleCloudRetailV2alphaSearchResponseFacet.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2alphaSearchResponseFacet
Returns a new instance of GoogleCloudRetailV2alphaSearchResponseFacet.
6657 6658 6659 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 6657 def initialize(**args) update!(**args) end |
Instance Attribute Details
#dynamic_facet ⇒ Boolean Also known as: dynamic_facet?
Whether the facet is dynamically generated.
Corresponds to the JSON property dynamicFacet
6644 6645 6646 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 6644 def dynamic_facet @dynamic_facet end |
#key ⇒ String
The key for this facet. E.g., "colorFamilies" or "price" or "attributes.attr1".
Corresponds to the JSON property key
6650 6651 6652 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 6650 def key @key end |
#values ⇒ Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchResponseFacetFacetValue>
The facet values for this field.
Corresponds to the JSON property values
6655 6656 6657 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 6655 def values @values end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6662 6663 6664 6665 6666 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 6662 def update!(**args) @dynamic_facet = args[:dynamic_facet] if args.key?(:dynamic_facet) @key = args[:key] if args.key?(:key) @values = args[:values] if args.key?(:values) end |