Class ProductSet.Builder (3.41.0)

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.v1p4beta1.ProductSet

Implements

ProductSetOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ProductSet.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ProductSet.Builder
Overrides

build()

public ProductSet build()
Returns
Type Description
ProductSet

buildPartial()

public ProductSet buildPartial()
Returns
Type Description
ProductSet

clear()

public ProductSet.Builder clear()
Returns
Type Description
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
Type Description
ProductSet.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ProductSet.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
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 timestamp is the default value "1970-01-01T00:00:00Z".

This field is ignored when creating a ProductSet.

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

Returns
Type Description
ProductSet.Builder

clearName()

public ProductSet.Builder clearName()

The resource name of the ProductSet.

Format is: projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID.

This field is ignored when creating a ProductSet.

string name = 1;

Returns
Type Description
ProductSet.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ProductSet.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ProductSet.Builder
Overrides

clone()

public ProductSet.Builder clone()
Returns
Type Description
ProductSet.Builder
Overrides

getDefaultInstanceForType()

public ProductSet getDefaultInstanceForType()
Returns
Type Description
ProductSet

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

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

string display_name = 2;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

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

string display_name = 2;

Returns
Type Description
ByteString

The bytes for displayName.

getIndexError()

public Status getIndexError()

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
Type Description
com.google.rpc.Status

The indexError.

getIndexErrorBuilder()

public Status.Builder getIndexErrorBuilder()

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
Type Description
com.google.rpc.Status.Builder

getIndexErrorOrBuilder()

public StatusOrBuilder getIndexErrorOrBuilder()

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
Type Description
com.google.rpc.StatusOrBuilder

getIndexTime()

public Timestamp getIndexTime()

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 timestamp is the default value "1970-01-01T00:00:00Z".

This field is ignored when creating a ProductSet.

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

Returns
Type Description
Timestamp

The indexTime.

getIndexTimeBuilder()

public Timestamp.Builder getIndexTimeBuilder()

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 timestamp is the default value "1970-01-01T00:00:00Z".

This field is ignored when creating a ProductSet.

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

Returns
Type Description
Builder

getIndexTimeOrBuilder()

public TimestampOrBuilder getIndexTimeOrBuilder()

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 timestamp is the default value "1970-01-01T00:00:00Z".

This field is ignored when creating a ProductSet.

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

Returns
Type Description
TimestampOrBuilder

getName()

public String getName()

The resource name of the ProductSet.

Format is: projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID.

This field is ignored when creating a ProductSet.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The resource name of the ProductSet.

Format is: projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID.

This field is ignored when creating a ProductSet.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

hasIndexError()

public boolean hasIndexError()

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
Type Description
boolean

Whether the indexError field is set.

hasIndexTime()

public boolean hasIndexTime()

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 timestamp is the default value "1970-01-01T00:00:00Z".

This field is ignored when creating a ProductSet.

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

Returns
Type Description
boolean

Whether the indexTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ProductSet other)

public ProductSet.Builder mergeFrom(ProductSet other)
Parameter
Name Description
other ProductSet
Returns
Type Description
ProductSet.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ProductSet.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProductSet.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ProductSet.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ProductSet.Builder
Overrides

mergeIndexError(Status value)

public ProductSet.Builder mergeIndexError(Status value)

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];

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
ProductSet.Builder

mergeIndexTime(Timestamp value)

public ProductSet.Builder mergeIndexTime(Timestamp value)

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 timestamp is the default value "1970-01-01T00:00:00Z".

This field is ignored when creating a ProductSet.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
ProductSet.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ProductSet.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ProductSet.Builder
Overrides

setDisplayName(String value)

public ProductSet.Builder setDisplayName(String value)

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

string display_name = 2;

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
ProductSet.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public ProductSet.Builder setDisplayNameBytes(ByteString value)

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

string display_name = 2;

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
ProductSet.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ProductSet.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ProductSet.Builder
Overrides

setIndexError(Status value)

public ProductSet.Builder setIndexError(Status value)

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];

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
ProductSet.Builder

setIndexError(Status.Builder builderForValue)

public ProductSet.Builder setIndexError(Status.Builder builderForValue)

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];

Parameter
Name Description
builderForValue com.google.rpc.Status.Builder
Returns
Type Description
ProductSet.Builder

setIndexTime(Timestamp value)

public ProductSet.Builder setIndexTime(Timestamp value)

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 timestamp is the default value "1970-01-01T00:00:00Z".

This field is ignored when creating a ProductSet.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
ProductSet.Builder

setIndexTime(Timestamp.Builder builderForValue)

public ProductSet.Builder setIndexTime(Timestamp.Builder builderForValue)

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 timestamp is the default value "1970-01-01T00:00:00Z".

This field is ignored when creating a ProductSet.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ProductSet.Builder

setName(String value)

public ProductSet.Builder setName(String value)

The resource name of the ProductSet.

Format is: projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID.

This field is ignored when creating a ProductSet.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ProductSet.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ProductSet.Builder setNameBytes(ByteString value)

The resource name of the ProductSet.

Format is: projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID.

This field is ignored when creating a ProductSet.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ProductSet.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ProductSet.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ProductSet.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ProductSet.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ProductSet.Builder
Overrides