Class ProductDetail (0.3.1)

ProductDetail(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Detailed product information associated with a user event. .. attribute:: product

Required. Product information.

Only Product.id field is used when ingesting an event, all other product fields are ignored as we will look them up from the catalog.

:type: google.cloud.retail_v2.types.Product

Attribute

NameDescription
quantity google.protobuf.wrappers_pb2.Int32Value
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.