- 0.62.0 (latest)
- 0.61.0
- 0.60.0
- 0.59.0
- 0.58.0
- 0.56.0
- 0.55.0
- 0.54.0
- 0.53.0
- 0.52.0
- 0.51.0
- 0.50.0
- 0.49.0
- 0.48.0
- 0.47.0
- 0.46.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.39.0
- 0.38.0
- 0.37.0
- 0.36.0
- 0.35.0
- 0.34.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.26.0
- 0.25.0
- 0.24.0
- 0.23.0
- 0.22.0
- 0.21.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.4
- 0.8.10
public interface ProductDetailOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
getAvailableQuantity()
public abstract int getAvailableQuantity()
Optional. Quantity of the products in stock when a user event happens.
Optional. If provided, this overrides the available quantity in Catalog for
this event. and can only be set if stock_status
is set to IN_STOCK
.
Note that if an item is out of stock, you must set the stock_state
field
to be OUT_OF_STOCK
. Leaving this field unspecified / as zero is not
sufficient to mark the item out of stock.
int32 available_quantity = 7 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
int | The availableQuantity. |
getCurrencyCode()
public abstract String getCurrencyCode()
Optional. Currency code for price/costs. Use three-character ISO-4217 code. Required only if originalPrice or displayPrice is set.
string currency_code = 2 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
String | The currencyCode. |
getCurrencyCodeBytes()
public abstract ByteString getCurrencyCodeBytes()
Optional. Currency code for price/costs. Use three-character ISO-4217 code. Required only if originalPrice or displayPrice is set.
string currency_code = 2 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
ByteString | The bytes for currencyCode. |
getDisplayPrice()
public abstract float getDisplayPrice()
Optional. Display price of the product (e.g. discounted price). If provided, this will override the display price in Catalog for this product.
float display_price = 4 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
float | The displayPrice. |
getId()
public abstract String getId()
Required. Catalog item ID. UTF-8 encoded string with a length limit of 128 characters.
string id = 1 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
String | The id. |
getIdBytes()
public abstract ByteString getIdBytes()
Required. Catalog item ID. UTF-8 encoded string with a length limit of 128 characters.
string id = 1 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
ByteString | The bytes for id. |
getItemAttributes()
public abstract FeatureMap getItemAttributes()
Optional. Extra features associated with a product in the user event.
.google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
FeatureMap | The itemAttributes. |
getItemAttributesOrBuilder()
public abstract FeatureMapOrBuilder getItemAttributesOrBuilder()
Optional. Extra features associated with a product in the user event.
.google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
FeatureMapOrBuilder |
getOriginalPrice()
public abstract float getOriginalPrice()
Optional. Original price of the product. If provided, this will override the original price in Catalog for this product.
float original_price = 3 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
float | The originalPrice. |
getQuantity()
public abstract int getQuantity()
Optional. 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 add-to-cart
event. Required for add-to-cart
, add-to-list
,
remove-from-cart
, checkout-start
, purchase-complete
, refund
event
types.
int32 quantity = 6 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
int | The quantity. |
getStockState()
public abstract ProductCatalogItem.StockState getStockState()
Optional. Item stock state. If provided, this overrides the stock state in Catalog for items in this event.
.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
ProductCatalogItem.StockState | The stockState. |
getStockStateValue()
public abstract int getStockStateValue()
Optional. Item stock state. If provided, this overrides the stock state in Catalog for items in this event.
.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
int | The enum numeric value on the wire for stockState. |
hasItemAttributes()
public abstract boolean hasItemAttributes()
Optional. Extra features associated with a product in the user event.
.google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
boolean | Whether the itemAttributes field is set. |