public sealed class ProductCatalogItem : IMessage<ProductCatalogItem>, IEquatable<ProductCatalogItem>, IDeepCloneable<ProductCatalogItem>, IBufferMessage, IMessage
Reference documentation and code samples for the Recommendations AI v1beta1 API class ProductCatalogItem.
ProductCatalogItem captures item metadata specific to retail products.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003e\u003ccode\u003eProductCatalogItem\u003c/code\u003e is a class within the Recommendations AI v1beta1 API, designed to represent retail product metadata.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e interfaces.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eProductCatalogItem\u003c/code\u003e includes properties such as \u003ccode\u003eAvailableQuantity\u003c/code\u003e, \u003ccode\u003eCanonicalProductUri\u003c/code\u003e, \u003ccode\u003eCosts\u003c/code\u003e, \u003ccode\u003eCurrencyCode\u003c/code\u003e, \u003ccode\u003eExactPrice\u003c/code\u003e, \u003ccode\u003eImages\u003c/code\u003e, \u003ccode\u003ePriceRange\u003c/code\u003e, and \u003ccode\u003eStockState\u003c/code\u003e to describe various product attributes.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors available for creating instances of \u003ccode\u003eProductCatalogItem\u003c/code\u003e: a default constructor and a constructor that takes another \u003ccode\u003eProductCatalogItem\u003c/code\u003e as a parameter.\u003c/p\u003e\n"],["\u003cp\u003eThere are 3 different versions of the \u003ccode\u003eProductCatalogItem\u003c/code\u003e : 2.0.0-beta06, 2.0.0-beta05 and 1.0.0-beta03.\u003c/p\u003e\n"]]],[],null,["# Recommendations AI v1beta1 API - Class ProductCatalogItem (2.0.0-beta06)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.0-beta06 (latest)](/dotnet/docs/reference/Google.Cloud.RecommendationEngine.V1Beta1/latest/Google.Cloud.RecommendationEngine.V1Beta1.ProductCatalogItem)\n- [2.0.0-beta05](/dotnet/docs/reference/Google.Cloud.RecommendationEngine.V1Beta1/2.0.0-beta05/Google.Cloud.RecommendationEngine.V1Beta1.ProductCatalogItem)\n- [1.0.0-beta03](/dotnet/docs/reference/Google.Cloud.RecommendationEngine.V1Beta1/1.0.0-beta03/Google.Cloud.RecommendationEngine.V1Beta1.ProductCatalogItem) \n\n public sealed class ProductCatalogItem : IMessage\u003cProductCatalogItem\u003e, IEquatable\u003cProductCatalogItem\u003e, IDeepCloneable\u003cProductCatalogItem\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Recommendations AI v1beta1 API class ProductCatalogItem.\n\nProductCatalogItem captures item metadata specific to retail products. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ProductCatalogItem \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ProductCatalogItem](/dotnet/docs/reference/Google.Cloud.RecommendationEngine.V1Beta1/latest/Google.Cloud.RecommendationEngine.V1Beta1.ProductCatalogItem), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ProductCatalogItem](/dotnet/docs/reference/Google.Cloud.RecommendationEngine.V1Beta1/latest/Google.Cloud.RecommendationEngine.V1Beta1.ProductCatalogItem), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ProductCatalogItem](/dotnet/docs/reference/Google.Cloud.RecommendationEngine.V1Beta1/latest/Google.Cloud.RecommendationEngine.V1Beta1.ProductCatalogItem), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.RecommendationEngine.V1Beta1](/dotnet/docs/reference/Google.Cloud.RecommendationEngine.V1Beta1/latest/Google.Cloud.RecommendationEngine.V1Beta1)\n\nAssembly\n--------\n\nGoogle.Cloud.RecommendationEngine.V1Beta1.dll\n\nConstructors\n------------\n\n### ProductCatalogItem()\n\n public ProductCatalogItem()\n\n### ProductCatalogItem(ProductCatalogItem)\n\n public ProductCatalogItem(ProductCatalogItem other)\n\nProperties\n----------\n\n### AvailableQuantity\n\n public long AvailableQuantity { get; set; }\n\nOptional. The available quantity of the item.\n\n### CanonicalProductUri\n\n public string CanonicalProductUri { get; set; }\n\nOptional. Canonical URL directly linking to the item detail page with a\nlength limit of 5 KiB..\n\n### Costs\n\n public MapField\u003cstring, float\u003e Costs { get; }\n\nOptional. A map to pass the costs associated with the product.\n\nFor example:\n{\"manufacturing\": 45.5} The profit of selling this item is computed like\nso:\n\n- If 'exactPrice' is provided, profit = displayPrice - sum(costs)\n- If 'priceRange' is provided, profit = minPrice - sum(costs)\n\n### CurrencyCode\n\n public string CurrencyCode { get; set; }\n\nOptional. Only required if the price is set. Currency code for price/costs. Use\nthree-character ISO-4217 code.\n\n### ExactPrice\n\n public ProductCatalogItem.Types.ExactPrice ExactPrice { get; set; }\n\nOptional. The exact product price.\n\n### Images\n\n public RepeatedField\u003cImage\u003e Images { get; }\n\nOptional. Product images for the catalog item.\n\n### PriceCase\n\n public ProductCatalogItem.PriceOneofCase PriceCase { get; }\n\n### PriceRange\n\n public ProductCatalogItem.Types.PriceRange PriceRange { get; set; }\n\nOptional. The product price range.\n\n### StockState\n\n public ProductCatalogItem.Types.StockState StockState { get; set; }\n\nOptional. Online stock state of the catalog item. Default is `IN_STOCK`."]]