Class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchResponseFacet
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchResponseFacet
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/retail_v2beta/classes.rb,
lib/google/apis/retail_v2beta/representations.rb,
lib/google/apis/retail_v2beta/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::RetailV2beta::GoogleCloudRetailV2betaSearchResponseFacetFacetValue>
The facet values for this field.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2betaSearchResponseFacet
constructor
A new instance of GoogleCloudRetailV2betaSearchResponseFacet.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2betaSearchResponseFacet
Returns a new instance of GoogleCloudRetailV2betaSearchResponseFacet.
7570 7571 7572 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 7570 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
7557 7558 7559 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 7557 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
7563 7564 7565 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 7563 def key @key end |
#values ⇒ Array<Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchResponseFacetFacetValue>
The facet values for this field.
Corresponds to the JSON property values
7568 7569 7570 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 7568 def values @values end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7575 7576 7577 7578 7579 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 7575 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 |