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.Builder
addAllProductLabels(Iterable<? extends Product.KeyValue> values)
Key-value pairs that can be attached to a product.Product.Builder
addProductLabels(int index, Product.KeyValue value)
Key-value pairs that can be attached to a product.Product.Builder
addProductLabels(int index, Product.KeyValue.Builder builderForValue)
Key-value pairs that can be attached to a product.Product.Builder
addProductLabels(Product.KeyValue value)
Key-value pairs that can be attached to a product.Product.Builder
addProductLabels(Product.KeyValue.Builder builderForValue)
Key-value pairs that can be attached to a product.Product.KeyValue.Builder
addProductLabelsBuilder()
Key-value pairs that can be attached to a product.Product.KeyValue.Builder
addProductLabelsBuilder(int index)
Key-value pairs that can be attached to a product.Product.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Product
build()
Product
buildPartial()
Product.Builder
clear()
Product.Builder
clearDescription()
User-provided metadata to be stored with this product.Product.Builder
clearDisplayName()
The user-provided name for this Product.Product.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Product.Builder
clearName()
The resource name of the product.Product.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Product.Builder
clearProductCategory()
Immutable.Product.Builder
clearProductLabels()
Key-value pairs that can be attached to a product.Product.Builder
clone()
Product
getDefaultInstanceForType()
String
getDescription()
User-provided metadata to be stored with this product.com.google.protobuf.ByteString
getDescriptionBytes()
User-provided metadata to be stored with this product.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getDisplayName()
The user-provided name for this Product.com.google.protobuf.ByteString
getDisplayNameBytes()
The user-provided name for this Product.String
getName()
The resource name of the product.com.google.protobuf.ByteString
getNameBytes()
The resource name of the product.String
getProductCategory()
Immutable.com.google.protobuf.ByteString
getProductCategoryBytes()
Immutable.Product.KeyValue
getProductLabels(int index)
Key-value pairs that can be attached to a product.Product.KeyValue.Builder
getProductLabelsBuilder(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.int
getProductLabelsCount()
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.KeyValueOrBuilder
getProductLabelsOrBuilder(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.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Product.Builder
mergeFrom(Product other)
Product.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Product.Builder
mergeFrom(com.google.protobuf.Message other)
Product.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Product.Builder
removeProductLabels(int index)
Key-value pairs that can be attached to a product.Product.Builder
setDescription(String value)
User-provided metadata to be stored with this product.Product.Builder
setDescriptionBytes(com.google.protobuf.ByteString value)
User-provided metadata to be stored with this product.Product.Builder
setDisplayName(String value)
The user-provided name for this Product.Product.Builder
setDisplayNameBytes(com.google.protobuf.ByteString value)
The user-provided name for this Product.Product.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Product.Builder
setName(String value)
The resource name of the product.Product.Builder
setNameBytes(com.google.protobuf.ByteString value)
The resource name of the product.Product.Builder
setProductCategory(String value)
Immutable.Product.Builder
setProductCategoryBytes(com.google.protobuf.ByteString value)
Immutable.Product.Builder
setProductLabels(int index, Product.KeyValue value)
Key-value pairs that can be attached to a product.Product.Builder
setProductLabels(int index, Product.KeyValue.Builder builderForValue)
Key-value pairs that can be attached to a product.Product.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Product.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Product.Builder>
-
clear
public Product.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Product.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Product.Builder>
-
getDefaultInstanceForType
public Product getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Product build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Product buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Product.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Product.Builder>
-
setField
public Product.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Product.Builder>
-
clearField
public Product.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Product.Builder>
-
clearOneof
public Product.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Product.Builder>
-
setRepeatedField
public Product.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Product.Builder>
-
addRepeatedField
public Product.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Product.Builder>
-
mergeFrom
public Product.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Product.Builder>
-
mergeFrom
public Product.Builder mergeFrom(Product other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getName
in 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:
getNameBytes
in 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:
getDisplayName
in 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:
getDisplayNameBytes
in 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:
getDescription
in 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:
getDescriptionBytes
in 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:
getProductCategory
in 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:
getProductCategoryBytes
in 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:
getProductLabelsList
in 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:
getProductLabelsCount
in 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:
getProductLabels
in 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:
getProductLabelsOrBuilder
in 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:
getProductLabelsOrBuilderList
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Product.Builder>
-
mergeUnknownFields
public final Product.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Product.Builder>
-
-