class Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProductDetail

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::RetailV2alpha::GoogleCloudRetailV2alphaProduct]

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_v2alpha/classes.rb, line 2405
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_v2alpha/classes.rb, line 2410
def update!(**args)
  @product = args[:product] if args.key?(:product)
  @quantity = args[:quantity] if args.key?(:quantity)
end