Class ProductCatalogItem.Builder (0.58.0)

public static final class ProductCatalogItem.Builder extends GeneratedMessageV3.Builder<ProductCatalogItem.Builder> implements ProductCatalogItemOrBuilder

ProductCatalogItem captures item metadata specific to retail products.

Protobuf type google.cloud.recommendationengine.v1beta1.ProductCatalogItem

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllImages(Iterable<? extends Image> values)

public ProductCatalogItem.Builder addAllImages(Iterable<? extends Image> values)

Optional. Product images for the catalog item.

repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.recommendationengine.v1beta1.Image>
Returns
Type Description
ProductCatalogItem.Builder

addImages(Image value)

public ProductCatalogItem.Builder addImages(Image value)

Optional. Product images for the catalog item.

repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Image
Returns
Type Description
ProductCatalogItem.Builder

addImages(Image.Builder builderForValue)

public ProductCatalogItem.Builder addImages(Image.Builder builderForValue)

Optional. Product images for the catalog item.

repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Image.Builder
Returns
Type Description
ProductCatalogItem.Builder

addImages(int index, Image value)

public ProductCatalogItem.Builder addImages(int index, Image value)

Optional. Product images for the catalog item.

repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value Image
Returns
Type Description
ProductCatalogItem.Builder

addImages(int index, Image.Builder builderForValue)

public ProductCatalogItem.Builder addImages(int index, Image.Builder builderForValue)

Optional. Product images for the catalog item.

repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue Image.Builder
Returns
Type Description
ProductCatalogItem.Builder

addImagesBuilder()

public Image.Builder addImagesBuilder()

Optional. Product images for the catalog item.

repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Image.Builder

addImagesBuilder(int index)

public Image.Builder addImagesBuilder(int index)

Optional. Product images for the catalog item.

repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Image.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ProductCatalogItem.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ProductCatalogItem.Builder
Overrides

build()

public ProductCatalogItem build()
Returns
Type Description
ProductCatalogItem

buildPartial()

public ProductCatalogItem buildPartial()
Returns
Type Description
ProductCatalogItem

clear()

public ProductCatalogItem.Builder clear()
Returns
Type Description
ProductCatalogItem.Builder
Overrides

clearAvailableQuantity()

public ProductCatalogItem.Builder clearAvailableQuantity()

Optional. The available quantity of the item.

int64 available_quantity = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductCatalogItem.Builder

This builder for chaining.

clearCanonicalProductUri()

public ProductCatalogItem.Builder clearCanonicalProductUri()

Optional. Canonical URL directly linking to the item detail page with a length limit of 5 KiB..

string canonical_product_uri = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductCatalogItem.Builder

This builder for chaining.

clearCosts()

public ProductCatalogItem.Builder clearCosts()
Returns
Type Description
ProductCatalogItem.Builder

clearCurrencyCode()

public ProductCatalogItem.Builder clearCurrencyCode()

Optional. Only required if the price is set. Currency code for price/costs. Use three-character ISO-4217 code.

string currency_code = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductCatalogItem.Builder

This builder for chaining.

clearExactPrice()

public ProductCatalogItem.Builder clearExactPrice()

Optional. The exact product price.

.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductCatalogItem.Builder

clearField(Descriptors.FieldDescriptor field)

public ProductCatalogItem.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ProductCatalogItem.Builder
Overrides

clearImages()

public ProductCatalogItem.Builder clearImages()

Optional. Product images for the catalog item.

repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductCatalogItem.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ProductCatalogItem.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ProductCatalogItem.Builder
Overrides

clearPrice()

public ProductCatalogItem.Builder clearPrice()
Returns
Type Description
ProductCatalogItem.Builder

clearPriceRange()

public ProductCatalogItem.Builder clearPriceRange()

Optional. The product price range.

.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductCatalogItem.Builder

clearStockState()

public ProductCatalogItem.Builder clearStockState()

Optional. Online stock state of the catalog item. Default is IN_STOCK.

.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductCatalogItem.Builder

This builder for chaining.

clone()

public ProductCatalogItem.Builder clone()
Returns
Type Description
ProductCatalogItem.Builder
Overrides

containsCosts(String key)

public boolean containsCosts(String key)

Optional. A map to pass the costs associated with the product.

