Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchResponseGuidedSearchResultRefinementAttribute
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchResponseGuidedSearchResultRefinementAttribute
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1beta/classes.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb,
lib/google/apis/discoveryengine_v1beta/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) ⇒ GoogleCloudDiscoveryengineV1betaSearchResponseGuidedSearchResultRefinementAttribute
constructor
A new instance of GoogleCloudDiscoveryengineV1betaSearchResponseGuidedSearchResultRefinementAttribute.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaSearchResponseGuidedSearchResultRefinementAttribute
Returns a new instance of GoogleCloudDiscoveryengineV1betaSearchResponseGuidedSearchResultRefinementAttribute.
3838 3839 3840 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 3838 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
3831 3832 3833 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 3831 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
3836 3837 3838 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 3836 def attribute_value @attribute_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3843 3844 3845 3846 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 3843 def update!(**args) @attribute_key = args[:attribute_key] if args.key?(:attribute_key) @attribute_value = args[:attribute_value] if args.key?(:attribute_value) end |