Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseGuidedSearchResultRefinementAttribute
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseGuidedSearchResultRefinementAttribute
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1alpha/classes.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb
Overview
Useful attribute for search result refinements.
Instance Attribute Summary collapse
-
#attribute_key ⇒ String
Attribute key used to refine the results e.g.
-
#attribute_value ⇒ String
Attribute value used to refine the results e.g.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaSearchResponseGuidedSearchResultRefinementAttribute
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaSearchResponseGuidedSearchResultRefinementAttribute.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaSearchResponseGuidedSearchResultRefinementAttribute
Returns a new instance of GoogleCloudDiscoveryengineV1alphaSearchResponseGuidedSearchResultRefinementAttribute.
6261 6262 6263 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 6261 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attribute_key ⇒ String
Attribute key used to refine the results e.g. 'movie_type'.
Corresponds to the JSON property attributeKey
6254 6255 6256 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 6254 def attribute_key @attribute_key end |
#attribute_value ⇒ String
Attribute value used to refine the results e.g. 'drama'.
Corresponds to the JSON property attributeValue
6259 6260 6261 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 6259 def attribute_value @attribute_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6266 6267 6268 6269 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 6266 def update!(**args) @attribute_key = args[:attribute_key] if args.key?(:attribute_key) @attribute_value = args[:attribute_value] if args.key?(:attribute_value) end |