For example: {"manufacturing": 45.5} The profit of selling this item is computed like so:

  • If 'exactPrice' is provided, profit = displayPrice - sum(costs)
  • If 'priceRange' is provided, profit = minPrice - sum(costs)

map<string, float> costs = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

getAvailableQuantity()

public long getAvailableQuantity()

Optional. The available quantity of the item.

int64 available_quantity = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
long

The availableQuantity.

getCanonicalProductUri()

public String getCanonicalProductUri()

Optional. Canonical URL directly linking to the item detail page with a length limit of 5 KiB..

string canonical_product_uri = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The canonicalProductUri.

getCanonicalProductUriBytes()

public ByteString getCanonicalProductUriBytes()

Optional. Canonical URL directly linking to the item detail page with a length limit of 5 KiB..

string canonical_product_uri = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for canonicalProductUri.

getCosts() (deprecated)

public Map<String,Float> getCosts()

Use #getCostsMap() instead.

Returns
Type Description
Map<String,Float>

getCostsCount()

public int getCostsCount()

Optional. A map to pass the costs associated with the product.

For example: {"manufacturing": 45.5} The profit of selling this item is computed like so:

  • If 'exactPrice' is provided, profit = displayPrice - sum(costs)
  • If 'priceRange' is provided, profit = minPrice - sum(costs)

map<string, float> costs = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getCostsMap()

public Map<String,Float> getCostsMap()

Optional. A map to pass the costs associated with the product.

For example: {"manufacturing": 45.5} The profit of selling this item is computed like so:

  • If 'exactPrice' is provided, profit = displayPrice - sum(costs)
  • If 'priceRange' is provided, profit = minPrice - sum(costs)

map<string, float> costs = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,Float>

getCostsOrDefault(String key, float defaultValue)

public float getCostsOrDefault(String key, float defaultValue)

Optional. A map to pass the costs associated with the product.

For example: {"manufacturing": 45.5} The profit of selling this item is computed like so:

  • If 'exactPrice' is provided, profit = displayPrice - sum(costs)
  • If 'priceRange' is provided, profit = minPrice - sum(costs)

map<string, float> costs = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue float
Returns
Type Description
float

getCostsOrThrow(String key)

public float getCostsOrThrow(String key)

Optional. A map to pass the costs associated with the product.

For example: {"manufacturing": 45.5} The profit of selling this item is computed like so:

  • If 'exactPrice' is provided, profit = displayPrice - sum(costs)
  • If 'priceRange' is provided, profit = minPrice - sum(costs)

map<string, float> costs = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
float

getCurrencyCode()

public String getCurrencyCode()

Optional. Only required if the price is set. Currency code for price/costs. Use three-character ISO-4217 code.

string currency_code = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The currencyCode.

getCurrencyCodeBytes()

public ByteString getCurrencyCodeBytes()

Optional. Only required if the price is set. Currency code for price/costs. Use three-character ISO-4217 code.

string currency_code = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for currencyCode.

getDefaultInstanceForType()

public ProductCatalogItem getDefaultInstanceForType()
Returns
Type Description
ProductCatalogItem

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getExactPrice()

public ProductCatalogItem.ExactPrice getExactPrice()

Optional. The exact product price.

.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductCatalogItem.ExactPrice

The exactPrice.

getExactPriceBuilder()

public ProductCatalogItem.ExactPrice.Builder getExactPriceBuilder()

Optional. The exact product price.

.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductCatalogItem.ExactPrice.Builder

getExactPriceOrBuilder()

public ProductCatalogItem.ExactPriceOrBuilder getExactPriceOrBuilder()

Optional. The exact product price.

.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductCatalogItem.ExactPriceOrBuilder

getImages(int index)

public Image getImages(int index)

Optional. Product images for the catalog item.

repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Image

getImagesBuilder(int index)

public Image.Builder getImagesBuilder(int index)

Optional. Product images for the catalog item.

repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Image.Builder

getImagesBuilderList()

public List<Image.Builder> getImagesBuilderList()

Optional. Product images for the catalog item.

repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getImagesCount()

public int getImagesCount()

Optional. Product images for the catalog item.

repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getImagesList()

public List<Image> getImagesList()

Optional. Product images for the catalog item.

repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Image>

