Class Product.Builder (2.1.4)

public static final class Product.Builder extends GeneratedMessageV3.Builder<Product.Builder> implements ProductOrBuilder

A Product contains ReferenceImages.

Protobuf type google.cloud.vision.v1p3beta1.Product

Implements

ProductOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllProductLabels(Iterable<? extends Product.KeyValue> values)

public Product.Builder addAllProductLabels(Iterable<? extends Product.KeyValue> values)

Key-value pairs that can be attached to a product. At query time, constraints can be specified based on the product_labels. Note that integer values can be provided as strings, e.g. "1199". Only strings with integer values can match a range-based restriction which is to be supported soon. Multiple values can be assigned to the same key. One product may have up to 100 product_labels.

repeated .google.cloud.vision.v1p3beta1.Product.KeyValue product_labels = 5;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.vision.v1p3beta1.Product.KeyValue>
Returns
TypeDescription
Product.Builder

addProductLabels(Product.KeyValue value)

public Product.Builder addProductLabels(Product.KeyValue value)

Key-value pairs that can be attached to a product. At query time, constraints can be specified based on the product_labels. Note that integer values can be provided as strings, e.g. "1199". Only strings with integer values can match a range-based restriction which is to be supported soon. Multiple values can be assigned to the same key. One product may have up to 100 product_labels.

repeated .google.cloud.vision.v1p3beta1.Product.KeyValue product_labels = 5;

Parameter
NameDescription
valueProduct.KeyValue
Returns
TypeDescription
Product.Builder

addProductLabels(Product.KeyValue.Builder builderForValue)

public Product.Builder addProductLabels(Product.KeyValue.Builder builderForValue)

Key-value pairs that can be attached to a product. At query time, constraints can be specified based on the product_labels. Note that integer values can be provided as strings, e.g. "1199". Only strings with integer values can match a range-based restriction which is to be supported soon. Multiple values can be assigned to the same key. One product may have up to 100 product_labels.

repeated .google.cloud.vision.v1p3beta1.Product.KeyValue product_labels = 5;

Parameter
NameDescription
builderForValueProduct.KeyValue.Builder
Returns
TypeDescription
Product.Builder

addProductLabels(int index, Product.KeyValue value)

public Product.Builder addProductLabels(int index, Product.KeyValue value)

Key-value pairs that can be attached to a product. At query time, constraints can be specified based on the product_labels. Note that integer values can be provided as strings, e.g. "1199". Only strings with integer values can match a range-based restriction which is to be supported soon. Multiple values can be assigned to the same key. One product may have up to 100 product_labels.

repeated .google.cloud.vision.v1p3beta1.Product.KeyValue product_labels = 5;

Parameters
NameDescription
indexint
valueProduct.KeyValue
Returns
TypeDescription
Product.Builder