Only [Product.id][google.cloud.retail.v2.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 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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-17 UTC."],[[["This page details the `ProductDetail` class, which is used to represent detailed information about a product associated with a user event in the Google Cloud Retail V2 API."],["The `ProductDetail` class is a concrete implementation of several interfaces, including `IMessage`, `IEquatable\u003cProductDetail\u003e`, `IDeepCloneable\u003cProductDetail\u003e`, and `IBufferMessage`."],["The class contains two primary properties: `Product`, which stores the `Product` information (with only the Product.id being utilized during event ingestion), and `Quantity`, representing the quantity of the product related to the user event."],["There are multiple versions of the `ProductDetail` class available, ranging from version 1.0.0 to the latest version 2.12.0."],["The `ProductDetail` class has two constructors: a default constructor and a copy constructor that takes another `ProductDetail` instance as a parameter."]]],[]]