public static final class Product.Builder extends GeneratedMessageV3.Builder<Product.Builder> implements ProductOrBuilder
A Product contains ReferenceImages.Protobuf type
google.cloud.vision.v1p3beta1.Product
Modifier and Type | Method and 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.Builder builderForValue)
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(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.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(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(Descriptors.FieldDescriptor field) |
Product.Builder |
clearName()
The resource name of the product.
|
Product.Builder |
clearOneof(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.
|
ByteString |
getDescriptionBytes()
User-provided metadata to be stored with this product.
|
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
String |
getDisplayName()
The user-provided name for this Product.
|
ByteString |
getDisplayNameBytes()
The user-provided name for this Product.
|
String |
getName()
The resource name of the product.
|
ByteString |
getNameBytes()
The resource name of the product.
|
String |
getProductCategory()
Immutable.
|
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 GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Product.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
Product.Builder |
mergeFrom(Message other) |
Product.Builder |
mergeFrom(Product other) |
Product.Builder |
mergeUnknownFields(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(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(ByteString value)
The user-provided name for this Product.
|
Product.Builder |
setField(Descriptors.FieldDescriptor field,
Object value) |
Product.Builder |
setName(String value)
The resource name of the product.
|
Product.Builder |
setNameBytes(ByteString value)
The resource name of the product.
|
Product.Builder |
setProductCategory(String value)
Immutable.
|
Product.Builder |
setProductCategoryBytes(ByteString value)
Immutable.
|
Product.Builder |
setProductLabels(int index,
Product.KeyValue.Builder builderForValue)
Key-value pairs that can be attached to a product.
|
Product.Builder |
setProductLabels(int index,
Product.KeyValue value)
Key-value pairs that can be attached to a product.
|
Product.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
Object value) |
Product.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<Product.Builder>
public Product.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<Product.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<Product.Builder>
public Product getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public Product build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public Product buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public Product.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<Product.Builder>
public Product.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<Product.Builder>
public Product.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<Product.Builder>
public Product.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<Product.Builder>
public Product.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Product.Builder>
public Product.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<Product.Builder>
public Product.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<Product.Builder>
public Product.Builder mergeFrom(Product other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<Product.Builder>
public Product.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Product.Builder>
IOException
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;
getName
in interface ProductOrBuilder
public 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;
getNameBytes
in interface ProductOrBuilder
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;
value
- The name to set.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;
public Product.Builder setNameBytes(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;
value
- The bytes for name to set.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;
getDisplayName
in interface ProductOrBuilder
public ByteString getDisplayNameBytes()
The user-provided name for this Product. Must not be empty. Must be at most 4096 characters long.
string display_name = 2;
getDisplayNameBytes
in interface ProductOrBuilder
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;
value
- The displayName to set.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;
public Product.Builder setDisplayNameBytes(ByteString value)
The user-provided name for this Product. Must not be empty. Must be at most 4096 characters long.
string display_name = 2;
value
- The bytes for displayName to set.public String getDescription()
User-provided metadata to be stored with this product. Must be at most 4096 characters long.
string description = 3;
getDescription
in interface ProductOrBuilder
public ByteString getDescriptionBytes()
User-provided metadata to be stored with this product. Must be at most 4096 characters long.
string description = 3;
getDescriptionBytes
in interface ProductOrBuilder
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;
value
- The description to set.public Product.Builder clearDescription()
User-provided metadata to be stored with this product. Must be at most 4096 characters long.
string description = 3;
public Product.Builder setDescriptionBytes(ByteString value)
User-provided metadata to be stored with this product. Must be at most 4096 characters long.
string description = 3;
value
- The bytes for description to set.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];
getProductCategory
in interface ProductOrBuilder
public 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];
getProductCategoryBytes
in interface ProductOrBuilder
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];
value
- The productCategory to set.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];
public Product.Builder setProductCategoryBytes(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];
value
- The bytes for productCategory to set.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 100 product_labels.
repeated .google.cloud.vision.v1p3beta1.Product.KeyValue product_labels = 5;
getProductLabelsList
in interface ProductOrBuilder
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 100 product_labels.
repeated .google.cloud.vision.v1p3beta1.Product.KeyValue product_labels = 5;
getProductLabelsCount
in interface ProductOrBuilder
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 100 product_labels.
repeated .google.cloud.vision.v1p3beta1.Product.KeyValue product_labels = 5;
getProductLabels
in interface ProductOrBuilder
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 100 product_labels.
repeated .google.cloud.vision.v1p3beta1.Product.KeyValue product_labels = 5;
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 100 product_labels.
repeated .google.cloud.vision.v1p3beta1.Product.KeyValue product_labels = 5;
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;
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;
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;
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 100 product_labels.
repeated .google.cloud.vision.v1p3beta1.Product.KeyValue product_labels = 5;
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;
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 100 product_labels.
repeated .google.cloud.vision.v1p3beta1.Product.KeyValue product_labels = 5;
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 100 product_labels.
repeated .google.cloud.vision.v1p3beta1.Product.KeyValue product_labels = 5;
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 100 product_labels.
repeated .google.cloud.vision.v1p3beta1.Product.KeyValue product_labels = 5;
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 100 product_labels.
repeated .google.cloud.vision.v1p3beta1.Product.KeyValue product_labels = 5;
getProductLabelsOrBuilder
in interface ProductOrBuilder
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 100 product_labels.
repeated .google.cloud.vision.v1p3beta1.Product.KeyValue product_labels = 5;
getProductLabelsOrBuilderList
in interface ProductOrBuilder
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 100 product_labels.
repeated .google.cloud.vision.v1p3beta1.Product.KeyValue product_labels = 5;
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 100 product_labels.
repeated .google.cloud.vision.v1p3beta1.Product.KeyValue product_labels = 5;
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 100 product_labels.
repeated .google.cloud.vision.v1p3beta1.Product.KeyValue product_labels = 5;
public final Product.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<Product.Builder>
public final Product.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<Product.Builder>
Copyright © 2022 Google LLC. All rights reserved.