Class ProductCatalogItem.Builder (0.8.9)

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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.recommendationengine.v1beta1.Image>
Returns
TypeDescription
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
NameDescription
valueImage
Returns
TypeDescription
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
NameDescription
builderForValueImage.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueImage
Returns
TypeDescription
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
NameDescription
indexint
builderForValueImage.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Image.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ProductCatalogItem.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ProductCatalogItem.Builder
Overrides

build()

public ProductCatalogItem build()
Returns
TypeDescription
ProductCatalogItem

buildPartial()

public ProductCatalogItem buildPartial()
Returns
TypeDescription
ProductCatalogItem

clear()

public ProductCatalogItem.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProductCatalogItem.Builder

This builder for chaining.

clearCosts()

public ProductCatalogItem.Builder clearCosts()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProductCatalogItem.Builder

clearField(Descriptors.FieldDescriptor field)

public ProductCatalogItem.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ProductCatalogItem.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ProductCatalogItem.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ProductCatalogItem.Builder
Overrides

clearPrice()

public ProductCatalogItem.Builder clearPrice()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProductCatalogItem.Builder

This builder for chaining.

clone()

public ProductCatalogItem.Builder clone()
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
boolean

getAvailableQuantity()

public long getAvailableQuantity()

Optional. The available quantity of the item.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for canonicalProductUri.

getCosts()

public Map<String,Float> getCosts()

Use #getCostsMap() instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValuefloat
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for currencyCode.

getDefaultInstanceForType()

public ProductCatalogItem getDefaultInstanceForType()
Returns
TypeDescription
ProductCatalogItem

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.recommendationengine.v1beta1.ImageOrBuilder>

getMutableCosts()

public Map<String,Float> getMutableCosts()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,Float>

getPriceCase()

public ProductCatalogItem.PriceCase getPriceCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the priceRange field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueProductCatalogItem.ExactPrice
Returns
TypeDescription
ProductCatalogItem.Builder

mergeFrom(ProductCatalogItem other)

public ProductCatalogItem.Builder mergeFrom(ProductCatalogItem other)
Parameter
NameDescription
otherProductCatalogItem
Returns
TypeDescription
ProductCatalogItem.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ProductCatalogItem.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ProductCatalogItem.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ProductCatalogItem.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueProductCatalogItem.PriceRange
Returns
TypeDescription
ProductCatalogItem.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ProductCatalogItem.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuesMap<String,Float>
Returns
TypeDescription
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
NameDescription
keyString
valuefloat
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valuelong

The availableQuantity to set.

Returns
TypeDescription
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
NameDescription
valueString

The canonicalProductUri to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for canonicalProductUri to set.

Returns
TypeDescription
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
NameDescription
valueString

The currencyCode to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for currencyCode to set.

Returns
TypeDescription
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
NameDescription
valueProductCatalogItem.ExactPrice
Returns
TypeDescription
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
NameDescription
builderForValueProductCatalogItem.ExactPrice.Builder
Returns
TypeDescription
ProductCatalogItem.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ProductCatalogItem.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueImage
Returns
TypeDescription
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
NameDescription
indexint
builderForValueImage.Builder
Returns
TypeDescription
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
NameDescription
valueProductCatalogItem.PriceRange
Returns
TypeDescription
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
NameDescription
builderForValueProductCatalogItem.PriceRange.Builder
Returns
TypeDescription
ProductCatalogItem.Builder

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

public ProductCatalogItem.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueProductCatalogItem.StockState

The stockState to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
ProductCatalogItem.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ProductCatalogItem.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ProductCatalogItem.Builder
Overrides