Class ProductDetail (0.1.0)

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

Detailed product information associated with a user event.

Attributes

NameDescription
product google.cloud.retail_v2.types.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.
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.