Class Product.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Product.Builder>
-
- com.google.cloud.vision.v1p4beta1.Product.Builder
-
- All Implemented Interfaces:
ProductOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Product
public static final class Product.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Product.Builder> implements ProductOrBuilder
A Product contains ReferenceImages.
Protobuf typegoogle.cloud.vision.v1p4beta1.Product
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Product.BuilderaddAllProductLabels(Iterable<? extends Product.KeyValue> values)Key-value pairs that can be attached to a product.Product.BuilderaddProductLabels(int index, Product.KeyValue value)Key-value pairs that can be attached to a product.Product.BuilderaddProductLabels(int index, Product.KeyValue.Builder builderForValue)Key-value pairs that can be attached to a product.Product.BuilderaddProductLabels(Product.KeyValue value)Key-value pairs that can be attached to a product.Product.BuilderaddProductLabels(Product.KeyValue.Builder builderForValue)Key-value pairs that can be attached to a product.Product.KeyValue.BuilderaddProductLabelsBuilder()Key-value pairs that can be attached to a product.Product.KeyValue.BuilderaddProductLabelsBuilder(int index)Key-value pairs that can be attached to a product.Product.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Productbuild()ProductbuildPartial()Product.Builderclear()Product.BuilderclearDescription()User-provided metadata to be stored with this product.Product.BuilderclearDisplayName()The user-provided name for this Product.Product.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Product.BuilderclearName()The resource name of the product.Product.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Product.BuilderclearProductCategory()Immutable.Product.BuilderclearProductLabels()Key-value pairs that can be attached to a product.Product.Builderclone()ProductgetDefaultInstanceForType()StringgetDescription()User-provided metadata to be stored with this product.com.google.protobuf.ByteStringgetDescriptionBytes()User-provided metadata to be stored with this product.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetDisplayName()The user-provided name for this Product.com.google.protobuf.ByteStringgetDisplayNameBytes()The user-provided name for this Product.StringgetName()The resource name of the product.com.google.protobuf.ByteStringgetNameBytes()The resource name of the product.StringgetProductCategory()Immutable.com.google.protobuf.ByteStringgetProductCategoryBytes()Immutable.Product.KeyValuegetProductLabels(int index)Key-value pairs that can be attached to a product.Product.KeyValue.BuildergetProductLabelsBuilder(int index)Key-value pairs that can be attached to a product.List<Product.KeyValue.Builder>getProductLabelsBuilderList()Key-value pairs that can be attached to a product.intgetProductLabelsCount()Key-value pairs that can be attached to a product.List<Product.KeyValue>getProductLabelsList()Key-value pairs that can be attached to a product.Product.KeyValueOrBuildergetProductLabelsOrBuilder(int index)Key-value pairs that can be attached to a product.List<? extends Product.KeyValueOrBuilder>getProductLabelsOrBuilderList()Key-value pairs that can be attached to a product.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Product.BuildermergeFrom(Product other)Product.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Product.BuildermergeFrom(com.google.protobuf.Message other)Product.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Product.BuilderremoveProductLabels(int index)Key-value pairs that can be attached to a product.Product.BuildersetDescription(String value)User-provided metadata to be stored with this product.Product.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)User-provided metadata to be stored with this product.Product.BuildersetDisplayName(String value)The user-provided name for this Product.Product.BuildersetDisplayNameBytes(com.google.protobuf.ByteString value)The user-provided name for this Product.Product.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Product.BuildersetName(String value)The resource name of the product.Product.BuildersetNameBytes(com.google.protobuf.ByteString value)The resource name of the product.Product.BuildersetProductCategory(String value)Immutable.Product.BuildersetProductCategoryBytes(com.google.protobuf.ByteString value)Immutable.Product.BuildersetProductLabels(int index, Product.KeyValue value)Key-value pairs that can be attached to a product.Product.BuildersetProductLabels(int index, Product.KeyValue.Builder builderForValue)Key-value pairs that can be attached to a product.Product.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Product.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Product.Builder>
-
clear
public Product.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Product.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Product.Builder>
-
getDefaultInstanceForType
public Product getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Product build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Product buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Product.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Product.Builder>
-
setField
public Product.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Product.Builder>
-
clearField
public Product.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Product.Builder>
-
clearOneof
public Product.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Product.Builder>
-
setRepeatedField
public Product.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Product.Builder>
-
addRepeatedField
public Product.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Product.Builder>
-
mergeFrom
public Product.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Product.Builder>
-
mergeFrom
public Product.Builder mergeFrom(Product other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Product.Builder>
-
mergeFrom
public Product.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Product.Builder>- Throws:
IOException
-
getName
public String getName()
The resource name of the product. Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`. This field is ignored when creating a product.
string name = 1;- Specified by:
getNamein interfaceProductOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The resource name of the product. Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`. This field is ignored when creating a product.
string name = 1;- Specified by:
getNameBytesin interfaceProductOrBuilder- Returns:
- The bytes for name.
-
setName
public Product.Builder setName(String value)
The resource name of the product. Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`. This field is ignored when creating a product.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Product.Builder clearName()
The resource name of the product. Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`. This field is ignored when creating a product.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
public Product.Builder setNameBytes(com.google.protobuf.ByteString value)
The resource name of the product. Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`. This field is ignored when creating a product.
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDisplayName
public String getDisplayName()
The user-provided name for this Product. Must not be empty. Must be at most 4096 characters long.
string display_name = 2;- Specified by:
getDisplayNamein interfaceProductOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()
The user-provided name for this Product. Must not be empty. Must be at most 4096 characters long.
string display_name = 2;- Specified by:
getDisplayNameBytesin interfaceProductOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
public Product.Builder setDisplayName(String value)
The user-provided name for this Product. Must not be empty. Must be at most 4096 characters long.
string display_name = 2;- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
public Product.Builder clearDisplayName()
The user-provided name for this Product. Must not be empty. Must be at most 4096 characters long.
string display_name = 2;- Returns:
- This builder for chaining.
-
setDisplayNameBytes
public Product.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
The user-provided name for this Product. Must not be empty. Must be at most 4096 characters long.
string display_name = 2;- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
getDescription
public String getDescription()
User-provided metadata to be stored with this product. Must be at most 4096 characters long.
string description = 3;- Specified by:
getDescriptionin interfaceProductOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
User-provided metadata to be stored with this product. Must be at most 4096 characters long.
string description = 3;- Specified by:
getDescriptionBytesin interfaceProductOrBuilder- Returns:
- The bytes for description.
-
setDescription
public Product.Builder setDescription(String value)
User-provided metadata to be stored with this product. Must be at most 4096 characters long.
string description = 3;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public Product.Builder clearDescription()
User-provided metadata to be stored with this product. Must be at most 4096 characters long.
string description = 3;- Returns:
- This builder for chaining.
-
setDescriptionBytes
public Product.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
User-provided metadata to be stored with this product. Must be at most 4096 characters long.
string description = 3;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getProductCategory
public String getProductCategory()
Immutable. The category for the product identified by the reference image. This should be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories "homegoods", "apparel", and "toys" are still supported, but these should not be used for new products.
string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getProductCategoryin interfaceProductOrBuilder- Returns:
- The productCategory.
-
getProductCategoryBytes
public com.google.protobuf.ByteString getProductCategoryBytes()
Immutable. The category for the product identified by the reference image. This should be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories "homegoods", "apparel", and "toys" are still supported, but these should not be used for new products.
string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getProductCategoryBytesin interfaceProductOrBuilder- Returns:
- The bytes for productCategory.
-
setProductCategory
public Product.Builder setProductCategory(String value)
Immutable. The category for the product identified by the reference image. This should be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories "homegoods", "apparel", and "toys" are still supported, but these should not be used for new products.
string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The productCategory to set.- Returns:
- This builder for chaining.
-
clearProductCategory
public Product.Builder clearProductCategory()
Immutable. The category for the product identified by the reference image. This should be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories "homegoods", "apparel", and "toys" are still supported, but these should not be used for new products.
string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- This builder for chaining.
-
setProductCategoryBytes
public Product.Builder setProductCategoryBytes(com.google.protobuf.ByteString value)
Immutable. The category for the product identified by the reference image. This should be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories "homegoods", "apparel", and "toys" are still supported, but these should not be used for new products.
string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The bytes for productCategory to set.- Returns:
- This builder for chaining.
-
getProductLabelsList
public List<Product.KeyValue> getProductLabelsList()
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 500 product_labels. Notice that the total number of distinct product_labels over all products in one ProductSet cannot exceed 1M, otherwise the product search pipeline will refuse to work for that ProductSet.
repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5;- Specified by:
getProductLabelsListin interfaceProductOrBuilder
-
getProductLabelsCount
public int getProductLabelsCount()
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 500 product_labels. Notice that the total number of distinct product_labels over all products in one ProductSet cannot exceed 1M, otherwise the product search pipeline will refuse to work for that ProductSet.
repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5;- Specified by:
getProductLabelsCountin interfaceProductOrBuilder
-
getProductLabels
public Product.KeyValue getProductLabels(int index)
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 500 product_labels. Notice that the total number of distinct product_labels over all products in one ProductSet cannot exceed 1M, otherwise the product search pipeline will refuse to work for that ProductSet.
repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5;- Specified by:
getProductLabelsin interfaceProductOrBuilder
-
setProductLabels
public Product.Builder setProductLabels(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 500 product_labels. Notice that the total number of distinct product_labels over all products in one ProductSet cannot exceed 1M, otherwise the product search pipeline will refuse to work for that ProductSet.
repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5;
-
setProductLabels
public Product.Builder setProductLabels(int index, 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 500 product_labels. Notice that the total number of distinct product_labels over all products in one ProductSet cannot exceed 1M, otherwise the product search pipeline will refuse to work for that ProductSet.
repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5;
-
addProductLabels
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 500 product_labels. Notice that the total number of distinct product_labels over all products in one ProductSet cannot exceed 1M, otherwise the product search pipeline will refuse to work for that ProductSet.
repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5;
-
addProductLabels
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 500 product_labels. Notice that the total number of distinct product_labels over all products in one ProductSet cannot exceed 1M, otherwise the product search pipeline will refuse to work for that ProductSet.
repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5;
-
addProductLabels
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 500 product_labels. Notice that the total number of distinct product_labels over all products in one ProductSet cannot exceed 1M, otherwise the product search pipeline will refuse to work for that ProductSet.
repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5;
-
addProductLabels
public Product.Builder addProductLabels(int index, 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 500 product_labels. Notice that the total number of distinct product_labels over all products in one ProductSet cannot exceed 1M, otherwise the product search pipeline will refuse to work for that ProductSet.
repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5;
-
addAllProductLabels
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 500 product_labels. Notice that the total number of distinct product_labels over all products in one ProductSet cannot exceed 1M, otherwise the product search pipeline will refuse to work for that ProductSet.
repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5;
-
clearProductLabels
public Product.Builder clearProductLabels()
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 500 product_labels. Notice that the total number of distinct product_labels over all products in one ProductSet cannot exceed 1M, otherwise the product search pipeline will refuse to work for that ProductSet.
repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5;
-
removeProductLabels
public Product.Builder removeProductLabels(int index)
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 500 product_labels. Notice that the total number of distinct product_labels over all products in one ProductSet cannot exceed 1M, otherwise the product search pipeline will refuse to work for that ProductSet.
repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5;
-
getProductLabelsBuilder
public Product.KeyValue.Builder getProductLabelsBuilder(int index)
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 500 product_labels. Notice that the total number of distinct product_labels over all products in one ProductSet cannot exceed 1M, otherwise the product search pipeline will refuse to work for that ProductSet.
repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5;
-
getProductLabelsOrBuilder
public Product.KeyValueOrBuilder getProductLabelsOrBuilder(int index)
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 500 product_labels. Notice that the total number of distinct product_labels over all products in one ProductSet cannot exceed 1M, otherwise the product search pipeline will refuse to work for that ProductSet.
repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5;- Specified by:
getProductLabelsOrBuilderin interfaceProductOrBuilder
-
getProductLabelsOrBuilderList
public List<? extends Product.KeyValueOrBuilder> getProductLabelsOrBuilderList()
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 500 product_labels. Notice that the total number of distinct product_labels over all products in one ProductSet cannot exceed 1M, otherwise the product search pipeline will refuse to work for that ProductSet.
repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5;- Specified by:
getProductLabelsOrBuilderListin interfaceProductOrBuilder
-
addProductLabelsBuilder
public Product.KeyValue.Builder addProductLabelsBuilder()
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 500 product_labels. Notice that the total number of distinct product_labels over all products in one ProductSet cannot exceed 1M, otherwise the product search pipeline will refuse to work for that ProductSet.
repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5;
-
addProductLabelsBuilder
public Product.KeyValue.Builder addProductLabelsBuilder(int index)
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 500 product_labels. Notice that the total number of distinct product_labels over all products in one ProductSet cannot exceed 1M, otherwise the product search pipeline will refuse to work for that ProductSet.
repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5;
-
getProductLabelsBuilderList
public List<Product.KeyValue.Builder> getProductLabelsBuilderList()
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 500 product_labels. Notice that the total number of distinct product_labels over all products in one ProductSet cannot exceed 1M, otherwise the product search pipeline will refuse to work for that ProductSet.
repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5;
-
setUnknownFields
public final Product.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Product.Builder>
-
mergeUnknownFields
public final Product.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Product.Builder>
-
-