class Google::Apis::RetailV2::GoogleCloudRetailV2ProductDetail
Detailed product information associated with a user event.
Attributes
product[RW]
Product captures all metadata information of items to be recommended or searched. Corresponds to the JSON property `product` @return [Google::Apis::RetailV2::GoogleCloudRetailV2Product]
quantity[RW]
Quantity of the product associated with the user event. For example, this field will be 2 if two products are added to the shopping cart for `purchase- complete` event. Required for `add-to-cart` and `purchase-complete` event types. Corresponds to the JSON property `quantity` @return [Fixnum]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/retail_v2/classes.rb, line 1885 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/retail_v2/classes.rb, line 1890 def update!(**args) @product = args[:product] if args.key?(:product) @quantity = args[:quantity] if args.key?(:quantity) end