Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchResponseGuidedSearchResultRefinementAttribute

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaSearchResponseGuidedSearchResultRefinementAttribute

Returns a new instance of GoogleCloudDiscoveryengineV1betaSearchResponseGuidedSearchResultRefinementAttribute.



7211
7212
7213
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 7211

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#attribute_keyString

Attribute key used to refine the results e.g. 'movie_type'. Corresponds to the JSON property attributeKey

Returns:

  • (String)


7204
7205
7206
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 7204

def attribute_key
  @attribute_key
end

#attribute_valueString

Attribute value used to refine the results e.g. 'drama'. Corresponds to the JSON property attributeValue

Returns:

  • (String)


7209
7210
7211
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 7209

def attribute_value
  @attribute_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7216
7217
7218
7219
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 7216

def update!(**args)
  @attribute_key = args[:attribute_key] if args.key?(:attribute_key)
  @attribute_value = args[:attribute_value] if args.key?(:attribute_value)
end