public static final class Product.Builder extends GeneratedMessageV3.Builder<Product.Builder> implements ProductOrBuilder
A Product contains ReferenceImages.
Protobuf type google.cloud.vision.v1p3beta1.Product
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Product.BuilderImplements
ProductOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
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;
Name | Description |
values | Iterable<? extends com.google.cloud.vision.v1p3beta1.Product.KeyValue> |
Type | Description |
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;
Name | Description |
value | Product.KeyValue |
Type | Description |
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;
Name | Description |
builderForValue | Product.KeyValue.Builder |
Type | Description |
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;
Name | Description |
index | int |
value | Product.KeyValue |
Type | Description |
Product.Builder |