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
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<ProductSet.Builder>
public ProductSet.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<ProductSet.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<ProductSet.Builder>
public ProductSet getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public ProductSet build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public ProductSet buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public ProductSet.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<ProductSet.Builder>
public ProductSet.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<ProductSet.Builder>
public ProductSet.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<ProductSet.Builder>
public ProductSet.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<ProductSet.Builder>
public ProductSet.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<ProductSet.Builder>
public ProductSet.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<ProductSet.Builder>
public ProductSet.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<ProductSet.Builder>
public ProductSet.Builder mergeFrom(ProductSet other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<ProductSet.Builder>
public ProductSet.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<ProductSet.Builder>
IOException
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;
getName
in interface ProductSetOrBuilder
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;
getNameBytes
in interface ProductSetOrBuilder
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;
value
- The name to set.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;
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;
value
- The bytes for name to set.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;
getDisplayName
in interface ProductSetOrBuilder
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;
getDisplayNameBytes
in interface ProductSetOrBuilder
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;
value
- The displayName to set.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;
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;
value
- The bytes for displayName to set.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];
hasIndexTime
in interface ProductSetOrBuilder
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];
getIndexTime
in interface ProductSetOrBuilder
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];
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];
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];
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];
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];
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];
getIndexTimeOrBuilder
in interface ProductSetOrBuilder
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];
hasIndexError
in interface ProductSetOrBuilder
public com.google.rpc.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];
getIndexError
in interface ProductSetOrBuilder
public ProductSet.Builder setIndexError(com.google.rpc.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];
public ProductSet.Builder setIndexError(com.google.rpc.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];
public ProductSet.Builder mergeIndexError(com.google.rpc.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];
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];
public com.google.rpc.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];
public com.google.rpc.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];
getIndexErrorOrBuilder
in interface ProductSetOrBuilder
public final ProductSet.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<ProductSet.Builder>
public final ProductSet.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<ProductSet.Builder>
Copyright © 2022 Google LLC. All rights reserved.