Class ProductDetail
Detailed product information associated with a user event.
Inheritance
System.Object
ProductDetail
Inherited Members
System.Object.ToString()
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Google.Cloud.Retail.V2
Assembly: Google.Cloud.Retail.V2.dll
Syntax
public sealed class ProductDetail : IMessage<ProductDetail>, IEquatable<ProductDetail>, IDeepCloneable<ProductDetail>, IBufferMessage, IMessage
Constructors
ProductDetail()
Declaration
public ProductDetail()
ProductDetail(ProductDetail)
Declaration
public ProductDetail(ProductDetail other)
Parameters
Type | Name | Description |
---|---|---|
ProductDetail | other |
Properties
Product
Required. [Product][google.cloud.retail.v2.Product] information.
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.
Declaration
public Product Product { get; set; }
Property Value
Type | Description |
---|---|
Product |
Quantity
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.
Declaration
public int? Quantity { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |