Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseGuidedSearchResultRefinementAttribute

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaSearchResponseGuidedSearchResultRefinementAttribute

Returns a new instance of GoogleCloudDiscoveryengineV1alphaSearchResponseGuidedSearchResultRefinementAttribute.



6061
6062
6063
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 6061

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)


6054
6055
6056
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 6054

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)


6059
6060
6061
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 6059

def attribute_value
  @attribute_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6066
6067
6068
6069
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 6066

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