public static final class ProductSearchParams.Builder extends GeneratedMessageV3.Builder<ProductSearchParams.Builder> implements ProductSearchParamsOrBuilder
Parameters for a product search request.
Protobuf type google.cloud.vision.v1p3beta1.ProductSearchParams
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ProductSearchParams.BuilderImplements
ProductSearchParamsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllProductCategories(Iterable<String> values)
public ProductSearchParams.Builder addAllProductCategories(Iterable<String> values)
The list of product categories to search in. Currently, we only consider the first category, and either "homegoods" or "apparel" should be specified.
repeated string product_categories = 7;
Name | Description |
values | Iterable<String> The productCategories to add. |
Type | Description |
ProductSearchParams.Builder | This builder for chaining. |
addProductCategories(String value)
public ProductSearchParams.Builder addProductCategories(String value)
The list of product categories to search in. Currently, we only consider the first category, and either "homegoods" or "apparel" should be specified.
repeated string product_categories = 7;
Name | Description |
value | String The productCategories to add. |
Type | Description |
ProductSearchParams.Builder | This builder for chaining. |
addProductCategoriesBytes(ByteString value)
public ProductSearchParams.Builder addProductCategoriesBytes(ByteString value)
The list of product categories to search in. Currently, we only consider the first category, and either "homegoods" or "apparel" should be specified.
repeated string product_categories = 7;
Name | Description |
value | ByteString The bytes of the productCategories to add. |
Type | Description |
ProductSearchParams.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ProductSearchParams.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ProductSearchParams.Builder |
build()
public ProductSearchParams build()