Reference documentation and code samples for the Recommendations AI V1beta1 API class Google::Cloud::RecommendationEngine::V1beta1::ProductCatalogItem.
ProductCatalogItem captures item metadata specific to retail products.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#available_quantity
def available_quantity() -> ::Integer
- (::Integer) — Optional. The available quantity of the item.
#available_quantity=
def available_quantity=(value) -> ::Integer
- value (::Integer) — Optional. The available quantity of the item.
- (::Integer) — Optional. The available quantity of the item.
#canonical_product_uri
def canonical_product_uri() -> ::String
- (::String) — Optional. Canonical URL directly linking to the item detail page with a length limit of 5 KiB..
#canonical_product_uri=
def canonical_product_uri=(value) -> ::String
- value (::String) — Optional. Canonical URL directly linking to the item detail page with a length limit of 5 KiB..
- (::String) — Optional. Canonical URL directly linking to the item detail page with a length limit of 5 KiB..
#costs
def costs() -> ::Google::Protobuf::Map{::String => ::Float}
-
(::Google::Protobuf::Map{::String => ::Float}) —
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)
#costs=
def costs=(value) -> ::Google::Protobuf::Map{::String => ::Float}
-
value (::Google::Protobuf::Map{::String => ::Float}) —
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)
-
(::Google::Protobuf::Map{::String => ::Float}) —
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)
#currency_code
def currency_code() -> ::String
- (::String) — Optional. Only required if the price is set. Currency code for price/costs. Use three-character ISO-4217 code.
#currency_code=
def currency_code=(value) -> ::String
- value (::String) — Optional. Only required if the price is set. Currency code for price/costs. Use three-character ISO-4217 code.
- (::String) — Optional. Only required if the price is set. Currency code for price/costs. Use three-character ISO-4217 code.
#exact_price
def exact_price() -> ::Google::Cloud::RecommendationEngine::V1beta1::ProductCatalogItem::ExactPrice
- (::Google::Cloud::RecommendationEngine::V1beta1::ProductCatalogItem::ExactPrice) — Optional. The exact product price.
#exact_price=
def exact_price=(value) -> ::Google::Cloud::RecommendationEngine::V1beta1::ProductCatalogItem::ExactPrice
- value (::Google::Cloud::RecommendationEngine::V1beta1::ProductCatalogItem::ExactPrice) — Optional. The exact product price.
- (::Google::Cloud::RecommendationEngine::V1beta1::ProductCatalogItem::ExactPrice) — Optional. The exact product price.
#images
def images() -> ::Array<::Google::Cloud::RecommendationEngine::V1beta1::Image>
- (::Array<::Google::Cloud::RecommendationEngine::V1beta1::Image>) — Optional. Product images for the catalog item.
#images=
def images=(value) -> ::Array<::Google::Cloud::RecommendationEngine::V1beta1::Image>
- value (::Array<::Google::Cloud::RecommendationEngine::V1beta1::Image>) — Optional. Product images for the catalog item.
- (::Array<::Google::Cloud::RecommendationEngine::V1beta1::Image>) — Optional. Product images for the catalog item.
#price_range
def price_range() -> ::Google::Cloud::RecommendationEngine::V1beta1::ProductCatalogItem::PriceRange
- (::Google::Cloud::RecommendationEngine::V1beta1::ProductCatalogItem::PriceRange) — Optional. The product price range.
#price_range=
def price_range=(value) -> ::Google::Cloud::RecommendationEngine::V1beta1::ProductCatalogItem::PriceRange
- value (::Google::Cloud::RecommendationEngine::V1beta1::ProductCatalogItem::PriceRange) — Optional. The product price range.
- (::Google::Cloud::RecommendationEngine::V1beta1::ProductCatalogItem::PriceRange) — Optional. The product price range.
#stock_state
def stock_state() -> ::Google::Cloud::RecommendationEngine::V1beta1::ProductCatalogItem::StockState
-
(::Google::Cloud::RecommendationEngine::V1beta1::ProductCatalogItem::StockState) — Optional. Online stock state of the catalog item. Default is
IN_STOCK
.
#stock_state=
def stock_state=(value) -> ::Google::Cloud::RecommendationEngine::V1beta1::ProductCatalogItem::StockState
-
value (::Google::Cloud::RecommendationEngine::V1beta1::ProductCatalogItem::StockState) — Optional. Online stock state of the catalog item. Default is
IN_STOCK
.
-
(::Google::Cloud::RecommendationEngine::V1beta1::ProductCatalogItem::StockState) — Optional. Online stock state of the catalog item. Default is
IN_STOCK
.