Interface ProductDetailOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ProductDetail
,ProductDetail.Builder
public interface ProductDetailOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getAvailableQuantity()
Optional.String
getCurrencyCode()
Optional.com.google.protobuf.ByteString
getCurrencyCodeBytes()
Optional.float
getDisplayPrice()
Optional.String
getId()
Required.com.google.protobuf.ByteString
getIdBytes()
Required.FeatureMap
getItemAttributes()
Optional.FeatureMapOrBuilder
getItemAttributesOrBuilder()
Optional.float
getOriginalPrice()
Optional.int
getQuantity()
Optional.ProductCatalogItem.StockState
getStockState()
Optional.int
getStockStateValue()
Optional.boolean
hasItemAttributes()
Optional.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getId
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];
- Returns:
- The id.
-
getIdBytes
com.google.protobuf.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];
- Returns:
- The bytes for id.
-
getCurrencyCode
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];
- Returns:
- The currencyCode.
-
getCurrencyCodeBytes
com.google.protobuf.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];
- Returns:
- The bytes for currencyCode.
-
getOriginalPrice
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];
- Returns:
- The originalPrice.
-
getDisplayPrice
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];
- Returns:
- The displayPrice.
-
getStockStateValue
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];
- Returns:
- The enum numeric value on the wire for stockState.
-
getStockState
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];
- Returns:
- The stockState.
-
getQuantity
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];
- Returns:
- The quantity.
-
getAvailableQuantity
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];
- Returns:
- The availableQuantity.
-
hasItemAttributes
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];
- Returns:
- Whether the itemAttributes field is set.
-
getItemAttributes
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];
- Returns:
- The itemAttributes.
-
getItemAttributesOrBuilder
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];
-
-