public static final class Product.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Product.Builder> implements ProductOrBuilder
Product captures all metadata information of items to be recommended or searched.Protobuf type
google.cloud.retail.v2.Product| Modifier and Type | Method and Description |
|---|---|
Product.Builder |
addAllBrands(Iterable<String> values)
The brands of the product.
|
Product.Builder |
addAllCategories(Iterable<String> values)
Product categories.
|
Product.Builder |
addAllCollectionMemberIds(Iterable<String> values)
The [id][google.cloud.retail.v2.Product.id] of the collection members when
[type][google.cloud.retail.v2.Product.type] is
[Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION].
|
Product.Builder |
addAllConditions(Iterable<String> values)
The condition of the product.
|
Product.Builder |
addAllFulfillmentInfo(Iterable<? extends FulfillmentInfo> values)
Fulfillment information, such as the store IDs for in-store pickup or
region IDs for different shipping methods.
|
Product.Builder |
addAllImages(Iterable<? extends Image> values)
Product images for the product.
|
Product.Builder |
addAllLocalInventories(Iterable<? extends LocalInventory> values)
Output only.
|
Product.Builder |
addAllMaterials(Iterable<String> values)
The material of the product.
|
Product.Builder |
addAllPatterns(Iterable<String> values)
The pattern or graphic print of the product.
|
Product.Builder |
addAllPromotions(Iterable<? extends Promotion> values)
The promotions applied to the product.
|
Product.Builder |
addAllSizes(Iterable<String> values)
The size of the product.
|
Product.Builder |
addAllTags(Iterable<String> values)
Custom tags associated with the product.
|
Product.Builder |
addAllVariants(Iterable<? extends Product> values)
Output only.
|
Product.Builder |
addBrands(String value)
The brands of the product.
|
Product.Builder |
addBrandsBytes(com.google.protobuf.ByteString value)
The brands of the product.
|
Product.Builder |
addCategories(String value)
Product categories.
|
Product.Builder |
addCategoriesBytes(com.google.protobuf.ByteString value)
Product categories.
|
Product.Builder |
addCollectionMemberIds(String value)
The [id][google.cloud.retail.v2.Product.id] of the collection members when
[type][google.cloud.retail.v2.Product.type] is
[Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION].
|
Product.Builder |
addCollectionMemberIdsBytes(com.google.protobuf.ByteString value)
The [id][google.cloud.retail.v2.Product.id] of the collection members when
[type][google.cloud.retail.v2.Product.type] is
[Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION].
|
Product.Builder |
addConditions(String value)
The condition of the product.
|
Product.Builder |
addConditionsBytes(com.google.protobuf.ByteString value)
The condition of the product.
|
Product.Builder |
addFulfillmentInfo(FulfillmentInfo.Builder builderForValue)
Fulfillment information, such as the store IDs for in-store pickup or
region IDs for different shipping methods.
|
Product.Builder |
addFulfillmentInfo(FulfillmentInfo value)
Fulfillment information, such as the store IDs for in-store pickup or
region IDs for different shipping methods.
|
Product.Builder |
addFulfillmentInfo(int index,
FulfillmentInfo.Builder builderForValue)
Fulfillment information, such as the store IDs for in-store pickup or
region IDs for different shipping methods.
|
Product.Builder |
addFulfillmentInfo(int index,
FulfillmentInfo value)
Fulfillment information, such as the store IDs for in-store pickup or
region IDs for different shipping methods.
|
FulfillmentInfo.Builder |
addFulfillmentInfoBuilder()
Fulfillment information, such as the store IDs for in-store pickup or
region IDs for different shipping methods.
|
FulfillmentInfo.Builder |
addFulfillmentInfoBuilder(int index)
Fulfillment information, such as the store IDs for in-store pickup or
region IDs for different shipping methods.
|
Product.Builder |
addImages(Image.Builder builderForValue)
Product images for the product.
|
Product.Builder |
addImages(Image value)
Product images for the product.
|
Product.Builder |
addImages(int index,
Image.Builder builderForValue)
Product images for the product.
|
Product.Builder |
addImages(int index,
Image value)
Product images for the product.
|
Image.Builder |
addImagesBuilder()
Product images for the product.
|
Image.Builder |
addImagesBuilder(int index)
Product images for the product.
|
Product.Builder |
addLocalInventories(int index,
LocalInventory.Builder builderForValue)
Output only.
|
Product.Builder |
addLocalInventories(int index,
LocalInventory value)
Output only.
|
Product.Builder |
addLocalInventories(LocalInventory.Builder builderForValue)
Output only.
|
Product.Builder |
addLocalInventories(LocalInventory value)
Output only.
|
LocalInventory.Builder |
addLocalInventoriesBuilder()
Output only.
|
LocalInventory.Builder |
addLocalInventoriesBuilder(int index)
Output only.
|
Product.Builder |
addMaterials(String value)
The material of the product.
|
Product.Builder |
addMaterialsBytes(com.google.protobuf.ByteString value)
The material of the product.
|
Product.Builder |
addPatterns(String value)
The pattern or graphic print of the product.
|
Product.Builder |
addPatternsBytes(com.google.protobuf.ByteString value)
The pattern or graphic print of the product.
|
Product.Builder |
addPromotions(int index,
Promotion.Builder builderForValue)
The promotions applied to the product.
|
Product.Builder |
addPromotions(int index,
Promotion value)
The promotions applied to the product.
|
Product.Builder |
addPromotions(Promotion.Builder builderForValue)
The promotions applied to the product.
|
Product.Builder |
addPromotions(Promotion value)
The promotions applied to the product.
|
Promotion.Builder |
addPromotionsBuilder()
The promotions applied to the product.
|
Promotion.Builder |
addPromotionsBuilder(int index)
The promotions applied to the product.
|
Product.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Product.Builder |
addSizes(String value)
The size of the product.
|
Product.Builder |
addSizesBytes(com.google.protobuf.ByteString value)
The size of the product.
|
Product.Builder |
addTags(String value)
Custom tags associated with the product.
|
Product.Builder |
addTagsBytes(com.google.protobuf.ByteString value)
Custom tags associated with the product.
|
Product.Builder |
addVariants(int index,
Product.Builder builderForValue)
Output only.
|
Product.Builder |
addVariants(int index,
Product value)
Output only.
|
Product.Builder |
addVariants(Product.Builder builderForValue)
Output only.
|
Product.Builder |
addVariants(Product value)
Output only.
|
Product.Builder |
addVariantsBuilder()
Output only.
|
Product.Builder |
addVariantsBuilder(int index)
Output only.
|
Product |
build() |
Product |
buildPartial() |
Product.Builder |
clear() |
Product.Builder |
clearAttributes() |
Product.Builder |
clearAudience()
The target group associated with a given audience (e.g.
|
Product.Builder |
clearAvailability()
The online availability of the [Product][google.cloud.retail.v2.Product].
|
Product.Builder |
clearAvailableQuantity()
The available quantity of the item.
|
Product.Builder |
clearAvailableTime()
The timestamp when this [Product][google.cloud.retail.v2.Product] becomes
available for
[SearchService.Search][google.cloud.retail.v2.SearchService.Search].
|
Product.Builder |
clearBrands()
The brands of the product.
|
Product.Builder |
clearCategories()
Product categories.
|
Product.Builder |
clearCollectionMemberIds()
The [id][google.cloud.retail.v2.Product.id] of the collection members when
[type][google.cloud.retail.v2.Product.type] is
[Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION].
|
Product.Builder |
clearColorInfo()
The color of the product.
|
Product.Builder |
clearConditions()
The condition of the product.
|
Product.Builder |
clearDescription()
Product description.
|
Product.Builder |
clearExpiration() |
Product.Builder |
clearExpireTime()
The timestamp when this product becomes unavailable for
[SearchService.Search][google.cloud.retail.v2.SearchService.Search].
|
Product.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Product.Builder |
clearFulfillmentInfo()
Fulfillment information, such as the store IDs for in-store pickup or
region IDs for different shipping methods.
|
Product.Builder |
clearGtin()
The Global Trade Item Number (GTIN) of the product.
|
Product.Builder |
clearId()
Immutable.
|
Product.Builder |
clearImages()
Product images for the product.
|
Product.Builder |
clearLanguageCode()
Language of the title/description and other string attributes.
|
Product.Builder |
clearLocalInventories()
Output only.
|
Product.Builder |
clearMaterials()
The material of the product.
|
Product.Builder |
clearName()
Immutable.
|
Product.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Product.Builder |
clearPatterns()
The pattern or graphic print of the product.
|
Product.Builder |
clearPriceInfo()
Product price and cost information.
|
Product.Builder |
clearPrimaryProductId()
Variant group identifier.
|
Product.Builder |
clearPromotions()
The promotions applied to the product.
|
Product.Builder |
clearPublishTime()
The timestamp when the product is published by the retailer for the first
time, which indicates the freshness of the products.
|
Product.Builder |
clearRating()
The rating of this product.
|
Product.Builder |
clearRetrievableFields()
Deprecated.
|
Product.Builder |
clearSizes()
The size of the product.
|
Product.Builder |
clearTags()
Custom tags associated with the product.
|
Product.Builder |
clearTitle()
Required.
|
Product.Builder |
clearTtl()
Input only.
|
Product.Builder |
clearType()
Immutable.
|
Product.Builder |
clearUri()
Canonical URL directly linking to the product detail page.
|
Product.Builder |
clearVariants()
Output only.
|
Product.Builder |
clone() |
boolean |
containsAttributes(String key)
Highly encouraged.
|
Map<String,CustomAttribute> |
getAttributes()
Deprecated.
|
int |
getAttributesCount()
Highly encouraged.
|
Map<String,CustomAttribute> |
getAttributesMap()
Highly encouraged.
|
CustomAttribute |
getAttributesOrDefault(String key,
CustomAttribute defaultValue)
Highly encouraged.
|
CustomAttribute |
getAttributesOrThrow(String key)
Highly encouraged.
|
Audience |
getAudience()
The target group associated with a given audience (e.g.
|
Audience.Builder |
getAudienceBuilder()
The target group associated with a given audience (e.g.
|
AudienceOrBuilder |
getAudienceOrBuilder()
The target group associated with a given audience (e.g.
|
Product.Availability |
getAvailability()
The online availability of the [Product][google.cloud.retail.v2.Product].
|
int |
getAvailabilityValue()
The online availability of the [Product][google.cloud.retail.v2.Product].
|
com.google.protobuf.Int32Value |
getAvailableQuantity()
The available quantity of the item.
|
com.google.protobuf.Int32Value.Builder |
getAvailableQuantityBuilder()
The available quantity of the item.
|
com.google.protobuf.Int32ValueOrBuilder |
getAvailableQuantityOrBuilder()
The available quantity of the item.
|
com.google.protobuf.Timestamp |
getAvailableTime()
The timestamp when this [Product][google.cloud.retail.v2.Product] becomes
available for
[SearchService.Search][google.cloud.retail.v2.SearchService.Search].
|
com.google.protobuf.Timestamp.Builder |
getAvailableTimeBuilder()
The timestamp when this [Product][google.cloud.retail.v2.Product] becomes
available for
[SearchService.Search][google.cloud.retail.v2.SearchService.Search].
|
com.google.protobuf.TimestampOrBuilder |
getAvailableTimeOrBuilder()
The timestamp when this [Product][google.cloud.retail.v2.Product] becomes
available for
[SearchService.Search][google.cloud.retail.v2.SearchService.Search].
|
String |
getBrands(int index)
The brands of the product.
|
com.google.protobuf.ByteString |
getBrandsBytes(int index)
The brands of the product.
|
int |
getBrandsCount()
The brands of the product.
|
com.google.protobuf.ProtocolStringList |
getBrandsList()
The brands of the product.
|
String |
getCategories(int index)
Product categories.
|
com.google.protobuf.ByteString |
getCategoriesBytes(int index)
Product categories.
|
int |
getCategoriesCount()
Product categories.
|
com.google.protobuf.ProtocolStringList |
getCategoriesList()
Product categories.
|
String |
getCollectionMemberIds(int index)
The [id][google.cloud.retail.v2.Product.id] of the collection members when
[type][google.cloud.retail.v2.Product.type] is
[Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION].
|
com.google.protobuf.ByteString |
getCollectionMemberIdsBytes(int index)
The [id][google.cloud.retail.v2.Product.id] of the collection members when
[type][google.cloud.retail.v2.Product.type] is
[Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION].
|
int |
getCollectionMemberIdsCount()
The [id][google.cloud.retail.v2.Product.id] of the collection members when
[type][google.cloud.retail.v2.Product.type] is
[Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION].
|
com.google.protobuf.ProtocolStringList |
getCollectionMemberIdsList()
The [id][google.cloud.retail.v2.Product.id] of the collection members when
[type][google.cloud.retail.v2.Product.type] is
[Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION].
|
ColorInfo |
getColorInfo()
The color of the product.
|
ColorInfo.Builder |
getColorInfoBuilder()
The color of the product.
|
ColorInfoOrBuilder |
getColorInfoOrBuilder()
The color of the product.
|
String |
getConditions(int index)
The condition of the product.
|
com.google.protobuf.ByteString |
getConditionsBytes(int index)
The condition of the product.
|
int |
getConditionsCount()
The condition of the product.
|
com.google.protobuf.ProtocolStringList |
getConditionsList()
The condition of the product.
|
Product |
getDefaultInstanceForType() |
String |
getDescription()
Product description.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
Product description.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Product.ExpirationCase |
getExpirationCase() |
com.google.protobuf.Timestamp |
getExpireTime()
The timestamp when this product becomes unavailable for
[SearchService.Search][google.cloud.retail.v2.SearchService.Search].
|
com.google.protobuf.Timestamp.Builder |
getExpireTimeBuilder()
The timestamp when this product becomes unavailable for
[SearchService.Search][google.cloud.retail.v2.SearchService.Search].
|
com.google.protobuf.TimestampOrBuilder |
getExpireTimeOrBuilder()
The timestamp when this product becomes unavailable for
[SearchService.Search][google.cloud.retail.v2.SearchService.Search].
|
FulfillmentInfo |
getFulfillmentInfo(int index)
Fulfillment information, such as the store IDs for in-store pickup or
region IDs for different shipping methods.
|
FulfillmentInfo.Builder |
getFulfillmentInfoBuilder(int index)
Fulfillment information, such as the store IDs for in-store pickup or
region IDs for different shipping methods.
|
List<FulfillmentInfo.Builder> |
getFulfillmentInfoBuilderList()
Fulfillment information, such as the store IDs for in-store pickup or
region IDs for different shipping methods.
|
int |
getFulfillmentInfoCount()
Fulfillment information, such as the store IDs for in-store pickup or
region IDs for different shipping methods.
|
List<FulfillmentInfo> |
getFulfillmentInfoList()
Fulfillment information, such as the store IDs for in-store pickup or
region IDs for different shipping methods.
|
FulfillmentInfoOrBuilder |
getFulfillmentInfoOrBuilder(int index)
Fulfillment information, such as the store IDs for in-store pickup or
region IDs for different shipping methods.
|
List<? extends FulfillmentInfoOrBuilder> |
getFulfillmentInfoOrBuilderList()
Fulfillment information, such as the store IDs for in-store pickup or
region IDs for different shipping methods.
|
String |
getGtin()
The Global Trade Item Number (GTIN) of the product.
|
com.google.protobuf.ByteString |
getGtinBytes()
The Global Trade Item Number (GTIN) of the product.
|
String |
getId()
Immutable.
|
com.google.protobuf.ByteString |
getIdBytes()
Immutable.
|
Image |
getImages(int index)
Product images for the product.
|
Image.Builder |
getImagesBuilder(int index)
Product images for the product.
|
List<Image.Builder> |
getImagesBuilderList()
Product images for the product.
|
int |
getImagesCount()
Product images for the product.
|
List<Image> |
getImagesList()
Product images for the product.
|
ImageOrBuilder |
getImagesOrBuilder(int index)
Product images for the product.
|
List<? extends ImageOrBuilder> |
getImagesOrBuilderList()
Product images for the product.
|
String |
getLanguageCode()
Language of the title/description and other string attributes.
|
com.google.protobuf.ByteString |
getLanguageCodeBytes()
Language of the title/description and other string attributes.
|
LocalInventory |
getLocalInventories(int index)
Output only.
|
LocalInventory.Builder |
getLocalInventoriesBuilder(int index)
Output only.
|
List<LocalInventory.Builder> |
getLocalInventoriesBuilderList()
Output only.
|
int |
getLocalInventoriesCount()
Output only.
|
List<LocalInventory> |
getLocalInventoriesList()
Output only.
|
LocalInventoryOrBuilder |
getLocalInventoriesOrBuilder(int index)
Output only.
|
List<? extends LocalInventoryOrBuilder> |
getLocalInventoriesOrBuilderList()
Output only.
|
String |
getMaterials(int index)
The material of the product.
|
com.google.protobuf.ByteString |
getMaterialsBytes(int index)
The material of the product.
|
int |
getMaterialsCount()
The material of the product.
|
com.google.protobuf.ProtocolStringList |
getMaterialsList()
The material of the product.
|
Map<String,CustomAttribute> |
getMutableAttributes()
Deprecated.
|
String |
getName()
Immutable.
|
com.google.protobuf.ByteString |
getNameBytes()
Immutable.
|
String |
getPatterns(int index)
The pattern or graphic print of the product.
|
com.google.protobuf.ByteString |
getPatternsBytes(int index)
The pattern or graphic print of the product.
|
int |
getPatternsCount()
The pattern or graphic print of the product.
|
com.google.protobuf.ProtocolStringList |
getPatternsList()
The pattern or graphic print of the product.
|
PriceInfo |
getPriceInfo()
Product price and cost information.
|
PriceInfo.Builder |
getPriceInfoBuilder()
Product price and cost information.
|
PriceInfoOrBuilder |
getPriceInfoOrBuilder()
Product price and cost information.
|
String |
getPrimaryProductId()
Variant group identifier.
|
com.google.protobuf.ByteString |
getPrimaryProductIdBytes()
Variant group identifier.
|
Promotion |
getPromotions(int index)
The promotions applied to the product.
|
Promotion.Builder |
getPromotionsBuilder(int index)
The promotions applied to the product.
|
List<Promotion.Builder> |
getPromotionsBuilderList()
The promotions applied to the product.
|
int |
getPromotionsCount()
The promotions applied to the product.
|
List<Promotion> |
getPromotionsList()
The promotions applied to the product.
|
PromotionOrBuilder |
getPromotionsOrBuilder(int index)
The promotions applied to the product.
|
List<? extends PromotionOrBuilder> |
getPromotionsOrBuilderList()
The promotions applied to the product.
|
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.
|
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.
|
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.
|
Rating |
getRating()
The rating of this product.
|
Rating.Builder |
getRatingBuilder()
The rating of this product.
|
RatingOrBuilder |
getRatingOrBuilder()
The rating of this product.
|
com.google.protobuf.FieldMask |
getRetrievableFields()
Deprecated.
google.cloud.retail.v2.Product.retrievable_fields is deprecated. See
google/cloud/retail/v2/product.proto;l=562
|
com.google.protobuf.FieldMask.Builder |
getRetrievableFieldsBuilder()
Deprecated.
|
com.google.protobuf.FieldMaskOrBuilder |
getRetrievableFieldsOrBuilder()
Deprecated.
|
String |
getSizes(int index)
The size of the product.
|
com.google.protobuf.ByteString |
getSizesBytes(int index)
The size of the product.
|
int |
getSizesCount()
The size of the product.
|
com.google.protobuf.ProtocolStringList |
getSizesList()
The size of the product.
|
String |
getTags(int index)
Custom tags associated with the product.
|
com.google.protobuf.ByteString |
getTagsBytes(int index)
Custom tags associated with the product.
|
int |
getTagsCount()
Custom tags associated with the product.
|
com.google.protobuf.ProtocolStringList |
getTagsList()
Custom tags associated with the product.
|
String |
getTitle()
Required.
|
com.google.protobuf.ByteString |
getTitleBytes()
Required.
|
com.google.protobuf.Duration |
getTtl()
Input only.
|
com.google.protobuf.Duration.Builder |
getTtlBuilder()
Input only.
|
com.google.protobuf.DurationOrBuilder |
getTtlOrBuilder()
Input only.
|
Product.Type |
getType()
Immutable.
|
int |
getTypeValue()
Immutable.
|
String |
getUri()
Canonical URL directly linking to the product detail page.
|
com.google.protobuf.ByteString |
getUriBytes()
Canonical URL directly linking to the product detail page.
|
Product |
getVariants(int index)
Output only.
|
Product.Builder |
getVariantsBuilder(int index)
Output only.
|
List<Product.Builder> |
getVariantsBuilderList()
Output only.
|
int |
getVariantsCount()
Output only.
|
List<Product> |
getVariantsList()
Output only.
|
ProductOrBuilder |
getVariantsOrBuilder(int index)
Output only.
|
List<? extends ProductOrBuilder> |
getVariantsOrBuilderList()
Output only.
|
boolean |
hasAudience()
The target group associated with a given audience (e.g.
|
boolean |
hasAvailableQuantity()
The available quantity of the item.
|
boolean |
hasAvailableTime()
The timestamp when this [Product][google.cloud.retail.v2.Product] becomes
available for
[SearchService.Search][google.cloud.retail.v2.SearchService.Search].
|
boolean |
hasColorInfo()
The color of the product.
|
boolean |
hasExpireTime()
The timestamp when this product becomes unavailable for
[SearchService.Search][google.cloud.retail.v2.SearchService.Search].
|
boolean |
hasPriceInfo()
Product price and cost information.
|
boolean |
hasPublishTime()
The timestamp when the product is published by the retailer for the first
time, which indicates the freshness of the products.
|
boolean |
hasRating()
The rating of this product.
|
boolean |
hasRetrievableFields()
Deprecated.
google.cloud.retail.v2.Product.retrievable_fields is deprecated. See
google/cloud/retail/v2/product.proto;l=562
|
boolean |
hasTtl()
Input only.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
Product.Builder |
mergeAudience(Audience value)
The target group associated with a given audience (e.g.
|
Product.Builder |
mergeAvailableQuantity(com.google.protobuf.Int32Value value)
The available quantity of the item.
|
Product.Builder |
mergeAvailableTime(com.google.protobuf.Timestamp value)
The timestamp when this [Product][google.cloud.retail.v2.Product] becomes
available for
[SearchService.Search][google.cloud.retail.v2.SearchService.Search].
|
Product.Builder |
mergeColorInfo(ColorInfo value)
The color of the product.
|
Product.Builder |
mergeExpireTime(com.google.protobuf.Timestamp value)
The timestamp when this product becomes unavailable for
[SearchService.Search][google.cloud.retail.v2.SearchService.Search].
|
Product.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Product.Builder |
mergeFrom(com.google.protobuf.Message other) |
Product.Builder |
mergeFrom(Product other) |
Product.Builder |
mergePriceInfo(PriceInfo value)
Product price and cost information.
|
Product.Builder |
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.
|
Product.Builder |
mergeRating(Rating value)
The rating of this product.
|
Product.Builder |
mergeRetrievableFields(com.google.protobuf.FieldMask value)
Deprecated.
|
Product.Builder |
mergeTtl(com.google.protobuf.Duration value)
Input only.
|
Product.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Product.Builder |
putAllAttributes(Map<String,CustomAttribute> values)
Highly encouraged.
|
Product.Builder |
putAttributes(String key,
CustomAttribute value)
Highly encouraged.
|
Product.Builder |
removeAttributes(String key)
Highly encouraged.
|
Product.Builder |
removeFulfillmentInfo(int index)
Fulfillment information, such as the store IDs for in-store pickup or
region IDs for different shipping methods.
|
Product.Builder |
removeImages(int index)
Product images for the product.
|
Product.Builder |
removeLocalInventories(int index)
Output only.
|
Product.Builder |
removePromotions(int index)
The promotions applied to the product.
|
Product.Builder |
removeVariants(int index)
Output only.
|
Product.Builder |
setAudience(Audience.Builder builderForValue)
The target group associated with a given audience (e.g.
|
Product.Builder |
setAudience(Audience value)
The target group associated with a given audience (e.g.
|
Product.Builder |
setAvailability(Product.Availability value)
The online availability of the [Product][google.cloud.retail.v2.Product].
|
Product.Builder |
setAvailabilityValue(int value)
The online availability of the [Product][google.cloud.retail.v2.Product].
|
Product.Builder |
setAvailableQuantity(com.google.protobuf.Int32Value.Builder builderForValue)
The available quantity of the item.
|
Product.Builder |
setAvailableQuantity(com.google.protobuf.Int32Value value)
The available quantity of the item.
|
Product.Builder |
setAvailableTime(com.google.protobuf.Timestamp.Builder builderForValue)
The timestamp when this [Product][google.cloud.retail.v2.Product] becomes
available for
[SearchService.Search][google.cloud.retail.v2.SearchService.Search].
|
Product.Builder |
setAvailableTime(com.google.protobuf.Timestamp value)
The timestamp when this [Product][google.cloud.retail.v2.Product] becomes
available for
[SearchService.Search][google.cloud.retail.v2.SearchService.Search].
|
Product.Builder |
setBrands(int index,
String value)
The brands of the product.
|
Product.Builder |
setCategories(int index,
String value)
Product categories.
|
Product.Builder |
setCollectionMemberIds(int index,
String value)
The [id][google.cloud.retail.v2.Product.id] of the collection members when
[type][google.cloud.retail.v2.Product.type] is
[Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION].
|
Product.Builder |
setColorInfo(ColorInfo.Builder builderForValue)
The color of the product.
|
Product.Builder |
setColorInfo(ColorInfo value)
The color of the product.
|
Product.Builder |
setConditions(int index,
String value)
The condition of the product.
|
Product.Builder |
setDescription(String value)
Product description.
|
Product.Builder |
setDescriptionBytes(com.google.protobuf.ByteString value)
Product description.
|
Product.Builder |
setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue)
The timestamp when this product becomes unavailable for
[SearchService.Search][google.cloud.retail.v2.SearchService.Search].
|
Product.Builder |
setExpireTime(com.google.protobuf.Timestamp value)
The timestamp when this product becomes unavailable for
[SearchService.Search][google.cloud.retail.v2.SearchService.Search].
|
Product.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Product.Builder |
setFulfillmentInfo(int index,
FulfillmentInfo.Builder builderForValue)
Fulfillment information, such as the store IDs for in-store pickup or
region IDs for different shipping methods.
|
Product.Builder |
setFulfillmentInfo(int index,
FulfillmentInfo value)
Fulfillment information, such as the store IDs for in-store pickup or
region IDs for different shipping methods.
|
Product.Builder |
setGtin(String value)
The Global Trade Item Number (GTIN) of the product.
|
Product.Builder |
setGtinBytes(com.google.protobuf.ByteString value)
The Global Trade Item Number (GTIN) of the product.
|
Product.Builder |
setId(String value)
Immutable.
|
Product.Builder |
setIdBytes(com.google.protobuf.ByteString value)
Immutable.
|
Product.Builder |
setImages(int index,
Image.Builder builderForValue)
Product images for the product.
|
Product.Builder |
setImages(int index,
Image value)
Product images for the product.
|
Product.Builder |
setLanguageCode(String value)
Language of the title/description and other string attributes.
|
Product.Builder |
setLanguageCodeBytes(com.google.protobuf.ByteString value)
Language of the title/description and other string attributes.
|
Product.Builder |
setLocalInventories(int index,
LocalInventory.Builder builderForValue)
Output only.
|
Product.Builder |
setLocalInventories(int index,
LocalInventory value)
Output only.
|
Product.Builder |
setMaterials(int index,
String value)
The material of the product.
|
Product.Builder |
setName(String value)
Immutable.
|
Product.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Immutable.
|
Product.Builder |
setPatterns(int index,
String value)
The pattern or graphic print of the product.
|
Product.Builder |
setPriceInfo(PriceInfo.Builder builderForValue)
Product price and cost information.
|
Product.Builder |
setPriceInfo(PriceInfo value)
Product price and cost information.
|
Product.Builder |
setPrimaryProductId(String value)
Variant group identifier.
|
Product.Builder |
setPrimaryProductIdBytes(com.google.protobuf.ByteString value)
Variant group identifier.
|
Product.Builder |
setPromotions(int index,
Promotion.Builder builderForValue)
The promotions applied to the product.
|
Product.Builder |
setPromotions(int index,
Promotion value)
The promotions applied to the product.
|
Product.Builder |
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.
|
Product.Builder |
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.
|
Product.Builder |
setRating(Rating.Builder builderForValue)
The rating of this product.
|
Product.Builder |
setRating(Rating value)
The rating of this product.
|
Product.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Product.Builder |
setRetrievableFields(com.google.protobuf.FieldMask.Builder builderForValue)
Deprecated.
|
Product.Builder |
setRetrievableFields(com.google.protobuf.FieldMask value)
Deprecated.
|
Product.Builder |
setSizes(int index,
String value)
The size of the product.
|
Product.Builder |
setTags(int index,
String value)
Custom tags associated with the product.
|
Product.Builder |
setTitle(String value)
Required.
|
Product.Builder |
setTitleBytes(com.google.protobuf.ByteString value)
Required.
|
Product.Builder |
setTtl(com.google.protobuf.Duration.Builder builderForValue)
Input only.
|
Product.Builder |
setTtl(com.google.protobuf.Duration value)
Input only.
|
Product.Builder |
setType(Product.Type value)
Immutable.
|
Product.Builder |
setTypeValue(int value)
Immutable.
|
Product.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Product.Builder |
setUri(String value)
Canonical URL directly linking to the product detail page.
|
Product.Builder |
setUriBytes(com.google.protobuf.ByteString value)
Canonical URL directly linking to the product detail page.
|
Product.Builder |
setVariants(int index,
Product.Builder builderForValue)
Output only.
|
Product.Builder |
setVariants(int index,
Product value)
Output only.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapFieldReflection, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Product.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Product.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Product.Builder>public Product.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Product.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Product.Builder>public Product getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Product build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Product buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Product.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Product.Builder>public Product.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Product.Builder>public Product.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Product.Builder>public Product.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Product.Builder>public Product.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Product.Builder>public Product.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Product.Builder>public Product.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Product.Builder>public Product.Builder mergeFrom(Product other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Product.Builder>public Product.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Product.Builder>IOExceptionpublic Product.ExpirationCase getExpirationCase()
getExpirationCase in interface ProductOrBuilderpublic Product.Builder clearExpiration()
public boolean hasExpireTime()
The timestamp when this product becomes unavailable for [SearchService.Search][google.cloud.retail.v2.SearchService.Search]. Note that this is only applicable to [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION], and ignored for [Type.VARIANT][google.cloud.retail.v2.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, the [Product][google.cloud.retail.v2.Product] is not available for [SearchService.Search][google.cloud.retail.v2.SearchService.Search] after [expire_time][google.cloud.retail.v2.Product.expire_time]. However, the product can still be retrieved by [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct] and [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts]. [expire_time][google.cloud.retail.v2.Product.expire_time] must be later than [available_time][google.cloud.retail.v2.Product.available_time] and [publish_time][google.cloud.retail.v2.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;hasExpireTime in interface ProductOrBuilderpublic com.google.protobuf.Timestamp getExpireTime()
The timestamp when this product becomes unavailable for [SearchService.Search][google.cloud.retail.v2.SearchService.Search]. Note that this is only applicable to [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION], and ignored for [Type.VARIANT][google.cloud.retail.v2.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, the [Product][google.cloud.retail.v2.Product] is not available for [SearchService.Search][google.cloud.retail.v2.SearchService.Search] after [expire_time][google.cloud.retail.v2.Product.expire_time]. However, the product can still be retrieved by [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct] and [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts]. [expire_time][google.cloud.retail.v2.Product.expire_time] must be later than [available_time][google.cloud.retail.v2.Product.available_time] and [publish_time][google.cloud.retail.v2.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;getExpireTime in interface ProductOrBuilderpublic Product.Builder setExpireTime(com.google.protobuf.Timestamp value)
The timestamp when this product becomes unavailable for [SearchService.Search][google.cloud.retail.v2.SearchService.Search]. Note that this is only applicable to [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION], and ignored for [Type.VARIANT][google.cloud.retail.v2.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, the [Product][google.cloud.retail.v2.Product] is not available for [SearchService.Search][google.cloud.retail.v2.SearchService.Search] after [expire_time][google.cloud.retail.v2.Product.expire_time]. However, the product can still be retrieved by [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct] and [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts]. [expire_time][google.cloud.retail.v2.Product.expire_time] must be later than [available_time][google.cloud.retail.v2.Product.available_time] and [publish_time][google.cloud.retail.v2.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;public Product.Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue)
The timestamp when this product becomes unavailable for [SearchService.Search][google.cloud.retail.v2.SearchService.Search]. Note that this is only applicable to [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION], and ignored for [Type.VARIANT][google.cloud.retail.v2.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, the [Product][google.cloud.retail.v2.Product] is not available for [SearchService.Search][google.cloud.retail.v2.SearchService.Search] after [expire_time][google.cloud.retail.v2.Product.expire_time]. However, the product can still be retrieved by [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct] and [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts]. [expire_time][google.cloud.retail.v2.Product.expire_time] must be later than [available_time][google.cloud.retail.v2.Product.available_time] and [publish_time][google.cloud.retail.v2.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;public Product.Builder mergeExpireTime(com.google.protobuf.Timestamp value)
The timestamp when this product becomes unavailable for [SearchService.Search][google.cloud.retail.v2.SearchService.Search]. Note that this is only applicable to [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION], and ignored for [Type.VARIANT][google.cloud.retail.v2.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, the [Product][google.cloud.retail.v2.Product] is not available for [SearchService.Search][google.cloud.retail.v2.SearchService.Search] after [expire_time][google.cloud.retail.v2.Product.expire_time]. However, the product can still be retrieved by [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct] and [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts]. [expire_time][google.cloud.retail.v2.Product.expire_time] must be later than [available_time][google.cloud.retail.v2.Product.available_time] and [publish_time][google.cloud.retail.v2.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;public Product.Builder clearExpireTime()
The timestamp when this product becomes unavailable for [SearchService.Search][google.cloud.retail.v2.SearchService.Search]. Note that this is only applicable to [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION], and ignored for [Type.VARIANT][google.cloud.retail.v2.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, the [Product][google.cloud.retail.v2.Product] is not available for [SearchService.Search][google.cloud.retail.v2.SearchService.Search] after [expire_time][google.cloud.retail.v2.Product.expire_time]. However, the product can still be retrieved by [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct] and [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts]. [expire_time][google.cloud.retail.v2.Product.expire_time] must be later than [available_time][google.cloud.retail.v2.Product.available_time] and [publish_time][google.cloud.retail.v2.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;public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder()
The timestamp when this product becomes unavailable for [SearchService.Search][google.cloud.retail.v2.SearchService.Search]. Note that this is only applicable to [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION], and ignored for [Type.VARIANT][google.cloud.retail.v2.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, the [Product][google.cloud.retail.v2.Product] is not available for [SearchService.Search][google.cloud.retail.v2.SearchService.Search] after [expire_time][google.cloud.retail.v2.Product.expire_time]. However, the product can still be retrieved by [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct] and [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts]. [expire_time][google.cloud.retail.v2.Product.expire_time] must be later than [available_time][google.cloud.retail.v2.Product.available_time] and [publish_time][google.cloud.retail.v2.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;public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder()
The timestamp when this product becomes unavailable for [SearchService.Search][google.cloud.retail.v2.SearchService.Search]. Note that this is only applicable to [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION], and ignored for [Type.VARIANT][google.cloud.retail.v2.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, the [Product][google.cloud.retail.v2.Product] is not available for [SearchService.Search][google.cloud.retail.v2.SearchService.Search] after [expire_time][google.cloud.retail.v2.Product.expire_time]. However, the product can still be retrieved by [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct] and [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts]. [expire_time][google.cloud.retail.v2.Product.expire_time] must be later than [available_time][google.cloud.retail.v2.Product.available_time] and [publish_time][google.cloud.retail.v2.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 in interface ProductOrBuilderpublic boolean hasTtl()
Input only. The TTL (time to live) of the product. Note that this is only applicable to [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION], and ignored for [Type.VARIANT][google.cloud.retail.v2.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.v2.Product.expire_time] is set as current timestamp plus [ttl][google.cloud.retail.v2.Product.ttl]. The derived [expire_time][google.cloud.retail.v2.Product.expire_time] is returned in the output and [ttl][google.cloud.retail.v2.Product.ttl] is left blank when retrieving the [Product][google.cloud.retail.v2.Product]. If it is set, the product is not available for [SearchService.Search][google.cloud.retail.v2.SearchService.Search] after current timestamp plus [ttl][google.cloud.retail.v2.Product.ttl]. However, the product can still be retrieved by [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct] and [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts].
.google.protobuf.Duration ttl = 17 [(.google.api.field_behavior) = INPUT_ONLY];hasTtl in interface ProductOrBuilderpublic 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.v2.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION], and ignored for [Type.VARIANT][google.cloud.retail.v2.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.v2.Product.expire_time] is set as current timestamp plus [ttl][google.cloud.retail.v2.Product.ttl]. The derived [expire_time][google.cloud.retail.v2.Product.expire_time] is returned in the output and [ttl][google.cloud.retail.v2.Product.ttl] is left blank when retrieving the [Product][google.cloud.retail.v2.Product]. If it is set, the product is not available for [SearchService.Search][google.cloud.retail.v2.SearchService.Search] after current timestamp plus [ttl][google.cloud.retail.v2.Product.ttl]. However, the product can still be retrieved by [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct] and [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts].
.google.protobuf.Duration ttl = 17 [(.google.api.field_behavior) = INPUT_ONLY];getTtl in interface ProductOrBuilderpublic Product.Builder setTtl(com.google.protobuf.Duration value)
Input only. The TTL (time to live) of the product. Note that this is only applicable to [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION], and ignored for [Type.VARIANT][google.cloud.retail.v2.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.v2.Product.expire_time] is set as current timestamp plus [ttl][google.cloud.retail.v2.Product.ttl]. The derived [expire_time][google.cloud.retail.v2.Product.expire_time] is returned in the output and [ttl][google.cloud.retail.v2.Product.ttl] is left blank when retrieving the [Product][google.cloud.retail.v2.Product]. If it is set, the product is not available for [SearchService.Search][google.cloud.retail.v2.SearchService.Search] after current timestamp plus [ttl][google.cloud.retail.v2.Product.ttl]. However, the product can still be retrieved by [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct] and [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts].
.google.protobuf.Duration ttl = 17 [(.google.api.field_behavior) = INPUT_ONLY];public Product.Builder setTtl(com.google.protobuf.Duration.Builder builderForValue)
Input only. The TTL (time to live) of the product. Note that this is only applicable to [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION], and ignored for [Type.VARIANT][google.cloud.retail.v2.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.v2.Product.expire_time] is set as current timestamp plus [ttl][google.cloud.retail.v2.Product.ttl]. The derived [expire_time][google.cloud.retail.v2.Product.expire_time] is returned in the output and [ttl][google.cloud.retail.v2.Product.ttl] is left blank when retrieving the [Product][google.cloud.retail.v2.Product]. If it is set, the product is not available for [SearchService.Search][google.cloud.retail.v2.SearchService.Search] after current timestamp plus [ttl][google.cloud.retail.v2.Product.ttl]. However, the product can still be retrieved by [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct] and [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts].
.google.protobuf.Duration ttl = 17 [(.google.api.field_behavior) = INPUT_ONLY];public Product.Builder mergeTtl(com.google.protobuf.Duration value)
Input only. The TTL (time to live) of the product. Note that this is only applicable to [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION], and ignored for [Type.VARIANT][google.cloud.retail.v2.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.v2.Product.expire_time] is set as current timestamp plus [ttl][google.cloud.retail.v2.Product.ttl]. The derived [expire_time][google.cloud.retail.v2.Product.expire_time] is returned in the output and [ttl][google.cloud.retail.v2.Product.ttl] is left blank when retrieving the [Product][google.cloud.retail.v2.Product]. If it is set, the product is not available for [SearchService.Search][google.cloud.retail.v2.SearchService.Search] after current timestamp plus [ttl][google.cloud.retail.v2.Product.ttl]. However, the product can still be retrieved by [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct] and [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts].
.google.protobuf.Duration ttl = 17 [(.google.api.field_behavior) = INPUT_ONLY];public Product.Builder clearTtl()
Input only. The TTL (time to live) of the product. Note that this is only applicable to [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION], and ignored for [Type.VARIANT][google.cloud.retail.v2.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.v2.Product.expire_time] is set as current timestamp plus [ttl][google.cloud.retail.v2.Product.ttl]. The derived [expire_time][google.cloud.retail.v2.Product.expire_time] is returned in the output and [ttl][google.cloud.retail.v2.Product.ttl] is left blank when retrieving the [Product][google.cloud.retail.v2.Product]. If it is set, the product is not available for [SearchService.Search][google.cloud.retail.v2.SearchService.Search] after current timestamp plus [ttl][google.cloud.retail.v2.Product.ttl]. However, the product can still be retrieved by [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct] and [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts].
.google.protobuf.Duration ttl = 17 [(.google.api.field_behavior) = INPUT_ONLY];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.v2.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION], and ignored for [Type.VARIANT][google.cloud.retail.v2.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.v2.Product.expire_time] is set as current timestamp plus [ttl][google.cloud.retail.v2.Product.ttl]. The derived [expire_time][google.cloud.retail.v2.Product.expire_time] is returned in the output and [ttl][google.cloud.retail.v2.Product.ttl] is left blank when retrieving the [Product][google.cloud.retail.v2.Product]. If it is set, the product is not available for [SearchService.Search][google.cloud.retail.v2.SearchService.Search] after current timestamp plus [ttl][google.cloud.retail.v2.Product.ttl]. However, the product can still be retrieved by [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct] and [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts].
.google.protobuf.Duration ttl = 17 [(.google.api.field_behavior) = INPUT_ONLY];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.v2.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION], and ignored for [Type.VARIANT][google.cloud.retail.v2.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.v2.Product.expire_time] is set as current timestamp plus [ttl][google.cloud.retail.v2.Product.ttl]. The derived [expire_time][google.cloud.retail.v2.Product.expire_time] is returned in the output and [ttl][google.cloud.retail.v2.Product.ttl] is left blank when retrieving the [Product][google.cloud.retail.v2.Product]. If it is set, the product is not available for [SearchService.Search][google.cloud.retail.v2.SearchService.Search] after current timestamp plus [ttl][google.cloud.retail.v2.Product.ttl]. However, the product can still be retrieved by [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct] and [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts].
.google.protobuf.Duration ttl = 17 [(.google.api.field_behavior) = INPUT_ONLY];getTtlOrBuilder in interface ProductOrBuilderpublic String 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];getName in interface ProductOrBuilderpublic 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];getNameBytes in interface ProductOrBuilderpublic Product.Builder setName(String value)
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];value - The name to set.public Product.Builder 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];public Product.Builder setNameBytes(com.google.protobuf.ByteString value)
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];value - The bytes for name to set.public String getId()
Immutable. [Product][google.cloud.retail.v2.Product] identifier, which is the final component of [name][google.cloud.retail.v2.Product.name]. For example, this field is "id_1", if [name][google.cloud.retail.v2.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];getId in interface ProductOrBuilderpublic com.google.protobuf.ByteString getIdBytes()
Immutable. [Product][google.cloud.retail.v2.Product] identifier, which is the final component of [name][google.cloud.retail.v2.Product.name]. For example, this field is "id_1", if [name][google.cloud.retail.v2.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];getIdBytes in interface ProductOrBuilderpublic Product.Builder setId(String value)
Immutable. [Product][google.cloud.retail.v2.Product] identifier, which is the final component of [name][google.cloud.retail.v2.Product.name]. For example, this field is "id_1", if [name][google.cloud.retail.v2.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];value - The id to set.public Product.Builder clearId()
Immutable. [Product][google.cloud.retail.v2.Product] identifier, which is the final component of [name][google.cloud.retail.v2.Product.name]. For example, this field is "id_1", if [name][google.cloud.retail.v2.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];public Product.Builder setIdBytes(com.google.protobuf.ByteString value)
Immutable. [Product][google.cloud.retail.v2.Product] identifier, which is the final component of [name][google.cloud.retail.v2.Product.name]. For example, this field is "id_1", if [name][google.cloud.retail.v2.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];value - The bytes for id to set.public int getTypeValue()
Immutable. The type of the product. Default to [Catalog.product_level_config.ingestion_product_type][google.cloud.retail.v2.ProductLevelConfig.ingestion_product_type] if unset.
.google.cloud.retail.v2.Product.Type type = 3 [(.google.api.field_behavior) = IMMUTABLE];
getTypeValue in interface ProductOrBuilderpublic Product.Builder setTypeValue(int value)
Immutable. The type of the product. Default to [Catalog.product_level_config.ingestion_product_type][google.cloud.retail.v2.ProductLevelConfig.ingestion_product_type] if unset.
.google.cloud.retail.v2.Product.Type type = 3 [(.google.api.field_behavior) = IMMUTABLE];
value - The enum numeric value on the wire for type to set.public Product.Type getType()
Immutable. The type of the product. Default to [Catalog.product_level_config.ingestion_product_type][google.cloud.retail.v2.ProductLevelConfig.ingestion_product_type] if unset.
.google.cloud.retail.v2.Product.Type type = 3 [(.google.api.field_behavior) = IMMUTABLE];
getType in interface ProductOrBuilderpublic Product.Builder setType(Product.Type value)
Immutable. The type of the product. Default to [Catalog.product_level_config.ingestion_product_type][google.cloud.retail.v2.ProductLevelConfig.ingestion_product_type] if unset.
.google.cloud.retail.v2.Product.Type type = 3 [(.google.api.field_behavior) = IMMUTABLE];
value - The type to set.public Product.Builder clearType()
Immutable. The type of the product. Default to [Catalog.product_level_config.ingestion_product_type][google.cloud.retail.v2.ProductLevelConfig.ingestion_product_type] if unset.
.google.cloud.retail.v2.Product.Type type = 3 [(.google.api.field_behavior) = IMMUTABLE];
public String getPrimaryProductId()
Variant group identifier. Must be an [id][google.cloud.retail.v2.Product.id], with the same parent branch with this product. Otherwise, an error is thrown. For [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] [Product][google.cloud.retail.v2.Product]s, this field can only be empty or set to the same value as [id][google.cloud.retail.v2.Product.id]. For VARIANT [Product][google.cloud.retail.v2.Product]s, this field cannot be empty. A maximum of 2,000 products are allowed to share the same [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] [Product][google.cloud.retail.v2.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;getPrimaryProductId in interface ProductOrBuilderpublic com.google.protobuf.ByteString getPrimaryProductIdBytes()
Variant group identifier. Must be an [id][google.cloud.retail.v2.Product.id], with the same parent branch with this product. Otherwise, an error is thrown. For [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] [Product][google.cloud.retail.v2.Product]s, this field can only be empty or set to the same value as [id][google.cloud.retail.v2.Product.id]. For VARIANT [Product][google.cloud.retail.v2.Product]s, this field cannot be empty. A maximum of 2,000 products are allowed to share the same [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] [Product][google.cloud.retail.v2.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;getPrimaryProductIdBytes in interface ProductOrBuilderpublic Product.Builder setPrimaryProductId(String value)
Variant group identifier. Must be an [id][google.cloud.retail.v2.Product.id], with the same parent branch with this product. Otherwise, an error is thrown. For [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] [Product][google.cloud.retail.v2.Product]s, this field can only be empty or set to the same value as [id][google.cloud.retail.v2.Product.id]. For VARIANT [Product][google.cloud.retail.v2.Product]s, this field cannot be empty. A maximum of 2,000 products are allowed to share the same [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] [Product][google.cloud.retail.v2.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;value - The primaryProductId to set.public Product.Builder clearPrimaryProductId()
Variant group identifier. Must be an [id][google.cloud.retail.v2.Product.id], with the same parent branch with this product. Otherwise, an error is thrown. For [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] [Product][google.cloud.retail.v2.Product]s, this field can only be empty or set to the same value as [id][google.cloud.retail.v2.Product.id]. For VARIANT [Product][google.cloud.retail.v2.Product]s, this field cannot be empty. A maximum of 2,000 products are allowed to share the same [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] [Product][google.cloud.retail.v2.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;public Product.Builder setPrimaryProductIdBytes(com.google.protobuf.ByteString value)
Variant group identifier. Must be an [id][google.cloud.retail.v2.Product.id], with the same parent branch with this product. Otherwise, an error is thrown. For [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] [Product][google.cloud.retail.v2.Product]s, this field can only be empty or set to the same value as [id][google.cloud.retail.v2.Product.id]. For VARIANT [Product][google.cloud.retail.v2.Product]s, this field cannot be empty. A maximum of 2,000 products are allowed to share the same [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] [Product][google.cloud.retail.v2.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;value - The bytes for primaryProductId to set.public com.google.protobuf.ProtocolStringList getCollectionMemberIdsList()
The [id][google.cloud.retail.v2.Product.id] of the collection members when [type][google.cloud.retail.v2.Product.type] is [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION]. Non-existent product ids are allowed. The [type][google.cloud.retail.v2.Product.type] of the members must be either [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] or [Type.VARIANT][google.cloud.retail.v2.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;getCollectionMemberIdsList in interface ProductOrBuilderpublic int getCollectionMemberIdsCount()
The [id][google.cloud.retail.v2.Product.id] of the collection members when [type][google.cloud.retail.v2.Product.type] is [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION]. Non-existent product ids are allowed. The [type][google.cloud.retail.v2.Product.type] of the members must be either [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] or [Type.VARIANT][google.cloud.retail.v2.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;getCollectionMemberIdsCount in interface ProductOrBuilderpublic String getCollectionMemberIds(int index)
The [id][google.cloud.retail.v2.Product.id] of the collection members when [type][google.cloud.retail.v2.Product.type] is [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION]. Non-existent product ids are allowed. The [type][google.cloud.retail.v2.Product.type] of the members must be either [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] or [Type.VARIANT][google.cloud.retail.v2.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;getCollectionMemberIds in interface ProductOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getCollectionMemberIdsBytes(int index)
The [id][google.cloud.retail.v2.Product.id] of the collection members when [type][google.cloud.retail.v2.Product.type] is [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION]. Non-existent product ids are allowed. The [type][google.cloud.retail.v2.Product.type] of the members must be either [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] or [Type.VARIANT][google.cloud.retail.v2.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;getCollectionMemberIdsBytes in interface ProductOrBuilderindex - The index of the value to return.public Product.Builder setCollectionMemberIds(int index, String value)
The [id][google.cloud.retail.v2.Product.id] of the collection members when [type][google.cloud.retail.v2.Product.type] is [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION]. Non-existent product ids are allowed. The [type][google.cloud.retail.v2.Product.type] of the members must be either [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] or [Type.VARIANT][google.cloud.retail.v2.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;index - The index to set the value at.value - The collectionMemberIds to set.public Product.Builder addCollectionMemberIds(String value)
The [id][google.cloud.retail.v2.Product.id] of the collection members when [type][google.cloud.retail.v2.Product.type] is [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION]. Non-existent product ids are allowed. The [type][google.cloud.retail.v2.Product.type] of the members must be either [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] or [Type.VARIANT][google.cloud.retail.v2.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;value - The collectionMemberIds to add.public Product.Builder addAllCollectionMemberIds(Iterable<String> values)
The [id][google.cloud.retail.v2.Product.id] of the collection members when [type][google.cloud.retail.v2.Product.type] is [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION]. Non-existent product ids are allowed. The [type][google.cloud.retail.v2.Product.type] of the members must be either [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] or [Type.VARIANT][google.cloud.retail.v2.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;values - The collectionMemberIds to add.public Product.Builder clearCollectionMemberIds()
The [id][google.cloud.retail.v2.Product.id] of the collection members when [type][google.cloud.retail.v2.Product.type] is [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION]. Non-existent product ids are allowed. The [type][google.cloud.retail.v2.Product.type] of the members must be either [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] or [Type.VARIANT][google.cloud.retail.v2.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;public Product.Builder addCollectionMemberIdsBytes(com.google.protobuf.ByteString value)
The [id][google.cloud.retail.v2.Product.id] of the collection members when [type][google.cloud.retail.v2.Product.type] is [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION]. Non-existent product ids are allowed. The [type][google.cloud.retail.v2.Product.type] of the members must be either [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] or [Type.VARIANT][google.cloud.retail.v2.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;value - The bytes of the collectionMemberIds to add.public String 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;getGtin in interface ProductOrBuilderpublic 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;getGtinBytes in interface ProductOrBuilderpublic Product.Builder setGtin(String value)
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;value - The gtin to set.public Product.Builder 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;public Product.Builder setGtinBytes(com.google.protobuf.ByteString value)
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;value - The bytes for gtin to set.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.v2.Product.Type.PRIMARY]
[Product][google.cloud.retail.v2.Product] otherwise an INVALID_ARGUMENT
error is returned.
At most 250 values are allowed per
[Product][google.cloud.retail.v2.Product]. 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;getCategoriesList in interface ProductOrBuilderpublic 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.v2.Product.Type.PRIMARY]
[Product][google.cloud.retail.v2.Product] otherwise an INVALID_ARGUMENT
error is returned.
At most 250 values are allowed per
[Product][google.cloud.retail.v2.Product]. 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;getCategoriesCount in interface ProductOrBuilderpublic String getCategories(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.v2.Product.Type.PRIMARY]
[Product][google.cloud.retail.v2.Product] otherwise an INVALID_ARGUMENT
error is returned.
At most 250 values are allowed per
[Product][google.cloud.retail.v2.Product]. 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;getCategories in interface ProductOrBuilderindex - The index of the element to return.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.v2.Product.Type.PRIMARY]
[Product][google.cloud.retail.v2.Product] otherwise an INVALID_ARGUMENT
error is returned.
At most 250 values are allowed per
[Product][google.cloud.retail.v2.Product]. 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;getCategoriesBytes in interface ProductOrBuilderindex - The index of the value to return.public Product.Builder setCategories(int index, String value)
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.v2.Product.Type.PRIMARY]
[Product][google.cloud.retail.v2.Product] otherwise an INVALID_ARGUMENT
error is returned.
At most 250 values are allowed per
[Product][google.cloud.retail.v2.Product]. 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;index - The index to set the value at.value - The categories to set.public Product.Builder addCategories(String value)
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.v2.Product.Type.PRIMARY]
[Product][google.cloud.retail.v2.Product] otherwise an INVALID_ARGUMENT
error is returned.
At most 250 values are allowed per
[Product][google.cloud.retail.v2.Product]. 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;value - The categories to add.public Product.Builder addAllCategories(Iterable<String> values)
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.v2.Product.Type.PRIMARY]
[Product][google.cloud.retail.v2.Product] otherwise an INVALID_ARGUMENT
error is returned.
At most 250 values are allowed per
[Product][google.cloud.retail.v2.Product]. 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;values - The categories to add.public Product.Builder 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.v2.Product.Type.PRIMARY]
[Product][google.cloud.retail.v2.Product] otherwise an INVALID_ARGUMENT
error is returned.
At most 250 values are allowed per
[Product][google.cloud.retail.v2.Product]. 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;public Product.Builder addCategoriesBytes(com.google.protobuf.ByteString value)
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.v2.Product.Type.PRIMARY]
[Product][google.cloud.retail.v2.Product] otherwise an INVALID_ARGUMENT
error is returned.
At most 250 values are allowed per
[Product][google.cloud.retail.v2.Product]. 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;value - The bytes of the categories to add.public String 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];getTitle in interface ProductOrBuilderpublic 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];getTitleBytes in interface ProductOrBuilderpublic Product.Builder setTitle(String value)
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];value - The title to set.public Product.Builder 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];public Product.Builder setTitleBytes(com.google.protobuf.ByteString value)
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];value - The bytes for title to set.public com.google.protobuf.ProtocolStringList getBrandsList()
The brands of the product. A maximum of 30 brands are allowed. 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;getBrandsList in interface ProductOrBuilderpublic int getBrandsCount()
The brands of the product. A maximum of 30 brands are allowed. 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;getBrandsCount in interface ProductOrBuilderpublic String getBrands(int index)
The brands of the product. A maximum of 30 brands are allowed. 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;getBrands in interface ProductOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getBrandsBytes(int index)
The brands of the product. A maximum of 30 brands are allowed. 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;getBrandsBytes in interface ProductOrBuilderindex - The index of the value to return.public Product.Builder setBrands(int index, String value)
The brands of the product. A maximum of 30 brands are allowed. 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;index - The index to set the value at.value - The brands to set.public Product.Builder addBrands(String value)
The brands of the product. A maximum of 30 brands are allowed. 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;value - The brands to add.public Product.Builder addAllBrands(Iterable<String> values)
The brands of the product. A maximum of 30 brands are allowed. 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;values - The brands to add.public Product.Builder clearBrands()
The brands of the product. A maximum of 30 brands are allowed. 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;public Product.Builder addBrandsBytes(com.google.protobuf.ByteString value)
The brands of the product. A maximum of 30 brands are allowed. 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;value - The bytes of the brands to add.public String 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;getDescription in interface ProductOrBuilderpublic 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;getDescriptionBytes in interface ProductOrBuilderpublic Product.Builder setDescription(String value)
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;value - The description to set.public Product.Builder 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;public Product.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
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;value - The bytes for description to set.public String 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.v2.Product] can include text in different languages, but duplicating [Product][google.cloud.retail.v2.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;getLanguageCode in interface ProductOrBuilderpublic 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.v2.Product] can include text in different languages, but duplicating [Product][google.cloud.retail.v2.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;getLanguageCodeBytes in interface ProductOrBuilderpublic Product.Builder setLanguageCode(String value)
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.v2.Product] can include text in different languages, but duplicating [Product][google.cloud.retail.v2.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;value - The languageCode to set.public Product.Builder 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.v2.Product] can include text in different languages, but duplicating [Product][google.cloud.retail.v2.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;public Product.Builder setLanguageCodeBytes(com.google.protobuf.ByteString value)
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.v2.Product] can include text in different languages, but duplicating [Product][google.cloud.retail.v2.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;value - The bytes for languageCode to set.public int getAttributesCount()
ProductOrBuilder
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.v2.CustomAttribute> attributes = 12;getAttributesCount in interface ProductOrBuilderpublic boolean containsAttributes(String key)
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.v2.CustomAttribute> attributes = 12;containsAttributes in interface ProductOrBuilder@Deprecated public Map<String,CustomAttribute> getAttributes()
getAttributesMap() instead.getAttributes in interface ProductOrBuilderpublic Map<String,CustomAttribute> 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.v2.CustomAttribute> attributes = 12;getAttributesMap in interface ProductOrBuilderpublic CustomAttribute getAttributesOrDefault(String key, CustomAttribute defaultValue)
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.v2.CustomAttribute> attributes = 12;getAttributesOrDefault in interface ProductOrBuilderpublic CustomAttribute getAttributesOrThrow(String key)
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.v2.CustomAttribute> attributes = 12;getAttributesOrThrow in interface ProductOrBuilderpublic Product.Builder clearAttributes()
public Product.Builder removeAttributes(String key)
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.v2.CustomAttribute> attributes = 12;@Deprecated public Map<String,CustomAttribute> getMutableAttributes()
public Product.Builder putAttributes(String key, CustomAttribute value)
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.v2.CustomAttribute> attributes = 12;public Product.Builder putAllAttributes(Map<String,CustomAttribute> values)
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.v2.CustomAttribute> attributes = 12;public com.google.protobuf.ProtocolStringList getTagsList()
Custom tags associated with the product. At most 250 values are allowed per [Product][google.cloud.retail.v2.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.v2.PredictRequest.filter]. Corresponding properties: Google Merchant Center property [custom_label_0–4](https://support.google.com/merchants/answer/6324473).
repeated string tags = 13;getTagsList in interface ProductOrBuilderpublic int getTagsCount()
Custom tags associated with the product. At most 250 values are allowed per [Product][google.cloud.retail.v2.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.v2.PredictRequest.filter]. Corresponding properties: Google Merchant Center property [custom_label_0–4](https://support.google.com/merchants/answer/6324473).
repeated string tags = 13;getTagsCount in interface ProductOrBuilderpublic String getTags(int index)
Custom tags associated with the product. At most 250 values are allowed per [Product][google.cloud.retail.v2.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.v2.PredictRequest.filter]. Corresponding properties: Google Merchant Center property [custom_label_0–4](https://support.google.com/merchants/answer/6324473).
repeated string tags = 13;getTags in interface ProductOrBuilderindex - The index of the element to return.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.v2.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.v2.PredictRequest.filter]. Corresponding properties: Google Merchant Center property [custom_label_0–4](https://support.google.com/merchants/answer/6324473).
repeated string tags = 13;getTagsBytes in interface ProductOrBuilderindex - The index of the value to return.public Product.Builder setTags(int index, String value)
Custom tags associated with the product. At most 250 values are allowed per [Product][google.cloud.retail.v2.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.v2.PredictRequest.filter]. Corresponding properties: Google Merchant Center property [custom_label_0–4](https://support.google.com/merchants/answer/6324473).
repeated string tags = 13;index - The index to set the value at.value - The tags to set.public Product.Builder addTags(String value)
Custom tags associated with the product. At most 250 values are allowed per [Product][google.cloud.retail.v2.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.v2.PredictRequest.filter]. Corresponding properties: Google Merchant Center property [custom_label_0–4](https://support.google.com/merchants/answer/6324473).
repeated string tags = 13;value - The tags to add.public Product.Builder addAllTags(Iterable<String> values)
Custom tags associated with the product. At most 250 values are allowed per [Product][google.cloud.retail.v2.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.v2.PredictRequest.filter]. Corresponding properties: Google Merchant Center property [custom_label_0–4](https://support.google.com/merchants/answer/6324473).
repeated string tags = 13;values - The tags to add.public Product.Builder clearTags()
Custom tags associated with the product. At most 250 values are allowed per [Product][google.cloud.retail.v2.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.v2.PredictRequest.filter]. Corresponding properties: Google Merchant Center property [custom_label_0–4](https://support.google.com/merchants/answer/6324473).
repeated string tags = 13;public Product.Builder addTagsBytes(com.google.protobuf.ByteString value)
Custom tags associated with the product. At most 250 values are allowed per [Product][google.cloud.retail.v2.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.v2.PredictRequest.filter]. Corresponding properties: Google Merchant Center property [custom_label_0–4](https://support.google.com/merchants/answer/6324473).
repeated string tags = 13;value - The bytes of the tags to add.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.v2.PriceInfo price_info = 14;hasPriceInfo in interface ProductOrBuilderpublic PriceInfo getPriceInfo()
Product price and cost information. Corresponding properties: Google Merchant Center property [price](https://support.google.com/merchants/answer/6324371).
.google.cloud.retail.v2.PriceInfo price_info = 14;getPriceInfo in interface ProductOrBuilderpublic Product.Builder setPriceInfo(PriceInfo value)
Product price and cost information. Corresponding properties: Google Merchant Center property [price](https://support.google.com/merchants/answer/6324371).
.google.cloud.retail.v2.PriceInfo price_info = 14;public Product.Builder setPriceInfo(PriceInfo.Builder builderForValue)
Product price and cost information. Corresponding properties: Google Merchant Center property [price](https://support.google.com/merchants/answer/6324371).
.google.cloud.retail.v2.PriceInfo price_info = 14;public Product.Builder mergePriceInfo(PriceInfo value)
Product price and cost information. Corresponding properties: Google Merchant Center property [price](https://support.google.com/merchants/answer/6324371).
.google.cloud.retail.v2.PriceInfo price_info = 14;public Product.Builder clearPriceInfo()
Product price and cost information. Corresponding properties: Google Merchant Center property [price](https://support.google.com/merchants/answer/6324371).
.google.cloud.retail.v2.PriceInfo price_info = 14;public PriceInfo.Builder getPriceInfoBuilder()
Product price and cost information. Corresponding properties: Google Merchant Center property [price](https://support.google.com/merchants/answer/6324371).
.google.cloud.retail.v2.PriceInfo price_info = 14;public PriceInfoOrBuilder getPriceInfoOrBuilder()
Product price and cost information. Corresponding properties: Google Merchant Center property [price](https://support.google.com/merchants/answer/6324371).
.google.cloud.retail.v2.PriceInfo price_info = 14;getPriceInfoOrBuilder in interface ProductOrBuilderpublic boolean hasRating()
The rating of this product.
.google.cloud.retail.v2.Rating rating = 15;hasRating in interface ProductOrBuilderpublic Rating getRating()
The rating of this product.
.google.cloud.retail.v2.Rating rating = 15;getRating in interface ProductOrBuilderpublic Product.Builder setRating(Rating value)
The rating of this product.
.google.cloud.retail.v2.Rating rating = 15;public Product.Builder setRating(Rating.Builder builderForValue)
The rating of this product.
.google.cloud.retail.v2.Rating rating = 15;public Product.Builder mergeRating(Rating value)
The rating of this product.
.google.cloud.retail.v2.Rating rating = 15;public Product.Builder clearRating()
The rating of this product.
.google.cloud.retail.v2.Rating rating = 15;public Rating.Builder getRatingBuilder()
The rating of this product.
.google.cloud.retail.v2.Rating rating = 15;public RatingOrBuilder getRatingOrBuilder()
The rating of this product.
.google.cloud.retail.v2.Rating rating = 15;getRatingOrBuilder in interface ProductOrBuilderpublic boolean hasAvailableTime()
The timestamp when this [Product][google.cloud.retail.v2.Product] becomes available for [SearchService.Search][google.cloud.retail.v2.SearchService.Search]. Note that this is only applicable to [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION], and ignored for [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT].
.google.protobuf.Timestamp available_time = 18;hasAvailableTime in interface ProductOrBuilderpublic com.google.protobuf.Timestamp getAvailableTime()
The timestamp when this [Product][google.cloud.retail.v2.Product] becomes available for [SearchService.Search][google.cloud.retail.v2.SearchService.Search]. Note that this is only applicable to [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION], and ignored for [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT].
.google.protobuf.Timestamp available_time = 18;getAvailableTime in interface ProductOrBuilderpublic Product.Builder setAvailableTime(com.google.protobuf.Timestamp value)
The timestamp when this [Product][google.cloud.retail.v2.Product] becomes available for [SearchService.Search][google.cloud.retail.v2.SearchService.Search]. Note that this is only applicable to [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION], and ignored for [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT].
.google.protobuf.Timestamp available_time = 18;public Product.Builder setAvailableTime(com.google.protobuf.Timestamp.Builder builderForValue)
The timestamp when this [Product][google.cloud.retail.v2.Product] becomes available for [SearchService.Search][google.cloud.retail.v2.SearchService.Search]. Note that this is only applicable to [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION], and ignored for [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT].
.google.protobuf.Timestamp available_time = 18;public Product.Builder mergeAvailableTime(com.google.protobuf.Timestamp value)
The timestamp when this [Product][google.cloud.retail.v2.Product] becomes available for [SearchService.Search][google.cloud.retail.v2.SearchService.Search]. Note that this is only applicable to [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION], and ignored for [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT].
.google.protobuf.Timestamp available_time = 18;public Product.Builder clearAvailableTime()
The timestamp when this [Product][google.cloud.retail.v2.Product] becomes available for [SearchService.Search][google.cloud.retail.v2.SearchService.Search]. Note that this is only applicable to [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION], and ignored for [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT].
.google.protobuf.Timestamp available_time = 18;public com.google.protobuf.Timestamp.Builder getAvailableTimeBuilder()
The timestamp when this [Product][google.cloud.retail.v2.Product] becomes available for [SearchService.Search][google.cloud.retail.v2.SearchService.Search]. Note that this is only applicable to [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION], and ignored for [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT].
.google.protobuf.Timestamp available_time = 18;public com.google.protobuf.TimestampOrBuilder getAvailableTimeOrBuilder()
The timestamp when this [Product][google.cloud.retail.v2.Product] becomes available for [SearchService.Search][google.cloud.retail.v2.SearchService.Search]. Note that this is only applicable to [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION], and ignored for [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT].
.google.protobuf.Timestamp available_time = 18;getAvailableTimeOrBuilder in interface ProductOrBuilderpublic int getAvailabilityValue()
The online availability of the [Product][google.cloud.retail.v2.Product]. Default to [Availability.IN_STOCK][google.cloud.retail.v2.Product.Availability.IN_STOCK]. 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.v2.Product.Availability availability = 19;getAvailabilityValue in interface ProductOrBuilderpublic Product.Builder setAvailabilityValue(int value)
The online availability of the [Product][google.cloud.retail.v2.Product]. Default to [Availability.IN_STOCK][google.cloud.retail.v2.Product.Availability.IN_STOCK]. 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.v2.Product.Availability availability = 19;value - The enum numeric value on the wire for availability to set.public Product.Availability getAvailability()
The online availability of the [Product][google.cloud.retail.v2.Product]. Default to [Availability.IN_STOCK][google.cloud.retail.v2.Product.Availability.IN_STOCK]. 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.v2.Product.Availability availability = 19;getAvailability in interface ProductOrBuilderpublic Product.Builder setAvailability(Product.Availability value)
The online availability of the [Product][google.cloud.retail.v2.Product]. Default to [Availability.IN_STOCK][google.cloud.retail.v2.Product.Availability.IN_STOCK]. 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.v2.Product.Availability availability = 19;value - The availability to set.public Product.Builder clearAvailability()
The online availability of the [Product][google.cloud.retail.v2.Product]. Default to [Availability.IN_STOCK][google.cloud.retail.v2.Product.Availability.IN_STOCK]. 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.v2.Product.Availability availability = 19;public boolean hasAvailableQuantity()
The available quantity of the item.
.google.protobuf.Int32Value available_quantity = 20;hasAvailableQuantity in interface ProductOrBuilderpublic com.google.protobuf.Int32Value getAvailableQuantity()
The available quantity of the item.
.google.protobuf.Int32Value available_quantity = 20;getAvailableQuantity in interface ProductOrBuilderpublic Product.Builder setAvailableQuantity(com.google.protobuf.Int32Value value)
The available quantity of the item.
.google.protobuf.Int32Value available_quantity = 20;public Product.Builder setAvailableQuantity(com.google.protobuf.Int32Value.Builder builderForValue)
The available quantity of the item.
.google.protobuf.Int32Value available_quantity = 20;public Product.Builder mergeAvailableQuantity(com.google.protobuf.Int32Value value)
The available quantity of the item.
.google.protobuf.Int32Value available_quantity = 20;public Product.Builder clearAvailableQuantity()
The available quantity of the item.
.google.protobuf.Int32Value available_quantity = 20;public com.google.protobuf.Int32Value.Builder getAvailableQuantityBuilder()
The available quantity of the item.
.google.protobuf.Int32Value available_quantity = 20;public com.google.protobuf.Int32ValueOrBuilder getAvailableQuantityOrBuilder()
The available quantity of the item.
.google.protobuf.Int32Value available_quantity = 20;getAvailableQuantityOrBuilder in interface ProductOrBuilderpublic List<FulfillmentInfo> 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.v2.FulfillmentInfo.type]. Otherwise, an INVALID_ARGUMENT error is returned.
repeated .google.cloud.retail.v2.FulfillmentInfo fulfillment_info = 21;getFulfillmentInfoList in interface ProductOrBuilderpublic 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.v2.FulfillmentInfo.type]. Otherwise, an INVALID_ARGUMENT error is returned.
repeated .google.cloud.retail.v2.FulfillmentInfo fulfillment_info = 21;getFulfillmentInfoCount in interface ProductOrBuilderpublic FulfillmentInfo getFulfillmentInfo(int index)
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.v2.FulfillmentInfo.type]. Otherwise, an INVALID_ARGUMENT error is returned.
repeated .google.cloud.retail.v2.FulfillmentInfo fulfillment_info = 21;getFulfillmentInfo in interface ProductOrBuilderpublic Product.Builder setFulfillmentInfo(int index, FulfillmentInfo value)
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.v2.FulfillmentInfo.type]. Otherwise, an INVALID_ARGUMENT error is returned.
repeated .google.cloud.retail.v2.FulfillmentInfo fulfillment_info = 21;public Product.Builder setFulfillmentInfo(int index, FulfillmentInfo.Builder builderForValue)
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.v2.FulfillmentInfo.type]. Otherwise, an INVALID_ARGUMENT error is returned.
repeated .google.cloud.retail.v2.FulfillmentInfo fulfillment_info = 21;public Product.Builder addFulfillmentInfo(FulfillmentInfo value)
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.v2.FulfillmentInfo.type]. Otherwise, an INVALID_ARGUMENT error is returned.
repeated .google.cloud.retail.v2.FulfillmentInfo fulfillment_info = 21;public Product.Builder addFulfillmentInfo(int index, FulfillmentInfo value)
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.v2.FulfillmentInfo.type]. Otherwise, an INVALID_ARGUMENT error is returned.
repeated .google.cloud.retail.v2.FulfillmentInfo fulfillment_info = 21;public Product.Builder addFulfillmentInfo(FulfillmentInfo.Builder builderForValue)
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.v2.FulfillmentInfo.type]. Otherwise, an INVALID_ARGUMENT error is returned.
repeated .google.cloud.retail.v2.FulfillmentInfo fulfillment_info = 21;public Product.Builder addFulfillmentInfo(int index, FulfillmentInfo.Builder builderForValue)
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.v2.FulfillmentInfo.type]. Otherwise, an INVALID_ARGUMENT error is returned.
repeated .google.cloud.retail.v2.FulfillmentInfo fulfillment_info = 21;public Product.Builder addAllFulfillmentInfo(Iterable<? extends FulfillmentInfo> values)
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.v2.FulfillmentInfo.type]. Otherwise, an INVALID_ARGUMENT error is returned.
repeated .google.cloud.retail.v2.FulfillmentInfo fulfillment_info = 21;public Product.Builder 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.v2.FulfillmentInfo.type]. Otherwise, an INVALID_ARGUMENT error is returned.
repeated .google.cloud.retail.v2.FulfillmentInfo fulfillment_info = 21;public Product.Builder removeFulfillmentInfo(int index)
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.v2.FulfillmentInfo.type]. Otherwise, an INVALID_ARGUMENT error is returned.
repeated .google.cloud.retail.v2.FulfillmentInfo fulfillment_info = 21;public FulfillmentInfo.Builder getFulfillmentInfoBuilder(int index)
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.v2.FulfillmentInfo.type]. Otherwise, an INVALID_ARGUMENT error is returned.
repeated .google.cloud.retail.v2.FulfillmentInfo fulfillment_info = 21;public FulfillmentInfoOrBuilder getFulfillmentInfoOrBuilder(int index)
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.v2.FulfillmentInfo.type]. Otherwise, an INVALID_ARGUMENT error is returned.
repeated .google.cloud.retail.v2.FulfillmentInfo fulfillment_info = 21;getFulfillmentInfoOrBuilder in interface ProductOrBuilderpublic List<? extends FulfillmentInfoOrBuilder> 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.v2.FulfillmentInfo.type]. Otherwise, an INVALID_ARGUMENT error is returned.
repeated .google.cloud.retail.v2.FulfillmentInfo fulfillment_info = 21;getFulfillmentInfoOrBuilderList in interface ProductOrBuilderpublic FulfillmentInfo.Builder 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.v2.FulfillmentInfo.type]. Otherwise, an INVALID_ARGUMENT error is returned.
repeated .google.cloud.retail.v2.FulfillmentInfo fulfillment_info = 21;public FulfillmentInfo.Builder addFulfillmentInfoBuilder(int index)
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.v2.FulfillmentInfo.type]. Otherwise, an INVALID_ARGUMENT error is returned.
repeated .google.cloud.retail.v2.FulfillmentInfo fulfillment_info = 21;public List<FulfillmentInfo.Builder> 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.v2.FulfillmentInfo.type]. Otherwise, an INVALID_ARGUMENT error is returned.
repeated .google.cloud.retail.v2.FulfillmentInfo fulfillment_info = 21;public String 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;getUri in interface ProductOrBuilderpublic 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;getUriBytes in interface ProductOrBuilderpublic Product.Builder setUri(String value)
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;value - The uri to set.public Product.Builder 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;public Product.Builder setUriBytes(com.google.protobuf.ByteString value)
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;value - The bytes for uri to set.public List<Image> 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.v2.Image images = 23;getImagesList in interface ProductOrBuilderpublic 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.v2.Image images = 23;getImagesCount in interface ProductOrBuilderpublic Image getImages(int index)
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.v2.Image images = 23;getImages in interface ProductOrBuilderpublic Product.Builder setImages(int index, Image value)
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.v2.Image images = 23;public Product.Builder setImages(int index, Image.Builder builderForValue)
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.v2.Image images = 23;public Product.Builder addImages(Image value)
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.v2.Image images = 23;public Product.Builder addImages(int index, Image value)
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.v2.Image images = 23;public Product.Builder addImages(Image.Builder builderForValue)
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.v2.Image images = 23;public Product.Builder addImages(int index, Image.Builder builderForValue)
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.v2.Image images = 23;public Product.Builder addAllImages(Iterable<? extends Image> values)
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.v2.Image images = 23;public Product.Builder 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.v2.Image images = 23;public Product.Builder removeImages(int index)
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.v2.Image images = 23;public Image.Builder getImagesBuilder(int index)
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.v2.Image images = 23;public ImageOrBuilder getImagesOrBuilder(int index)
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.v2.Image images = 23;getImagesOrBuilder in interface ProductOrBuilderpublic List<? extends ImageOrBuilder> 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.v2.Image images = 23;getImagesOrBuilderList in interface ProductOrBuilderpublic Image.Builder 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.v2.Image images = 23;public Image.Builder addImagesBuilder(int index)
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.v2.Image images = 23;public List<Image.Builder> 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.v2.Image images = 23;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.v2.Audience audience = 24;hasAudience in interface ProductOrBuilderpublic Audience getAudience()
The target group associated with a given audience (e.g. male, veterans, car owners, musicians, etc.) of the product.
.google.cloud.retail.v2.Audience audience = 24;getAudience in interface ProductOrBuilderpublic Product.Builder setAudience(Audience value)
The target group associated with a given audience (e.g. male, veterans, car owners, musicians, etc.) of the product.
.google.cloud.retail.v2.Audience audience = 24;public Product.Builder setAudience(Audience.Builder builderForValue)
The target group associated with a given audience (e.g. male, veterans, car owners, musicians, etc.) of the product.
.google.cloud.retail.v2.Audience audience = 24;public Product.Builder mergeAudience(Audience value)
The target group associated with a given audience (e.g. male, veterans, car owners, musicians, etc.) of the product.
.google.cloud.retail.v2.Audience audience = 24;public Product.Builder clearAudience()
The target group associated with a given audience (e.g. male, veterans, car owners, musicians, etc.) of the product.
.google.cloud.retail.v2.Audience audience = 24;public Audience.Builder getAudienceBuilder()
The target group associated with a given audience (e.g. male, veterans, car owners, musicians, etc.) of the product.
.google.cloud.retail.v2.Audience audience = 24;public AudienceOrBuilder getAudienceOrBuilder()
The target group associated with a given audience (e.g. male, veterans, car owners, musicians, etc.) of the product.
.google.cloud.retail.v2.Audience audience = 24;getAudienceOrBuilder in interface ProductOrBuilderpublic 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.v2.ColorInfo color_info = 25;hasColorInfo in interface ProductOrBuilderpublic ColorInfo 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.v2.ColorInfo color_info = 25;getColorInfo in interface ProductOrBuilderpublic Product.Builder setColorInfo(ColorInfo value)
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.v2.ColorInfo color_info = 25;public Product.Builder setColorInfo(ColorInfo.Builder builderForValue)
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.v2.ColorInfo color_info = 25;public Product.Builder mergeColorInfo(ColorInfo value)
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.v2.ColorInfo color_info = 25;public Product.Builder 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.v2.ColorInfo color_info = 25;public ColorInfo.Builder 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.v2.ColorInfo color_info = 25;public ColorInfoOrBuilder 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.v2.ColorInfo color_info = 25;getColorInfoOrBuilder in interface ProductOrBuilderpublic 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.v2.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;getSizesList in interface ProductOrBuilderpublic 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.v2.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;getSizesCount in interface ProductOrBuilderpublic String getSizes(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.v2.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;getSizes in interface ProductOrBuilderindex - The index of the element to return.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.v2.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;getSizesBytes in interface ProductOrBuilderindex - The index of the value to return.public Product.Builder setSizes(int index, String value)
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.v2.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;index - The index to set the value at.value - The sizes to set.public Product.Builder addSizes(String value)
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.v2.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;value - The sizes to add.public Product.Builder addAllSizes(Iterable<String> values)
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.v2.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;values - The sizes to add.public Product.Builder 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.v2.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;public Product.Builder addSizesBytes(com.google.protobuf.ByteString value)
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.v2.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;value - The bytes of the sizes to add.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;getMaterialsList in interface ProductOrBuilderpublic 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;getMaterialsCount in interface ProductOrBuilderpublic String getMaterials(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;getMaterials in interface ProductOrBuilderindex - The index of the element to return.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;getMaterialsBytes in interface ProductOrBuilderindex - The index of the value to return.public Product.Builder setMaterials(int index, String value)
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;index - The index to set the value at.value - The materials to set.public Product.Builder addMaterials(String value)
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;value - The materials to add.public Product.Builder addAllMaterials(Iterable<String> values)
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;values - The materials to add.public Product.Builder 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;public Product.Builder addMaterialsBytes(com.google.protobuf.ByteString value)
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;value - The bytes of the materials to add.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.v2.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;getPatternsList in interface ProductOrBuilderpublic 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.v2.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;getPatternsCount in interface ProductOrBuilderpublic String getPatterns(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.v2.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;getPatterns in interface ProductOrBuilderindex - The index of the element to return.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.v2.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;getPatternsBytes in interface ProductOrBuilderindex - The index of the value to return.public Product.Builder setPatterns(int index, String value)
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.v2.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;index - The index to set the value at.value - The patterns to set.public Product.Builder addPatterns(String value)
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.v2.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;value - The patterns to add.public Product.Builder addAllPatterns(Iterable<String> values)
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.v2.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;values - The patterns to add.public Product.Builder 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.v2.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;public Product.Builder addPatternsBytes(com.google.protobuf.ByteString value)
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.v2.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;value - The bytes of the patterns to add.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.v2.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;getConditionsList in interface ProductOrBuilderpublic 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.v2.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;getConditionsCount in interface ProductOrBuilderpublic String getConditions(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.v2.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;getConditions in interface ProductOrBuilderindex - The index of the element to return.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.v2.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;getConditionsBytes in interface ProductOrBuilderindex - The index of the value to return.public Product.Builder setConditions(int index, String value)
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.v2.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;index - The index to set the value at.value - The conditions to set.public Product.Builder addConditions(String value)
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.v2.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;value - The conditions to add.public Product.Builder addAllConditions(Iterable<String> values)
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.v2.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;values - The conditions to add.public Product.Builder 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.v2.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;public Product.Builder addConditionsBytes(com.google.protobuf.ByteString value)
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.v2.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;value - The bytes of the conditions to add.public List<Promotion> getPromotionsList()
The promotions applied to the product. A maximum of 10 values are allowed per [Product][google.cloud.retail.v2.Product]. Only [Promotion.promotion_id][google.cloud.retail.v2.Promotion.promotion_id] will be used, other fields will be ignored if set.
repeated .google.cloud.retail.v2.Promotion promotions = 34;getPromotionsList in interface ProductOrBuilderpublic int getPromotionsCount()
The promotions applied to the product. A maximum of 10 values are allowed per [Product][google.cloud.retail.v2.Product]. Only [Promotion.promotion_id][google.cloud.retail.v2.Promotion.promotion_id] will be used, other fields will be ignored if set.
repeated .google.cloud.retail.v2.Promotion promotions = 34;getPromotionsCount in interface ProductOrBuilderpublic Promotion getPromotions(int index)
The promotions applied to the product. A maximum of 10 values are allowed per [Product][google.cloud.retail.v2.Product]. Only [Promotion.promotion_id][google.cloud.retail.v2.Promotion.promotion_id] will be used, other fields will be ignored if set.
repeated .google.cloud.retail.v2.Promotion promotions = 34;getPromotions in interface ProductOrBuilderpublic Product.Builder setPromotions(int index, Promotion value)
The promotions applied to the product. A maximum of 10 values are allowed per [Product][google.cloud.retail.v2.Product]. Only [Promotion.promotion_id][google.cloud.retail.v2.Promotion.promotion_id] will be used, other fields will be ignored if set.
repeated .google.cloud.retail.v2.Promotion promotions = 34;public Product.Builder setPromotions(int index, Promotion.Builder builderForValue)
The promotions applied to the product. A maximum of 10 values are allowed per [Product][google.cloud.retail.v2.Product]. Only [Promotion.promotion_id][google.cloud.retail.v2.Promotion.promotion_id] will be used, other fields will be ignored if set.
repeated .google.cloud.retail.v2.Promotion promotions = 34;public Product.Builder addPromotions(Promotion value)
The promotions applied to the product. A maximum of 10 values are allowed per [Product][google.cloud.retail.v2.Product]. Only [Promotion.promotion_id][google.cloud.retail.v2.Promotion.promotion_id] will be used, other fields will be ignored if set.
repeated .google.cloud.retail.v2.Promotion promotions = 34;public Product.Builder addPromotions(int index, Promotion value)
The promotions applied to the product. A maximum of 10 values are allowed per [Product][google.cloud.retail.v2.Product]. Only [Promotion.promotion_id][google.cloud.retail.v2.Promotion.promotion_id] will be used, other fields will be ignored if set.
repeated .google.cloud.retail.v2.Promotion promotions = 34;public Product.Builder addPromotions(Promotion.Builder builderForValue)
The promotions applied to the product. A maximum of 10 values are allowed per [Product][google.cloud.retail.v2.Product]. Only [Promotion.promotion_id][google.cloud.retail.v2.Promotion.promotion_id] will be used, other fields will be ignored if set.
repeated .google.cloud.retail.v2.Promotion promotions = 34;public Product.Builder addPromotions(int index, Promotion.Builder builderForValue)
The promotions applied to the product. A maximum of 10 values are allowed per [Product][google.cloud.retail.v2.Product]. Only [Promotion.promotion_id][google.cloud.retail.v2.Promotion.promotion_id] will be used, other fields will be ignored if set.
repeated .google.cloud.retail.v2.Promotion promotions = 34;public Product.Builder addAllPromotions(Iterable<? extends Promotion> values)
The promotions applied to the product. A maximum of 10 values are allowed per [Product][google.cloud.retail.v2.Product]. Only [Promotion.promotion_id][google.cloud.retail.v2.Promotion.promotion_id] will be used, other fields will be ignored if set.
repeated .google.cloud.retail.v2.Promotion promotions = 34;public Product.Builder clearPromotions()
The promotions applied to the product. A maximum of 10 values are allowed per [Product][google.cloud.retail.v2.Product]. Only [Promotion.promotion_id][google.cloud.retail.v2.Promotion.promotion_id] will be used, other fields will be ignored if set.
repeated .google.cloud.retail.v2.Promotion promotions = 34;public Product.Builder removePromotions(int index)
The promotions applied to the product. A maximum of 10 values are allowed per [Product][google.cloud.retail.v2.Product]. Only [Promotion.promotion_id][google.cloud.retail.v2.Promotion.promotion_id] will be used, other fields will be ignored if set.
repeated .google.cloud.retail.v2.Promotion promotions = 34;public Promotion.Builder getPromotionsBuilder(int index)
The promotions applied to the product. A maximum of 10 values are allowed per [Product][google.cloud.retail.v2.Product]. Only [Promotion.promotion_id][google.cloud.retail.v2.Promotion.promotion_id] will be used, other fields will be ignored if set.
repeated .google.cloud.retail.v2.Promotion promotions = 34;public PromotionOrBuilder getPromotionsOrBuilder(int index)
The promotions applied to the product. A maximum of 10 values are allowed per [Product][google.cloud.retail.v2.Product]. Only [Promotion.promotion_id][google.cloud.retail.v2.Promotion.promotion_id] will be used, other fields will be ignored if set.
repeated .google.cloud.retail.v2.Promotion promotions = 34;getPromotionsOrBuilder in interface ProductOrBuilderpublic List<? extends PromotionOrBuilder> getPromotionsOrBuilderList()
The promotions applied to the product. A maximum of 10 values are allowed per [Product][google.cloud.retail.v2.Product]. Only [Promotion.promotion_id][google.cloud.retail.v2.Promotion.promotion_id] will be used, other fields will be ignored if set.
repeated .google.cloud.retail.v2.Promotion promotions = 34;getPromotionsOrBuilderList in interface ProductOrBuilderpublic Promotion.Builder addPromotionsBuilder()
The promotions applied to the product. A maximum of 10 values are allowed per [Product][google.cloud.retail.v2.Product]. Only [Promotion.promotion_id][google.cloud.retail.v2.Promotion.promotion_id] will be used, other fields will be ignored if set.
repeated .google.cloud.retail.v2.Promotion promotions = 34;public Promotion.Builder addPromotionsBuilder(int index)
The promotions applied to the product. A maximum of 10 values are allowed per [Product][google.cloud.retail.v2.Product]. Only [Promotion.promotion_id][google.cloud.retail.v2.Promotion.promotion_id] will be used, other fields will be ignored if set.
repeated .google.cloud.retail.v2.Promotion promotions = 34;public List<Promotion.Builder> getPromotionsBuilderList()
The promotions applied to the product. A maximum of 10 values are allowed per [Product][google.cloud.retail.v2.Product]. Only [Promotion.promotion_id][google.cloud.retail.v2.Promotion.promotion_id] will be used, other fields will be ignored if set.
repeated .google.cloud.retail.v2.Promotion promotions = 34;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.v2.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;hasPublishTime in interface ProductOrBuilderpublic 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.v2.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;getPublishTime in interface ProductOrBuilderpublic Product.Builder 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. Note that this field is different from [available_time][google.cloud.retail.v2.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;public Product.Builder 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. Note that this field is different from [available_time][google.cloud.retail.v2.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;public Product.Builder 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. Note that this field is different from [available_time][google.cloud.retail.v2.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;public Product.Builder 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.v2.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;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.v2.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;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.v2.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 in interface ProductOrBuilder@Deprecated public boolean hasRetrievableFields()
Indicates which fields in the [Product][google.cloud.retail.v2.Product]s are returned in [SearchResponse][google.cloud.retail.v2.SearchResponse]. Supported fields for all [type][google.cloud.retail.v2.Product.type]s: * [audience][google.cloud.retail.v2.Product.audience] * [availability][google.cloud.retail.v2.Product.availability] * [brands][google.cloud.retail.v2.Product.brands] * [color_info][google.cloud.retail.v2.Product.color_info] * [conditions][google.cloud.retail.v2.Product.conditions] * [gtin][google.cloud.retail.v2.Product.gtin] * [materials][google.cloud.retail.v2.Product.materials] * [name][google.cloud.retail.v2.Product.name] * [patterns][google.cloud.retail.v2.Product.patterns] * [price_info][google.cloud.retail.v2.Product.price_info] * [rating][google.cloud.retail.v2.Product.rating] * [sizes][google.cloud.retail.v2.Product.sizes] * [title][google.cloud.retail.v2.Product.title] * [uri][google.cloud.retail.v2.Product.uri] Supported fields only for [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION]: * [categories][google.cloud.retail.v2.Product.categories] * [description][google.cloud.retail.v2.Product.description] * [images][google.cloud.retail.v2.Product.images] Supported fields only for [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT]: * Only the first image in [images][google.cloud.retail.v2.Product.images] To mark [attributes][google.cloud.retail.v2.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.v2.Product.attributes]. For [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION], the following fields are always returned in [SearchResponse][google.cloud.retail.v2.SearchResponse] by default: * [name][google.cloud.retail.v2.Product.name] For [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT], the following fields are always returned in by default: * [name][google.cloud.retail.v2.Product.name] * [color_info][google.cloud.retail.v2.Product.color_info] The maximum number of paths is 30. Otherwise, an INVALID_ARGUMENT error is returned. Note: Returning more fields in [SearchResponse][google.cloud.retail.v2.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];hasRetrievableFields in interface ProductOrBuilder@Deprecated public com.google.protobuf.FieldMask getRetrievableFields()
Indicates which fields in the [Product][google.cloud.retail.v2.Product]s are returned in [SearchResponse][google.cloud.retail.v2.SearchResponse]. Supported fields for all [type][google.cloud.retail.v2.Product.type]s: * [audience][google.cloud.retail.v2.Product.audience] * [availability][google.cloud.retail.v2.Product.availability] * [brands][google.cloud.retail.v2.Product.brands] * [color_info][google.cloud.retail.v2.Product.color_info] * [conditions][google.cloud.retail.v2.Product.conditions] * [gtin][google.cloud.retail.v2.Product.gtin] * [materials][google.cloud.retail.v2.Product.materials] * [name][google.cloud.retail.v2.Product.name] * [patterns][google.cloud.retail.v2.Product.patterns] * [price_info][google.cloud.retail.v2.Product.price_info] * [rating][google.cloud.retail.v2.Product.rating] * [sizes][google.cloud.retail.v2.Product.sizes] * [title][google.cloud.retail.v2.Product.title] * [uri][google.cloud.retail.v2.Product.uri] Supported fields only for [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION]: * [categories][google.cloud.retail.v2.Product.categories] * [description][google.cloud.retail.v2.Product.description] * [images][google.cloud.retail.v2.Product.images] Supported fields only for [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT]: * Only the first image in [images][google.cloud.retail.v2.Product.images] To mark [attributes][google.cloud.retail.v2.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.v2.Product.attributes]. For [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION], the following fields are always returned in [SearchResponse][google.cloud.retail.v2.SearchResponse] by default: * [name][google.cloud.retail.v2.Product.name] For [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT], the following fields are always returned in by default: * [name][google.cloud.retail.v2.Product.name] * [color_info][google.cloud.retail.v2.Product.color_info] The maximum number of paths is 30. Otherwise, an INVALID_ARGUMENT error is returned. Note: Returning more fields in [SearchResponse][google.cloud.retail.v2.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];getRetrievableFields in interface ProductOrBuilder@Deprecated public Product.Builder setRetrievableFields(com.google.protobuf.FieldMask value)
Indicates which fields in the [Product][google.cloud.retail.v2.Product]s are returned in [SearchResponse][google.cloud.retail.v2.SearchResponse]. Supported fields for all [type][google.cloud.retail.v2.Product.type]s: * [audience][google.cloud.retail.v2.Product.audience] * [availability][google.cloud.retail.v2.Product.availability] * [brands][google.cloud.retail.v2.Product.brands] * [color_info][google.cloud.retail.v2.Product.color_info] * [conditions][google.cloud.retail.v2.Product.conditions] * [gtin][google.cloud.retail.v2.Product.gtin] * [materials][google.cloud.retail.v2.Product.materials] * [name][google.cloud.retail.v2.Product.name] * [patterns][google.cloud.retail.v2.Product.patterns] * [price_info][google.cloud.retail.v2.Product.price_info] * [rating][google.cloud.retail.v2.Product.rating] * [sizes][google.cloud.retail.v2.Product.sizes] * [title][google.cloud.retail.v2.Product.title] * [uri][google.cloud.retail.v2.Product.uri] Supported fields only for [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION]: * [categories][google.cloud.retail.v2.Product.categories] * [description][google.cloud.retail.v2.Product.description] * [images][google.cloud.retail.v2.Product.images] Supported fields only for [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT]: * Only the first image in [images][google.cloud.retail.v2.Product.images] To mark [attributes][google.cloud.retail.v2.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.v2.Product.attributes]. For [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION], the following fields are always returned in [SearchResponse][google.cloud.retail.v2.SearchResponse] by default: * [name][google.cloud.retail.v2.Product.name] For [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT], the following fields are always returned in by default: * [name][google.cloud.retail.v2.Product.name] * [color_info][google.cloud.retail.v2.Product.color_info] The maximum number of paths is 30. Otherwise, an INVALID_ARGUMENT error is returned. Note: Returning more fields in [SearchResponse][google.cloud.retail.v2.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];@Deprecated public Product.Builder setRetrievableFields(com.google.protobuf.FieldMask.Builder builderForValue)
Indicates which fields in the [Product][google.cloud.retail.v2.Product]s are returned in [SearchResponse][google.cloud.retail.v2.SearchResponse]. Supported fields for all [type][google.cloud.retail.v2.Product.type]s: * [audience][google.cloud.retail.v2.Product.audience] * [availability][google.cloud.retail.v2.Product.availability] * [brands][google.cloud.retail.v2.Product.brands] * [color_info][google.cloud.retail.v2.Product.color_info] * [conditions][google.cloud.retail.v2.Product.conditions] * [gtin][google.cloud.retail.v2.Product.gtin] * [materials][google.cloud.retail.v2.Product.materials] * [name][google.cloud.retail.v2.Product.name] * [patterns][google.cloud.retail.v2.Product.patterns] * [price_info][google.cloud.retail.v2.Product.price_info] * [rating][google.cloud.retail.v2.Product.rating] * [sizes][google.cloud.retail.v2.Product.sizes] * [title][google.cloud.retail.v2.Product.title] * [uri][google.cloud.retail.v2.Product.uri] Supported fields only for [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION]: * [categories][google.cloud.retail.v2.Product.categories] * [description][google.cloud.retail.v2.Product.description] * [images][google.cloud.retail.v2.Product.images] Supported fields only for [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT]: * Only the first image in [images][google.cloud.retail.v2.Product.images] To mark [attributes][google.cloud.retail.v2.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.v2.Product.attributes]. For [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION], the following fields are always returned in [SearchResponse][google.cloud.retail.v2.SearchResponse] by default: * [name][google.cloud.retail.v2.Product.name] For [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT], the following fields are always returned in by default: * [name][google.cloud.retail.v2.Product.name] * [color_info][google.cloud.retail.v2.Product.color_info] The maximum number of paths is 30. Otherwise, an INVALID_ARGUMENT error is returned. Note: Returning more fields in [SearchResponse][google.cloud.retail.v2.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];@Deprecated public Product.Builder mergeRetrievableFields(com.google.protobuf.FieldMask value)
Indicates which fields in the [Product][google.cloud.retail.v2.Product]s are returned in [SearchResponse][google.cloud.retail.v2.SearchResponse]. Supported fields for all [type][google.cloud.retail.v2.Product.type]s: * [audience][google.cloud.retail.v2.Product.audience] * [availability][google.cloud.retail.v2.Product.availability] * [brands][google.cloud.retail.v2.Product.brands] * [color_info][google.cloud.retail.v2.Product.color_info] * [conditions][google.cloud.retail.v2.Product.conditions] * [gtin][google.cloud.retail.v2.Product.gtin] * [materials][google.cloud.retail.v2.Product.materials] * [name][google.cloud.retail.v2.Product.name] * [patterns][google.cloud.retail.v2.Product.patterns] * [price_info][google.cloud.retail.v2.Product.price_info] * [rating][google.cloud.retail.v2.Product.rating] * [sizes][google.cloud.retail.v2.Product.sizes] * [title][google.cloud.retail.v2.Product.title] * [uri][google.cloud.retail.v2.Product.uri] Supported fields only for [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION]: * [categories][google.cloud.retail.v2.Product.categories] * [description][google.cloud.retail.v2.Product.description] * [images][google.cloud.retail.v2.Product.images] Supported fields only for [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT]: * Only the first image in [images][google.cloud.retail.v2.Product.images] To mark [attributes][google.cloud.retail.v2.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.v2.Product.attributes]. For [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION], the following fields are always returned in [SearchResponse][google.cloud.retail.v2.SearchResponse] by default: * [name][google.cloud.retail.v2.Product.name] For [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT], the following fields are always returned in by default: * [name][google.cloud.retail.v2.Product.name] * [color_info][google.cloud.retail.v2.Product.color_info] The maximum number of paths is 30. Otherwise, an INVALID_ARGUMENT error is returned. Note: Returning more fields in [SearchResponse][google.cloud.retail.v2.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];@Deprecated public Product.Builder clearRetrievableFields()
Indicates which fields in the [Product][google.cloud.retail.v2.Product]s are returned in [SearchResponse][google.cloud.retail.v2.SearchResponse]. Supported fields for all [type][google.cloud.retail.v2.Product.type]s: * [audience][google.cloud.retail.v2.Product.audience] * [availability][google.cloud.retail.v2.Product.availability] * [brands][google.cloud.retail.v2.Product.brands] * [color_info][google.cloud.retail.v2.Product.color_info] * [conditions][google.cloud.retail.v2.Product.conditions] * [gtin][google.cloud.retail.v2.Product.gtin] * [materials][google.cloud.retail.v2.Product.materials] * [name][google.cloud.retail.v2.Product.name] * [patterns][google.cloud.retail.v2.Product.patterns] * [price_info][google.cloud.retail.v2.Product.price_info] * [rating][google.cloud.retail.v2.Product.rating] * [sizes][google.cloud.retail.v2.Product.sizes] * [title][google.cloud.retail.v2.Product.title] * [uri][google.cloud.retail.v2.Product.uri] Supported fields only for [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION]: * [categories][google.cloud.retail.v2.Product.categories] * [description][google.cloud.retail.v2.Product.description] * [images][google.cloud.retail.v2.Product.images] Supported fields only for [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT]: * Only the first image in [images][google.cloud.retail.v2.Product.images] To mark [attributes][google.cloud.retail.v2.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.v2.Product.attributes]. For [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION], the following fields are always returned in [SearchResponse][google.cloud.retail.v2.SearchResponse] by default: * [name][google.cloud.retail.v2.Product.name] For [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT], the following fields are always returned in by default: * [name][google.cloud.retail.v2.Product.name] * [color_info][google.cloud.retail.v2.Product.color_info] The maximum number of paths is 30. Otherwise, an INVALID_ARGUMENT error is returned. Note: Returning more fields in [SearchResponse][google.cloud.retail.v2.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];@Deprecated public com.google.protobuf.FieldMask.Builder getRetrievableFieldsBuilder()
Indicates which fields in the [Product][google.cloud.retail.v2.Product]s are returned in [SearchResponse][google.cloud.retail.v2.SearchResponse]. Supported fields for all [type][google.cloud.retail.v2.Product.type]s: * [audience][google.cloud.retail.v2.Product.audience] * [availability][google.cloud.retail.v2.Product.availability] * [brands][google.cloud.retail.v2.Product.brands] * [color_info][google.cloud.retail.v2.Product.color_info] * [conditions][google.cloud.retail.v2.Product.conditions] * [gtin][google.cloud.retail.v2.Product.gtin] * [materials][google.cloud.retail.v2.Product.materials] * [name][google.cloud.retail.v2.Product.name] * [patterns][google.cloud.retail.v2.Product.patterns] * [price_info][google.cloud.retail.v2.Product.price_info] * [rating][google.cloud.retail.v2.Product.rating] * [sizes][google.cloud.retail.v2.Product.sizes] * [title][google.cloud.retail.v2.Product.title] * [uri][google.cloud.retail.v2.Product.uri] Supported fields only for [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION]: * [categories][google.cloud.retail.v2.Product.categories] * [description][google.cloud.retail.v2.Product.description] * [images][google.cloud.retail.v2.Product.images] Supported fields only for [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT]: * Only the first image in [images][google.cloud.retail.v2.Product.images] To mark [attributes][google.cloud.retail.v2.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.v2.Product.attributes]. For [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION], the following fields are always returned in [SearchResponse][google.cloud.retail.v2.SearchResponse] by default: * [name][google.cloud.retail.v2.Product.name] For [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT], the following fields are always returned in by default: * [name][google.cloud.retail.v2.Product.name] * [color_info][google.cloud.retail.v2.Product.color_info] The maximum number of paths is 30. Otherwise, an INVALID_ARGUMENT error is returned. Note: Returning more fields in [SearchResponse][google.cloud.retail.v2.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];@Deprecated public com.google.protobuf.FieldMaskOrBuilder getRetrievableFieldsOrBuilder()
Indicates which fields in the [Product][google.cloud.retail.v2.Product]s are returned in [SearchResponse][google.cloud.retail.v2.SearchResponse]. Supported fields for all [type][google.cloud.retail.v2.Product.type]s: * [audience][google.cloud.retail.v2.Product.audience] * [availability][google.cloud.retail.v2.Product.availability] * [brands][google.cloud.retail.v2.Product.brands] * [color_info][google.cloud.retail.v2.Product.color_info] * [conditions][google.cloud.retail.v2.Product.conditions] * [gtin][google.cloud.retail.v2.Product.gtin] * [materials][google.cloud.retail.v2.Product.materials] * [name][google.cloud.retail.v2.Product.name] * [patterns][google.cloud.retail.v2.Product.patterns] * [price_info][google.cloud.retail.v2.Product.price_info] * [rating][google.cloud.retail.v2.Product.rating] * [sizes][google.cloud.retail.v2.Product.sizes] * [title][google.cloud.retail.v2.Product.title] * [uri][google.cloud.retail.v2.Product.uri] Supported fields only for [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION]: * [categories][google.cloud.retail.v2.Product.categories] * [description][google.cloud.retail.v2.Product.description] * [images][google.cloud.retail.v2.Product.images] Supported fields only for [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT]: * Only the first image in [images][google.cloud.retail.v2.Product.images] To mark [attributes][google.cloud.retail.v2.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.v2.Product.attributes]. For [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION], the following fields are always returned in [SearchResponse][google.cloud.retail.v2.SearchResponse] by default: * [name][google.cloud.retail.v2.Product.name] For [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT], the following fields are always returned in by default: * [name][google.cloud.retail.v2.Product.name] * [color_info][google.cloud.retail.v2.Product.color_info] The maximum number of paths is 30. Otherwise, an INVALID_ARGUMENT error is returned. Note: Returning more fields in [SearchResponse][google.cloud.retail.v2.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 in interface ProductOrBuilderpublic List<Product> 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.v2.Product.primary_product_id] for all the product variants. Only populated for [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] [Product][google.cloud.retail.v2.Product]s. Note: This field is OUTPUT_ONLY for [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct]. Do not set this field in API requests.
repeated .google.cloud.retail.v2.Product variants = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
getVariantsList in interface ProductOrBuilderpublic 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.v2.Product.primary_product_id] for all the product variants. Only populated for [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] [Product][google.cloud.retail.v2.Product]s. Note: This field is OUTPUT_ONLY for [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct]. Do not set this field in API requests.
repeated .google.cloud.retail.v2.Product variants = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
getVariantsCount in interface ProductOrBuilderpublic Product getVariants(int index)
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.v2.Product.primary_product_id] for all the product variants. Only populated for [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] [Product][google.cloud.retail.v2.Product]s. Note: This field is OUTPUT_ONLY for [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct]. Do not set this field in API requests.
repeated .google.cloud.retail.v2.Product variants = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
getVariants in interface ProductOrBuilderpublic Product.Builder setVariants(int index, Product value)
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.v2.Product.primary_product_id] for all the product variants. Only populated for [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] [Product][google.cloud.retail.v2.Product]s. Note: This field is OUTPUT_ONLY for [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct]. Do not set this field in API requests.
repeated .google.cloud.retail.v2.Product variants = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Product.Builder setVariants(int index, Product.Builder builderForValue)
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.v2.Product.primary_product_id] for all the product variants. Only populated for [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] [Product][google.cloud.retail.v2.Product]s. Note: This field is OUTPUT_ONLY for [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct]. Do not set this field in API requests.
repeated .google.cloud.retail.v2.Product variants = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Product.Builder addVariants(Product value)
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.v2.Product.primary_product_id] for all the product variants. Only populated for [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] [Product][google.cloud.retail.v2.Product]s. Note: This field is OUTPUT_ONLY for [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct]. Do not set this field in API requests.
repeated .google.cloud.retail.v2.Product variants = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Product.Builder addVariants(int index, Product value)
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.v2.Product.primary_product_id] for all the product variants. Only populated for [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] [Product][google.cloud.retail.v2.Product]s. Note: This field is OUTPUT_ONLY for [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct]. Do not set this field in API requests.
repeated .google.cloud.retail.v2.Product variants = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Product.Builder addVariants(Product.Builder builderForValue)
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.v2.Product.primary_product_id] for all the product variants. Only populated for [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] [Product][google.cloud.retail.v2.Product]s. Note: This field is OUTPUT_ONLY for [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct]. Do not set this field in API requests.
repeated .google.cloud.retail.v2.Product variants = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Product.Builder addVariants(int index, Product.Builder builderForValue)
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.v2.Product.primary_product_id] for all the product variants. Only populated for [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] [Product][google.cloud.retail.v2.Product]s. Note: This field is OUTPUT_ONLY for [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct]. Do not set this field in API requests.
repeated .google.cloud.retail.v2.Product variants = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Product.Builder addAllVariants(Iterable<? extends Product> values)
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.v2.Product.primary_product_id] for all the product variants. Only populated for [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] [Product][google.cloud.retail.v2.Product]s. Note: This field is OUTPUT_ONLY for [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct]. Do not set this field in API requests.
repeated .google.cloud.retail.v2.Product variants = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Product.Builder 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.v2.Product.primary_product_id] for all the product variants. Only populated for [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] [Product][google.cloud.retail.v2.Product]s. Note: This field is OUTPUT_ONLY for [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct]. Do not set this field in API requests.
repeated .google.cloud.retail.v2.Product variants = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Product.Builder removeVariants(int index)
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.v2.Product.primary_product_id] for all the product variants. Only populated for [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] [Product][google.cloud.retail.v2.Product]s. Note: This field is OUTPUT_ONLY for [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct]. Do not set this field in API requests.
repeated .google.cloud.retail.v2.Product variants = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Product.Builder getVariantsBuilder(int index)
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.v2.Product.primary_product_id] for all the product variants. Only populated for [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] [Product][google.cloud.retail.v2.Product]s. Note: This field is OUTPUT_ONLY for [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct]. Do not set this field in API requests.
repeated .google.cloud.retail.v2.Product variants = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
public ProductOrBuilder getVariantsOrBuilder(int index)
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.v2.Product.primary_product_id] for all the product variants. Only populated for [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] [Product][google.cloud.retail.v2.Product]s. Note: This field is OUTPUT_ONLY for [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct]. Do not set this field in API requests.
repeated .google.cloud.retail.v2.Product variants = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
getVariantsOrBuilder in interface ProductOrBuilderpublic List<? extends ProductOrBuilder> 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.v2.Product.primary_product_id] for all the product variants. Only populated for [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] [Product][google.cloud.retail.v2.Product]s. Note: This field is OUTPUT_ONLY for [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct]. Do not set this field in API requests.
repeated .google.cloud.retail.v2.Product variants = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
getVariantsOrBuilderList in interface ProductOrBuilderpublic Product.Builder 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.v2.Product.primary_product_id] for all the product variants. Only populated for [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] [Product][google.cloud.retail.v2.Product]s. Note: This field is OUTPUT_ONLY for [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct]. Do not set this field in API requests.
repeated .google.cloud.retail.v2.Product variants = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Product.Builder addVariantsBuilder(int index)
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.v2.Product.primary_product_id] for all the product variants. Only populated for [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] [Product][google.cloud.retail.v2.Product]s. Note: This field is OUTPUT_ONLY for [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct]. Do not set this field in API requests.
repeated .google.cloud.retail.v2.Product variants = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
public List<Product.Builder> 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.v2.Product.primary_product_id] for all the product variants. Only populated for [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] [Product][google.cloud.retail.v2.Product]s. Note: This field is OUTPUT_ONLY for [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct]. Do not set this field in API requests.
repeated .google.cloud.retail.v2.Product variants = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
public List<LocalInventory> getLocalInventoriesList()
Output only. A list of local inventories specific to different places. This field can be managed by [ProductService.AddLocalInventories][google.cloud.retail.v2.ProductService.AddLocalInventories] and [ProductService.RemoveLocalInventories][google.cloud.retail.v2.ProductService.RemoveLocalInventories] APIs if fine-grained, high-volume updates are necessary.
repeated .google.cloud.retail.v2.LocalInventory local_inventories = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];
getLocalInventoriesList in interface ProductOrBuilderpublic int getLocalInventoriesCount()
Output only. A list of local inventories specific to different places. This field can be managed by [ProductService.AddLocalInventories][google.cloud.retail.v2.ProductService.AddLocalInventories] and [ProductService.RemoveLocalInventories][google.cloud.retail.v2.ProductService.RemoveLocalInventories] APIs if fine-grained, high-volume updates are necessary.
repeated .google.cloud.retail.v2.LocalInventory local_inventories = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];
getLocalInventoriesCount in interface ProductOrBuilderpublic LocalInventory getLocalInventories(int index)
Output only. A list of local inventories specific to different places. This field can be managed by [ProductService.AddLocalInventories][google.cloud.retail.v2.ProductService.AddLocalInventories] and [ProductService.RemoveLocalInventories][google.cloud.retail.v2.ProductService.RemoveLocalInventories] APIs if fine-grained, high-volume updates are necessary.
repeated .google.cloud.retail.v2.LocalInventory local_inventories = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];
getLocalInventories in interface ProductOrBuilderpublic Product.Builder setLocalInventories(int index, LocalInventory value)
Output only. A list of local inventories specific to different places. This field can be managed by [ProductService.AddLocalInventories][google.cloud.retail.v2.ProductService.AddLocalInventories] and [ProductService.RemoveLocalInventories][google.cloud.retail.v2.ProductService.RemoveLocalInventories] APIs if fine-grained, high-volume updates are necessary.
repeated .google.cloud.retail.v2.LocalInventory local_inventories = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Product.Builder setLocalInventories(int index, LocalInventory.Builder builderForValue)
Output only. A list of local inventories specific to different places. This field can be managed by [ProductService.AddLocalInventories][google.cloud.retail.v2.ProductService.AddLocalInventories] and [ProductService.RemoveLocalInventories][google.cloud.retail.v2.ProductService.RemoveLocalInventories] APIs if fine-grained, high-volume updates are necessary.
repeated .google.cloud.retail.v2.LocalInventory local_inventories = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Product.Builder addLocalInventories(LocalInventory value)
Output only. A list of local inventories specific to different places. This field can be managed by [ProductService.AddLocalInventories][google.cloud.retail.v2.ProductService.AddLocalInventories] and [ProductService.RemoveLocalInventories][google.cloud.retail.v2.ProductService.RemoveLocalInventories] APIs if fine-grained, high-volume updates are necessary.
repeated .google.cloud.retail.v2.LocalInventory local_inventories = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Product.Builder addLocalInventories(int index, LocalInventory value)
Output only. A list of local inventories specific to different places. This field can be managed by [ProductService.AddLocalInventories][google.cloud.retail.v2.ProductService.AddLocalInventories] and [ProductService.RemoveLocalInventories][google.cloud.retail.v2.ProductService.RemoveLocalInventories] APIs if fine-grained, high-volume updates are necessary.
repeated .google.cloud.retail.v2.LocalInventory local_inventories = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Product.Builder addLocalInventories(LocalInventory.Builder builderForValue)
Output only. A list of local inventories specific to different places. This field can be managed by [ProductService.AddLocalInventories][google.cloud.retail.v2.ProductService.AddLocalInventories] and [ProductService.RemoveLocalInventories][google.cloud.retail.v2.ProductService.RemoveLocalInventories] APIs if fine-grained, high-volume updates are necessary.
repeated .google.cloud.retail.v2.LocalInventory local_inventories = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Product.Builder addLocalInventories(int index, LocalInventory.Builder builderForValue)
Output only. A list of local inventories specific to different places. This field can be managed by [ProductService.AddLocalInventories][google.cloud.retail.v2.ProductService.AddLocalInventories] and [ProductService.RemoveLocalInventories][google.cloud.retail.v2.ProductService.RemoveLocalInventories] APIs if fine-grained, high-volume updates are necessary.
repeated .google.cloud.retail.v2.LocalInventory local_inventories = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Product.Builder addAllLocalInventories(Iterable<? extends LocalInventory> values)
Output only. A list of local inventories specific to different places. This field can be managed by [ProductService.AddLocalInventories][google.cloud.retail.v2.ProductService.AddLocalInventories] and [ProductService.RemoveLocalInventories][google.cloud.retail.v2.ProductService.RemoveLocalInventories] APIs if fine-grained, high-volume updates are necessary.
repeated .google.cloud.retail.v2.LocalInventory local_inventories = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Product.Builder clearLocalInventories()
Output only. A list of local inventories specific to different places. This field can be managed by [ProductService.AddLocalInventories][google.cloud.retail.v2.ProductService.AddLocalInventories] and [ProductService.RemoveLocalInventories][google.cloud.retail.v2.ProductService.RemoveLocalInventories] APIs if fine-grained, high-volume updates are necessary.
repeated .google.cloud.retail.v2.LocalInventory local_inventories = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Product.Builder removeLocalInventories(int index)
Output only. A list of local inventories specific to different places. This field can be managed by [ProductService.AddLocalInventories][google.cloud.retail.v2.ProductService.AddLocalInventories] and [ProductService.RemoveLocalInventories][google.cloud.retail.v2.ProductService.RemoveLocalInventories] APIs if fine-grained, high-volume updates are necessary.
repeated .google.cloud.retail.v2.LocalInventory local_inventories = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];
public LocalInventory.Builder getLocalInventoriesBuilder(int index)
Output only. A list of local inventories specific to different places. This field can be managed by [ProductService.AddLocalInventories][google.cloud.retail.v2.ProductService.AddLocalInventories] and [ProductService.RemoveLocalInventories][google.cloud.retail.v2.ProductService.RemoveLocalInventories] APIs if fine-grained, high-volume updates are necessary.
repeated .google.cloud.retail.v2.LocalInventory local_inventories = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];
public LocalInventoryOrBuilder getLocalInventoriesOrBuilder(int index)
Output only. A list of local inventories specific to different places. This field can be managed by [ProductService.AddLocalInventories][google.cloud.retail.v2.ProductService.AddLocalInventories] and [ProductService.RemoveLocalInventories][google.cloud.retail.v2.ProductService.RemoveLocalInventories] APIs if fine-grained, high-volume updates are necessary.
repeated .google.cloud.retail.v2.LocalInventory local_inventories = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];
getLocalInventoriesOrBuilder in interface ProductOrBuilderpublic List<? extends LocalInventoryOrBuilder> getLocalInventoriesOrBuilderList()
Output only. A list of local inventories specific to different places. This field can be managed by [ProductService.AddLocalInventories][google.cloud.retail.v2.ProductService.AddLocalInventories] and [ProductService.RemoveLocalInventories][google.cloud.retail.v2.ProductService.RemoveLocalInventories] APIs if fine-grained, high-volume updates are necessary.
repeated .google.cloud.retail.v2.LocalInventory local_inventories = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];
getLocalInventoriesOrBuilderList in interface ProductOrBuilderpublic LocalInventory.Builder addLocalInventoriesBuilder()
Output only. A list of local inventories specific to different places. This field can be managed by [ProductService.AddLocalInventories][google.cloud.retail.v2.ProductService.AddLocalInventories] and [ProductService.RemoveLocalInventories][google.cloud.retail.v2.ProductService.RemoveLocalInventories] APIs if fine-grained, high-volume updates are necessary.
repeated .google.cloud.retail.v2.LocalInventory local_inventories = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];
public LocalInventory.Builder addLocalInventoriesBuilder(int index)
Output only. A list of local inventories specific to different places. This field can be managed by [ProductService.AddLocalInventories][google.cloud.retail.v2.ProductService.AddLocalInventories] and [ProductService.RemoveLocalInventories][google.cloud.retail.v2.ProductService.RemoveLocalInventories] APIs if fine-grained, high-volume updates are necessary.
repeated .google.cloud.retail.v2.LocalInventory local_inventories = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];
public List<LocalInventory.Builder> getLocalInventoriesBuilderList()
Output only. A list of local inventories specific to different places. This field can be managed by [ProductService.AddLocalInventories][google.cloud.retail.v2.ProductService.AddLocalInventories] and [ProductService.RemoveLocalInventories][google.cloud.retail.v2.ProductService.RemoveLocalInventories] APIs if fine-grained, high-volume updates are necessary.
repeated .google.cloud.retail.v2.LocalInventory local_inventories = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];
public final Product.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Product.Builder>public final Product.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Product.Builder>Copyright © 2023 Google LLC. All rights reserved.