Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProductAttributeValue
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProductAttributeValue
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/retail_v2alpha/classes.rb,
lib/google/apis/retail_v2alpha/representations.rb,
lib/google/apis/retail_v2alpha/representations.rb
Overview
Product attribute which structured by an attribute name and value. This
structure is used in conversational search filters and answers. For example,
if we have name=color and value=red, this means that the color is red.
Instance Attribute Summary collapse
-
#name ⇒ String
The attribute name.
-
#value ⇒ String
The attribute value.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2alphaProductAttributeValue
constructor
A new instance of GoogleCloudRetailV2alphaProductAttributeValue.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2alphaProductAttributeValue
Returns a new instance of GoogleCloudRetailV2alphaProductAttributeValue.
5657 5658 5659 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 5657 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
The attribute name.
Corresponds to the JSON property name
5650 5651 5652 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 5650 def name @name end |
#value ⇒ String
The attribute value.
Corresponds to the JSON property value
5655 5656 5657 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 5655 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5662 5663 5664 5665 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 5662 def update!(**args) @name = args[:name] if args.key?(:name) @value = args[:value] if args.key?(:value) end |