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.
Implements
IMessage<ProductCatalogItem>, IEquatable<ProductCatalogItem>, IDeepCloneable<ProductCatalogItem>, IBufferMessage, IMessageNamespace
Google.Cloud.RecommendationEngine.V1Beta1Assembly
Google.Cloud.RecommendationEngine.V1Beta1.dll
Constructors
ProductCatalogItem()
public ProductCatalogItem()
ProductCatalogItem(ProductCatalogItem)
public ProductCatalogItem(ProductCatalogItem other)
Parameter | |
---|---|
Name | Description |
other | ProductCatalogItem |
Properties
AvailableQuantity
public long AvailableQuantity { get; set; }
Optional. The available quantity of the item.
Property Value | |
---|---|
Type | Description |
Int64 |
CanonicalProductUri
public string CanonicalProductUri { get; set; }
Optional. Canonical URL directly linking to the item detail page with a length limit of 5 KiB..
Property Value | |
---|---|
Type | Description |
String |
Costs
public MapField<string, float> Costs { get; }
Optional. A map to pass the costs associated with the product.
For example: {"manufacturing": 45.5} The profit of selling this item is computed like so:
- If 'exactPrice' is provided, profit = displayPrice - sum(costs)
- If 'priceRange' is provided, profit = minPrice - sum(costs)
Property Value | |
---|---|
Type | Description |
MapField<String, Single> |
CurrencyCode
public string CurrencyCode { get; set; }
Optional. Only required if the price is set. Currency code for price/costs. Use three-character ISO-4217 code.
Property Value | |
---|---|
Type | Description |
String |
ExactPrice
public ProductCatalogItem.Types.ExactPrice ExactPrice { get; set; }
Optional. The exact product price.
Property Value | |
---|---|
Type | Description |
ProductCatalogItem.Types.ExactPrice |
Images
public RepeatedField<Image> Images { get; }
Optional. Product images for the catalog item.
Property Value | |
---|---|
Type | Description |
RepeatedField<Image> |
PriceCase
public ProductCatalogItem.PriceOneofCase PriceCase { get; }
Property Value | |
---|---|
Type | Description |
ProductCatalogItem.PriceOneofCase |
PriceRange
public ProductCatalogItem.Types.PriceRange PriceRange { get; set; }
Optional. The product price range.
Property Value | |
---|---|
Type | Description |
ProductCatalogItem.Types.PriceRange |
StockState
public ProductCatalogItem.Types.StockState StockState { get; set; }
Optional. Online stock state of the catalog item. Default is IN_STOCK
.
Property Value | |
---|---|
Type | Description |
ProductCatalogItem.Types.StockState |