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.



20525
20526
20527
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 20525

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

Instance Attribute Details

#attribute_keyString

Attribute key used to refine the results. For example, "movie_type". Corresponds to the JSON property attributeKey

Returns:

  • (String)


20518
20519
20520
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 20518

def attribute_key
  @attribute_key
end

#attribute_valueString

Attribute value used to refine the results. For example, "drama". Corresponds to the JSON property attributeValue

Returns:

  • (String)


20523
20524
20525
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 20523

def attribute_value
  @attribute_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20530
20531
20532
20533
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 20530

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