Class ProductCatalogItem
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem
- All Implemented Interfaces:
ProductCatalogItemOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class ProductCatalogItem
extends com.google.protobuf.GeneratedMessage
implements ProductCatalogItemOrBuilder
ProductCatalogItem captures item metadata specific to retail products.Protobuf type
google.cloud.recommendationengine.v1beta1.ProductCatalogItem- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProductCatalogItem captures item metadata specific to retail products.static final classExact product price.static interfacestatic enumstatic final classProduct price range when there are a range of prices for different variations of the same product.static interfacestatic enumItem stock state.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsCosts(String key) Optional.booleanlongOptional.Optional.com.google.protobuf.ByteStringOptional.getCosts()Deprecated.intOptional.Optional.floatgetCostsOrDefault(String key, float defaultValue) Optional.floatgetCostsOrThrow(String key) Optional.Optional.com.google.protobuf.ByteStringOptional.static ProductCatalogItemstatic final com.google.protobuf.Descriptors.DescriptorOptional.Optional.getImages(int index) Optional.intOptional.Optional.getImagesOrBuilder(int index) Optional.List<? extends ImageOrBuilder>Optional.com.google.protobuf.Parser<ProductCatalogItem>Optional.Optional.intOptional.intOptional.booleanOptional.inthashCode()booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleanstatic ProductCatalogItem.Builderstatic ProductCatalogItem.BuildernewBuilder(ProductCatalogItem prototype) protected ProductCatalogItem.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static ProductCatalogItemparseDelimitedFrom(InputStream input) static ProductCatalogItemparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProductCatalogItemparseFrom(byte[] data) static ProductCatalogItemparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProductCatalogItemparseFrom(com.google.protobuf.ByteString data) static ProductCatalogItemparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProductCatalogItemparseFrom(com.google.protobuf.CodedInputStream input) static ProductCatalogItemparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProductCatalogItemparseFrom(InputStream input) static ProductCatalogItemparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProductCatalogItemparseFrom(ByteBuffer data) static ProductCatalogItemparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ProductCatalogItem>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
EXACT_PRICE_FIELD_NUMBER
public static final int EXACT_PRICE_FIELD_NUMBER- See Also:
-
PRICE_RANGE_FIELD_NUMBER
public static final int PRICE_RANGE_FIELD_NUMBER- See Also:
-
COSTS_FIELD_NUMBER
public static final int COSTS_FIELD_NUMBER- See Also:
-
CURRENCY_CODE_FIELD_NUMBER
public static final int CURRENCY_CODE_FIELD_NUMBER- See Also:
-
STOCK_STATE_FIELD_NUMBER
public static final int STOCK_STATE_FIELD_NUMBER- See Also:
-
AVAILABLE_QUANTITY_FIELD_NUMBER
public static final int AVAILABLE_QUANTITY_FIELD_NUMBER- See Also:
-
CANONICAL_PRODUCT_URI_FIELD_NUMBER
public static final int CANONICAL_PRODUCT_URI_FIELD_NUMBER- See Also:
-
IMAGES_FIELD_NUMBER
public static final int IMAGES_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getPriceCase
- Specified by:
getPriceCasein interfaceProductCatalogItemOrBuilder
-
hasExactPrice
public boolean hasExactPrice()Optional. The exact product price.
.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasExactPricein interfaceProductCatalogItemOrBuilder- Returns:
- Whether the exactPrice field is set.
-
getExactPrice
Optional. The exact product price.
.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getExactPricein interfaceProductCatalogItemOrBuilder- Returns:
- The exactPrice.
-
getExactPriceOrBuilder
Optional. The exact product price.
.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getExactPriceOrBuilderin interfaceProductCatalogItemOrBuilder
-
hasPriceRange
public boolean hasPriceRange()Optional. The product price range.
.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasPriceRangein interfaceProductCatalogItemOrBuilder- Returns:
- Whether the priceRange field is set.
-
getPriceRange
Optional. The product price range.
.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPriceRangein interfaceProductCatalogItemOrBuilder- Returns:
- The priceRange.
-
getPriceRangeOrBuilder
Optional. The product price range.
.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPriceRangeOrBuilderin interfaceProductCatalogItemOrBuilder
-
getCostsCount
public int getCostsCount()Description copied from interface:ProductCatalogItemOrBuilderOptional. 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];- Specified by:
getCostsCountin interfaceProductCatalogItemOrBuilder
-
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];- Specified by:
containsCostsin interfaceProductCatalogItemOrBuilder
-
getCosts
Deprecated.UsegetCostsMap()instead.- Specified by:
getCostsin interfaceProductCatalogItemOrBuilder
-
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];- Specified by:
getCostsMapin interfaceProductCatalogItemOrBuilder
-
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];- Specified by:
getCostsOrDefaultin interfaceProductCatalogItemOrBuilder
-
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];- Specified by:
getCostsOrThrowin interfaceProductCatalogItemOrBuilder
-
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];- Specified by:
getCurrencyCodein interfaceProductCatalogItemOrBuilder- Returns:
- The currencyCode.
-
getCurrencyCodeBytes
public 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];- Specified by:
getCurrencyCodeBytesin interfaceProductCatalogItemOrBuilder- Returns:
- The bytes for currencyCode.
-
getStockStateValue
public 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];- Specified by:
getStockStateValuein interfaceProductCatalogItemOrBuilder- Returns:
- The enum numeric value on the wire for 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];- Specified by:
getStockStatein interfaceProductCatalogItemOrBuilder- Returns:
- The stockState.
-
getAvailableQuantity
public long getAvailableQuantity()Optional. The available quantity of the item.
int64 available_quantity = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAvailableQuantityin interfaceProductCatalogItemOrBuilder- Returns:
- The availableQuantity.
-
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];- Specified by:
getCanonicalProductUriin interfaceProductCatalogItemOrBuilder- Returns:
- The canonicalProductUri.
-
getCanonicalProductUriBytes
public 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];- Specified by:
getCanonicalProductUriBytesin interfaceProductCatalogItemOrBuilder- 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];- Specified by:
getImagesListin interfaceProductCatalogItemOrBuilder
-
getImagesOrBuilderList
Optional. Product images for the catalog item.
repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getImagesOrBuilderListin interfaceProductCatalogItemOrBuilder
-
getImagesCount
public int getImagesCount()Optional. Product images for the catalog item.
repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getImagesCountin interfaceProductCatalogItemOrBuilder
-
getImages
Optional. Product images for the catalog item.
repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getImagesin interfaceProductCatalogItemOrBuilder
-
getImagesOrBuilder
Optional. Product images for the catalog item.
repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getImagesOrBuilderin interfaceProductCatalogItemOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ProductCatalogItem parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProductCatalogItem parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProductCatalogItem parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProductCatalogItem parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProductCatalogItem parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProductCatalogItem parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ProductCatalogItem parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static ProductCatalogItem parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static ProductCatalogItem parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static ProductCatalogItem parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ProductCatalogItem.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-