Package com.google.cloud.retail.v2alpha
Class Product.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Product.Builder>
com.google.cloud.retail.v2alpha.Product.Builder
- All Implemented Interfaces:
ProductOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Product
public static final class Product.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Product.Builder>
implements ProductOrBuilder
Product captures all metadata information of items to be recommended or searched.Protobuf type
google.cloud.retail.v2alpha.Product-
Method Summary
Modifier and TypeMethodDescriptionaddAllBrands(Iterable<String> values) The brands of the product.addAllCategories(Iterable<String> values) Product categories.addAllCollectionMemberIds(Iterable<String> values) The [id][google.cloud.retail.v2alpha.Product.id] of the collection members when [type][google.cloud.retail.v2alpha.Product.type] is [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION].addAllConditions(Iterable<String> values) The condition of the product.addAllFulfillmentInfo(Iterable<? extends FulfillmentInfo> values) Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods.addAllImages(Iterable<? extends Image> values) Product images for the product.addAllLocalInventories(Iterable<? extends LocalInventory> values) Output only.addAllMaterials(Iterable<String> values) The material of the product.addAllPatterns(Iterable<String> values) The pattern or graphic print of the product.addAllPromotions(Iterable<? extends Promotion> values) The promotions applied to the product.addAllSizes(Iterable<String> values) The size of the product.addAllTags(Iterable<String> values) Custom tags associated with the product.addAllVariants(Iterable<? extends Product> values) Output only.The brands of the product.addBrandsBytes(com.google.protobuf.ByteString value) The brands of the product.addCategories(String value) Product categories.addCategoriesBytes(com.google.protobuf.ByteString value) Product categories.addCollectionMemberIds(String value) The [id][google.cloud.retail.v2alpha.Product.id] of the collection members when [type][google.cloud.retail.v2alpha.Product.type] is [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION].addCollectionMemberIdsBytes(com.google.protobuf.ByteString value) The [id][google.cloud.retail.v2alpha.Product.id] of the collection members when [type][google.cloud.retail.v2alpha.Product.type] is [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION].addConditions(String value) The condition of the product.addConditionsBytes(com.google.protobuf.ByteString value) The condition of the product.addFulfillmentInfo(int index, FulfillmentInfo value) Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods.addFulfillmentInfo(int index, FulfillmentInfo.Builder builderForValue) Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods.Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods.addFulfillmentInfo(FulfillmentInfo.Builder builderForValue) Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods.Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods.addFulfillmentInfoBuilder(int index) Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods.Product images for the product.addImages(int index, Image.Builder builderForValue) Product images for the product.Product images for the product.addImages(Image.Builder builderForValue) Product images for the product.Product images for the product.addImagesBuilder(int index) Product images for the product.addLocalInventories(int index, LocalInventory value) Output only.addLocalInventories(int index, LocalInventory.Builder builderForValue) Output only.Output only.addLocalInventories(LocalInventory.Builder builderForValue) Output only.Output only.addLocalInventoriesBuilder(int index) Output only.addMaterials(String value) The material of the product.addMaterialsBytes(com.google.protobuf.ByteString value) The material of the product.addPatterns(String value) The pattern or graphic print of the product.addPatternsBytes(com.google.protobuf.ByteString value) The pattern or graphic print of the product.addPromotions(int index, Promotion value) The promotions applied to the product.addPromotions(int index, Promotion.Builder builderForValue) The promotions applied to the product.addPromotions(Promotion value) The promotions applied to the product.addPromotions(Promotion.Builder builderForValue) The promotions applied to the product.The promotions applied to the product.addPromotionsBuilder(int index) The promotions applied to the product.The size of the product.addSizesBytes(com.google.protobuf.ByteString value) The size of the product.Custom tags associated with the product.addTagsBytes(com.google.protobuf.ByteString value) Custom tags associated with the product.addVariants(int index, Product value) Output only.addVariants(int index, Product.Builder builderForValue) Output only.addVariants(Product value) Output only.addVariants(Product.Builder builderForValue) Output only.Output only.addVariantsBuilder(int index) Output only.build()clear()The target group associated with a given audience (e.g. male, veterans, car owners, musicians, etc.) of the product.The online availability of the [Product][google.cloud.retail.v2alpha.Product].The available quantity of the item.The timestamp when this [Product][google.cloud.retail.v2alpha.Product] becomes available for [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search].The brands of the product.Product categories.The [id][google.cloud.retail.v2alpha.Product.id] of the collection members when [type][google.cloud.retail.v2alpha.Product.type] is [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION].The color of the product.The condition of the product.Product description.Note that this field is applied in the following ways: * If the [Product][google.cloud.retail.v2alpha.Product] is already expired when it is uploaded, this product is not indexed for searchFulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods.The Global Trade Item Number (GTIN) of the product.clearId()Immutable.Product images for the product.Language of the title/description and other string attributes.Output only.The material of the product.Immutable.The pattern or graphic print of the product.Product price and cost information.Variant group identifier.The promotions applied to the product.The timestamp when the product is published by the retailer for the first time, which indicates the freshness of the products.The rating of this product.Deprecated.The size of the product.Custom tags associated with the product.Required.clearTtl()Input only.Immutable.clearUri()Canonical URL directly linking to the product detail page.Output only.booleancontainsAttributes(String key) Highly encouraged.Deprecated.intHighly encouraged.Highly encouraged.getAttributesOrDefault(String key, CustomAttribute defaultValue) Highly encouraged.Highly encouraged.The target group associated with a given audience (e.g. male, veterans, car owners, musicians, etc.) of the product.The target group associated with a given audience (e.g. male, veterans, car owners, musicians, etc.) of the product.The target group associated with a given audience (e.g. male, veterans, car owners, musicians, etc.) of the product.The online availability of the [Product][google.cloud.retail.v2alpha.Product].intThe online availability of the [Product][google.cloud.retail.v2alpha.Product].com.google.protobuf.Int32ValueThe available quantity of the item.com.google.protobuf.Int32Value.BuilderThe available quantity of the item.com.google.protobuf.Int32ValueOrBuilderThe available quantity of the item.com.google.protobuf.TimestampThe timestamp when this [Product][google.cloud.retail.v2alpha.Product] becomes available for [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search].com.google.protobuf.Timestamp.BuilderThe timestamp when this [Product][google.cloud.retail.v2alpha.Product] becomes available for [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search].com.google.protobuf.TimestampOrBuilderThe timestamp when this [Product][google.cloud.retail.v2alpha.Product] becomes available for [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search].getBrands(int index) The brands of the product.com.google.protobuf.ByteStringgetBrandsBytes(int index) The brands of the product.intThe brands of the product.com.google.protobuf.ProtocolStringListThe brands of the product.getCategories(int index) Product categories.com.google.protobuf.ByteStringgetCategoriesBytes(int index) Product categories.intProduct categories.com.google.protobuf.ProtocolStringListProduct categories.getCollectionMemberIds(int index) The [id][google.cloud.retail.v2alpha.Product.id] of the collection members when [type][google.cloud.retail.v2alpha.Product.type] is [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION].com.google.protobuf.ByteStringgetCollectionMemberIdsBytes(int index) The [id][google.cloud.retail.v2alpha.Product.id] of the collection members when [type][google.cloud.retail.v2alpha.Product.type] is [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION].intThe [id][google.cloud.retail.v2alpha.Product.id] of the collection members when [type][google.cloud.retail.v2alpha.Product.type] is [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION].com.google.protobuf.ProtocolStringListThe [id][google.cloud.retail.v2alpha.Product.id] of the collection members when [type][google.cloud.retail.v2alpha.Product.type] is [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION].The color of the product.The color of the product.The color of the product.getConditions(int index) The condition of the product.com.google.protobuf.ByteStringgetConditionsBytes(int index) The condition of the product.intThe condition of the product.com.google.protobuf.ProtocolStringListThe condition of the product.Product description.com.google.protobuf.ByteStringProduct description.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampNote that this field is applied in the following ways: * If the [Product][google.cloud.retail.v2alpha.Product] is already expired when it is uploaded, this product is not indexed for searchcom.google.protobuf.Timestamp.BuilderNote that this field is applied in the following ways: * If the [Product][google.cloud.retail.v2alpha.Product] is already expired when it is uploaded, this product is not indexed for searchcom.google.protobuf.TimestampOrBuilderNote that this field is applied in the following ways: * If the [Product][google.cloud.retail.v2alpha.Product] is already expired when it is uploaded, this product is not indexed for searchgetFulfillmentInfo(int index) Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods.getFulfillmentInfoBuilder(int index) Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods.Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods.intFulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods.Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods.getFulfillmentInfoOrBuilder(int index) Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods.List<? extends FulfillmentInfoOrBuilder>Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods.getGtin()The Global Trade Item Number (GTIN) of the product.com.google.protobuf.ByteStringThe Global Trade Item Number (GTIN) of the product.getId()Immutable.com.google.protobuf.ByteStringImmutable.getImages(int index) Product images for the product.getImagesBuilder(int index) Product images for the product.Product images for the product.intProduct images for the product.Product images for the product.getImagesOrBuilder(int index) Product images for the product.List<? extends ImageOrBuilder>Product images for the product.Language of the title/description and other string attributes.com.google.protobuf.ByteStringLanguage of the title/description and other string attributes.getLocalInventories(int index) Output only.getLocalInventoriesBuilder(int index) Output only.Output only.intOutput only.Output only.getLocalInventoriesOrBuilder(int index) Output only.List<? extends LocalInventoryOrBuilder>Output only.getMaterials(int index) The material of the product.com.google.protobuf.ByteStringgetMaterialsBytes(int index) The material of the product.intThe material of the product.com.google.protobuf.ProtocolStringListThe material of the product.Deprecated.getName()Immutable.com.google.protobuf.ByteStringImmutable.getPatterns(int index) The pattern or graphic print of the product.com.google.protobuf.ByteStringgetPatternsBytes(int index) The pattern or graphic print of the product.intThe pattern or graphic print of the product.com.google.protobuf.ProtocolStringListThe pattern or graphic print of the product.Product price and cost information.Product price and cost information.Product price and cost information.Variant group identifier.com.google.protobuf.ByteStringVariant group identifier.getPromotions(int index) The promotions applied to the product.getPromotionsBuilder(int index) The promotions applied to the product.The promotions applied to the product.intThe promotions applied to the product.The promotions applied to the product.getPromotionsOrBuilder(int index) The promotions applied to the product.List<? extends PromotionOrBuilder>The promotions applied to the product.com.google.protobuf.TimestampThe timestamp when the product is published by the retailer for the first time, which indicates the freshness of the products.com.google.protobuf.Timestamp.BuilderThe timestamp when the product is published by the retailer for the first time, which indicates the freshness of the products.com.google.protobuf.TimestampOrBuilderThe timestamp when the product is published by the retailer for the first time, which indicates the freshness of the products.The rating of this product.The rating of this product.The rating of this product.com.google.protobuf.FieldMaskDeprecated.google.cloud.retail.v2alpha.Product.retrievable_fields is deprecated.com.google.protobuf.FieldMask.BuilderDeprecated.com.google.protobuf.FieldMaskOrBuilderDeprecated.getSizes(int index) The size of the product.com.google.protobuf.ByteStringgetSizesBytes(int index) The size of the product.intThe size of the product.com.google.protobuf.ProtocolStringListThe size of the product.getTags(int index) Custom tags associated with the product.com.google.protobuf.ByteStringgetTagsBytes(int index) Custom tags associated with the product.intCustom tags associated with the product.com.google.protobuf.ProtocolStringListCustom tags associated with the product.getTitle()Required.com.google.protobuf.ByteStringRequired.com.google.protobuf.DurationgetTtl()Input only.com.google.protobuf.Duration.BuilderInput only.com.google.protobuf.DurationOrBuilderInput only.getType()Immutable.intImmutable.getUri()Canonical URL directly linking to the product detail page.com.google.protobuf.ByteStringCanonical URL directly linking to the product detail page.getVariants(int index) Output only.getVariantsBuilder(int index) Output only.Output only.intOutput only.Output only.getVariantsOrBuilder(int index) Output only.List<? extends ProductOrBuilder>Output only.booleanThe target group associated with a given audience (e.g. male, veterans, car owners, musicians, etc.) of the product.booleanThe available quantity of the item.booleanThe timestamp when this [Product][google.cloud.retail.v2alpha.Product] becomes available for [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search].booleanThe color of the product.booleanNote that this field is applied in the following ways: * If the [Product][google.cloud.retail.v2alpha.Product] is already expired when it is uploaded, this product is not indexed for searchbooleanProduct price and cost information.booleanThe timestamp when the product is published by the retailer for the first time, which indicates the freshness of the products.booleanThe rating of this product.booleanDeprecated.google.cloud.retail.v2alpha.Product.retrievable_fields is deprecated.booleanhasTtl()Input only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeAudience(Audience value) The target group associated with a given audience (e.g. male, veterans, car owners, musicians, etc.) of the product.mergeAvailableQuantity(com.google.protobuf.Int32Value value) The available quantity of the item.mergeAvailableTime(com.google.protobuf.Timestamp value) The timestamp when this [Product][google.cloud.retail.v2alpha.Product] becomes available for [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search].mergeColorInfo(ColorInfo value) The color of the product.mergeExpireTime(com.google.protobuf.Timestamp value) Note that this field is applied in the following ways: * If the [Product][google.cloud.retail.v2alpha.Product] is already expired when it is uploaded, this product is not indexed for searchmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergePriceInfo(PriceInfo value) Product price and cost information.mergePublishTime(com.google.protobuf.Timestamp value) The timestamp when the product is published by the retailer for the first time, which indicates the freshness of the products.mergeRating(Rating value) The rating of this product.mergeRetrievableFields(com.google.protobuf.FieldMask value) Deprecated.mergeTtl(com.google.protobuf.Duration value) Input only.putAllAttributes(Map<String, CustomAttribute> values) Highly encouraged.putAttributes(String key, CustomAttribute value) Highly encouraged.Highly encouraged.removeAttributes(String key) Highly encouraged.removeFulfillmentInfo(int index) Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods.removeImages(int index) Product images for the product.removeLocalInventories(int index) Output only.removePromotions(int index) The promotions applied to the product.removeVariants(int index) Output only.setAudience(Audience value) The target group associated with a given audience (e.g. male, veterans, car owners, musicians, etc.) of the product.setAudience(Audience.Builder builderForValue) The target group associated with a given audience (e.g. male, veterans, car owners, musicians, etc.) of the product.The online availability of the [Product][google.cloud.retail.v2alpha.Product].setAvailabilityValue(int value) The online availability of the [Product][google.cloud.retail.v2alpha.Product].setAvailableQuantity(com.google.protobuf.Int32Value value) The available quantity of the item.setAvailableQuantity(com.google.protobuf.Int32Value.Builder builderForValue) The available quantity of the item.setAvailableTime(com.google.protobuf.Timestamp value) The timestamp when this [Product][google.cloud.retail.v2alpha.Product] becomes available for [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search].setAvailableTime(com.google.protobuf.Timestamp.Builder builderForValue) The timestamp when this [Product][google.cloud.retail.v2alpha.Product] becomes available for [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search].The brands of the product.setCategories(int index, String value) Product categories.setCollectionMemberIds(int index, String value) The [id][google.cloud.retail.v2alpha.Product.id] of the collection members when [type][google.cloud.retail.v2alpha.Product.type] is [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION].setColorInfo(ColorInfo value) The color of the product.setColorInfo(ColorInfo.Builder builderForValue) The color of the product.setConditions(int index, String value) The condition of the product.setDescription(String value) Product description.setDescriptionBytes(com.google.protobuf.ByteString value) Product description.setExpireTime(com.google.protobuf.Timestamp value) Note that this field is applied in the following ways: * If the [Product][google.cloud.retail.v2alpha.Product] is already expired when it is uploaded, this product is not indexed for searchsetExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) Note that this field is applied in the following ways: * If the [Product][google.cloud.retail.v2alpha.Product] is already expired when it is uploaded, this product is not indexed for searchsetFulfillmentInfo(int index, FulfillmentInfo value) Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods.setFulfillmentInfo(int index, FulfillmentInfo.Builder builderForValue) Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods.The Global Trade Item Number (GTIN) of the product.setGtinBytes(com.google.protobuf.ByteString value) The Global Trade Item Number (GTIN) of the product.Immutable.setIdBytes(com.google.protobuf.ByteString value) Immutable.Product images for the product.setImages(int index, Image.Builder builderForValue) Product images for the product.setLanguageCode(String value) Language of the title/description and other string attributes.setLanguageCodeBytes(com.google.protobuf.ByteString value) Language of the title/description and other string attributes.setLocalInventories(int index, LocalInventory value) Output only.setLocalInventories(int index, LocalInventory.Builder builderForValue) Output only.setMaterials(int index, String value) The material of the product.Immutable.setNameBytes(com.google.protobuf.ByteString value) Immutable.setPatterns(int index, String value) The pattern or graphic print of the product.setPriceInfo(PriceInfo value) Product price and cost information.setPriceInfo(PriceInfo.Builder builderForValue) Product price and cost information.setPrimaryProductId(String value) Variant group identifier.setPrimaryProductIdBytes(com.google.protobuf.ByteString value) Variant group identifier.setPromotions(int index, Promotion value) The promotions applied to the product.setPromotions(int index, Promotion.Builder builderForValue) The promotions applied to the product.setPublishTime(com.google.protobuf.Timestamp value) The timestamp when the product is published by the retailer for the first time, which indicates the freshness of the products.setPublishTime(com.google.protobuf.Timestamp.Builder builderForValue) The timestamp when the product is published by the retailer for the first time, which indicates the freshness of the products.The rating of this product.setRating(Rating.Builder builderForValue) The rating of this product.setRetrievableFields(com.google.protobuf.FieldMask value) Deprecated.setRetrievableFields(com.google.protobuf.FieldMask.Builder builderForValue) Deprecated.The size of the product.Custom tags associated with the product.Required.setTitleBytes(com.google.protobuf.ByteString value) Required.setTtl(com.google.protobuf.Duration value) Input only.setTtl(com.google.protobuf.Duration.Builder builderForValue) Input only.setType(Product.Type value) Immutable.setTypeValue(int value) Immutable.Canonical URL directly linking to the product detail page.setUriBytes(com.google.protobuf.ByteString value) Canonical URL directly linking to the product detail page.setVariants(int index, Product value) Output only.setVariants(int index, Product.Builder builderForValue) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.Builder<Product.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Product.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Product.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Product.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Product.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Product.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Product.Builder>
-
mergeFrom
public Product.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Product.Builder>- Throws:
IOException
-
getExpirationCase
- Specified by:
getExpirationCasein interfaceProductOrBuilder
-
clearExpiration
-
hasExpireTime
public boolean hasExpireTime()Note that this field is applied in the following ways: * If the [Product][google.cloud.retail.v2alpha.Product] is already expired when it is uploaded, this product is not indexed for search. * If the [Product][google.cloud.retail.v2alpha.Product] is not expired when it is uploaded, only the [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]'s and [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION]'s expireTime is respected, and [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]'s expireTime is not used. In general, we suggest the users to delete the stale products explicitly, instead of using this field to determine staleness. [expire_time][google.cloud.retail.v2alpha.Product.expire_time] must be later than [available_time][google.cloud.retail.v2alpha.Product.available_time] and [publish_time][google.cloud.retail.v2alpha.Product.publish_time], otherwise an INVALID_ARGUMENT error is thrown. Corresponding properties: Google Merchant Center property [expiration_date](https://support.google.com/merchants/answer/6324499).
.google.protobuf.Timestamp expire_time = 16;- Specified by:
hasExpireTimein interfaceProductOrBuilder- Returns:
- Whether the expireTime field is set.
-
getExpireTime
public com.google.protobuf.Timestamp getExpireTime()Note that this field is applied in the following ways: * If the [Product][google.cloud.retail.v2alpha.Product] is already expired when it is uploaded, this product is not indexed for search. * If the [Product][google.cloud.retail.v2alpha.Product] is not expired when it is uploaded, only the [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]'s and [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION]'s expireTime is respected, and [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]'s expireTime is not used. In general, we suggest the users to delete the stale products explicitly, instead of using this field to determine staleness. [expire_time][google.cloud.retail.v2alpha.Product.expire_time] must be later than [available_time][google.cloud.retail.v2alpha.Product.available_time] and [publish_time][google.cloud.retail.v2alpha.Product.publish_time], otherwise an INVALID_ARGUMENT error is thrown. Corresponding properties: Google Merchant Center property [expiration_date](https://support.google.com/merchants/answer/6324499).
.google.protobuf.Timestamp expire_time = 16;- Specified by:
getExpireTimein interfaceProductOrBuilder- Returns:
- The expireTime.
-
setExpireTime
Note that this field is applied in the following ways: * If the [Product][google.cloud.retail.v2alpha.Product] is already expired when it is uploaded, this product is not indexed for search. * If the [Product][google.cloud.retail.v2alpha.Product] is not expired when it is uploaded, only the [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]'s and [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION]'s expireTime is respected, and [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]'s expireTime is not used. In general, we suggest the users to delete the stale products explicitly, instead of using this field to determine staleness. [expire_time][google.cloud.retail.v2alpha.Product.expire_time] must be later than [available_time][google.cloud.retail.v2alpha.Product.available_time] and [publish_time][google.cloud.retail.v2alpha.Product.publish_time], otherwise an INVALID_ARGUMENT error is thrown. Corresponding properties: Google Merchant Center property [expiration_date](https://support.google.com/merchants/answer/6324499).
.google.protobuf.Timestamp expire_time = 16; -
setExpireTime
Note that this field is applied in the following ways: * If the [Product][google.cloud.retail.v2alpha.Product] is already expired when it is uploaded, this product is not indexed for search. * If the [Product][google.cloud.retail.v2alpha.Product] is not expired when it is uploaded, only the [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]'s and [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION]'s expireTime is respected, and [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]'s expireTime is not used. In general, we suggest the users to delete the stale products explicitly, instead of using this field to determine staleness. [expire_time][google.cloud.retail.v2alpha.Product.expire_time] must be later than [available_time][google.cloud.retail.v2alpha.Product.available_time] and [publish_time][google.cloud.retail.v2alpha.Product.publish_time], otherwise an INVALID_ARGUMENT error is thrown. Corresponding properties: Google Merchant Center property [expiration_date](https://support.google.com/merchants/answer/6324499).
.google.protobuf.Timestamp expire_time = 16; -
mergeExpireTime
Note that this field is applied in the following ways: * If the [Product][google.cloud.retail.v2alpha.Product] is already expired when it is uploaded, this product is not indexed for search. * If the [Product][google.cloud.retail.v2alpha.Product] is not expired when it is uploaded, only the [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]'s and [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION]'s expireTime is respected, and [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]'s expireTime is not used. In general, we suggest the users to delete the stale products explicitly, instead of using this field to determine staleness. [expire_time][google.cloud.retail.v2alpha.Product.expire_time] must be later than [available_time][google.cloud.retail.v2alpha.Product.available_time] and [publish_time][google.cloud.retail.v2alpha.Product.publish_time], otherwise an INVALID_ARGUMENT error is thrown. Corresponding properties: Google Merchant Center property [expiration_date](https://support.google.com/merchants/answer/6324499).
.google.protobuf.Timestamp expire_time = 16; -
clearExpireTime
Note that this field is applied in the following ways: * If the [Product][google.cloud.retail.v2alpha.Product] is already expired when it is uploaded, this product is not indexed for search. * If the [Product][google.cloud.retail.v2alpha.Product] is not expired when it is uploaded, only the [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]'s and [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION]'s expireTime is respected, and [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]'s expireTime is not used. In general, we suggest the users to delete the stale products explicitly, instead of using this field to determine staleness. [expire_time][google.cloud.retail.v2alpha.Product.expire_time] must be later than [available_time][google.cloud.retail.v2alpha.Product.available_time] and [publish_time][google.cloud.retail.v2alpha.Product.publish_time], otherwise an INVALID_ARGUMENT error is thrown. Corresponding properties: Google Merchant Center property [expiration_date](https://support.google.com/merchants/answer/6324499).
.google.protobuf.Timestamp expire_time = 16; -
getExpireTimeBuilder
public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder()Note that this field is applied in the following ways: * If the [Product][google.cloud.retail.v2alpha.Product] is already expired when it is uploaded, this product is not indexed for search. * If the [Product][google.cloud.retail.v2alpha.Product] is not expired when it is uploaded, only the [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]'s and [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION]'s expireTime is respected, and [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]'s expireTime is not used. In general, we suggest the users to delete the stale products explicitly, instead of using this field to determine staleness. [expire_time][google.cloud.retail.v2alpha.Product.expire_time] must be later than [available_time][google.cloud.retail.v2alpha.Product.available_time] and [publish_time][google.cloud.retail.v2alpha.Product.publish_time], otherwise an INVALID_ARGUMENT error is thrown. Corresponding properties: Google Merchant Center property [expiration_date](https://support.google.com/merchants/answer/6324499).
.google.protobuf.Timestamp expire_time = 16; -
getExpireTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder()Note that this field is applied in the following ways: * If the [Product][google.cloud.retail.v2alpha.Product] is already expired when it is uploaded, this product is not indexed for search. * If the [Product][google.cloud.retail.v2alpha.Product] is not expired when it is uploaded, only the [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]'s and [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION]'s expireTime is respected, and [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]'s expireTime is not used. In general, we suggest the users to delete the stale products explicitly, instead of using this field to determine staleness. [expire_time][google.cloud.retail.v2alpha.Product.expire_time] must be later than [available_time][google.cloud.retail.v2alpha.Product.available_time] and [publish_time][google.cloud.retail.v2alpha.Product.publish_time], otherwise an INVALID_ARGUMENT error is thrown. Corresponding properties: Google Merchant Center property [expiration_date](https://support.google.com/merchants/answer/6324499).
.google.protobuf.Timestamp expire_time = 16;- Specified by:
getExpireTimeOrBuilderin interfaceProductOrBuilder
-
hasTtl
public boolean hasTtl()Input only. The TTL (time to live) of the product. Note that this is only applicable to [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION], and ignored for [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]. In general, we suggest the users to delete the stale products explicitly, instead of using this field to determine staleness. If it is set, it must be a non-negative value, and [expire_time][google.cloud.retail.v2alpha.Product.expire_time] is set as current timestamp plus [ttl][google.cloud.retail.v2alpha.Product.ttl]. The derived [expire_time][google.cloud.retail.v2alpha.Product.expire_time] is returned in the output and [ttl][google.cloud.retail.v2alpha.Product.ttl] is left blank when retrieving the [Product][google.cloud.retail.v2alpha.Product]. If it is set, the product is not available for [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search] after current timestamp plus [ttl][google.cloud.retail.v2alpha.Product.ttl]. However, the product can still be retrieved by [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct] and [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts].
.google.protobuf.Duration ttl = 17 [(.google.api.field_behavior) = INPUT_ONLY];- Specified by:
hasTtlin interfaceProductOrBuilder- Returns:
- Whether the ttl field is set.
-
getTtl
public com.google.protobuf.Duration getTtl()Input only. The TTL (time to live) of the product. Note that this is only applicable to [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION], and ignored for [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]. In general, we suggest the users to delete the stale products explicitly, instead of using this field to determine staleness. If it is set, it must be a non-negative value, and [expire_time][google.cloud.retail.v2alpha.Product.expire_time] is set as current timestamp plus [ttl][google.cloud.retail.v2alpha.Product.ttl]. The derived [expire_time][google.cloud.retail.v2alpha.Product.expire_time] is returned in the output and [ttl][google.cloud.retail.v2alpha.Product.ttl] is left blank when retrieving the [Product][google.cloud.retail.v2alpha.Product]. If it is set, the product is not available for [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search] after current timestamp plus [ttl][google.cloud.retail.v2alpha.Product.ttl]. However, the product can still be retrieved by [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct] and [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts].
.google.protobuf.Duration ttl = 17 [(.google.api.field_behavior) = INPUT_ONLY];- Specified by:
getTtlin interfaceProductOrBuilder- Returns:
- The ttl.
-
setTtl
Input only. The TTL (time to live) of the product. Note that this is only applicable to [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION], and ignored for [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]. In general, we suggest the users to delete the stale products explicitly, instead of using this field to determine staleness. If it is set, it must be a non-negative value, and [expire_time][google.cloud.retail.v2alpha.Product.expire_time] is set as current timestamp plus [ttl][google.cloud.retail.v2alpha.Product.ttl]. The derived [expire_time][google.cloud.retail.v2alpha.Product.expire_time] is returned in the output and [ttl][google.cloud.retail.v2alpha.Product.ttl] is left blank when retrieving the [Product][google.cloud.retail.v2alpha.Product]. If it is set, the product is not available for [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search] after current timestamp plus [ttl][google.cloud.retail.v2alpha.Product.ttl]. However, the product can still be retrieved by [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct] and [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts].
.google.protobuf.Duration ttl = 17 [(.google.api.field_behavior) = INPUT_ONLY]; -
setTtl
Input only. The TTL (time to live) of the product. Note that this is only applicable to [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION], and ignored for [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]. In general, we suggest the users to delete the stale products explicitly, instead of using this field to determine staleness. If it is set, it must be a non-negative value, and [expire_time][google.cloud.retail.v2alpha.Product.expire_time] is set as current timestamp plus [ttl][google.cloud.retail.v2alpha.Product.ttl]. The derived [expire_time][google.cloud.retail.v2alpha.Product.expire_time] is returned in the output and [ttl][google.cloud.retail.v2alpha.Product.ttl] is left blank when retrieving the [Product][google.cloud.retail.v2alpha.Product]. If it is set, the product is not available for [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search] after current timestamp plus [ttl][google.cloud.retail.v2alpha.Product.ttl]. However, the product can still be retrieved by [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct] and [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts].
.google.protobuf.Duration ttl = 17 [(.google.api.field_behavior) = INPUT_ONLY]; -
mergeTtl
Input only. The TTL (time to live) of the product. Note that this is only applicable to [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION], and ignored for [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]. In general, we suggest the users to delete the stale products explicitly, instead of using this field to determine staleness. If it is set, it must be a non-negative value, and [expire_time][google.cloud.retail.v2alpha.Product.expire_time] is set as current timestamp plus [ttl][google.cloud.retail.v2alpha.Product.ttl]. The derived [expire_time][google.cloud.retail.v2alpha.Product.expire_time] is returned in the output and [ttl][google.cloud.retail.v2alpha.Product.ttl] is left blank when retrieving the [Product][google.cloud.retail.v2alpha.Product]. If it is set, the product is not available for [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search] after current timestamp plus [ttl][google.cloud.retail.v2alpha.Product.ttl]. However, the product can still be retrieved by [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct] and [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts].
.google.protobuf.Duration ttl = 17 [(.google.api.field_behavior) = INPUT_ONLY]; -
clearTtl
Input only. The TTL (time to live) of the product. Note that this is only applicable to [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION], and ignored for [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]. In general, we suggest the users to delete the stale products explicitly, instead of using this field to determine staleness. If it is set, it must be a non-negative value, and [expire_time][google.cloud.retail.v2alpha.Product.expire_time] is set as current timestamp plus [ttl][google.cloud.retail.v2alpha.Product.ttl]. The derived [expire_time][google.cloud.retail.v2alpha.Product.expire_time] is returned in the output and [ttl][google.cloud.retail.v2alpha.Product.ttl] is left blank when retrieving the [Product][google.cloud.retail.v2alpha.Product]. If it is set, the product is not available for [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search] after current timestamp plus [ttl][google.cloud.retail.v2alpha.Product.ttl]. However, the product can still be retrieved by [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct] and [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts].
.google.protobuf.Duration ttl = 17 [(.google.api.field_behavior) = INPUT_ONLY]; -
getTtlBuilder
public com.google.protobuf.Duration.Builder getTtlBuilder()Input only. The TTL (time to live) of the product. Note that this is only applicable to [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION], and ignored for [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]. In general, we suggest the users to delete the stale products explicitly, instead of using this field to determine staleness. If it is set, it must be a non-negative value, and [expire_time][google.cloud.retail.v2alpha.Product.expire_time] is set as current timestamp plus [ttl][google.cloud.retail.v2alpha.Product.ttl]. The derived [expire_time][google.cloud.retail.v2alpha.Product.expire_time] is returned in the output and [ttl][google.cloud.retail.v2alpha.Product.ttl] is left blank when retrieving the [Product][google.cloud.retail.v2alpha.Product]. If it is set, the product is not available for [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search] after current timestamp plus [ttl][google.cloud.retail.v2alpha.Product.ttl]. However, the product can still be retrieved by [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct] and [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts].
.google.protobuf.Duration ttl = 17 [(.google.api.field_behavior) = INPUT_ONLY]; -
getTtlOrBuilder
public com.google.protobuf.DurationOrBuilder getTtlOrBuilder()Input only. The TTL (time to live) of the product. Note that this is only applicable to [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION], and ignored for [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]. In general, we suggest the users to delete the stale products explicitly, instead of using this field to determine staleness. If it is set, it must be a non-negative value, and [expire_time][google.cloud.retail.v2alpha.Product.expire_time] is set as current timestamp plus [ttl][google.cloud.retail.v2alpha.Product.ttl]. The derived [expire_time][google.cloud.retail.v2alpha.Product.expire_time] is returned in the output and [ttl][google.cloud.retail.v2alpha.Product.ttl] is left blank when retrieving the [Product][google.cloud.retail.v2alpha.Product]. If it is set, the product is not available for [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search] after current timestamp plus [ttl][google.cloud.retail.v2alpha.Product.ttl]. However, the product can still be retrieved by [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct] and [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts].
.google.protobuf.Duration ttl = 17 [(.google.api.field_behavior) = INPUT_ONLY];- Specified by:
getTtlOrBuilderin interfaceProductOrBuilder
-
getName
Immutable. Full resource name of the product, such as `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/product_id`.
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getNamein interfaceProductOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Immutable. Full resource name of the product, such as `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/product_id`.
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getNameBytesin interfaceProductOrBuilder- Returns:
- The bytes for name.
-
setName
Immutable. Full resource name of the product, such as `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/product_id`.
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Immutable. Full resource name of the product, such as `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/product_id`.
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- This builder for chaining.
-
setNameBytes
Immutable. Full resource name of the product, such as `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/product_id`.
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getId
Immutable. [Product][google.cloud.retail.v2alpha.Product] identifier, which is the final component of [name][google.cloud.retail.v2alpha.Product.name]. For example, this field is "id_1", if [name][google.cloud.retail.v2alpha.Product.name] is `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/id_1`. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [id](https://support.google.com/merchants/answer/6324405). Schema.org property [Product.sku](https://schema.org/sku).
string id = 2 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getIdin interfaceProductOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()Immutable. [Product][google.cloud.retail.v2alpha.Product] identifier, which is the final component of [name][google.cloud.retail.v2alpha.Product.name]. For example, this field is "id_1", if [name][google.cloud.retail.v2alpha.Product.name] is `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/id_1`. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [id](https://support.google.com/merchants/answer/6324405). Schema.org property [Product.sku](https://schema.org/sku).
string id = 2 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getIdBytesin interfaceProductOrBuilder- Returns:
- The bytes for id.
-
setId
Immutable. [Product][google.cloud.retail.v2alpha.Product] identifier, which is the final component of [name][google.cloud.retail.v2alpha.Product.name]. For example, this field is "id_1", if [name][google.cloud.retail.v2alpha.Product.name] is `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/id_1`. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [id](https://support.google.com/merchants/answer/6324405). Schema.org property [Product.sku](https://schema.org/sku).
string id = 2 [(.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
Immutable. [Product][google.cloud.retail.v2alpha.Product] identifier, which is the final component of [name][google.cloud.retail.v2alpha.Product.name]. For example, this field is "id_1", if [name][google.cloud.retail.v2alpha.Product.name] is `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/id_1`. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [id](https://support.google.com/merchants/answer/6324405). Schema.org property [Product.sku](https://schema.org/sku).
string id = 2 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- This builder for chaining.
-
setIdBytes
Immutable. [Product][google.cloud.retail.v2alpha.Product] identifier, which is the final component of [name][google.cloud.retail.v2alpha.Product.name]. For example, this field is "id_1", if [name][google.cloud.retail.v2alpha.Product.name] is `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/id_1`. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [id](https://support.google.com/merchants/answer/6324405). Schema.org property [Product.sku](https://schema.org/sku).
string id = 2 [(.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The bytes for id to set.- Returns:
- This builder for chaining.
-
getTypeValue
public int getTypeValue()Immutable. The type of the product. Default to [Catalog.product_level_config.ingestion_product_type][google.cloud.retail.v2alpha.ProductLevelConfig.ingestion_product_type] if unset.
.google.cloud.retail.v2alpha.Product.Type type = 3 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getTypeValuein interfaceProductOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
Immutable. The type of the product. Default to [Catalog.product_level_config.ingestion_product_type][google.cloud.retail.v2alpha.ProductLevelConfig.ingestion_product_type] if unset.
.google.cloud.retail.v2alpha.Product.Type type = 3 [(.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
Immutable. The type of the product. Default to [Catalog.product_level_config.ingestion_product_type][google.cloud.retail.v2alpha.ProductLevelConfig.ingestion_product_type] if unset.
.google.cloud.retail.v2alpha.Product.Type type = 3 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getTypein interfaceProductOrBuilder- Returns:
- The type.
-
setType
Immutable. The type of the product. Default to [Catalog.product_level_config.ingestion_product_type][google.cloud.retail.v2alpha.ProductLevelConfig.ingestion_product_type] if unset.
.google.cloud.retail.v2alpha.Product.Type type = 3 [(.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
Immutable. The type of the product. Default to [Catalog.product_level_config.ingestion_product_type][google.cloud.retail.v2alpha.ProductLevelConfig.ingestion_product_type] if unset.
.google.cloud.retail.v2alpha.Product.Type type = 3 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- This builder for chaining.
-
getPrimaryProductId
Variant group identifier. Must be an [id][google.cloud.retail.v2alpha.Product.id], with the same parent branch with this product. Otherwise, an error is thrown. For [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product]s, this field can only be empty or set to the same value as [id][google.cloud.retail.v2alpha.Product.id]. For VARIANT [Product][google.cloud.retail.v2alpha.Product]s, this field cannot be empty. A maximum of 2,000 products are allowed to share the same [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product]. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [item_group_id](https://support.google.com/merchants/answer/6324507). Schema.org property [Product.inProductGroupWithID](https://schema.org/inProductGroupWithID).
string primary_product_id = 4;- Specified by:
getPrimaryProductIdin interfaceProductOrBuilder- Returns:
- The primaryProductId.
-
getPrimaryProductIdBytes
public com.google.protobuf.ByteString getPrimaryProductIdBytes()Variant group identifier. Must be an [id][google.cloud.retail.v2alpha.Product.id], with the same parent branch with this product. Otherwise, an error is thrown. For [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product]s, this field can only be empty or set to the same value as [id][google.cloud.retail.v2alpha.Product.id]. For VARIANT [Product][google.cloud.retail.v2alpha.Product]s, this field cannot be empty. A maximum of 2,000 products are allowed to share the same [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product]. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [item_group_id](https://support.google.com/merchants/answer/6324507). Schema.org property [Product.inProductGroupWithID](https://schema.org/inProductGroupWithID).
string primary_product_id = 4;- Specified by:
getPrimaryProductIdBytesin interfaceProductOrBuilder- Returns:
- The bytes for primaryProductId.
-
setPrimaryProductId
Variant group identifier. Must be an [id][google.cloud.retail.v2alpha.Product.id], with the same parent branch with this product. Otherwise, an error is thrown. For [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product]s, this field can only be empty or set to the same value as [id][google.cloud.retail.v2alpha.Product.id]. For VARIANT [Product][google.cloud.retail.v2alpha.Product]s, this field cannot be empty. A maximum of 2,000 products are allowed to share the same [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product]. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [item_group_id](https://support.google.com/merchants/answer/6324507). Schema.org property [Product.inProductGroupWithID](https://schema.org/inProductGroupWithID).
string primary_product_id = 4;- Parameters:
value- The primaryProductId to set.- Returns:
- This builder for chaining.
-
clearPrimaryProductId
Variant group identifier. Must be an [id][google.cloud.retail.v2alpha.Product.id], with the same parent branch with this product. Otherwise, an error is thrown. For [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product]s, this field can only be empty or set to the same value as [id][google.cloud.retail.v2alpha.Product.id]. For VARIANT [Product][google.cloud.retail.v2alpha.Product]s, this field cannot be empty. A maximum of 2,000 products are allowed to share the same [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product]. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [item_group_id](https://support.google.com/merchants/answer/6324507). Schema.org property [Product.inProductGroupWithID](https://schema.org/inProductGroupWithID).
string primary_product_id = 4;- Returns:
- This builder for chaining.
-
setPrimaryProductIdBytes
Variant group identifier. Must be an [id][google.cloud.retail.v2alpha.Product.id], with the same parent branch with this product. Otherwise, an error is thrown. For [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product]s, this field can only be empty or set to the same value as [id][google.cloud.retail.v2alpha.Product.id]. For VARIANT [Product][google.cloud.retail.v2alpha.Product]s, this field cannot be empty. A maximum of 2,000 products are allowed to share the same [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product]. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [item_group_id](https://support.google.com/merchants/answer/6324507). Schema.org property [Product.inProductGroupWithID](https://schema.org/inProductGroupWithID).
string primary_product_id = 4;- Parameters:
value- The bytes for primaryProductId to set.- Returns:
- This builder for chaining.
-
getCollectionMemberIdsList
public com.google.protobuf.ProtocolStringList getCollectionMemberIdsList()The [id][google.cloud.retail.v2alpha.Product.id] of the collection members when [type][google.cloud.retail.v2alpha.Product.type] is [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION]. Non-existent product ids are allowed. The [type][google.cloud.retail.v2alpha.Product.type] of the members must be either [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] or [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT] otherwise an INVALID_ARGUMENT error is thrown. Should not set it for other types. A maximum of 1000 values are allowed. Otherwise, an INVALID_ARGUMENT error is return.
repeated string collection_member_ids = 5;- Specified by:
getCollectionMemberIdsListin interfaceProductOrBuilder- Returns:
- A list containing the collectionMemberIds.
-
getCollectionMemberIdsCount
public int getCollectionMemberIdsCount()The [id][google.cloud.retail.v2alpha.Product.id] of the collection members when [type][google.cloud.retail.v2alpha.Product.type] is [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION]. Non-existent product ids are allowed. The [type][google.cloud.retail.v2alpha.Product.type] of the members must be either [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] or [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT] otherwise an INVALID_ARGUMENT error is thrown. Should not set it for other types. A maximum of 1000 values are allowed. Otherwise, an INVALID_ARGUMENT error is return.
repeated string collection_member_ids = 5;- Specified by:
getCollectionMemberIdsCountin interfaceProductOrBuilder- Returns:
- The count of collectionMemberIds.
-
getCollectionMemberIds
The [id][google.cloud.retail.v2alpha.Product.id] of the collection members when [type][google.cloud.retail.v2alpha.Product.type] is [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION]. Non-existent product ids are allowed. The [type][google.cloud.retail.v2alpha.Product.type] of the members must be either [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] or [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT] otherwise an INVALID_ARGUMENT error is thrown. Should not set it for other types. A maximum of 1000 values are allowed. Otherwise, an INVALID_ARGUMENT error is return.
repeated string collection_member_ids = 5;- Specified by:
getCollectionMemberIdsin interfaceProductOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The collectionMemberIds at the given index.
-
getCollectionMemberIdsBytes
public com.google.protobuf.ByteString getCollectionMemberIdsBytes(int index) The [id][google.cloud.retail.v2alpha.Product.id] of the collection members when [type][google.cloud.retail.v2alpha.Product.type] is [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION]. Non-existent product ids are allowed. The [type][google.cloud.retail.v2alpha.Product.type] of the members must be either [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] or [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT] otherwise an INVALID_ARGUMENT error is thrown. Should not set it for other types. A maximum of 1000 values are allowed. Otherwise, an INVALID_ARGUMENT error is return.
repeated string collection_member_ids = 5;- Specified by:
getCollectionMemberIdsBytesin interfaceProductOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the collectionMemberIds at the given index.
-
setCollectionMemberIds
The [id][google.cloud.retail.v2alpha.Product.id] of the collection members when [type][google.cloud.retail.v2alpha.Product.type] is [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION]. Non-existent product ids are allowed. The [type][google.cloud.retail.v2alpha.Product.type] of the members must be either [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] or [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT] otherwise an INVALID_ARGUMENT error is thrown. Should not set it for other types. A maximum of 1000 values are allowed. Otherwise, an INVALID_ARGUMENT error is return.
repeated string collection_member_ids = 5;- Parameters:
index- The index to set the value at.value- The collectionMemberIds to set.- Returns:
- This builder for chaining.
-
addCollectionMemberIds
The [id][google.cloud.retail.v2alpha.Product.id] of the collection members when [type][google.cloud.retail.v2alpha.Product.type] is [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION]. Non-existent product ids are allowed. The [type][google.cloud.retail.v2alpha.Product.type] of the members must be either [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] or [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT] otherwise an INVALID_ARGUMENT error is thrown. Should not set it for other types. A maximum of 1000 values are allowed. Otherwise, an INVALID_ARGUMENT error is return.
repeated string collection_member_ids = 5;- Parameters:
value- The collectionMemberIds to add.- Returns:
- This builder for chaining.
-
addAllCollectionMemberIds
The [id][google.cloud.retail.v2alpha.Product.id] of the collection members when [type][google.cloud.retail.v2alpha.Product.type] is [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION]. Non-existent product ids are allowed. The [type][google.cloud.retail.v2alpha.Product.type] of the members must be either [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] or [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT] otherwise an INVALID_ARGUMENT error is thrown. Should not set it for other types. A maximum of 1000 values are allowed. Otherwise, an INVALID_ARGUMENT error is return.
repeated string collection_member_ids = 5;- Parameters:
values- The collectionMemberIds to add.- Returns:
- This builder for chaining.
-
clearCollectionMemberIds
The [id][google.cloud.retail.v2alpha.Product.id] of the collection members when [type][google.cloud.retail.v2alpha.Product.type] is [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION]. Non-existent product ids are allowed. The [type][google.cloud.retail.v2alpha.Product.type] of the members must be either [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] or [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT] otherwise an INVALID_ARGUMENT error is thrown. Should not set it for other types. A maximum of 1000 values are allowed. Otherwise, an INVALID_ARGUMENT error is return.
repeated string collection_member_ids = 5;- Returns:
- This builder for chaining.
-
addCollectionMemberIdsBytes
The [id][google.cloud.retail.v2alpha.Product.id] of the collection members when [type][google.cloud.retail.v2alpha.Product.type] is [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION]. Non-existent product ids are allowed. The [type][google.cloud.retail.v2alpha.Product.type] of the members must be either [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] or [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT] otherwise an INVALID_ARGUMENT error is thrown. Should not set it for other types. A maximum of 1000 values are allowed. Otherwise, an INVALID_ARGUMENT error is return.
repeated string collection_member_ids = 5;- Parameters:
value- The bytes of the collectionMemberIds to add.- Returns:
- This builder for chaining.
-
getGtin
The Global Trade Item Number (GTIN) of the product. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. This field must be a Unigram. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [gtin](https://support.google.com/merchants/answer/6324461). Schema.org property [Product.isbn](https://schema.org/isbn), [Product.gtin8](https://schema.org/gtin8), [Product.gtin12](https://schema.org/gtin12), [Product.gtin13](https://schema.org/gtin13), or [Product.gtin14](https://schema.org/gtin14). If the value is not a valid GTIN, an INVALID_ARGUMENT error is returned.
string gtin = 6;- Specified by:
getGtinin interfaceProductOrBuilder- Returns:
- The gtin.
-
getGtinBytes
public com.google.protobuf.ByteString getGtinBytes()The Global Trade Item Number (GTIN) of the product. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. This field must be a Unigram. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [gtin](https://support.google.com/merchants/answer/6324461). Schema.org property [Product.isbn](https://schema.org/isbn), [Product.gtin8](https://schema.org/gtin8), [Product.gtin12](https://schema.org/gtin12), [Product.gtin13](https://schema.org/gtin13), or [Product.gtin14](https://schema.org/gtin14). If the value is not a valid GTIN, an INVALID_ARGUMENT error is returned.
string gtin = 6;- Specified by:
getGtinBytesin interfaceProductOrBuilder- Returns:
- The bytes for gtin.
-
setGtin
The Global Trade Item Number (GTIN) of the product. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. This field must be a Unigram. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [gtin](https://support.google.com/merchants/answer/6324461). Schema.org property [Product.isbn](https://schema.org/isbn), [Product.gtin8](https://schema.org/gtin8), [Product.gtin12](https://schema.org/gtin12), [Product.gtin13](https://schema.org/gtin13), or [Product.gtin14](https://schema.org/gtin14). If the value is not a valid GTIN, an INVALID_ARGUMENT error is returned.
string gtin = 6;- Parameters:
value- The gtin to set.- Returns:
- This builder for chaining.
-
clearGtin
The Global Trade Item Number (GTIN) of the product. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. This field must be a Unigram. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [gtin](https://support.google.com/merchants/answer/6324461). Schema.org property [Product.isbn](https://schema.org/isbn), [Product.gtin8](https://schema.org/gtin8), [Product.gtin12](https://schema.org/gtin12), [Product.gtin13](https://schema.org/gtin13), or [Product.gtin14](https://schema.org/gtin14). If the value is not a valid GTIN, an INVALID_ARGUMENT error is returned.
string gtin = 6;- Returns:
- This builder for chaining.
-
setGtinBytes
The Global Trade Item Number (GTIN) of the product. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. This field must be a Unigram. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [gtin](https://support.google.com/merchants/answer/6324461). Schema.org property [Product.isbn](https://schema.org/isbn), [Product.gtin8](https://schema.org/gtin8), [Product.gtin12](https://schema.org/gtin12), [Product.gtin13](https://schema.org/gtin13), or [Product.gtin14](https://schema.org/gtin14). If the value is not a valid GTIN, an INVALID_ARGUMENT error is returned.
string gtin = 6;- Parameters:
value- The bytes for gtin to set.- Returns:
- This builder for chaining.
-
getCategoriesList
public com.google.protobuf.ProtocolStringList getCategoriesList()Product categories. This field is repeated for supporting one product belonging to several parallel categories. Strongly recommended using the full path for better search / recommendation quality. To represent full path of category, use '>' sign to separate different hierarchies. If '>' is part of the category name, replace it with other character(s). For example, if a shoes product belongs to both ["Shoes & Accessories" -> "Shoes"] and ["Sports & Fitness" -> "Athletic Clothing" -> "Shoes"], it could be represented as: "categories": [ "Shoes & Accessories > Shoes", "Sports & Fitness > Athletic Clothing > Shoes" ] Must be set for [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product] otherwise an INVALID_ARGUMENT error is returned. At most 250 values are allowed per [Product][google.cloud.retail.v2alpha.Product] unless overridden through the Google Cloud console. Empty values are not allowed. Each value must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [google_product_category][mc_google_product_category]. Schema.org property [Product.category] (https://schema.org/category). [mc_google_product_category]: https://support.google.com/merchants/answer/6324436
repeated string categories = 7;- Specified by:
getCategoriesListin interfaceProductOrBuilder- Returns:
- A list containing the categories.
-
getCategoriesCount
public int getCategoriesCount()Product categories. This field is repeated for supporting one product belonging to several parallel categories. Strongly recommended using the full path for better search / recommendation quality. To represent full path of category, use '>' sign to separate different hierarchies. If '>' is part of the category name, replace it with other character(s). For example, if a shoes product belongs to both ["Shoes & Accessories" -> "Shoes"] and ["Sports & Fitness" -> "Athletic Clothing" -> "Shoes"], it could be represented as: "categories": [ "Shoes & Accessories > Shoes", "Sports & Fitness > Athletic Clothing > Shoes" ] Must be set for [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product] otherwise an INVALID_ARGUMENT error is returned. At most 250 values are allowed per [Product][google.cloud.retail.v2alpha.Product] unless overridden through the Google Cloud console. Empty values are not allowed. Each value must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [google_product_category][mc_google_product_category]. Schema.org property [Product.category] (https://schema.org/category). [mc_google_product_category]: https://support.google.com/merchants/answer/6324436
repeated string categories = 7;- Specified by:
getCategoriesCountin interfaceProductOrBuilder- Returns:
- The count of categories.
-
getCategories
Product categories. This field is repeated for supporting one product belonging to several parallel categories. Strongly recommended using the full path for better search / recommendation quality. To represent full path of category, use '>' sign to separate different hierarchies. If '>' is part of the category name, replace it with other character(s). For example, if a shoes product belongs to both ["Shoes & Accessories" -> "Shoes"] and ["Sports & Fitness" -> "Athletic Clothing" -> "Shoes"], it could be represented as: "categories": [ "Shoes & Accessories > Shoes", "Sports & Fitness > Athletic Clothing > Shoes" ] Must be set for [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product] otherwise an INVALID_ARGUMENT error is returned. At most 250 values are allowed per [Product][google.cloud.retail.v2alpha.Product] unless overridden through the Google Cloud console. Empty values are not allowed. Each value must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [google_product_category][mc_google_product_category]. Schema.org property [Product.category] (https://schema.org/category). [mc_google_product_category]: https://support.google.com/merchants/answer/6324436
repeated string categories = 7;- Specified by:
getCategoriesin interfaceProductOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The categories at the given index.
-
getCategoriesBytes
public com.google.protobuf.ByteString getCategoriesBytes(int index) Product categories. This field is repeated for supporting one product belonging to several parallel categories. Strongly recommended using the full path for better search / recommendation quality. To represent full path of category, use '>' sign to separate different hierarchies. If '>' is part of the category name, replace it with other character(s). For example, if a shoes product belongs to both ["Shoes & Accessories" -> "Shoes"] and ["Sports & Fitness" -> "Athletic Clothing" -> "Shoes"], it could be represented as: "categories": [ "Shoes & Accessories > Shoes", "Sports & Fitness > Athletic Clothing > Shoes" ] Must be set for [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product] otherwise an INVALID_ARGUMENT error is returned. At most 250 values are allowed per [Product][google.cloud.retail.v2alpha.Product] unless overridden through the Google Cloud console. Empty values are not allowed. Each value must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [google_product_category][mc_google_product_category]. Schema.org property [Product.category] (https://schema.org/category). [mc_google_product_category]: https://support.google.com/merchants/answer/6324436
repeated string categories = 7;- Specified by:
getCategoriesBytesin interfaceProductOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the categories at the given index.
-
setCategories
Product categories. This field is repeated for supporting one product belonging to several parallel categories. Strongly recommended using the full path for better search / recommendation quality. To represent full path of category, use '>' sign to separate different hierarchies. If '>' is part of the category name, replace it with other character(s). For example, if a shoes product belongs to both ["Shoes & Accessories" -> "Shoes"] and ["Sports & Fitness" -> "Athletic Clothing" -> "Shoes"], it could be represented as: "categories": [ "Shoes & Accessories > Shoes", "Sports & Fitness > Athletic Clothing > Shoes" ] Must be set for [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product] otherwise an INVALID_ARGUMENT error is returned. At most 250 values are allowed per [Product][google.cloud.retail.v2alpha.Product] unless overridden through the Google Cloud console. Empty values are not allowed. Each value must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [google_product_category][mc_google_product_category]. Schema.org property [Product.category] (https://schema.org/category). [mc_google_product_category]: https://support.google.com/merchants/answer/6324436
repeated string categories = 7;- Parameters:
index- The index to set the value at.value- The categories to set.- Returns:
- This builder for chaining.
-
addCategories
Product categories. This field is repeated for supporting one product belonging to several parallel categories. Strongly recommended using the full path for better search / recommendation quality. To represent full path of category, use '>' sign to separate different hierarchies. If '>' is part of the category name, replace it with other character(s). For example, if a shoes product belongs to both ["Shoes & Accessories" -> "Shoes"] and ["Sports & Fitness" -> "Athletic Clothing" -> "Shoes"], it could be represented as: "categories": [ "Shoes & Accessories > Shoes", "Sports & Fitness > Athletic Clothing > Shoes" ] Must be set for [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product] otherwise an INVALID_ARGUMENT error is returned. At most 250 values are allowed per [Product][google.cloud.retail.v2alpha.Product] unless overridden through the Google Cloud console. Empty values are not allowed. Each value must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [google_product_category][mc_google_product_category]. Schema.org property [Product.category] (https://schema.org/category). [mc_google_product_category]: https://support.google.com/merchants/answer/6324436
repeated string categories = 7;- Parameters:
value- The categories to add.- Returns:
- This builder for chaining.
-
addAllCategories
Product categories. This field is repeated for supporting one product belonging to several parallel categories. Strongly recommended using the full path for better search / recommendation quality. To represent full path of category, use '>' sign to separate different hierarchies. If '>' is part of the category name, replace it with other character(s). For example, if a shoes product belongs to both ["Shoes & Accessories" -> "Shoes"] and ["Sports & Fitness" -> "Athletic Clothing" -> "Shoes"], it could be represented as: "categories": [ "Shoes & Accessories > Shoes", "Sports & Fitness > Athletic Clothing > Shoes" ] Must be set for [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product] otherwise an INVALID_ARGUMENT error is returned. At most 250 values are allowed per [Product][google.cloud.retail.v2alpha.Product] unless overridden through the Google Cloud console. Empty values are not allowed. Each value must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [google_product_category][mc_google_product_category]. Schema.org property [Product.category] (https://schema.org/category). [mc_google_product_category]: https://support.google.com/merchants/answer/6324436
repeated string categories = 7;- Parameters:
values- The categories to add.- Returns:
- This builder for chaining.
-
clearCategories
Product categories. This field is repeated for supporting one product belonging to several parallel categories. Strongly recommended using the full path for better search / recommendation quality. To represent full path of category, use '>' sign to separate different hierarchies. If '>' is part of the category name, replace it with other character(s). For example, if a shoes product belongs to both ["Shoes & Accessories" -> "Shoes"] and ["Sports & Fitness" -> "Athletic Clothing" -> "Shoes"], it could be represented as: "categories": [ "Shoes & Accessories > Shoes", "Sports & Fitness > Athletic Clothing > Shoes" ] Must be set for [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product] otherwise an INVALID_ARGUMENT error is returned. At most 250 values are allowed per [Product][google.cloud.retail.v2alpha.Product] unless overridden through the Google Cloud console. Empty values are not allowed. Each value must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [google_product_category][mc_google_product_category]. Schema.org property [Product.category] (https://schema.org/category). [mc_google_product_category]: https://support.google.com/merchants/answer/6324436
repeated string categories = 7;- Returns:
- This builder for chaining.
-
addCategoriesBytes
Product categories. This field is repeated for supporting one product belonging to several parallel categories. Strongly recommended using the full path for better search / recommendation quality. To represent full path of category, use '>' sign to separate different hierarchies. If '>' is part of the category name, replace it with other character(s). For example, if a shoes product belongs to both ["Shoes & Accessories" -> "Shoes"] and ["Sports & Fitness" -> "Athletic Clothing" -> "Shoes"], it could be represented as: "categories": [ "Shoes & Accessories > Shoes", "Sports & Fitness > Athletic Clothing > Shoes" ] Must be set for [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product] otherwise an INVALID_ARGUMENT error is returned. At most 250 values are allowed per [Product][google.cloud.retail.v2alpha.Product] unless overridden through the Google Cloud console. Empty values are not allowed. Each value must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [google_product_category][mc_google_product_category]. Schema.org property [Product.category] (https://schema.org/category). [mc_google_product_category]: https://support.google.com/merchants/answer/6324436
repeated string categories = 7;- Parameters:
value- The bytes of the categories to add.- Returns:
- This builder for chaining.
-
getTitle
Required. Product title. This field must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [title](https://support.google.com/merchants/answer/6324415). Schema.org property [Product.name](https://schema.org/name).
string title = 8 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTitlein interfaceProductOrBuilder- Returns:
- The title.
-
getTitleBytes
public com.google.protobuf.ByteString getTitleBytes()Required. Product title. This field must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [title](https://support.google.com/merchants/answer/6324415). Schema.org property [Product.name](https://schema.org/name).
string title = 8 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTitleBytesin interfaceProductOrBuilder- Returns:
- The bytes for title.
-
setTitle
Required. Product title. This field must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [title](https://support.google.com/merchants/answer/6324415). Schema.org property [Product.name](https://schema.org/name).
string title = 8 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The title to set.- Returns:
- This builder for chaining.
-
clearTitle
Required. Product title. This field must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [title](https://support.google.com/merchants/answer/6324415). Schema.org property [Product.name](https://schema.org/name).
string title = 8 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setTitleBytes
Required. Product title. This field must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [title](https://support.google.com/merchants/answer/6324415). Schema.org property [Product.name](https://schema.org/name).
string title = 8 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for title to set.- Returns:
- This builder for chaining.
-
getBrandsList
public com.google.protobuf.ProtocolStringList getBrandsList()The brands of the product. A maximum of 30 brands are allowed unless overridden through the Google Cloud console. Each brand must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [brand](https://support.google.com/merchants/answer/6324351). Schema.org property [Product.brand](https://schema.org/brand).
repeated string brands = 9;- Specified by:
getBrandsListin interfaceProductOrBuilder- Returns:
- A list containing the brands.
-
getBrandsCount
public int getBrandsCount()The brands of the product. A maximum of 30 brands are allowed unless overridden through the Google Cloud console. Each brand must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [brand](https://support.google.com/merchants/answer/6324351). Schema.org property [Product.brand](https://schema.org/brand).
repeated string brands = 9;- Specified by:
getBrandsCountin interfaceProductOrBuilder- Returns:
- The count of brands.
-
getBrands
The brands of the product. A maximum of 30 brands are allowed unless overridden through the Google Cloud console. Each brand must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [brand](https://support.google.com/merchants/answer/6324351). Schema.org property [Product.brand](https://schema.org/brand).
repeated string brands = 9;- Specified by:
getBrandsin interfaceProductOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The brands at the given index.
-
getBrandsBytes
public com.google.protobuf.ByteString getBrandsBytes(int index) The brands of the product. A maximum of 30 brands are allowed unless overridden through the Google Cloud console. Each brand must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [brand](https://support.google.com/merchants/answer/6324351). Schema.org property [Product.brand](https://schema.org/brand).
repeated string brands = 9;- Specified by:
getBrandsBytesin interfaceProductOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the brands at the given index.
-
setBrands
The brands of the product. A maximum of 30 brands are allowed unless overridden through the Google Cloud console. Each brand must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [brand](https://support.google.com/merchants/answer/6324351). Schema.org property [Product.brand](https://schema.org/brand).
repeated string brands = 9;- Parameters:
index- The index to set the value at.value- The brands to set.- Returns:
- This builder for chaining.
-
addBrands
The brands of the product. A maximum of 30 brands are allowed unless overridden through the Google Cloud console. Each brand must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [brand](https://support.google.com/merchants/answer/6324351). Schema.org property [Product.brand](https://schema.org/brand).
repeated string brands = 9;- Parameters:
value- The brands to add.- Returns:
- This builder for chaining.
-
addAllBrands
The brands of the product. A maximum of 30 brands are allowed unless overridden through the Google Cloud console. Each brand must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [brand](https://support.google.com/merchants/answer/6324351). Schema.org property [Product.brand](https://schema.org/brand).
repeated string brands = 9;- Parameters:
values- The brands to add.- Returns:
- This builder for chaining.
-
clearBrands
The brands of the product. A maximum of 30 brands are allowed unless overridden through the Google Cloud console. Each brand must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [brand](https://support.google.com/merchants/answer/6324351). Schema.org property [Product.brand](https://schema.org/brand).
repeated string brands = 9;- Returns:
- This builder for chaining.
-
addBrandsBytes
The brands of the product. A maximum of 30 brands are allowed unless overridden through the Google Cloud console. Each brand must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [brand](https://support.google.com/merchants/answer/6324351). Schema.org property [Product.brand](https://schema.org/brand).
repeated string brands = 9;- Parameters:
value- The bytes of the brands to add.- Returns:
- This builder for chaining.
-
getDescription
Product description. This field must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [description](https://support.google.com/merchants/answer/6324468). Schema.org property [Product.description](https://schema.org/description).
string description = 10;- Specified by:
getDescriptionin interfaceProductOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()Product description. This field must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [description](https://support.google.com/merchants/answer/6324468). Schema.org property [Product.description](https://schema.org/description).
string description = 10;- Specified by:
getDescriptionBytesin interfaceProductOrBuilder- Returns:
- The bytes for description.
-
setDescription
Product description. This field must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [description](https://support.google.com/merchants/answer/6324468). Schema.org property [Product.description](https://schema.org/description).
string description = 10;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
Product description. This field must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [description](https://support.google.com/merchants/answer/6324468). Schema.org property [Product.description](https://schema.org/description).
string description = 10;- Returns:
- This builder for chaining.
-
setDescriptionBytes
Product description. This field must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [description](https://support.google.com/merchants/answer/6324468). Schema.org property [Product.description](https://schema.org/description).
string description = 10;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getLanguageCode
Language of the title/description and other string attributes. Use language tags defined by [BCP 47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). For product prediction, this field is ignored and the model automatically detects the text language. The [Product][google.cloud.retail.v2alpha.Product] can include text in different languages, but duplicating [Product][google.cloud.retail.v2alpha.Product]s to provide text in multiple languages can result in degraded model performance. For product search this field is in use. It defaults to "en-US" if unset.
string language_code = 11;- Specified by:
getLanguageCodein interfaceProductOrBuilder- Returns:
- The languageCode.
-
getLanguageCodeBytes
public com.google.protobuf.ByteString getLanguageCodeBytes()Language of the title/description and other string attributes. Use language tags defined by [BCP 47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). For product prediction, this field is ignored and the model automatically detects the text language. The [Product][google.cloud.retail.v2alpha.Product] can include text in different languages, but duplicating [Product][google.cloud.retail.v2alpha.Product]s to provide text in multiple languages can result in degraded model performance. For product search this field is in use. It defaults to "en-US" if unset.
string language_code = 11;- Specified by:
getLanguageCodeBytesin interfaceProductOrBuilder- Returns:
- The bytes for languageCode.
-
setLanguageCode
Language of the title/description and other string attributes. Use language tags defined by [BCP 47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). For product prediction, this field is ignored and the model automatically detects the text language. The [Product][google.cloud.retail.v2alpha.Product] can include text in different languages, but duplicating [Product][google.cloud.retail.v2alpha.Product]s to provide text in multiple languages can result in degraded model performance. For product search this field is in use. It defaults to "en-US" if unset.
string language_code = 11;- Parameters:
value- The languageCode to set.- Returns:
- This builder for chaining.
-
clearLanguageCode
Language of the title/description and other string attributes. Use language tags defined by [BCP 47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). For product prediction, this field is ignored and the model automatically detects the text language. The [Product][google.cloud.retail.v2alpha.Product] can include text in different languages, but duplicating [Product][google.cloud.retail.v2alpha.Product]s to provide text in multiple languages can result in degraded model performance. For product search this field is in use. It defaults to "en-US" if unset.
string language_code = 11;- Returns:
- This builder for chaining.
-
setLanguageCodeBytes
Language of the title/description and other string attributes. Use language tags defined by [BCP 47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). For product prediction, this field is ignored and the model automatically detects the text language. The [Product][google.cloud.retail.v2alpha.Product] can include text in different languages, but duplicating [Product][google.cloud.retail.v2alpha.Product]s to provide text in multiple languages can result in degraded model performance. For product search this field is in use. It defaults to "en-US" if unset.
string language_code = 11;- Parameters:
value- The bytes for languageCode to set.- Returns:
- This builder for chaining.
-
getAttributesCount
public int getAttributesCount()Description copied from interface:ProductOrBuilderHighly encouraged. Extra product attributes to be included. For example, for products, this could include the store name, vendor, style, color, etc. These are very strong signals for recommendation model, thus we highly recommend providing the attributes here. Features that can take on one of a limited number of possible values. Two types of features can be set are: Textual features. some examples would be the brand/maker of a product, or country of a customer. Numerical features. Some examples would be the height/weight of a product, or age of a customer. For example: `{ "vendor": {"text": ["vendor123", "vendor456"]}, "lengths_cm": {"numbers":[2.3, 15.4]}, "heights_cm": {"numbers":[8.1, 6.4]} }`. This field needs to pass all below criteria, otherwise an INVALID_ARGUMENT error is returned: * Max entries count: 200. * The key must be a UTF-8 encoded string with a length limit of 128 characters. * For indexable attribute, the key must match the pattern: `[a-zA-Z0-9][a-zA-Z0-9_]*`. For example, `key0LikeThis` or `KEY_1_LIKE_THIS`. * For text attributes, at most 400 values are allowed. Empty values are not allowed. Each value must be a non-empty UTF-8 encoded string with a length limit of 256 characters. * For number attributes, at most 400 values are allowed.map<string, .google.cloud.retail.v2alpha.CustomAttribute> attributes = 12;- Specified by:
getAttributesCountin interfaceProductOrBuilder
-
containsAttributes
Highly encouraged. Extra product attributes to be included. For example, for products, this could include the store name, vendor, style, color, etc. These are very strong signals for recommendation model, thus we highly recommend providing the attributes here. Features that can take on one of a limited number of possible values. Two types of features can be set are: Textual features. some examples would be the brand/maker of a product, or country of a customer. Numerical features. Some examples would be the height/weight of a product, or age of a customer. For example: `{ "vendor": {"text": ["vendor123", "vendor456"]}, "lengths_cm": {"numbers":[2.3, 15.4]}, "heights_cm": {"numbers":[8.1, 6.4]} }`. This field needs to pass all below criteria, otherwise an INVALID_ARGUMENT error is returned: * Max entries count: 200. * The key must be a UTF-8 encoded string with a length limit of 128 characters. * For indexable attribute, the key must match the pattern: `[a-zA-Z0-9][a-zA-Z0-9_]*`. For example, `key0LikeThis` or `KEY_1_LIKE_THIS`. * For text attributes, at most 400 values are allowed. Empty values are not allowed. Each value must be a non-empty UTF-8 encoded string with a length limit of 256 characters. * For number attributes, at most 400 values are allowed.map<string, .google.cloud.retail.v2alpha.CustomAttribute> attributes = 12;- Specified by:
containsAttributesin interfaceProductOrBuilder
-
getAttributes
Deprecated.UsegetAttributesMap()instead.- Specified by:
getAttributesin interfaceProductOrBuilder
-
getAttributesMap
Highly encouraged. Extra product attributes to be included. For example, for products, this could include the store name, vendor, style, color, etc. These are very strong signals for recommendation model, thus we highly recommend providing the attributes here. Features that can take on one of a limited number of possible values. Two types of features can be set are: Textual features. some examples would be the brand/maker of a product, or country of a customer. Numerical features. Some examples would be the height/weight of a product, or age of a customer. For example: `{ "vendor": {"text": ["vendor123", "vendor456"]}, "lengths_cm": {"numbers":[2.3, 15.4]}, "heights_cm": {"numbers":[8.1, 6.4]} }`. This field needs to pass all below criteria, otherwise an INVALID_ARGUMENT error is returned: * Max entries count: 200. * The key must be a UTF-8 encoded string with a length limit of 128 characters. * For indexable attribute, the key must match the pattern: `[a-zA-Z0-9][a-zA-Z0-9_]*`. For example, `key0LikeThis` or `KEY_1_LIKE_THIS`. * For text attributes, at most 400 values are allowed. Empty values are not allowed. Each value must be a non-empty UTF-8 encoded string with a length limit of 256 characters. * For number attributes, at most 400 values are allowed.map<string, .google.cloud.retail.v2alpha.CustomAttribute> attributes = 12;- Specified by:
getAttributesMapin interfaceProductOrBuilder
-
getAttributesOrDefault
Highly encouraged. Extra product attributes to be included. For example, for products, this could include the store name, vendor, style, color, etc. These are very strong signals for recommendation model, thus we highly recommend providing the attributes here. Features that can take on one of a limited number of possible values. Two types of features can be set are: Textual features. some examples would be the brand/maker of a product, or country of a customer. Numerical features. Some examples would be the height/weight of a product, or age of a customer. For example: `{ "vendor": {"text": ["vendor123", "vendor456"]}, "lengths_cm": {"numbers":[2.3, 15.4]}, "heights_cm": {"numbers":[8.1, 6.4]} }`. This field needs to pass all below criteria, otherwise an INVALID_ARGUMENT error is returned: * Max entries count: 200. * The key must be a UTF-8 encoded string with a length limit of 128 characters. * For indexable attribute, the key must match the pattern: `[a-zA-Z0-9][a-zA-Z0-9_]*`. For example, `key0LikeThis` or `KEY_1_LIKE_THIS`. * For text attributes, at most 400 values are allowed. Empty values are not allowed. Each value must be a non-empty UTF-8 encoded string with a length limit of 256 characters. * For number attributes, at most 400 values are allowed.map<string, .google.cloud.retail.v2alpha.CustomAttribute> attributes = 12;- Specified by:
getAttributesOrDefaultin interfaceProductOrBuilder
-
getAttributesOrThrow
Highly encouraged. Extra product attributes to be included. For example, for products, this could include the store name, vendor, style, color, etc. These are very strong signals for recommendation model, thus we highly recommend providing the attributes here. Features that can take on one of a limited number of possible values. Two types of features can be set are: Textual features. some examples would be the brand/maker of a product, or country of a customer. Numerical features. Some examples would be the height/weight of a product, or age of a customer. For example: `{ "vendor": {"text": ["vendor123", "vendor456"]}, "lengths_cm": {"numbers":[2.3, 15.4]}, "heights_cm": {"numbers":[8.1, 6.4]} }`. This field needs to pass all below criteria, otherwise an INVALID_ARGUMENT error is returned: * Max entries count: 200. * The key must be a UTF-8 encoded string with a length limit of 128 characters. * For indexable attribute, the key must match the pattern: `[a-zA-Z0-9][a-zA-Z0-9_]*`. For example, `key0LikeThis` or `KEY_1_LIKE_THIS`. * For text attributes, at most 400 values are allowed. Empty values are not allowed. Each value must be a non-empty UTF-8 encoded string with a length limit of 256 characters. * For number attributes, at most 400 values are allowed.map<string, .google.cloud.retail.v2alpha.CustomAttribute> attributes = 12;- Specified by:
getAttributesOrThrowin interfaceProductOrBuilder
-
clearAttributes
-
removeAttributes
Highly encouraged. Extra product attributes to be included. For example, for products, this could include the store name, vendor, style, color, etc. These are very strong signals for recommendation model, thus we highly recommend providing the attributes here. Features that can take on one of a limited number of possible values. Two types of features can be set are: Textual features. some examples would be the brand/maker of a product, or country of a customer. Numerical features. Some examples would be the height/weight of a product, or age of a customer. For example: `{ "vendor": {"text": ["vendor123", "vendor456"]}, "lengths_cm": {"numbers":[2.3, 15.4]}, "heights_cm": {"numbers":[8.1, 6.4]} }`. This field needs to pass all below criteria, otherwise an INVALID_ARGUMENT error is returned: * Max entries count: 200. * The key must be a UTF-8 encoded string with a length limit of 128 characters. * For indexable attribute, the key must match the pattern: `[a-zA-Z0-9][a-zA-Z0-9_]*`. For example, `key0LikeThis` or `KEY_1_LIKE_THIS`. * For text attributes, at most 400 values are allowed. Empty values are not allowed. Each value must be a non-empty UTF-8 encoded string with a length limit of 256 characters. * For number attributes, at most 400 values are allowed.map<string, .google.cloud.retail.v2alpha.CustomAttribute> attributes = 12; -
getMutableAttributes
Deprecated.Use alternate mutation accessors instead. -
putAttributes
Highly encouraged. Extra product attributes to be included. For example, for products, this could include the store name, vendor, style, color, etc. These are very strong signals for recommendation model, thus we highly recommend providing the attributes here. Features that can take on one of a limited number of possible values. Two types of features can be set are: Textual features. some examples would be the brand/maker of a product, or country of a customer. Numerical features. Some examples would be the height/weight of a product, or age of a customer. For example: `{ "vendor": {"text": ["vendor123", "vendor456"]}, "lengths_cm": {"numbers":[2.3, 15.4]}, "heights_cm": {"numbers":[8.1, 6.4]} }`. This field needs to pass all below criteria, otherwise an INVALID_ARGUMENT error is returned: * Max entries count: 200. * The key must be a UTF-8 encoded string with a length limit of 128 characters. * For indexable attribute, the key must match the pattern: `[a-zA-Z0-9][a-zA-Z0-9_]*`. For example, `key0LikeThis` or `KEY_1_LIKE_THIS`. * For text attributes, at most 400 values are allowed. Empty values are not allowed. Each value must be a non-empty UTF-8 encoded string with a length limit of 256 characters. * For number attributes, at most 400 values are allowed.map<string, .google.cloud.retail.v2alpha.CustomAttribute> attributes = 12; -
putAllAttributes
Highly encouraged. Extra product attributes to be included. For example, for products, this could include the store name, vendor, style, color, etc. These are very strong signals for recommendation model, thus we highly recommend providing the attributes here. Features that can take on one of a limited number of possible values. Two types of features can be set are: Textual features. some examples would be the brand/maker of a product, or country of a customer. Numerical features. Some examples would be the height/weight of a product, or age of a customer. For example: `{ "vendor": {"text": ["vendor123", "vendor456"]}, "lengths_cm": {"numbers":[2.3, 15.4]}, "heights_cm": {"numbers":[8.1, 6.4]} }`. This field needs to pass all below criteria, otherwise an INVALID_ARGUMENT error is returned: * Max entries count: 200. * The key must be a UTF-8 encoded string with a length limit of 128 characters. * For indexable attribute, the key must match the pattern: `[a-zA-Z0-9][a-zA-Z0-9_]*`. For example, `key0LikeThis` or `KEY_1_LIKE_THIS`. * For text attributes, at most 400 values are allowed. Empty values are not allowed. Each value must be a non-empty UTF-8 encoded string with a length limit of 256 characters. * For number attributes, at most 400 values are allowed.map<string, .google.cloud.retail.v2alpha.CustomAttribute> attributes = 12; -
putAttributesBuilderIfAbsent
Highly encouraged. Extra product attributes to be included. For example, for products, this could include the store name, vendor, style, color, etc. These are very strong signals for recommendation model, thus we highly recommend providing the attributes here. Features that can take on one of a limited number of possible values. Two types of features can be set are: Textual features. some examples would be the brand/maker of a product, or country of a customer. Numerical features. Some examples would be the height/weight of a product, or age of a customer. For example: `{ "vendor": {"text": ["vendor123", "vendor456"]}, "lengths_cm": {"numbers":[2.3, 15.4]}, "heights_cm": {"numbers":[8.1, 6.4]} }`. This field needs to pass all below criteria, otherwise an INVALID_ARGUMENT error is returned: * Max entries count: 200. * The key must be a UTF-8 encoded string with a length limit of 128 characters. * For indexable attribute, the key must match the pattern: `[a-zA-Z0-9][a-zA-Z0-9_]*`. For example, `key0LikeThis` or `KEY_1_LIKE_THIS`. * For text attributes, at most 400 values are allowed. Empty values are not allowed. Each value must be a non-empty UTF-8 encoded string with a length limit of 256 characters. * For number attributes, at most 400 values are allowed.map<string, .google.cloud.retail.v2alpha.CustomAttribute> attributes = 12; -
getTagsList
public com.google.protobuf.ProtocolStringList getTagsList()Custom tags associated with the product. At most 250 values are allowed per [Product][google.cloud.retail.v2alpha.Product]. This value must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. This tag can be used for filtering recommendation results by passing the tag as part of the [PredictRequest.filter][google.cloud.retail.v2alpha.PredictRequest.filter]. Corresponding properties: Google Merchant Center property [custom_label_0–4](https://support.google.com/merchants/answer/6324473).
repeated string tags = 13;- Specified by:
getTagsListin interfaceProductOrBuilder- Returns:
- A list containing the tags.
-
getTagsCount
public int getTagsCount()Custom tags associated with the product. At most 250 values are allowed per [Product][google.cloud.retail.v2alpha.Product]. This value must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. This tag can be used for filtering recommendation results by passing the tag as part of the [PredictRequest.filter][google.cloud.retail.v2alpha.PredictRequest.filter]. Corresponding properties: Google Merchant Center property [custom_label_0–4](https://support.google.com/merchants/answer/6324473).
repeated string tags = 13;- Specified by:
getTagsCountin interfaceProductOrBuilder- Returns:
- The count of tags.
-
getTags
Custom tags associated with the product. At most 250 values are allowed per [Product][google.cloud.retail.v2alpha.Product]. This value must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. This tag can be used for filtering recommendation results by passing the tag as part of the [PredictRequest.filter][google.cloud.retail.v2alpha.PredictRequest.filter]. Corresponding properties: Google Merchant Center property [custom_label_0–4](https://support.google.com/merchants/answer/6324473).
repeated string tags = 13;- Specified by:
getTagsin interfaceProductOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The tags at the given index.
-
getTagsBytes
public com.google.protobuf.ByteString getTagsBytes(int index) Custom tags associated with the product. At most 250 values are allowed per [Product][google.cloud.retail.v2alpha.Product]. This value must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. This tag can be used for filtering recommendation results by passing the tag as part of the [PredictRequest.filter][google.cloud.retail.v2alpha.PredictRequest.filter]. Corresponding properties: Google Merchant Center property [custom_label_0–4](https://support.google.com/merchants/answer/6324473).
repeated string tags = 13;- Specified by:
getTagsBytesin interfaceProductOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the tags at the given index.
-
setTags
Custom tags associated with the product. At most 250 values are allowed per [Product][google.cloud.retail.v2alpha.Product]. This value must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. This tag can be used for filtering recommendation results by passing the tag as part of the [PredictRequest.filter][google.cloud.retail.v2alpha.PredictRequest.filter]. Corresponding properties: Google Merchant Center property [custom_label_0–4](https://support.google.com/merchants/answer/6324473).
repeated string tags = 13;- Parameters:
index- The index to set the value at.value- The tags to set.- Returns:
- This builder for chaining.
-
addTags
Custom tags associated with the product. At most 250 values are allowed per [Product][google.cloud.retail.v2alpha.Product]. This value must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. This tag can be used for filtering recommendation results by passing the tag as part of the [PredictRequest.filter][google.cloud.retail.v2alpha.PredictRequest.filter]. Corresponding properties: Google Merchant Center property [custom_label_0–4](https://support.google.com/merchants/answer/6324473).
repeated string tags = 13;- Parameters:
value- The tags to add.- Returns:
- This builder for chaining.
-
addAllTags
Custom tags associated with the product. At most 250 values are allowed per [Product][google.cloud.retail.v2alpha.Product]. This value must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. This tag can be used for filtering recommendation results by passing the tag as part of the [PredictRequest.filter][google.cloud.retail.v2alpha.PredictRequest.filter]. Corresponding properties: Google Merchant Center property [custom_label_0–4](https://support.google.com/merchants/answer/6324473).
repeated string tags = 13;- Parameters:
values- The tags to add.- Returns:
- This builder for chaining.
-
clearTags
Custom tags associated with the product. At most 250 values are allowed per [Product][google.cloud.retail.v2alpha.Product]. This value must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. This tag can be used for filtering recommendation results by passing the tag as part of the [PredictRequest.filter][google.cloud.retail.v2alpha.PredictRequest.filter]. Corresponding properties: Google Merchant Center property [custom_label_0–4](https://support.google.com/merchants/answer/6324473).
repeated string tags = 13;- Returns:
- This builder for chaining.
-
addTagsBytes
Custom tags associated with the product. At most 250 values are allowed per [Product][google.cloud.retail.v2alpha.Product]. This value must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. This tag can be used for filtering recommendation results by passing the tag as part of the [PredictRequest.filter][google.cloud.retail.v2alpha.PredictRequest.filter]. Corresponding properties: Google Merchant Center property [custom_label_0–4](https://support.google.com/merchants/answer/6324473).
repeated string tags = 13;- Parameters:
value- The bytes of the tags to add.- Returns:
- This builder for chaining.
-
hasPriceInfo
public boolean hasPriceInfo()Product price and cost information. Corresponding properties: Google Merchant Center property [price](https://support.google.com/merchants/answer/6324371).
.google.cloud.retail.v2alpha.PriceInfo price_info = 14;- Specified by:
hasPriceInfoin interfaceProductOrBuilder- Returns:
- Whether the priceInfo field is set.
-
getPriceInfo
Product price and cost information. Corresponding properties: Google Merchant Center property [price](https://support.google.com/merchants/answer/6324371).
.google.cloud.retail.v2alpha.PriceInfo price_info = 14;- Specified by:
getPriceInfoin interfaceProductOrBuilder- Returns:
- The priceInfo.
-
setPriceInfo
Product price and cost information. Corresponding properties: Google Merchant Center property [price](https://support.google.com/merchants/answer/6324371).
.google.cloud.retail.v2alpha.PriceInfo price_info = 14; -
setPriceInfo
Product price and cost information. Corresponding properties: Google Merchant Center property [price](https://support.google.com/merchants/answer/6324371).
.google.cloud.retail.v2alpha.PriceInfo price_info = 14; -
mergePriceInfo
Product price and cost information. Corresponding properties: Google Merchant Center property [price](https://support.google.com/merchants/answer/6324371).
.google.cloud.retail.v2alpha.PriceInfo price_info = 14; -
clearPriceInfo
Product price and cost information. Corresponding properties: Google Merchant Center property [price](https://support.google.com/merchants/answer/6324371).
.google.cloud.retail.v2alpha.PriceInfo price_info = 14; -
getPriceInfoBuilder
Product price and cost information. Corresponding properties: Google Merchant Center property [price](https://support.google.com/merchants/answer/6324371).
.google.cloud.retail.v2alpha.PriceInfo price_info = 14; -
getPriceInfoOrBuilder
Product price and cost information. Corresponding properties: Google Merchant Center property [price](https://support.google.com/merchants/answer/6324371).
.google.cloud.retail.v2alpha.PriceInfo price_info = 14;- Specified by:
getPriceInfoOrBuilderin interfaceProductOrBuilder
-
hasRating
public boolean hasRating()The rating of this product.
.google.cloud.retail.v2alpha.Rating rating = 15;- Specified by:
hasRatingin interfaceProductOrBuilder- Returns:
- Whether the rating field is set.
-
getRating
The rating of this product.
.google.cloud.retail.v2alpha.Rating rating = 15;- Specified by:
getRatingin interfaceProductOrBuilder- Returns:
- The rating.
-
setRating
The rating of this product.
.google.cloud.retail.v2alpha.Rating rating = 15; -
setRating
The rating of this product.
.google.cloud.retail.v2alpha.Rating rating = 15; -
mergeRating
The rating of this product.
.google.cloud.retail.v2alpha.Rating rating = 15; -
clearRating
The rating of this product.
.google.cloud.retail.v2alpha.Rating rating = 15; -
getRatingBuilder
The rating of this product.
.google.cloud.retail.v2alpha.Rating rating = 15; -
getRatingOrBuilder
The rating of this product.
.google.cloud.retail.v2alpha.Rating rating = 15;- Specified by:
getRatingOrBuilderin interfaceProductOrBuilder
-
hasAvailableTime
public boolean hasAvailableTime()The timestamp when this [Product][google.cloud.retail.v2alpha.Product] becomes available for [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search]. Note that this is only applicable to [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION], and ignored for [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT].
.google.protobuf.Timestamp available_time = 18;- Specified by:
hasAvailableTimein interfaceProductOrBuilder- Returns:
- Whether the availableTime field is set.
-
getAvailableTime
public com.google.protobuf.Timestamp getAvailableTime()The timestamp when this [Product][google.cloud.retail.v2alpha.Product] becomes available for [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search]. Note that this is only applicable to [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION], and ignored for [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT].
.google.protobuf.Timestamp available_time = 18;- Specified by:
getAvailableTimein interfaceProductOrBuilder- Returns:
- The availableTime.
-
setAvailableTime
The timestamp when this [Product][google.cloud.retail.v2alpha.Product] becomes available for [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search]. Note that this is only applicable to [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION], and ignored for [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT].
.google.protobuf.Timestamp available_time = 18; -
setAvailableTime
The timestamp when this [Product][google.cloud.retail.v2alpha.Product] becomes available for [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search]. Note that this is only applicable to [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION], and ignored for [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT].
.google.protobuf.Timestamp available_time = 18; -
mergeAvailableTime
The timestamp when this [Product][google.cloud.retail.v2alpha.Product] becomes available for [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search]. Note that this is only applicable to [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION], and ignored for [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT].
.google.protobuf.Timestamp available_time = 18; -
clearAvailableTime
The timestamp when this [Product][google.cloud.retail.v2alpha.Product] becomes available for [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search]. Note that this is only applicable to [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION], and ignored for [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT].
.google.protobuf.Timestamp available_time = 18; -
getAvailableTimeBuilder
public com.google.protobuf.Timestamp.Builder getAvailableTimeBuilder()The timestamp when this [Product][google.cloud.retail.v2alpha.Product] becomes available for [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search]. Note that this is only applicable to [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION], and ignored for [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT].
.google.protobuf.Timestamp available_time = 18; -
getAvailableTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getAvailableTimeOrBuilder()The timestamp when this [Product][google.cloud.retail.v2alpha.Product] becomes available for [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search]. Note that this is only applicable to [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION], and ignored for [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT].
.google.protobuf.Timestamp available_time = 18;- Specified by:
getAvailableTimeOrBuilderin interfaceProductOrBuilder
-
getAvailabilityValue
public int getAvailabilityValue()The online availability of the [Product][google.cloud.retail.v2alpha.Product]. Default to [Availability.IN_STOCK][google.cloud.retail.v2alpha.Product.Availability.IN_STOCK]. For primary products with variants set the availability of the primary as [Availability.OUT_OF_STOCK][google.cloud.retail.v2alpha.Product.Availability.OUT_OF_STOCK] and set the true availability at the variant level. This way the primary product will be considered "in stock" as long as it has at least one variant in stock. For primary products with no variants set the true availability at the primary level. Corresponding properties: Google Merchant Center property [availability](https://support.google.com/merchants/answer/6324448). Schema.org property [Offer.availability](https://schema.org/availability).
.google.cloud.retail.v2alpha.Product.Availability availability = 19;- Specified by:
getAvailabilityValuein interfaceProductOrBuilder- Returns:
- The enum numeric value on the wire for availability.
-
setAvailabilityValue
The online availability of the [Product][google.cloud.retail.v2alpha.Product]. Default to [Availability.IN_STOCK][google.cloud.retail.v2alpha.Product.Availability.IN_STOCK]. For primary products with variants set the availability of the primary as [Availability.OUT_OF_STOCK][google.cloud.retail.v2alpha.Product.Availability.OUT_OF_STOCK] and set the true availability at the variant level. This way the primary product will be considered "in stock" as long as it has at least one variant in stock. For primary products with no variants set the true availability at the primary level. Corresponding properties: Google Merchant Center property [availability](https://support.google.com/merchants/answer/6324448). Schema.org property [Offer.availability](https://schema.org/availability).
.google.cloud.retail.v2alpha.Product.Availability availability = 19;- Parameters:
value- The enum numeric value on the wire for availability to set.- Returns:
- This builder for chaining.
-
getAvailability
The online availability of the [Product][google.cloud.retail.v2alpha.Product]. Default to [Availability.IN_STOCK][google.cloud.retail.v2alpha.Product.Availability.IN_STOCK]. For primary products with variants set the availability of the primary as [Availability.OUT_OF_STOCK][google.cloud.retail.v2alpha.Product.Availability.OUT_OF_STOCK] and set the true availability at the variant level. This way the primary product will be considered "in stock" as long as it has at least one variant in stock. For primary products with no variants set the true availability at the primary level. Corresponding properties: Google Merchant Center property [availability](https://support.google.com/merchants/answer/6324448). Schema.org property [Offer.availability](https://schema.org/availability).
.google.cloud.retail.v2alpha.Product.Availability availability = 19;- Specified by:
getAvailabilityin interfaceProductOrBuilder- Returns:
- The availability.
-
setAvailability
The online availability of the [Product][google.cloud.retail.v2alpha.Product]. Default to [Availability.IN_STOCK][google.cloud.retail.v2alpha.Product.Availability.IN_STOCK]. For primary products with variants set the availability of the primary as [Availability.OUT_OF_STOCK][google.cloud.retail.v2alpha.Product.Availability.OUT_OF_STOCK] and set the true availability at the variant level. This way the primary product will be considered "in stock" as long as it has at least one variant in stock. For primary products with no variants set the true availability at the primary level. Corresponding properties: Google Merchant Center property [availability](https://support.google.com/merchants/answer/6324448). Schema.org property [Offer.availability](https://schema.org/availability).
.google.cloud.retail.v2alpha.Product.Availability availability = 19;- Parameters:
value- The availability to set.- Returns:
- This builder for chaining.
-
clearAvailability
The online availability of the [Product][google.cloud.retail.v2alpha.Product]. Default to [Availability.IN_STOCK][google.cloud.retail.v2alpha.Product.Availability.IN_STOCK]. For primary products with variants set the availability of the primary as [Availability.OUT_OF_STOCK][google.cloud.retail.v2alpha.Product.Availability.OUT_OF_STOCK] and set the true availability at the variant level. This way the primary product will be considered "in stock" as long as it has at least one variant in stock. For primary products with no variants set the true availability at the primary level. Corresponding properties: Google Merchant Center property [availability](https://support.google.com/merchants/answer/6324448). Schema.org property [Offer.availability](https://schema.org/availability).
.google.cloud.retail.v2alpha.Product.Availability availability = 19;- Returns:
- This builder for chaining.
-
hasAvailableQuantity
public boolean hasAvailableQuantity()The available quantity of the item.
.google.protobuf.Int32Value available_quantity = 20;- Specified by:
hasAvailableQuantityin interfaceProductOrBuilder- Returns:
- Whether the availableQuantity field is set.
-
getAvailableQuantity
public com.google.protobuf.Int32Value getAvailableQuantity()The available quantity of the item.
.google.protobuf.Int32Value available_quantity = 20;- Specified by:
getAvailableQuantityin interfaceProductOrBuilder- Returns:
- The availableQuantity.
-
setAvailableQuantity
The available quantity of the item.
.google.protobuf.Int32Value available_quantity = 20; -
setAvailableQuantity
The available quantity of the item.
.google.protobuf.Int32Value available_quantity = 20; -
mergeAvailableQuantity
The available quantity of the item.
.google.protobuf.Int32Value available_quantity = 20; -
clearAvailableQuantity
The available quantity of the item.
.google.protobuf.Int32Value available_quantity = 20; -
getAvailableQuantityBuilder
public com.google.protobuf.Int32Value.Builder getAvailableQuantityBuilder()The available quantity of the item.
.google.protobuf.Int32Value available_quantity = 20; -
getAvailableQuantityOrBuilder
public com.google.protobuf.Int32ValueOrBuilder getAvailableQuantityOrBuilder()The available quantity of the item.
.google.protobuf.Int32Value available_quantity = 20;- Specified by:
getAvailableQuantityOrBuilderin interfaceProductOrBuilder
-
getFulfillmentInfoList
Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods. All the elements must have distinct [FulfillmentInfo.type][google.cloud.retail.v2alpha.FulfillmentInfo.type]. Otherwise, an INVALID_ARGUMENT error is returned.
repeated .google.cloud.retail.v2alpha.FulfillmentInfo fulfillment_info = 21;- Specified by:
getFulfillmentInfoListin interfaceProductOrBuilder
-
getFulfillmentInfoCount
public int getFulfillmentInfoCount()Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods. All the elements must have distinct [FulfillmentInfo.type][google.cloud.retail.v2alpha.FulfillmentInfo.type]. Otherwise, an INVALID_ARGUMENT error is returned.
repeated .google.cloud.retail.v2alpha.FulfillmentInfo fulfillment_info = 21;- Specified by:
getFulfillmentInfoCountin interfaceProductOrBuilder
-
getFulfillmentInfo
Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods. All the elements must have distinct [FulfillmentInfo.type][google.cloud.retail.v2alpha.FulfillmentInfo.type]. Otherwise, an INVALID_ARGUMENT error is returned.
repeated .google.cloud.retail.v2alpha.FulfillmentInfo fulfillment_info = 21;- Specified by:
getFulfillmentInfoin interfaceProductOrBuilder
-
setFulfillmentInfo
Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods. All the elements must have distinct [FulfillmentInfo.type][google.cloud.retail.v2alpha.FulfillmentInfo.type]. Otherwise, an INVALID_ARGUMENT error is returned.
repeated .google.cloud.retail.v2alpha.FulfillmentInfo fulfillment_info = 21; -
setFulfillmentInfo
Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods. All the elements must have distinct [FulfillmentInfo.type][google.cloud.retail.v2alpha.FulfillmentInfo.type]. Otherwise, an INVALID_ARGUMENT error is returned.
repeated .google.cloud.retail.v2alpha.FulfillmentInfo fulfillment_info = 21; -
addFulfillmentInfo
Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods. All the elements must have distinct [FulfillmentInfo.type][google.cloud.retail.v2alpha.FulfillmentInfo.type]. Otherwise, an INVALID_ARGUMENT error is returned.
repeated .google.cloud.retail.v2alpha.FulfillmentInfo fulfillment_info = 21; -
addFulfillmentInfo
Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods. All the elements must have distinct [FulfillmentInfo.type][google.cloud.retail.v2alpha.FulfillmentInfo.type]. Otherwise, an INVALID_ARGUMENT error is returned.
repeated .google.cloud.retail.v2alpha.FulfillmentInfo fulfillment_info = 21; -
addFulfillmentInfo
Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods. All the elements must have distinct [FulfillmentInfo.type][google.cloud.retail.v2alpha.FulfillmentInfo.type]. Otherwise, an INVALID_ARGUMENT error is returned.
repeated .google.cloud.retail.v2alpha.FulfillmentInfo fulfillment_info = 21; -
addFulfillmentInfo
Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods. All the elements must have distinct [FulfillmentInfo.type][google.cloud.retail.v2alpha.FulfillmentInfo.type]. Otherwise, an INVALID_ARGUMENT error is returned.
repeated .google.cloud.retail.v2alpha.FulfillmentInfo fulfillment_info = 21; -
addAllFulfillmentInfo
Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods. All the elements must have distinct [FulfillmentInfo.type][google.cloud.retail.v2alpha.FulfillmentInfo.type]. Otherwise, an INVALID_ARGUMENT error is returned.
repeated .google.cloud.retail.v2alpha.FulfillmentInfo fulfillment_info = 21; -
clearFulfillmentInfo
Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods. All the elements must have distinct [FulfillmentInfo.type][google.cloud.retail.v2alpha.FulfillmentInfo.type]. Otherwise, an INVALID_ARGUMENT error is returned.
repeated .google.cloud.retail.v2alpha.FulfillmentInfo fulfillment_info = 21; -
removeFulfillmentInfo
Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods. All the elements must have distinct [FulfillmentInfo.type][google.cloud.retail.v2alpha.FulfillmentInfo.type]. Otherwise, an INVALID_ARGUMENT error is returned.
repeated .google.cloud.retail.v2alpha.FulfillmentInfo fulfillment_info = 21; -
getFulfillmentInfoBuilder
Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods. All the elements must have distinct [FulfillmentInfo.type][google.cloud.retail.v2alpha.FulfillmentInfo.type]. Otherwise, an INVALID_ARGUMENT error is returned.
repeated .google.cloud.retail.v2alpha.FulfillmentInfo fulfillment_info = 21; -
getFulfillmentInfoOrBuilder
Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods. All the elements must have distinct [FulfillmentInfo.type][google.cloud.retail.v2alpha.FulfillmentInfo.type]. Otherwise, an INVALID_ARGUMENT error is returned.
repeated .google.cloud.retail.v2alpha.FulfillmentInfo fulfillment_info = 21;- Specified by:
getFulfillmentInfoOrBuilderin interfaceProductOrBuilder
-
getFulfillmentInfoOrBuilderList
Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods. All the elements must have distinct [FulfillmentInfo.type][google.cloud.retail.v2alpha.FulfillmentInfo.type]. Otherwise, an INVALID_ARGUMENT error is returned.
repeated .google.cloud.retail.v2alpha.FulfillmentInfo fulfillment_info = 21;- Specified by:
getFulfillmentInfoOrBuilderListin interfaceProductOrBuilder
-
addFulfillmentInfoBuilder
Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods. All the elements must have distinct [FulfillmentInfo.type][google.cloud.retail.v2alpha.FulfillmentInfo.type]. Otherwise, an INVALID_ARGUMENT error is returned.
repeated .google.cloud.retail.v2alpha.FulfillmentInfo fulfillment_info = 21; -
addFulfillmentInfoBuilder
Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods. All the elements must have distinct [FulfillmentInfo.type][google.cloud.retail.v2alpha.FulfillmentInfo.type]. Otherwise, an INVALID_ARGUMENT error is returned.
repeated .google.cloud.retail.v2alpha.FulfillmentInfo fulfillment_info = 21; -
getFulfillmentInfoBuilderList
Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods. All the elements must have distinct [FulfillmentInfo.type][google.cloud.retail.v2alpha.FulfillmentInfo.type]. Otherwise, an INVALID_ARGUMENT error is returned.
repeated .google.cloud.retail.v2alpha.FulfillmentInfo fulfillment_info = 21; -
getUri
Canonical URL directly linking to the product detail page. It is strongly recommended to provide a valid uri for the product, otherwise the service performance could be significantly degraded. This field must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [link](https://support.google.com/merchants/answer/6324416). Schema.org property [Offer.url](https://schema.org/url).
string uri = 22;- Specified by:
getUriin interfaceProductOrBuilder- Returns:
- The uri.
-
getUriBytes
public com.google.protobuf.ByteString getUriBytes()Canonical URL directly linking to the product detail page. It is strongly recommended to provide a valid uri for the product, otherwise the service performance could be significantly degraded. This field must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [link](https://support.google.com/merchants/answer/6324416). Schema.org property [Offer.url](https://schema.org/url).
string uri = 22;- Specified by:
getUriBytesin interfaceProductOrBuilder- Returns:
- The bytes for uri.
-
setUri
Canonical URL directly linking to the product detail page. It is strongly recommended to provide a valid uri for the product, otherwise the service performance could be significantly degraded. This field must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [link](https://support.google.com/merchants/answer/6324416). Schema.org property [Offer.url](https://schema.org/url).
string uri = 22;- Parameters:
value- The uri to set.- Returns:
- This builder for chaining.
-
clearUri
Canonical URL directly linking to the product detail page. It is strongly recommended to provide a valid uri for the product, otherwise the service performance could be significantly degraded. This field must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [link](https://support.google.com/merchants/answer/6324416). Schema.org property [Offer.url](https://schema.org/url).
string uri = 22;- Returns:
- This builder for chaining.
-
setUriBytes
Canonical URL directly linking to the product detail page. It is strongly recommended to provide a valid uri for the product, otherwise the service performance could be significantly degraded. This field must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [link](https://support.google.com/merchants/answer/6324416). Schema.org property [Offer.url](https://schema.org/url).
string uri = 22;- Parameters:
value- The bytes for uri to set.- Returns:
- This builder for chaining.
-
getImagesList
Product images for the product. We highly recommend putting the main image first. A maximum of 300 images are allowed. Corresponding properties: Google Merchant Center property [image_link](https://support.google.com/merchants/answer/6324350). Schema.org property [Product.image](https://schema.org/image).
repeated .google.cloud.retail.v2alpha.Image images = 23;- Specified by:
getImagesListin interfaceProductOrBuilder
-
getImagesCount
public int getImagesCount()Product images for the product. We highly recommend putting the main image first. A maximum of 300 images are allowed. Corresponding properties: Google Merchant Center property [image_link](https://support.google.com/merchants/answer/6324350). Schema.org property [Product.image](https://schema.org/image).
repeated .google.cloud.retail.v2alpha.Image images = 23;- Specified by:
getImagesCountin interfaceProductOrBuilder
-
getImages
Product images for the product. We highly recommend putting the main image first. A maximum of 300 images are allowed. Corresponding properties: Google Merchant Center property [image_link](https://support.google.com/merchants/answer/6324350). Schema.org property [Product.image](https://schema.org/image).
repeated .google.cloud.retail.v2alpha.Image images = 23;- Specified by:
getImagesin interfaceProductOrBuilder
-
setImages
Product images for the product. We highly recommend putting the main image first. A maximum of 300 images are allowed. Corresponding properties: Google Merchant Center property [image_link](https://support.google.com/merchants/answer/6324350). Schema.org property [Product.image](https://schema.org/image).
repeated .google.cloud.retail.v2alpha.Image images = 23; -
setImages
Product images for the product. We highly recommend putting the main image first. A maximum of 300 images are allowed. Corresponding properties: Google Merchant Center property [image_link](https://support.google.com/merchants/answer/6324350). Schema.org property [Product.image](https://schema.org/image).
repeated .google.cloud.retail.v2alpha.Image images = 23; -
addImages
Product images for the product. We highly recommend putting the main image first. A maximum of 300 images are allowed. Corresponding properties: Google Merchant Center property [image_link](https://support.google.com/merchants/answer/6324350). Schema.org property [Product.image](https://schema.org/image).
repeated .google.cloud.retail.v2alpha.Image images = 23; -
addImages
Product images for the product. We highly recommend putting the main image first. A maximum of 300 images are allowed. Corresponding properties: Google Merchant Center property [image_link](https://support.google.com/merchants/answer/6324350). Schema.org property [Product.image](https://schema.org/image).
repeated .google.cloud.retail.v2alpha.Image images = 23; -
addImages
Product images for the product. We highly recommend putting the main image first. A maximum of 300 images are allowed. Corresponding properties: Google Merchant Center property [image_link](https://support.google.com/merchants/answer/6324350). Schema.org property [Product.image](https://schema.org/image).
repeated .google.cloud.retail.v2alpha.Image images = 23; -
addImages
Product images for the product. We highly recommend putting the main image first. A maximum of 300 images are allowed. Corresponding properties: Google Merchant Center property [image_link](https://support.google.com/merchants/answer/6324350). Schema.org property [Product.image](https://schema.org/image).
repeated .google.cloud.retail.v2alpha.Image images = 23; -
addAllImages
Product images for the product. We highly recommend putting the main image first. A maximum of 300 images are allowed. Corresponding properties: Google Merchant Center property [image_link](https://support.google.com/merchants/answer/6324350). Schema.org property [Product.image](https://schema.org/image).
repeated .google.cloud.retail.v2alpha.Image images = 23; -
clearImages
Product images for the product. We highly recommend putting the main image first. A maximum of 300 images are allowed. Corresponding properties: Google Merchant Center property [image_link](https://support.google.com/merchants/answer/6324350). Schema.org property [Product.image](https://schema.org/image).
repeated .google.cloud.retail.v2alpha.Image images = 23; -
removeImages
Product images for the product. We highly recommend putting the main image first. A maximum of 300 images are allowed. Corresponding properties: Google Merchant Center property [image_link](https://support.google.com/merchants/answer/6324350). Schema.org property [Product.image](https://schema.org/image).
repeated .google.cloud.retail.v2alpha.Image images = 23; -
getImagesBuilder
Product images for the product. We highly recommend putting the main image first. A maximum of 300 images are allowed. Corresponding properties: Google Merchant Center property [image_link](https://support.google.com/merchants/answer/6324350). Schema.org property [Product.image](https://schema.org/image).
repeated .google.cloud.retail.v2alpha.Image images = 23; -
getImagesOrBuilder
Product images for the product. We highly recommend putting the main image first. A maximum of 300 images are allowed. Corresponding properties: Google Merchant Center property [image_link](https://support.google.com/merchants/answer/6324350). Schema.org property [Product.image](https://schema.org/image).
repeated .google.cloud.retail.v2alpha.Image images = 23;- Specified by:
getImagesOrBuilderin interfaceProductOrBuilder
-
getImagesOrBuilderList
Product images for the product. We highly recommend putting the main image first. A maximum of 300 images are allowed. Corresponding properties: Google Merchant Center property [image_link](https://support.google.com/merchants/answer/6324350). Schema.org property [Product.image](https://schema.org/image).
repeated .google.cloud.retail.v2alpha.Image images = 23;- Specified by:
getImagesOrBuilderListin interfaceProductOrBuilder
-
addImagesBuilder
Product images for the product. We highly recommend putting the main image first. A maximum of 300 images are allowed. Corresponding properties: Google Merchant Center property [image_link](https://support.google.com/merchants/answer/6324350). Schema.org property [Product.image](https://schema.org/image).
repeated .google.cloud.retail.v2alpha.Image images = 23; -
addImagesBuilder
Product images for the product. We highly recommend putting the main image first. A maximum of 300 images are allowed. Corresponding properties: Google Merchant Center property [image_link](https://support.google.com/merchants/answer/6324350). Schema.org property [Product.image](https://schema.org/image).
repeated .google.cloud.retail.v2alpha.Image images = 23; -
getImagesBuilderList
Product images for the product. We highly recommend putting the main image first. A maximum of 300 images are allowed. Corresponding properties: Google Merchant Center property [image_link](https://support.google.com/merchants/answer/6324350). Schema.org property [Product.image](https://schema.org/image).
repeated .google.cloud.retail.v2alpha.Image images = 23; -
hasAudience
public boolean hasAudience()The target group associated with a given audience (e.g. male, veterans, car owners, musicians, etc.) of the product.
.google.cloud.retail.v2alpha.Audience audience = 24;- Specified by:
hasAudiencein interfaceProductOrBuilder- Returns:
- Whether the audience field is set.
-
getAudience
The target group associated with a given audience (e.g. male, veterans, car owners, musicians, etc.) of the product.
.google.cloud.retail.v2alpha.Audience audience = 24;- Specified by:
getAudiencein interfaceProductOrBuilder- Returns:
- The audience.
-
setAudience
The target group associated with a given audience (e.g. male, veterans, car owners, musicians, etc.) of the product.
.google.cloud.retail.v2alpha.Audience audience = 24; -
setAudience
The target group associated with a given audience (e.g. male, veterans, car owners, musicians, etc.) of the product.
.google.cloud.retail.v2alpha.Audience audience = 24; -
mergeAudience
The target group associated with a given audience (e.g. male, veterans, car owners, musicians, etc.) of the product.
.google.cloud.retail.v2alpha.Audience audience = 24; -
clearAudience
The target group associated with a given audience (e.g. male, veterans, car owners, musicians, etc.) of the product.
.google.cloud.retail.v2alpha.Audience audience = 24; -
getAudienceBuilder
The target group associated with a given audience (e.g. male, veterans, car owners, musicians, etc.) of the product.
.google.cloud.retail.v2alpha.Audience audience = 24; -
getAudienceOrBuilder
The target group associated with a given audience (e.g. male, veterans, car owners, musicians, etc.) of the product.
.google.cloud.retail.v2alpha.Audience audience = 24;- Specified by:
getAudienceOrBuilderin interfaceProductOrBuilder
-
hasColorInfo
public boolean hasColorInfo()The color of the product. Corresponding properties: Google Merchant Center property [color](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).
.google.cloud.retail.v2alpha.ColorInfo color_info = 25;- Specified by:
hasColorInfoin interfaceProductOrBuilder- Returns:
- Whether the colorInfo field is set.
-
getColorInfo
The color of the product. Corresponding properties: Google Merchant Center property [color](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).
.google.cloud.retail.v2alpha.ColorInfo color_info = 25;- Specified by:
getColorInfoin interfaceProductOrBuilder- Returns:
- The colorInfo.
-
setColorInfo
The color of the product. Corresponding properties: Google Merchant Center property [color](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).
.google.cloud.retail.v2alpha.ColorInfo color_info = 25; -
setColorInfo
The color of the product. Corresponding properties: Google Merchant Center property [color](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).
.google.cloud.retail.v2alpha.ColorInfo color_info = 25; -
mergeColorInfo
The color of the product. Corresponding properties: Google Merchant Center property [color](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).
.google.cloud.retail.v2alpha.ColorInfo color_info = 25; -
clearColorInfo
The color of the product. Corresponding properties: Google Merchant Center property [color](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).
.google.cloud.retail.v2alpha.ColorInfo color_info = 25; -
getColorInfoBuilder
The color of the product. Corresponding properties: Google Merchant Center property [color](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).
.google.cloud.retail.v2alpha.ColorInfo color_info = 25; -
getColorInfoOrBuilder
The color of the product. Corresponding properties: Google Merchant Center property [color](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).
.google.cloud.retail.v2alpha.ColorInfo color_info = 25;- Specified by:
getColorInfoOrBuilderin interfaceProductOrBuilder
-
getSizesList
public com.google.protobuf.ProtocolStringList getSizesList()The size of the product. To represent different size systems or size types, consider using this format: [[[size_system:]size_type:]size_value]. For example, in "US:MENS:M", "US" represents size system; "MENS" represents size type; "M" represents size value. In "GIRLS:27", size system is empty; "GIRLS" represents size type; "27" represents size value. In "32 inches", both size system and size type are empty, while size value is "32 inches". A maximum of 20 values are allowed per [Product][google.cloud.retail.v2alpha.Product]. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [size](https://support.google.com/merchants/answer/6324492), [size_type](https://support.google.com/merchants/answer/6324497), and [size_system](https://support.google.com/merchants/answer/6324502). Schema.org property [Product.size](https://schema.org/size).
repeated string sizes = 26;- Specified by:
getSizesListin interfaceProductOrBuilder- Returns:
- A list containing the sizes.
-
getSizesCount
public int getSizesCount()The size of the product. To represent different size systems or size types, consider using this format: [[[size_system:]size_type:]size_value]. For example, in "US:MENS:M", "US" represents size system; "MENS" represents size type; "M" represents size value. In "GIRLS:27", size system is empty; "GIRLS" represents size type; "27" represents size value. In "32 inches", both size system and size type are empty, while size value is "32 inches". A maximum of 20 values are allowed per [Product][google.cloud.retail.v2alpha.Product]. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [size](https://support.google.com/merchants/answer/6324492), [size_type](https://support.google.com/merchants/answer/6324497), and [size_system](https://support.google.com/merchants/answer/6324502). Schema.org property [Product.size](https://schema.org/size).
repeated string sizes = 26;- Specified by:
getSizesCountin interfaceProductOrBuilder- Returns:
- The count of sizes.
-
getSizes
The size of the product. To represent different size systems or size types, consider using this format: [[[size_system:]size_type:]size_value]. For example, in "US:MENS:M", "US" represents size system; "MENS" represents size type; "M" represents size value. In "GIRLS:27", size system is empty; "GIRLS" represents size type; "27" represents size value. In "32 inches", both size system and size type are empty, while size value is "32 inches". A maximum of 20 values are allowed per [Product][google.cloud.retail.v2alpha.Product]. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [size](https://support.google.com/merchants/answer/6324492), [size_type](https://support.google.com/merchants/answer/6324497), and [size_system](https://support.google.com/merchants/answer/6324502). Schema.org property [Product.size](https://schema.org/size).
repeated string sizes = 26;- Specified by:
getSizesin interfaceProductOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The sizes at the given index.
-
getSizesBytes
public com.google.protobuf.ByteString getSizesBytes(int index) The size of the product. To represent different size systems or size types, consider using this format: [[[size_system:]size_type:]size_value]. For example, in "US:MENS:M", "US" represents size system; "MENS" represents size type; "M" represents size value. In "GIRLS:27", size system is empty; "GIRLS" represents size type; "27" represents size value. In "32 inches", both size system and size type are empty, while size value is "32 inches". A maximum of 20 values are allowed per [Product][google.cloud.retail.v2alpha.Product]. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [size](https://support.google.com/merchants/answer/6324492), [size_type](https://support.google.com/merchants/answer/6324497), and [size_system](https://support.google.com/merchants/answer/6324502). Schema.org property [Product.size](https://schema.org/size).
repeated string sizes = 26;- Specified by:
getSizesBytesin interfaceProductOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the sizes at the given index.
-
setSizes
The size of the product. To represent different size systems or size types, consider using this format: [[[size_system:]size_type:]size_value]. For example, in "US:MENS:M", "US" represents size system; "MENS" represents size type; "M" represents size value. In "GIRLS:27", size system is empty; "GIRLS" represents size type; "27" represents size value. In "32 inches", both size system and size type are empty, while size value is "32 inches". A maximum of 20 values are allowed per [Product][google.cloud.retail.v2alpha.Product]. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [size](https://support.google.com/merchants/answer/6324492), [size_type](https://support.google.com/merchants/answer/6324497), and [size_system](https://support.google.com/merchants/answer/6324502). Schema.org property [Product.size](https://schema.org/size).
repeated string sizes = 26;- Parameters:
index- The index to set the value at.value- The sizes to set.- Returns:
- This builder for chaining.
-
addSizes
The size of the product. To represent different size systems or size types, consider using this format: [[[size_system:]size_type:]size_value]. For example, in "US:MENS:M", "US" represents size system; "MENS" represents size type; "M" represents size value. In "GIRLS:27", size system is empty; "GIRLS" represents size type; "27" represents size value. In "32 inches", both size system and size type are empty, while size value is "32 inches". A maximum of 20 values are allowed per [Product][google.cloud.retail.v2alpha.Product]. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [size](https://support.google.com/merchants/answer/6324492), [size_type](https://support.google.com/merchants/answer/6324497), and [size_system](https://support.google.com/merchants/answer/6324502). Schema.org property [Product.size](https://schema.org/size).
repeated string sizes = 26;- Parameters:
value- The sizes to add.- Returns:
- This builder for chaining.
-
addAllSizes
The size of the product. To represent different size systems or size types, consider using this format: [[[size_system:]size_type:]size_value]. For example, in "US:MENS:M", "US" represents size system; "MENS" represents size type; "M" represents size value. In "GIRLS:27", size system is empty; "GIRLS" represents size type; "27" represents size value. In "32 inches", both size system and size type are empty, while size value is "32 inches". A maximum of 20 values are allowed per [Product][google.cloud.retail.v2alpha.Product]. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [size](https://support.google.com/merchants/answer/6324492), [size_type](https://support.google.com/merchants/answer/6324497), and [size_system](https://support.google.com/merchants/answer/6324502). Schema.org property [Product.size](https://schema.org/size).
repeated string sizes = 26;- Parameters:
values- The sizes to add.- Returns:
- This builder for chaining.
-
clearSizes
The size of the product. To represent different size systems or size types, consider using this format: [[[size_system:]size_type:]size_value]. For example, in "US:MENS:M", "US" represents size system; "MENS" represents size type; "M" represents size value. In "GIRLS:27", size system is empty; "GIRLS" represents size type; "27" represents size value. In "32 inches", both size system and size type are empty, while size value is "32 inches". A maximum of 20 values are allowed per [Product][google.cloud.retail.v2alpha.Product]. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [size](https://support.google.com/merchants/answer/6324492), [size_type](https://support.google.com/merchants/answer/6324497), and [size_system](https://support.google.com/merchants/answer/6324502). Schema.org property [Product.size](https://schema.org/size).
repeated string sizes = 26;- Returns:
- This builder for chaining.
-
addSizesBytes
The size of the product. To represent different size systems or size types, consider using this format: [[[size_system:]size_type:]size_value]. For example, in "US:MENS:M", "US" represents size system; "MENS" represents size type; "M" represents size value. In "GIRLS:27", size system is empty; "GIRLS" represents size type; "27" represents size value. In "32 inches", both size system and size type are empty, while size value is "32 inches". A maximum of 20 values are allowed per [Product][google.cloud.retail.v2alpha.Product]. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [size](https://support.google.com/merchants/answer/6324492), [size_type](https://support.google.com/merchants/answer/6324497), and [size_system](https://support.google.com/merchants/answer/6324502). Schema.org property [Product.size](https://schema.org/size).
repeated string sizes = 26;- Parameters:
value- The bytes of the sizes to add.- Returns:
- This builder for chaining.
-
getMaterialsList
public com.google.protobuf.ProtocolStringList getMaterialsList()The material of the product. For example, "leather", "wooden". A maximum of 20 values are allowed. Each value must be a UTF-8 encoded string with a length limit of 200 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [material](https://support.google.com/merchants/answer/6324410). Schema.org property [Product.material](https://schema.org/material).
repeated string materials = 27;- Specified by:
getMaterialsListin interfaceProductOrBuilder- Returns:
- A list containing the materials.
-
getMaterialsCount
public int getMaterialsCount()The material of the product. For example, "leather", "wooden". A maximum of 20 values are allowed. Each value must be a UTF-8 encoded string with a length limit of 200 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [material](https://support.google.com/merchants/answer/6324410). Schema.org property [Product.material](https://schema.org/material).
repeated string materials = 27;- Specified by:
getMaterialsCountin interfaceProductOrBuilder- Returns:
- The count of materials.
-
getMaterials
The material of the product. For example, "leather", "wooden". A maximum of 20 values are allowed. Each value must be a UTF-8 encoded string with a length limit of 200 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [material](https://support.google.com/merchants/answer/6324410). Schema.org property [Product.material](https://schema.org/material).
repeated string materials = 27;- Specified by:
getMaterialsin interfaceProductOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The materials at the given index.
-
getMaterialsBytes
public com.google.protobuf.ByteString getMaterialsBytes(int index) The material of the product. For example, "leather", "wooden". A maximum of 20 values are allowed. Each value must be a UTF-8 encoded string with a length limit of 200 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [material](https://support.google.com/merchants/answer/6324410). Schema.org property [Product.material](https://schema.org/material).
repeated string materials = 27;- Specified by:
getMaterialsBytesin interfaceProductOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the materials at the given index.
-
setMaterials
The material of the product. For example, "leather", "wooden". A maximum of 20 values are allowed. Each value must be a UTF-8 encoded string with a length limit of 200 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [material](https://support.google.com/merchants/answer/6324410). Schema.org property [Product.material](https://schema.org/material).
repeated string materials = 27;- Parameters:
index- The index to set the value at.value- The materials to set.- Returns:
- This builder for chaining.
-
addMaterials
The material of the product. For example, "leather", "wooden". A maximum of 20 values are allowed. Each value must be a UTF-8 encoded string with a length limit of 200 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [material](https://support.google.com/merchants/answer/6324410). Schema.org property [Product.material](https://schema.org/material).
repeated string materials = 27;- Parameters:
value- The materials to add.- Returns:
- This builder for chaining.
-
addAllMaterials
The material of the product. For example, "leather", "wooden". A maximum of 20 values are allowed. Each value must be a UTF-8 encoded string with a length limit of 200 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [material](https://support.google.com/merchants/answer/6324410). Schema.org property [Product.material](https://schema.org/material).
repeated string materials = 27;- Parameters:
values- The materials to add.- Returns:
- This builder for chaining.
-
clearMaterials
The material of the product. For example, "leather", "wooden". A maximum of 20 values are allowed. Each value must be a UTF-8 encoded string with a length limit of 200 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [material](https://support.google.com/merchants/answer/6324410). Schema.org property [Product.material](https://schema.org/material).
repeated string materials = 27;- Returns:
- This builder for chaining.
-
addMaterialsBytes
The material of the product. For example, "leather", "wooden". A maximum of 20 values are allowed. Each value must be a UTF-8 encoded string with a length limit of 200 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [material](https://support.google.com/merchants/answer/6324410). Schema.org property [Product.material](https://schema.org/material).
repeated string materials = 27;- Parameters:
value- The bytes of the materials to add.- Returns:
- This builder for chaining.
-
getPatternsList
public com.google.protobuf.ProtocolStringList getPatternsList()The pattern or graphic print of the product. For example, "striped", "polka dot", "paisley". A maximum of 20 values are allowed per [Product][google.cloud.retail.v2alpha.Product]. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [pattern](https://support.google.com/merchants/answer/6324483). Schema.org property [Product.pattern](https://schema.org/pattern).
repeated string patterns = 28;- Specified by:
getPatternsListin interfaceProductOrBuilder- Returns:
- A list containing the patterns.
-
getPatternsCount
public int getPatternsCount()The pattern or graphic print of the product. For example, "striped", "polka dot", "paisley". A maximum of 20 values are allowed per [Product][google.cloud.retail.v2alpha.Product]. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [pattern](https://support.google.com/merchants/answer/6324483). Schema.org property [Product.pattern](https://schema.org/pattern).
repeated string patterns = 28;- Specified by:
getPatternsCountin interfaceProductOrBuilder- Returns:
- The count of patterns.
-
getPatterns
The pattern or graphic print of the product. For example, "striped", "polka dot", "paisley". A maximum of 20 values are allowed per [Product][google.cloud.retail.v2alpha.Product]. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [pattern](https://support.google.com/merchants/answer/6324483). Schema.org property [Product.pattern](https://schema.org/pattern).
repeated string patterns = 28;- Specified by:
getPatternsin interfaceProductOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The patterns at the given index.
-
getPatternsBytes
public com.google.protobuf.ByteString getPatternsBytes(int index) The pattern or graphic print of the product. For example, "striped", "polka dot", "paisley". A maximum of 20 values are allowed per [Product][google.cloud.retail.v2alpha.Product]. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [pattern](https://support.google.com/merchants/answer/6324483). Schema.org property [Product.pattern](https://schema.org/pattern).
repeated string patterns = 28;- Specified by:
getPatternsBytesin interfaceProductOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the patterns at the given index.
-
setPatterns
The pattern or graphic print of the product. For example, "striped", "polka dot", "paisley". A maximum of 20 values are allowed per [Product][google.cloud.retail.v2alpha.Product]. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [pattern](https://support.google.com/merchants/answer/6324483). Schema.org property [Product.pattern](https://schema.org/pattern).
repeated string patterns = 28;- Parameters:
index- The index to set the value at.value- The patterns to set.- Returns:
- This builder for chaining.
-
addPatterns
The pattern or graphic print of the product. For example, "striped", "polka dot", "paisley". A maximum of 20 values are allowed per [Product][google.cloud.retail.v2alpha.Product]. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [pattern](https://support.google.com/merchants/answer/6324483). Schema.org property [Product.pattern](https://schema.org/pattern).
repeated string patterns = 28;- Parameters:
value- The patterns to add.- Returns:
- This builder for chaining.
-
addAllPatterns
The pattern or graphic print of the product. For example, "striped", "polka dot", "paisley". A maximum of 20 values are allowed per [Product][google.cloud.retail.v2alpha.Product]. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [pattern](https://support.google.com/merchants/answer/6324483). Schema.org property [Product.pattern](https://schema.org/pattern).
repeated string patterns = 28;- Parameters:
values- The patterns to add.- Returns:
- This builder for chaining.
-
clearPatterns
The pattern or graphic print of the product. For example, "striped", "polka dot", "paisley". A maximum of 20 values are allowed per [Product][google.cloud.retail.v2alpha.Product]. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [pattern](https://support.google.com/merchants/answer/6324483). Schema.org property [Product.pattern](https://schema.org/pattern).
repeated string patterns = 28;- Returns:
- This builder for chaining.
-
addPatternsBytes
The pattern or graphic print of the product. For example, "striped", "polka dot", "paisley". A maximum of 20 values are allowed per [Product][google.cloud.retail.v2alpha.Product]. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [pattern](https://support.google.com/merchants/answer/6324483). Schema.org property [Product.pattern](https://schema.org/pattern).
repeated string patterns = 28;- Parameters:
value- The bytes of the patterns to add.- Returns:
- This builder for chaining.
-
getConditionsList
public com.google.protobuf.ProtocolStringList getConditionsList()The condition of the product. Strongly encouraged to use the standard values: "new", "refurbished", "used". A maximum of 1 value is allowed per [Product][google.cloud.retail.v2alpha.Product]. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [condition](https://support.google.com/merchants/answer/6324469). Schema.org property [Offer.itemCondition](https://schema.org/itemCondition).
repeated string conditions = 29;- Specified by:
getConditionsListin interfaceProductOrBuilder- Returns:
- A list containing the conditions.
-
getConditionsCount
public int getConditionsCount()The condition of the product. Strongly encouraged to use the standard values: "new", "refurbished", "used". A maximum of 1 value is allowed per [Product][google.cloud.retail.v2alpha.Product]. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [condition](https://support.google.com/merchants/answer/6324469). Schema.org property [Offer.itemCondition](https://schema.org/itemCondition).
repeated string conditions = 29;- Specified by:
getConditionsCountin interfaceProductOrBuilder- Returns:
- The count of conditions.
-
getConditions
The condition of the product. Strongly encouraged to use the standard values: "new", "refurbished", "used". A maximum of 1 value is allowed per [Product][google.cloud.retail.v2alpha.Product]. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [condition](https://support.google.com/merchants/answer/6324469). Schema.org property [Offer.itemCondition](https://schema.org/itemCondition).
repeated string conditions = 29;- Specified by:
getConditionsin interfaceProductOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The conditions at the given index.
-
getConditionsBytes
public com.google.protobuf.ByteString getConditionsBytes(int index) The condition of the product. Strongly encouraged to use the standard values: "new", "refurbished", "used". A maximum of 1 value is allowed per [Product][google.cloud.retail.v2alpha.Product]. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [condition](https://support.google.com/merchants/answer/6324469). Schema.org property [Offer.itemCondition](https://schema.org/itemCondition).
repeated string conditions = 29;- Specified by:
getConditionsBytesin interfaceProductOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the conditions at the given index.
-
setConditions
The condition of the product. Strongly encouraged to use the standard values: "new", "refurbished", "used". A maximum of 1 value is allowed per [Product][google.cloud.retail.v2alpha.Product]. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [condition](https://support.google.com/merchants/answer/6324469). Schema.org property [Offer.itemCondition](https://schema.org/itemCondition).
repeated string conditions = 29;- Parameters:
index- The index to set the value at.value- The conditions to set.- Returns:
- This builder for chaining.
-
addConditions
The condition of the product. Strongly encouraged to use the standard values: "new", "refurbished", "used". A maximum of 1 value is allowed per [Product][google.cloud.retail.v2alpha.Product]. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [condition](https://support.google.com/merchants/answer/6324469). Schema.org property [Offer.itemCondition](https://schema.org/itemCondition).
repeated string conditions = 29;- Parameters:
value- The conditions to add.- Returns:
- This builder for chaining.
-
addAllConditions
The condition of the product. Strongly encouraged to use the standard values: "new", "refurbished", "used". A maximum of 1 value is allowed per [Product][google.cloud.retail.v2alpha.Product]. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [condition](https://support.google.com/merchants/answer/6324469). Schema.org property [Offer.itemCondition](https://schema.org/itemCondition).
repeated string conditions = 29;- Parameters:
values- The conditions to add.- Returns:
- This builder for chaining.
-
clearConditions
The condition of the product. Strongly encouraged to use the standard values: "new", "refurbished", "used". A maximum of 1 value is allowed per [Product][google.cloud.retail.v2alpha.Product]. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [condition](https://support.google.com/merchants/answer/6324469). Schema.org property [Offer.itemCondition](https://schema.org/itemCondition).
repeated string conditions = 29;- Returns:
- This builder for chaining.
-
addConditionsBytes
The condition of the product. Strongly encouraged to use the standard values: "new", "refurbished", "used". A maximum of 1 value is allowed per [Product][google.cloud.retail.v2alpha.Product]. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [condition](https://support.google.com/merchants/answer/6324469). Schema.org property [Offer.itemCondition](https://schema.org/itemCondition).
repeated string conditions = 29;- Parameters:
value- The bytes of the conditions to add.- Returns:
- This builder for chaining.
-
getPromotionsList
The promotions applied to the product. A maximum of 10 values are allowed per [Product][google.cloud.retail.v2alpha.Product]. Only [Promotion.promotion_id][google.cloud.retail.v2alpha.Promotion.promotion_id] will be used, other fields will be ignored if set.
repeated .google.cloud.retail.v2alpha.Promotion promotions = 34;- Specified by:
getPromotionsListin interfaceProductOrBuilder
-
getPromotionsCount
public int getPromotionsCount()The promotions applied to the product. A maximum of 10 values are allowed per [Product][google.cloud.retail.v2alpha.Product]. Only [Promotion.promotion_id][google.cloud.retail.v2alpha.Promotion.promotion_id] will be used, other fields will be ignored if set.
repeated .google.cloud.retail.v2alpha.Promotion promotions = 34;- Specified by:
getPromotionsCountin interfaceProductOrBuilder
-
getPromotions
The promotions applied to the product. A maximum of 10 values are allowed per [Product][google.cloud.retail.v2alpha.Product]. Only [Promotion.promotion_id][google.cloud.retail.v2alpha.Promotion.promotion_id] will be used, other fields will be ignored if set.
repeated .google.cloud.retail.v2alpha.Promotion promotions = 34;- Specified by:
getPromotionsin interfaceProductOrBuilder
-
setPromotions
The promotions applied to the product. A maximum of 10 values are allowed per [Product][google.cloud.retail.v2alpha.Product]. Only [Promotion.promotion_id][google.cloud.retail.v2alpha.Promotion.promotion_id] will be used, other fields will be ignored if set.
repeated .google.cloud.retail.v2alpha.Promotion promotions = 34; -
setPromotions
The promotions applied to the product. A maximum of 10 values are allowed per [Product][google.cloud.retail.v2alpha.Product]. Only [Promotion.promotion_id][google.cloud.retail.v2alpha.Promotion.promotion_id] will be used, other fields will be ignored if set.
repeated .google.cloud.retail.v2alpha.Promotion promotions = 34; -
addPromotions
The promotions applied to the product. A maximum of 10 values are allowed per [Product][google.cloud.retail.v2alpha.Product]. Only [Promotion.promotion_id][google.cloud.retail.v2alpha.Promotion.promotion_id] will be used, other fields will be ignored if set.
repeated .google.cloud.retail.v2alpha.Promotion promotions = 34; -
addPromotions
The promotions applied to the product. A maximum of 10 values are allowed per [Product][google.cloud.retail.v2alpha.Product]. Only [Promotion.promotion_id][google.cloud.retail.v2alpha.Promotion.promotion_id] will be used, other fields will be ignored if set.
repeated .google.cloud.retail.v2alpha.Promotion promotions = 34; -
addPromotions
The promotions applied to the product. A maximum of 10 values are allowed per [Product][google.cloud.retail.v2alpha.Product]. Only [Promotion.promotion_id][google.cloud.retail.v2alpha.Promotion.promotion_id] will be used, other fields will be ignored if set.
repeated .google.cloud.retail.v2alpha.Promotion promotions = 34; -
addPromotions
The promotions applied to the product. A maximum of 10 values are allowed per [Product][google.cloud.retail.v2alpha.Product]. Only [Promotion.promotion_id][google.cloud.retail.v2alpha.Promotion.promotion_id] will be used, other fields will be ignored if set.
repeated .google.cloud.retail.v2alpha.Promotion promotions = 34; -
addAllPromotions
The promotions applied to the product. A maximum of 10 values are allowed per [Product][google.cloud.retail.v2alpha.Product]. Only [Promotion.promotion_id][google.cloud.retail.v2alpha.Promotion.promotion_id] will be used, other fields will be ignored if set.
repeated .google.cloud.retail.v2alpha.Promotion promotions = 34; -
clearPromotions
The promotions applied to the product. A maximum of 10 values are allowed per [Product][google.cloud.retail.v2alpha.Product]. Only [Promotion.promotion_id][google.cloud.retail.v2alpha.Promotion.promotion_id] will be used, other fields will be ignored if set.
repeated .google.cloud.retail.v2alpha.Promotion promotions = 34; -
removePromotions
The promotions applied to the product. A maximum of 10 values are allowed per [Product][google.cloud.retail.v2alpha.Product]. Only [Promotion.promotion_id][google.cloud.retail.v2alpha.Promotion.promotion_id] will be used, other fields will be ignored if set.
repeated .google.cloud.retail.v2alpha.Promotion promotions = 34; -
getPromotionsBuilder
The promotions applied to the product. A maximum of 10 values are allowed per [Product][google.cloud.retail.v2alpha.Product]. Only [Promotion.promotion_id][google.cloud.retail.v2alpha.Promotion.promotion_id] will be used, other fields will be ignored if set.
repeated .google.cloud.retail.v2alpha.Promotion promotions = 34; -
getPromotionsOrBuilder
The promotions applied to the product. A maximum of 10 values are allowed per [Product][google.cloud.retail.v2alpha.Product]. Only [Promotion.promotion_id][google.cloud.retail.v2alpha.Promotion.promotion_id] will be used, other fields will be ignored if set.
repeated .google.cloud.retail.v2alpha.Promotion promotions = 34;- Specified by:
getPromotionsOrBuilderin interfaceProductOrBuilder
-
getPromotionsOrBuilderList
The promotions applied to the product. A maximum of 10 values are allowed per [Product][google.cloud.retail.v2alpha.Product]. Only [Promotion.promotion_id][google.cloud.retail.v2alpha.Promotion.promotion_id] will be used, other fields will be ignored if set.
repeated .google.cloud.retail.v2alpha.Promotion promotions = 34;- Specified by:
getPromotionsOrBuilderListin interfaceProductOrBuilder
-
addPromotionsBuilder
The promotions applied to the product. A maximum of 10 values are allowed per [Product][google.cloud.retail.v2alpha.Product]. Only [Promotion.promotion_id][google.cloud.retail.v2alpha.Promotion.promotion_id] will be used, other fields will be ignored if set.
repeated .google.cloud.retail.v2alpha.Promotion promotions = 34; -
addPromotionsBuilder
The promotions applied to the product. A maximum of 10 values are allowed per [Product][google.cloud.retail.v2alpha.Product]. Only [Promotion.promotion_id][google.cloud.retail.v2alpha.Promotion.promotion_id] will be used, other fields will be ignored if set.
repeated .google.cloud.retail.v2alpha.Promotion promotions = 34; -
getPromotionsBuilderList
The promotions applied to the product. A maximum of 10 values are allowed per [Product][google.cloud.retail.v2alpha.Product]. Only [Promotion.promotion_id][google.cloud.retail.v2alpha.Promotion.promotion_id] will be used, other fields will be ignored if set.
repeated .google.cloud.retail.v2alpha.Promotion promotions = 34; -
hasPublishTime
public boolean hasPublishTime()The timestamp when the product is published by the retailer for the first time, which indicates the freshness of the products. Note that this field is different from [available_time][google.cloud.retail.v2alpha.Product.available_time], given it purely describes product freshness regardless of when it is available on search and recommendation.
.google.protobuf.Timestamp publish_time = 33;- Specified by:
hasPublishTimein interfaceProductOrBuilder- Returns:
- Whether the publishTime field is set.
-
getPublishTime
public com.google.protobuf.Timestamp getPublishTime()The timestamp when the product is published by the retailer for the first time, which indicates the freshness of the products. Note that this field is different from [available_time][google.cloud.retail.v2alpha.Product.available_time], given it purely describes product freshness regardless of when it is available on search and recommendation.
.google.protobuf.Timestamp publish_time = 33;- Specified by:
getPublishTimein interfaceProductOrBuilder- Returns:
- The publishTime.
-
setPublishTime
The timestamp when the product is published by the retailer for the first time, which indicates the freshness of the products. Note that this field is different from [available_time][google.cloud.retail.v2alpha.Product.available_time], given it purely describes product freshness regardless of when it is available on search and recommendation.
.google.protobuf.Timestamp publish_time = 33; -
setPublishTime
The timestamp when the product is published by the retailer for the first time, which indicates the freshness of the products. Note that this field is different from [available_time][google.cloud.retail.v2alpha.Product.available_time], given it purely describes product freshness regardless of when it is available on search and recommendation.
.google.protobuf.Timestamp publish_time = 33; -
mergePublishTime
The timestamp when the product is published by the retailer for the first time, which indicates the freshness of the products. Note that this field is different from [available_time][google.cloud.retail.v2alpha.Product.available_time], given it purely describes product freshness regardless of when it is available on search and recommendation.
.google.protobuf.Timestamp publish_time = 33; -
clearPublishTime
The timestamp when the product is published by the retailer for the first time, which indicates the freshness of the products. Note that this field is different from [available_time][google.cloud.retail.v2alpha.Product.available_time], given it purely describes product freshness regardless of when it is available on search and recommendation.
.google.protobuf.Timestamp publish_time = 33; -
getPublishTimeBuilder
public com.google.protobuf.Timestamp.Builder getPublishTimeBuilder()The timestamp when the product is published by the retailer for the first time, which indicates the freshness of the products. Note that this field is different from [available_time][google.cloud.retail.v2alpha.Product.available_time], given it purely describes product freshness regardless of when it is available on search and recommendation.
.google.protobuf.Timestamp publish_time = 33; -
getPublishTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder()The timestamp when the product is published by the retailer for the first time, which indicates the freshness of the products. Note that this field is different from [available_time][google.cloud.retail.v2alpha.Product.available_time], given it purely describes product freshness regardless of when it is available on search and recommendation.
.google.protobuf.Timestamp publish_time = 33;- Specified by:
getPublishTimeOrBuilderin interfaceProductOrBuilder
-
hasRetrievableFields
Deprecated.google.cloud.retail.v2alpha.Product.retrievable_fields is deprecated. See google/cloud/retail/v2alpha/product.proto;l=576Indicates which fields in the [Product][google.cloud.retail.v2alpha.Product]s are returned in [SearchResponse][google.cloud.retail.v2alpha.SearchResponse]. Supported fields for all [type][google.cloud.retail.v2alpha.Product.type]s: * [audience][google.cloud.retail.v2alpha.Product.audience] * [availability][google.cloud.retail.v2alpha.Product.availability] * [brands][google.cloud.retail.v2alpha.Product.brands] * [color_info][google.cloud.retail.v2alpha.Product.color_info] * [conditions][google.cloud.retail.v2alpha.Product.conditions] * [gtin][google.cloud.retail.v2alpha.Product.gtin] * [materials][google.cloud.retail.v2alpha.Product.materials] * [name][google.cloud.retail.v2alpha.Product.name] * [patterns][google.cloud.retail.v2alpha.Product.patterns] * [price_info][google.cloud.retail.v2alpha.Product.price_info] * [rating][google.cloud.retail.v2alpha.Product.rating] * [sizes][google.cloud.retail.v2alpha.Product.sizes] * [title][google.cloud.retail.v2alpha.Product.title] * [uri][google.cloud.retail.v2alpha.Product.uri] Supported fields only for [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION]: * [categories][google.cloud.retail.v2alpha.Product.categories] * [description][google.cloud.retail.v2alpha.Product.description] * [images][google.cloud.retail.v2alpha.Product.images] Supported fields only for [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]: * Only the first image in [images][google.cloud.retail.v2alpha.Product.images] To mark [attributes][google.cloud.retail.v2alpha.Product.attributes] as retrievable, include paths of the form "attributes.key" where "key" is the key of a custom attribute, as specified in [attributes][google.cloud.retail.v2alpha.Product.attributes]. For [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION], the following fields are always returned in [SearchResponse][google.cloud.retail.v2alpha.SearchResponse] by default: * [name][google.cloud.retail.v2alpha.Product.name] For [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT], the following fields are always returned in by default: * [name][google.cloud.retail.v2alpha.Product.name] * [color_info][google.cloud.retail.v2alpha.Product.color_info] Note: Returning more fields in [SearchResponse][google.cloud.retail.v2alpha.SearchResponse] can increase response payload size and serving latency. This field is deprecated. Use the retrievable site-wide control instead.
.google.protobuf.FieldMask retrievable_fields = 30 [deprecated = true];- Specified by:
hasRetrievableFieldsin interfaceProductOrBuilder- Returns:
- Whether the retrievableFields field is set.
-
getRetrievableFields
Deprecated.google.cloud.retail.v2alpha.Product.retrievable_fields is deprecated. See google/cloud/retail/v2alpha/product.proto;l=576Indicates which fields in the [Product][google.cloud.retail.v2alpha.Product]s are returned in [SearchResponse][google.cloud.retail.v2alpha.SearchResponse]. Supported fields for all [type][google.cloud.retail.v2alpha.Product.type]s: * [audience][google.cloud.retail.v2alpha.Product.audience] * [availability][google.cloud.retail.v2alpha.Product.availability] * [brands][google.cloud.retail.v2alpha.Product.brands] * [color_info][google.cloud.retail.v2alpha.Product.color_info] * [conditions][google.cloud.retail.v2alpha.Product.conditions] * [gtin][google.cloud.retail.v2alpha.Product.gtin] * [materials][google.cloud.retail.v2alpha.Product.materials] * [name][google.cloud.retail.v2alpha.Product.name] * [patterns][google.cloud.retail.v2alpha.Product.patterns] * [price_info][google.cloud.retail.v2alpha.Product.price_info] * [rating][google.cloud.retail.v2alpha.Product.rating] * [sizes][google.cloud.retail.v2alpha.Product.sizes] * [title][google.cloud.retail.v2alpha.Product.title] * [uri][google.cloud.retail.v2alpha.Product.uri] Supported fields only for [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION]: * [categories][google.cloud.retail.v2alpha.Product.categories] * [description][google.cloud.retail.v2alpha.Product.description] * [images][google.cloud.retail.v2alpha.Product.images] Supported fields only for [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]: * Only the first image in [images][google.cloud.retail.v2alpha.Product.images] To mark [attributes][google.cloud.retail.v2alpha.Product.attributes] as retrievable, include paths of the form "attributes.key" where "key" is the key of a custom attribute, as specified in [attributes][google.cloud.retail.v2alpha.Product.attributes]. For [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION], the following fields are always returned in [SearchResponse][google.cloud.retail.v2alpha.SearchResponse] by default: * [name][google.cloud.retail.v2alpha.Product.name] For [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT], the following fields are always returned in by default: * [name][google.cloud.retail.v2alpha.Product.name] * [color_info][google.cloud.retail.v2alpha.Product.color_info] Note: Returning more fields in [SearchResponse][google.cloud.retail.v2alpha.SearchResponse] can increase response payload size and serving latency. This field is deprecated. Use the retrievable site-wide control instead.
.google.protobuf.FieldMask retrievable_fields = 30 [deprecated = true];- Specified by:
getRetrievableFieldsin interfaceProductOrBuilder- Returns:
- The retrievableFields.
-
setRetrievableFields
Deprecated.Indicates which fields in the [Product][google.cloud.retail.v2alpha.Product]s are returned in [SearchResponse][google.cloud.retail.v2alpha.SearchResponse]. Supported fields for all [type][google.cloud.retail.v2alpha.Product.type]s: * [audience][google.cloud.retail.v2alpha.Product.audience] * [availability][google.cloud.retail.v2alpha.Product.availability] * [brands][google.cloud.retail.v2alpha.Product.brands] * [color_info][google.cloud.retail.v2alpha.Product.color_info] * [conditions][google.cloud.retail.v2alpha.Product.conditions] * [gtin][google.cloud.retail.v2alpha.Product.gtin] * [materials][google.cloud.retail.v2alpha.Product.materials] * [name][google.cloud.retail.v2alpha.Product.name] * [patterns][google.cloud.retail.v2alpha.Product.patterns] * [price_info][google.cloud.retail.v2alpha.Product.price_info] * [rating][google.cloud.retail.v2alpha.Product.rating] * [sizes][google.cloud.retail.v2alpha.Product.sizes] * [title][google.cloud.retail.v2alpha.Product.title] * [uri][google.cloud.retail.v2alpha.Product.uri] Supported fields only for [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION]: * [categories][google.cloud.retail.v2alpha.Product.categories] * [description][google.cloud.retail.v2alpha.Product.description] * [images][google.cloud.retail.v2alpha.Product.images] Supported fields only for [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]: * Only the first image in [images][google.cloud.retail.v2alpha.Product.images] To mark [attributes][google.cloud.retail.v2alpha.Product.attributes] as retrievable, include paths of the form "attributes.key" where "key" is the key of a custom attribute, as specified in [attributes][google.cloud.retail.v2alpha.Product.attributes]. For [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION], the following fields are always returned in [SearchResponse][google.cloud.retail.v2alpha.SearchResponse] by default: * [name][google.cloud.retail.v2alpha.Product.name] For [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT], the following fields are always returned in by default: * [name][google.cloud.retail.v2alpha.Product.name] * [color_info][google.cloud.retail.v2alpha.Product.color_info] Note: Returning more fields in [SearchResponse][google.cloud.retail.v2alpha.SearchResponse] can increase response payload size and serving latency. This field is deprecated. Use the retrievable site-wide control instead.
.google.protobuf.FieldMask retrievable_fields = 30 [deprecated = true]; -
setRetrievableFields
@Deprecated public Product.Builder setRetrievableFields(com.google.protobuf.FieldMask.Builder builderForValue) Deprecated.Indicates which fields in the [Product][google.cloud.retail.v2alpha.Product]s are returned in [SearchResponse][google.cloud.retail.v2alpha.SearchResponse]. Supported fields for all [type][google.cloud.retail.v2alpha.Product.type]s: * [audience][google.cloud.retail.v2alpha.Product.audience] * [availability][google.cloud.retail.v2alpha.Product.availability] * [brands][google.cloud.retail.v2alpha.Product.brands] * [color_info][google.cloud.retail.v2alpha.Product.color_info] * [conditions][google.cloud.retail.v2alpha.Product.conditions] * [gtin][google.cloud.retail.v2alpha.Product.gtin] * [materials][google.cloud.retail.v2alpha.Product.materials] * [name][google.cloud.retail.v2alpha.Product.name] * [patterns][google.cloud.retail.v2alpha.Product.patterns] * [price_info][google.cloud.retail.v2alpha.Product.price_info] * [rating][google.cloud.retail.v2alpha.Product.rating] * [sizes][google.cloud.retail.v2alpha.Product.sizes] * [title][google.cloud.retail.v2alpha.Product.title] * [uri][google.cloud.retail.v2alpha.Product.uri] Supported fields only for [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION]: * [categories][google.cloud.retail.v2alpha.Product.categories] * [description][google.cloud.retail.v2alpha.Product.description] * [images][google.cloud.retail.v2alpha.Product.images] Supported fields only for [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]: * Only the first image in [images][google.cloud.retail.v2alpha.Product.images] To mark [attributes][google.cloud.retail.v2alpha.Product.attributes] as retrievable, include paths of the form "attributes.key" where "key" is the key of a custom attribute, as specified in [attributes][google.cloud.retail.v2alpha.Product.attributes]. For [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION], the following fields are always returned in [SearchResponse][google.cloud.retail.v2alpha.SearchResponse] by default: * [name][google.cloud.retail.v2alpha.Product.name] For [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT], the following fields are always returned in by default: * [name][google.cloud.retail.v2alpha.Product.name] * [color_info][google.cloud.retail.v2alpha.Product.color_info] Note: Returning more fields in [SearchResponse][google.cloud.retail.v2alpha.SearchResponse] can increase response payload size and serving latency. This field is deprecated. Use the retrievable site-wide control instead.
.google.protobuf.FieldMask retrievable_fields = 30 [deprecated = true]; -
mergeRetrievableFields
Deprecated.Indicates which fields in the [Product][google.cloud.retail.v2alpha.Product]s are returned in [SearchResponse][google.cloud.retail.v2alpha.SearchResponse]. Supported fields for all [type][google.cloud.retail.v2alpha.Product.type]s: * [audience][google.cloud.retail.v2alpha.Product.audience] * [availability][google.cloud.retail.v2alpha.Product.availability] * [brands][google.cloud.retail.v2alpha.Product.brands] * [color_info][google.cloud.retail.v2alpha.Product.color_info] * [conditions][google.cloud.retail.v2alpha.Product.conditions] * [gtin][google.cloud.retail.v2alpha.Product.gtin] * [materials][google.cloud.retail.v2alpha.Product.materials] * [name][google.cloud.retail.v2alpha.Product.name] * [patterns][google.cloud.retail.v2alpha.Product.patterns] * [price_info][google.cloud.retail.v2alpha.Product.price_info] * [rating][google.cloud.retail.v2alpha.Product.rating] * [sizes][google.cloud.retail.v2alpha.Product.sizes] * [title][google.cloud.retail.v2alpha.Product.title] * [uri][google.cloud.retail.v2alpha.Product.uri] Supported fields only for [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION]: * [categories][google.cloud.retail.v2alpha.Product.categories] * [description][google.cloud.retail.v2alpha.Product.description] * [images][google.cloud.retail.v2alpha.Product.images] Supported fields only for [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]: * Only the first image in [images][google.cloud.retail.v2alpha.Product.images] To mark [attributes][google.cloud.retail.v2alpha.Product.attributes] as retrievable, include paths of the form "attributes.key" where "key" is the key of a custom attribute, as specified in [attributes][google.cloud.retail.v2alpha.Product.attributes]. For [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION], the following fields are always returned in [SearchResponse][google.cloud.retail.v2alpha.SearchResponse] by default: * [name][google.cloud.retail.v2alpha.Product.name] For [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT], the following fields are always returned in by default: * [name][google.cloud.retail.v2alpha.Product.name] * [color_info][google.cloud.retail.v2alpha.Product.color_info] Note: Returning more fields in [SearchResponse][google.cloud.retail.v2alpha.SearchResponse] can increase response payload size and serving latency. This field is deprecated. Use the retrievable site-wide control instead.
.google.protobuf.FieldMask retrievable_fields = 30 [deprecated = true]; -
clearRetrievableFields
Deprecated.Indicates which fields in the [Product][google.cloud.retail.v2alpha.Product]s are returned in [SearchResponse][google.cloud.retail.v2alpha.SearchResponse]. Supported fields for all [type][google.cloud.retail.v2alpha.Product.type]s: * [audience][google.cloud.retail.v2alpha.Product.audience] * [availability][google.cloud.retail.v2alpha.Product.availability] * [brands][google.cloud.retail.v2alpha.Product.brands] * [color_info][google.cloud.retail.v2alpha.Product.color_info] * [conditions][google.cloud.retail.v2alpha.Product.conditions] * [gtin][google.cloud.retail.v2alpha.Product.gtin] * [materials][google.cloud.retail.v2alpha.Product.materials] * [name][google.cloud.retail.v2alpha.Product.name] * [patterns][google.cloud.retail.v2alpha.Product.patterns] * [price_info][google.cloud.retail.v2alpha.Product.price_info] * [rating][google.cloud.retail.v2alpha.Product.rating] * [sizes][google.cloud.retail.v2alpha.Product.sizes] * [title][google.cloud.retail.v2alpha.Product.title] * [uri][google.cloud.retail.v2alpha.Product.uri] Supported fields only for [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION]: * [categories][google.cloud.retail.v2alpha.Product.categories] * [description][google.cloud.retail.v2alpha.Product.description] * [images][google.cloud.retail.v2alpha.Product.images] Supported fields only for [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]: * Only the first image in [images][google.cloud.retail.v2alpha.Product.images] To mark [attributes][google.cloud.retail.v2alpha.Product.attributes] as retrievable, include paths of the form "attributes.key" where "key" is the key of a custom attribute, as specified in [attributes][google.cloud.retail.v2alpha.Product.attributes]. For [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION], the following fields are always returned in [SearchResponse][google.cloud.retail.v2alpha.SearchResponse] by default: * [name][google.cloud.retail.v2alpha.Product.name] For [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT], the following fields are always returned in by default: * [name][google.cloud.retail.v2alpha.Product.name] * [color_info][google.cloud.retail.v2alpha.Product.color_info] Note: Returning more fields in [SearchResponse][google.cloud.retail.v2alpha.SearchResponse] can increase response payload size and serving latency. This field is deprecated. Use the retrievable site-wide control instead.
.google.protobuf.FieldMask retrievable_fields = 30 [deprecated = true]; -
getRetrievableFieldsBuilder
Deprecated.Indicates which fields in the [Product][google.cloud.retail.v2alpha.Product]s are returned in [SearchResponse][google.cloud.retail.v2alpha.SearchResponse]. Supported fields for all [type][google.cloud.retail.v2alpha.Product.type]s: * [audience][google.cloud.retail.v2alpha.Product.audience] * [availability][google.cloud.retail.v2alpha.Product.availability] * [brands][google.cloud.retail.v2alpha.Product.brands] * [color_info][google.cloud.retail.v2alpha.Product.color_info] * [conditions][google.cloud.retail.v2alpha.Product.conditions] * [gtin][google.cloud.retail.v2alpha.Product.gtin] * [materials][google.cloud.retail.v2alpha.Product.materials] * [name][google.cloud.retail.v2alpha.Product.name] * [patterns][google.cloud.retail.v2alpha.Product.patterns] * [price_info][google.cloud.retail.v2alpha.Product.price_info] * [rating][google.cloud.retail.v2alpha.Product.rating] * [sizes][google.cloud.retail.v2alpha.Product.sizes] * [title][google.cloud.retail.v2alpha.Product.title] * [uri][google.cloud.retail.v2alpha.Product.uri] Supported fields only for [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION]: * [categories][google.cloud.retail.v2alpha.Product.categories] * [description][google.cloud.retail.v2alpha.Product.description] * [images][google.cloud.retail.v2alpha.Product.images] Supported fields only for [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]: * Only the first image in [images][google.cloud.retail.v2alpha.Product.images] To mark [attributes][google.cloud.retail.v2alpha.Product.attributes] as retrievable, include paths of the form "attributes.key" where "key" is the key of a custom attribute, as specified in [attributes][google.cloud.retail.v2alpha.Product.attributes]. For [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION], the following fields are always returned in [SearchResponse][google.cloud.retail.v2alpha.SearchResponse] by default: * [name][google.cloud.retail.v2alpha.Product.name] For [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT], the following fields are always returned in by default: * [name][google.cloud.retail.v2alpha.Product.name] * [color_info][google.cloud.retail.v2alpha.Product.color_info] Note: Returning more fields in [SearchResponse][google.cloud.retail.v2alpha.SearchResponse] can increase response payload size and serving latency. This field is deprecated. Use the retrievable site-wide control instead.
.google.protobuf.FieldMask retrievable_fields = 30 [deprecated = true]; -
getRetrievableFieldsOrBuilder
Deprecated.Indicates which fields in the [Product][google.cloud.retail.v2alpha.Product]s are returned in [SearchResponse][google.cloud.retail.v2alpha.SearchResponse]. Supported fields for all [type][google.cloud.retail.v2alpha.Product.type]s: * [audience][google.cloud.retail.v2alpha.Product.audience] * [availability][google.cloud.retail.v2alpha.Product.availability] * [brands][google.cloud.retail.v2alpha.Product.brands] * [color_info][google.cloud.retail.v2alpha.Product.color_info] * [conditions][google.cloud.retail.v2alpha.Product.conditions] * [gtin][google.cloud.retail.v2alpha.Product.gtin] * [materials][google.cloud.retail.v2alpha.Product.materials] * [name][google.cloud.retail.v2alpha.Product.name] * [patterns][google.cloud.retail.v2alpha.Product.patterns] * [price_info][google.cloud.retail.v2alpha.Product.price_info] * [rating][google.cloud.retail.v2alpha.Product.rating] * [sizes][google.cloud.retail.v2alpha.Product.sizes] * [title][google.cloud.retail.v2alpha.Product.title] * [uri][google.cloud.retail.v2alpha.Product.uri] Supported fields only for [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION]: * [categories][google.cloud.retail.v2alpha.Product.categories] * [description][google.cloud.retail.v2alpha.Product.description] * [images][google.cloud.retail.v2alpha.Product.images] Supported fields only for [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]: * Only the first image in [images][google.cloud.retail.v2alpha.Product.images] To mark [attributes][google.cloud.retail.v2alpha.Product.attributes] as retrievable, include paths of the form "attributes.key" where "key" is the key of a custom attribute, as specified in [attributes][google.cloud.retail.v2alpha.Product.attributes]. For [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION], the following fields are always returned in [SearchResponse][google.cloud.retail.v2alpha.SearchResponse] by default: * [name][google.cloud.retail.v2alpha.Product.name] For [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT], the following fields are always returned in by default: * [name][google.cloud.retail.v2alpha.Product.name] * [color_info][google.cloud.retail.v2alpha.Product.color_info] Note: Returning more fields in [SearchResponse][google.cloud.retail.v2alpha.SearchResponse] can increase response payload size and serving latency. This field is deprecated. Use the retrievable site-wide control instead.
.google.protobuf.FieldMask retrievable_fields = 30 [deprecated = true];- Specified by:
getRetrievableFieldsOrBuilderin interfaceProductOrBuilder
-
getVariantsList
Output only. Product variants grouped together on primary product which share similar product attributes. It's automatically grouped by [primary_product_id][google.cloud.retail.v2alpha.Product.primary_product_id] for all the product variants. Only populated for [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product]s. Note: This field is OUTPUT_ONLY for [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]. Do not set this field in API requests.
repeated .google.cloud.retail.v2alpha.Product variants = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getVariantsListin interfaceProductOrBuilder
-
getVariantsCount
public int getVariantsCount()Output only. Product variants grouped together on primary product which share similar product attributes. It's automatically grouped by [primary_product_id][google.cloud.retail.v2alpha.Product.primary_product_id] for all the product variants. Only populated for [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product]s. Note: This field is OUTPUT_ONLY for [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]. Do not set this field in API requests.
repeated .google.cloud.retail.v2alpha.Product variants = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getVariantsCountin interfaceProductOrBuilder
-
getVariants
Output only. Product variants grouped together on primary product which share similar product attributes. It's automatically grouped by [primary_product_id][google.cloud.retail.v2alpha.Product.primary_product_id] for all the product variants. Only populated for [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product]s. Note: This field is OUTPUT_ONLY for [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]. Do not set this field in API requests.
repeated .google.cloud.retail.v2alpha.Product variants = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getVariantsin interfaceProductOrBuilder
-
setVariants
Output only. Product variants grouped together on primary product which share similar product attributes. It's automatically grouped by [primary_product_id][google.cloud.retail.v2alpha.Product.primary_product_id] for all the product variants. Only populated for [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product]s. Note: This field is OUTPUT_ONLY for [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]. Do not set this field in API requests.
repeated .google.cloud.retail.v2alpha.Product variants = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setVariants
Output only. Product variants grouped together on primary product which share similar product attributes. It's automatically grouped by [primary_product_id][google.cloud.retail.v2alpha.Product.primary_product_id] for all the product variants. Only populated for [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product]s. Note: This field is OUTPUT_ONLY for [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]. Do not set this field in API requests.
repeated .google.cloud.retail.v2alpha.Product variants = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addVariants
Output only. Product variants grouped together on primary product which share similar product attributes. It's automatically grouped by [primary_product_id][google.cloud.retail.v2alpha.Product.primary_product_id] for all the product variants. Only populated for [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product]s. Note: This field is OUTPUT_ONLY for [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]. Do not set this field in API requests.
repeated .google.cloud.retail.v2alpha.Product variants = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addVariants
Output only. Product variants grouped together on primary product which share similar product attributes. It's automatically grouped by [primary_product_id][google.cloud.retail.v2alpha.Product.primary_product_id] for all the product variants. Only populated for [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product]s. Note: This field is OUTPUT_ONLY for [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]. Do not set this field in API requests.
repeated .google.cloud.retail.v2alpha.Product variants = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addVariants
Output only. Product variants grouped together on primary product which share similar product attributes. It's automatically grouped by [primary_product_id][google.cloud.retail.v2alpha.Product.primary_product_id] for all the product variants. Only populated for [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product]s. Note: This field is OUTPUT_ONLY for [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]. Do not set this field in API requests.
repeated .google.cloud.retail.v2alpha.Product variants = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addVariants
Output only. Product variants grouped together on primary product which share similar product attributes. It's automatically grouped by [primary_product_id][google.cloud.retail.v2alpha.Product.primary_product_id] for all the product variants. Only populated for [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product]s. Note: This field is OUTPUT_ONLY for [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]. Do not set this field in API requests.
repeated .google.cloud.retail.v2alpha.Product variants = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addAllVariants
Output only. Product variants grouped together on primary product which share similar product attributes. It's automatically grouped by [primary_product_id][google.cloud.retail.v2alpha.Product.primary_product_id] for all the product variants. Only populated for [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product]s. Note: This field is OUTPUT_ONLY for [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]. Do not set this field in API requests.
repeated .google.cloud.retail.v2alpha.Product variants = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearVariants
Output only. Product variants grouped together on primary product which share similar product attributes. It's automatically grouped by [primary_product_id][google.cloud.retail.v2alpha.Product.primary_product_id] for all the product variants. Only populated for [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product]s. Note: This field is OUTPUT_ONLY for [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]. Do not set this field in API requests.
repeated .google.cloud.retail.v2alpha.Product variants = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
removeVariants
Output only. Product variants grouped together on primary product which share similar product attributes. It's automatically grouped by [primary_product_id][google.cloud.retail.v2alpha.Product.primary_product_id] for all the product variants. Only populated for [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product]s. Note: This field is OUTPUT_ONLY for [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]. Do not set this field in API requests.
repeated .google.cloud.retail.v2alpha.Product variants = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getVariantsBuilder
Output only. Product variants grouped together on primary product which share similar product attributes. It's automatically grouped by [primary_product_id][google.cloud.retail.v2alpha.Product.primary_product_id] for all the product variants. Only populated for [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product]s. Note: This field is OUTPUT_ONLY for [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]. Do not set this field in API requests.
repeated .google.cloud.retail.v2alpha.Product variants = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getVariantsOrBuilder
Output only. Product variants grouped together on primary product which share similar product attributes. It's automatically grouped by [primary_product_id][google.cloud.retail.v2alpha.Product.primary_product_id] for all the product variants. Only populated for [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product]s. Note: This field is OUTPUT_ONLY for [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]. Do not set this field in API requests.
repeated .google.cloud.retail.v2alpha.Product variants = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getVariantsOrBuilderin interfaceProductOrBuilder
-
getVariantsOrBuilderList
Output only. Product variants grouped together on primary product which share similar product attributes. It's automatically grouped by [primary_product_id][google.cloud.retail.v2alpha.Product.primary_product_id] for all the product variants. Only populated for [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product]s. Note: This field is OUTPUT_ONLY for [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]. Do not set this field in API requests.
repeated .google.cloud.retail.v2alpha.Product variants = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getVariantsOrBuilderListin interfaceProductOrBuilder
-
addVariantsBuilder
Output only. Product variants grouped together on primary product which share similar product attributes. It's automatically grouped by [primary_product_id][google.cloud.retail.v2alpha.Product.primary_product_id] for all the product variants. Only populated for [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product]s. Note: This field is OUTPUT_ONLY for [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]. Do not set this field in API requests.
repeated .google.cloud.retail.v2alpha.Product variants = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addVariantsBuilder
Output only. Product variants grouped together on primary product which share similar product attributes. It's automatically grouped by [primary_product_id][google.cloud.retail.v2alpha.Product.primary_product_id] for all the product variants. Only populated for [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product]s. Note: This field is OUTPUT_ONLY for [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]. Do not set this field in API requests.
repeated .google.cloud.retail.v2alpha.Product variants = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getVariantsBuilderList
Output only. Product variants grouped together on primary product which share similar product attributes. It's automatically grouped by [primary_product_id][google.cloud.retail.v2alpha.Product.primary_product_id] for all the product variants. Only populated for [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product]s. Note: This field is OUTPUT_ONLY for [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]. Do not set this field in API requests.
repeated .google.cloud.retail.v2alpha.Product variants = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getLocalInventoriesList
Output only. A list of local inventories specific to different places. This field can be managed by [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories] and [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories] APIs if fine-grained, high-volume updates are necessary.
repeated .google.cloud.retail.v2alpha.LocalInventory local_inventories = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLocalInventoriesListin interfaceProductOrBuilder
-
getLocalInventoriesCount
public int getLocalInventoriesCount()Output only. A list of local inventories specific to different places. This field can be managed by [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories] and [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories] APIs if fine-grained, high-volume updates are necessary.
repeated .google.cloud.retail.v2alpha.LocalInventory local_inventories = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLocalInventoriesCountin interfaceProductOrBuilder
-
getLocalInventories
Output only. A list of local inventories specific to different places. This field can be managed by [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories] and [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories] APIs if fine-grained, high-volume updates are necessary.
repeated .google.cloud.retail.v2alpha.LocalInventory local_inventories = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLocalInventoriesin interfaceProductOrBuilder
-
setLocalInventories
Output only. A list of local inventories specific to different places. This field can be managed by [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories] and [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories] APIs if fine-grained, high-volume updates are necessary.
repeated .google.cloud.retail.v2alpha.LocalInventory local_inventories = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setLocalInventories
Output only. A list of local inventories specific to different places. This field can be managed by [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories] and [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories] APIs if fine-grained, high-volume updates are necessary.
repeated .google.cloud.retail.v2alpha.LocalInventory local_inventories = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addLocalInventories
Output only. A list of local inventories specific to different places. This field can be managed by [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories] and [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories] APIs if fine-grained, high-volume updates are necessary.
repeated .google.cloud.retail.v2alpha.LocalInventory local_inventories = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addLocalInventories
Output only. A list of local inventories specific to different places. This field can be managed by [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories] and [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories] APIs if fine-grained, high-volume updates are necessary.
repeated .google.cloud.retail.v2alpha.LocalInventory local_inventories = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addLocalInventories
Output only. A list of local inventories specific to different places. This field can be managed by [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories] and [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories] APIs if fine-grained, high-volume updates are necessary.
repeated .google.cloud.retail.v2alpha.LocalInventory local_inventories = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addLocalInventories
Output only. A list of local inventories specific to different places. This field can be managed by [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories] and [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories] APIs if fine-grained, high-volume updates are necessary.
repeated .google.cloud.retail.v2alpha.LocalInventory local_inventories = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addAllLocalInventories
Output only. A list of local inventories specific to different places. This field can be managed by [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories] and [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories] APIs if fine-grained, high-volume updates are necessary.
repeated .google.cloud.retail.v2alpha.LocalInventory local_inventories = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearLocalInventories
Output only. A list of local inventories specific to different places. This field can be managed by [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories] and [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories] APIs if fine-grained, high-volume updates are necessary.
repeated .google.cloud.retail.v2alpha.LocalInventory local_inventories = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
removeLocalInventories
Output only. A list of local inventories specific to different places. This field can be managed by [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories] and [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories] APIs if fine-grained, high-volume updates are necessary.
repeated .google.cloud.retail.v2alpha.LocalInventory local_inventories = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getLocalInventoriesBuilder
Output only. A list of local inventories specific to different places. This field can be managed by [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories] and [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories] APIs if fine-grained, high-volume updates are necessary.
repeated .google.cloud.retail.v2alpha.LocalInventory local_inventories = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getLocalInventoriesOrBuilder
Output only. A list of local inventories specific to different places. This field can be managed by [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories] and [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories] APIs if fine-grained, high-volume updates are necessary.
repeated .google.cloud.retail.v2alpha.LocalInventory local_inventories = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLocalInventoriesOrBuilderin interfaceProductOrBuilder
-
getLocalInventoriesOrBuilderList
Output only. A list of local inventories specific to different places. This field can be managed by [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories] and [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories] APIs if fine-grained, high-volume updates are necessary.
repeated .google.cloud.retail.v2alpha.LocalInventory local_inventories = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLocalInventoriesOrBuilderListin interfaceProductOrBuilder
-
addLocalInventoriesBuilder
Output only. A list of local inventories specific to different places. This field can be managed by [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories] and [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories] APIs if fine-grained, high-volume updates are necessary.
repeated .google.cloud.retail.v2alpha.LocalInventory local_inventories = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addLocalInventoriesBuilder
Output only. A list of local inventories specific to different places. This field can be managed by [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories] and [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories] APIs if fine-grained, high-volume updates are necessary.
repeated .google.cloud.retail.v2alpha.LocalInventory local_inventories = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getLocalInventoriesBuilderList
Output only. A list of local inventories specific to different places. This field can be managed by [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories] and [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories] APIs if fine-grained, high-volume updates are necessary.
repeated .google.cloud.retail.v2alpha.LocalInventory local_inventories = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];
-