Interface ProductCatalogItemOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ProductCatalogItem,ProductCatalogItem.Builder
@Generated
public interface ProductCatalogItemOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsCosts(String key) Optional.longOptional.Optional.com.google.protobuf.ByteStringOptional.getCosts()Deprecated.intOptional.Optional.floatgetCostsOrDefault(String key, float defaultValue) Optional.floatgetCostsOrThrow(String key) Optional.Optional.com.google.protobuf.ByteStringOptional.Optional.Optional.getImages(int index) Optional.intOptional.Optional.getImagesOrBuilder(int index) Optional.List<? extends ImageOrBuilder>Optional.Optional.Optional.Optional.intOptional.booleanOptional.booleanOptional.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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
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.UsegetCostsMap()instead. -
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
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
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
Optional. Product images for the catalog item.
repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; -
getImages
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
Optional. Product images for the catalog item.
repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; -
getPriceCase
ProductCatalogItem.PriceCase getPriceCase()
-