Interface ProductCatalogItemOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ProductCatalogItem
,ProductCatalogItem.Builder
public interface ProductCatalogItemOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasExactPrice
boolean hasExactPrice()
Optional. The exact product price.
.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- Whether the exactPrice field is set.
-
getExactPrice
ProductCatalogItem.ExactPrice getExactPrice()
Optional. The exact product price.
.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- The exactPrice.
-
getExactPriceOrBuilder
ProductCatalogItem.ExactPriceOrBuilder getExactPriceOrBuilder()
Optional. The exact product price.
.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL];
-
hasPriceRange
boolean hasPriceRange()
Optional. The product price range.
.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- Whether the priceRange field is set.
-
getPriceRange
ProductCatalogItem.PriceRange getPriceRange()
Optional. The product price range.
.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- The priceRange.
-
getPriceRangeOrBuilder
ProductCatalogItem.PriceRangeOrBuilder getPriceRangeOrBuilder()
Optional. The product price range.
.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL];
-
getCostsCount
int getCostsCount()
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)
map<string, float> costs = 3 [(.google.api.field_behavior) = OPTIONAL];
-
containsCosts
boolean containsCosts(String key)
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)
map<string, float> costs = 3 [(.google.api.field_behavior) = OPTIONAL];
-
getCosts
@Deprecated Map<String,Float> getCosts()
Deprecated.UsegetCostsMap()
instead.
-
getCostsMap
Map<String,Float> getCostsMap()
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)
map<string, float> costs = 3 [(.google.api.field_behavior) = OPTIONAL];
-
getCostsOrDefault
float getCostsOrDefault(String key, float defaultValue)
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)
map<string, float> costs = 3 [(.google.api.field_behavior) = OPTIONAL];
-
getCostsOrThrow
float getCostsOrThrow(String key)
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)
map<string, float> costs = 3 [(.google.api.field_behavior) = OPTIONAL];
-
getCurrencyCode
String getCurrencyCode()
Optional. Only required if the price is set. Currency code for price/costs. Use three-character ISO-4217 code.
string currency_code = 4 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- The currencyCode.
-
getCurrencyCodeBytes
com.google.protobuf.ByteString getCurrencyCodeBytes()
Optional. Only required if the price is set. Currency code for price/costs. Use three-character ISO-4217 code.
string currency_code = 4 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- The bytes for currencyCode.
-
getStockStateValue
int getStockStateValue()
Optional. Online stock state of the catalog item. Default is `IN_STOCK`.
.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. Online stock state of the catalog item. Default is `IN_STOCK`.
.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- The stockState.
-
getAvailableQuantity
long getAvailableQuantity()
Optional. The available quantity of the item.
int64 available_quantity = 6 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- The availableQuantity.
-
getCanonicalProductUri
String getCanonicalProductUri()
Optional. Canonical URL directly linking to the item detail page with a length limit of 5 KiB..
string canonical_product_uri = 7 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- The canonicalProductUri.
-
getCanonicalProductUriBytes
com.google.protobuf.ByteString getCanonicalProductUriBytes()
Optional. Canonical URL directly linking to the item detail page with a length limit of 5 KiB..
string canonical_product_uri = 7 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- The bytes for canonicalProductUri.
-
getImagesList
List<Image> getImagesList()
Optional. Product images for the catalog item.
repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL];
-
getImages
Image getImages(int index)
Optional. Product images for the catalog item.
repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL];
-
getImagesCount
int getImagesCount()
Optional. Product images for the catalog item.
repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL];
-
getImagesOrBuilderList
List<? extends ImageOrBuilder> getImagesOrBuilderList()
Optional. Product images for the catalog item.
repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL];
-
getImagesOrBuilder
ImageOrBuilder getImagesOrBuilder(int index)
Optional. Product images for the catalog item.
repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL];
-
getPriceCase
ProductCatalogItem.PriceCase getPriceCase()
-
-