- 3.50.0 (latest)
- 3.49.0
- 3.47.0
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.0
- 3.42.0
- 3.41.0
- 3.40.0
- 3.39.0
- 3.38.0
- 3.37.0
- 3.35.0
- 3.34.0
- 3.33.0
- 3.32.0
- 3.31.0
- 3.30.0
- 3.29.0
- 3.28.0
- 3.27.0
- 3.26.0
- 3.25.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.7.0
- 3.6.0
- 3.5.0
- 3.4.0
- 3.3.0
- 3.2.0
- 3.1.3
- 2.1.4
- 2.0.29
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.v1.ProductSet
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ProductSet.BuilderImplements
ProductSetOrBuilderStatic 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 |
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 |
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 |
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 |
clone()
public ProductSet.Builder clone()
Returns | |
---|---|
Type | Description |
ProductSet.Builder |
getDefaultInstanceForType()
public ProductSet getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
ProductSet |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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 |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public ProductSet.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
ProductSet.Builder |
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 |
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 |
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 |
setUnknownFields(UnknownFieldSet unknownFields)
public final ProductSet.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ProductSet.Builder |