getImagesOrBuilder(int index)

public ImageOrBuilder getImagesOrBuilder(int index)

Optional. Product images for the catalog item.

repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ImageOrBuilder

getImagesOrBuilderList()

public List<? extends ImageOrBuilder> getImagesOrBuilderList()

Optional. Product images for the catalog item.

repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.recommendationengine.v1beta1.ImageOrBuilder>

getMutableCosts() (deprecated)

public Map<String,Float> getMutableCosts()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,Float>

getPriceCase()

public ProductCatalogItem.PriceCase getPriceCase()
Returns
Type Description
ProductCatalogItem.PriceCase

getPriceRange()

public ProductCatalogItem.PriceRange getPriceRange()

Optional. The product price range.

.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductCatalogItem.PriceRange

The priceRange.

getPriceRangeBuilder()

public ProductCatalogItem.PriceRange.Builder getPriceRangeBuilder()

Optional. The product price range.

.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductCatalogItem.PriceRange.Builder

getPriceRangeOrBuilder()

public ProductCatalogItem.PriceRangeOrBuilder getPriceRangeOrBuilder()

Optional. The product price range.

.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductCatalogItem.PriceRangeOrBuilder

getStockState()

public ProductCatalogItem.StockState getStockState()

Optional. Online stock state of the catalog item. Default is IN_STOCK.

.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductCatalogItem.StockState

The stockState.

getStockStateValue()

public int getStockStateValue()

Optional. Online stock state of the catalog item. Default is IN_STOCK.

.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for stockState.

hasExactPrice()

public boolean hasExactPrice()

Optional. The exact product price.

.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the exactPrice field is set.

hasPriceRange()

public boolean hasPriceRange()

Optional. The product price range.

.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the priceRange field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeExactPrice(ProductCatalogItem.ExactPrice value)

public ProductCatalogItem.Builder mergeExactPrice(ProductCatalogItem.ExactPrice value)

Optional. The exact product price.

.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ProductCatalogItem.ExactPrice
Returns
Type Description
ProductCatalogItem.Builder

mergeFrom(ProductCatalogItem other)

public ProductCatalogItem.Builder mergeFrom(ProductCatalogItem other)
Parameter
Name Description
other ProductCatalogItem
Returns
Type Description
ProductCatalogItem.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ProductCatalogItem.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProductCatalogItem.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ProductCatalogItem.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ProductCatalogItem.Builder
Overrides

mergePriceRange(ProductCatalogItem.PriceRange value)

public ProductCatalogItem.Builder mergePriceRange(ProductCatalogItem.PriceRange value)

Optional. The product price range.

.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ProductCatalogItem.PriceRange
Returns
Type Description
ProductCatalogItem.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ProductCatalogItem.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ProductCatalogItem.Builder
Overrides

putAllCosts(Map<String,Float> values)

public ProductCatalogItem.Builder putAllCosts(Map<String,Float> values)

Optional. A map to pass the costs associated with the product.

For example: {"manufacturing": 45.5} The profit of selling this item is computed like so:

  • If 'exactPrice' is provided, profit = displayPrice - sum(costs)
  • If 'priceRange' is provided, profit = minPrice - sum(costs)

map<string, float> costs = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Map<String,Float>
Returns
Type Description
ProductCatalogItem.Builder

putCosts(String key, float value)

public ProductCatalogItem.Builder putCosts(String key, float value)

Optional. A map to pass the costs associated with the product.

For example: {"manufacturing": 45.5} The profit of selling this item is computed like so:

  • If 'exactPrice' is provided, profit = displayPrice - sum(costs)
  • If 'priceRange' is provided, profit = minPrice - sum(costs)

map<string, float> costs = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
value float
Returns
Type Description
ProductCatalogItem.Builder

removeCosts(String key)

public ProductCatalogItem.Builder removeCosts(String key)

Optional. A map to pass the costs associated with the product.

For example: {"manufacturing": 45.5} The profit of selling this item is computed like so:

  • If 'exactPrice' is provided, profit = displayPrice - sum(costs)
  • If 'priceRange' is provided, profit = minPrice - sum(costs)

map<string, float> costs = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
ProductCatalogItem.Builder

removeImages(int index)

public ProductCatalogItem.Builder removeImages(int index)

Optional. Product images for the catalog item.

repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ProductCatalogItem.Builder

setAvailableQuantity(long value)

public ProductCatalogItem.Builder setAvailableQuantity(long value)

Optional. The available quantity of the item.

int64 available_quantity = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value long

The availableQuantity to set.

Returns
Type Description
ProductCatalogItem.Builder

This builder for chaining.

setCanonicalProductUri(String value)

public ProductCatalogItem.Builder setCanonicalProductUri(String value)

Optional. Canonical URL directly linking to the item detail page with a length limit of 5 KiB..

string canonical_product_uri = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The canonicalProductUri to set.

Returns
Type Description
ProductCatalogItem.Builder

This builder for chaining.

setCanonicalProductUriBytes(ByteString value)

public ProductCatalogItem.Builder setCanonicalProductUriBytes(ByteString value)

Optional. Canonical URL directly linking to the item detail page with a length limit of 5 KiB..

string canonical_product_uri = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for canonicalProductUri to set.

Returns
Type Description
ProductCatalogItem.Builder

This builder for chaining.

setCurrencyCode(String value)

public ProductCatalogItem.Builder setCurrencyCode(String value)

Optional. Only required if the price is set. Currency code for price/costs. Use three-character ISO-4217 code.

string currency_code = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The currencyCode to set.

Returns
Type Description
ProductCatalogItem.Builder

This builder for chaining.

setCurrencyCodeBytes(ByteString value)

public ProductCatalogItem.Builder setCurrencyCodeBytes(ByteString value)

Optional. Only required if the price is set. Currency code for price/costs. Use three-character ISO-4217 code.

string currency_code = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for currencyCode to set.

Returns
Type Description
ProductCatalogItem.Builder

This builder for chaining.

setExactPrice(ProductCatalogItem.ExactPrice value)

public ProductCatalogItem.Builder setExactPrice(ProductCatalogItem.ExactPrice value)

Optional. The exact product price.

.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ProductCatalogItem.ExactPrice
Returns
Type Description
ProductCatalogItem.Builder

setExactPrice(ProductCatalogItem.ExactPrice.Builder builderForValue)

public ProductCatalogItem.Builder setExactPrice(ProductCatalogItem.ExactPrice.Builder builderForValue)

Optional. The exact product price.

.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue ProductCatalogItem.ExactPrice.Builder
Returns
Type Description
ProductCatalogItem.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ProductCatalogItem.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ProductCatalogItem.Builder
Overrides

setImages(int index, Image value)

public ProductCatalogItem.Builder setImages(int index, Image value)

Optional. Product images for the catalog item.

repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value Image
Returns
Type Description
ProductCatalogItem.Builder

setImages(int index, Image.Builder builderForValue)

public ProductCatalogItem.Builder setImages(int index, Image.Builder builderForValue)

Optional. Product images for the catalog item.

repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue Image.Builder
Returns
Type Description
ProductCatalogItem.Builder

setPriceRange(ProductCatalogItem.PriceRange value)

public ProductCatalogItem.Builder setPriceRange(ProductCatalogItem.PriceRange value)

Optional. The product price range.

.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ProductCatalogItem.PriceRange
Returns
Type Description
ProductCatalogItem.Builder

setPriceRange(ProductCatalogItem.PriceRange.Builder builderForValue)

public ProductCatalogItem.Builder setPriceRange(ProductCatalogItem.PriceRange.Builder builderForValue)

Optional. The product price range.

.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue ProductCatalogItem.PriceRange.Builder
Returns
Type Description
ProductCatalogItem.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ProductCatalogItem.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ProductCatalogItem.Builder
Overrides

setStockState(ProductCatalogItem.StockState value)

public ProductCatalogItem.Builder setStockState(ProductCatalogItem.StockState value)

Optional. Online stock state of the catalog item. Default is IN_STOCK.

.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ProductCatalogItem.StockState

The stockState to set.

Returns
Type Description
ProductCatalogItem.Builder

This builder for chaining.

setStockStateValue(int value)

public ProductCatalogItem.Builder setStockStateValue(int value)

Optional. Online stock state of the catalog item. Default is IN_STOCK.

.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for stockState to set.

Returns
Type Description
ProductCatalogItem.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ProductCatalogItem.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ProductCatalogItem.Builder
Overrides