Class ProductSet.Builder (2.1.2)

public static final class ProductSet.Builder extends GeneratedMessageV3.Builder<ProductSet.Builder> implements ProductSetOrBuilder

A ProductSet contains Products. A ProductSet can contain a maximum of 1 million reference images. If the limit is exceeded, periodic indexing will fail.

Protobuf type google.cloud.vision.v1p3beta1.ProductSet

Implements

ProductSetOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ProductSet.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ProductSet.Builder
Overrides

build()

public ProductSet build()
Returns
TypeDescription
ProductSet

buildPartial()

public ProductSet buildPartial()
Returns
TypeDescription
ProductSet

clear()

public ProductSet.Builder clear()
Returns
TypeDescription
ProductSet.Builder
Overrides

clearDisplayName()

public ProductSet.Builder clearDisplayName()

The user-provided name for this ProductSet. Must not be empty. Must be at most 4096 characters long.

string display_name = 2;

Returns
TypeDescription
ProductSet.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ProductSet.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ProductSet.Builder
Overrides

clearIndexError()

public ProductSet.Builder clearIndexError()

Output only. If there was an error with indexing the product set, the field is populated. This field is ignored when creating a ProductSet.

.google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ProductSet.Builder

clearIndexTime()

public ProductSet.Builder clearIndexTime()

Output only. The time at which this ProductSet was last indexed. Query results will reflect all updates before this time. If this ProductSet has never been indexed, this field is 0. This field is ignored when creating a ProductSet.

.google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ProductSet.Builder