Class ProductSet.Builder

  • All Implemented Interfaces:
    ProductSetOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    ProductSet

    public static final class ProductSet.Builder
    extends com.google.protobuf.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
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ProductSet.Builder>
      • clear

        public ProductSet.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<ProductSet.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ProductSet.Builder>
      • getDefaultInstanceForType

        public ProductSet getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public ProductSet build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public ProductSet buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public ProductSet.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ProductSet.Builder>
      • setField

        public ProductSet.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                           Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<ProductSet.Builder>
      • clearField

        public ProductSet.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ProductSet.Builder>
      • clearOneof

        public ProductSet.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ProductSet.Builder>
      • setRepeatedField

        public ProductSet.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   int index,
                                                   Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ProductSet.Builder>
      • addRepeatedField

        public ProductSet.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ProductSet.Builder>
      • mergeFrom

        public ProductSet.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ProductSet.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ProductSet.Builder>
      • mergeFrom

        public ProductSet.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ProductSet.Builder>
        Throws:
        IOException
      • 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;
        Specified by:
        getName in interface ProductSetOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.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;
        Specified by:
        getNameBytes in interface ProductSetOrBuilder
        Returns:
        The bytes for name.
      • setName

        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;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • 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:
        This builder for chaining.
      • setNameBytes

        public ProductSet.Builder setNameBytes​(com.google.protobuf.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;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • 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;
        Specified by:
        getDisplayName in interface ProductSetOrBuilder
        Returns:
        The displayName.
      • getDisplayNameBytes

        public com.google.protobuf.ByteString getDisplayNameBytes()
         The user-provided name for this ProductSet. Must not be empty. Must be at
         most 4096 characters long.
         
        string display_name = 2;
        Specified by:
        getDisplayNameBytes in interface ProductSetOrBuilder
        Returns:
        The bytes for displayName.
      • setDisplayName

        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;
        Parameters:
        value - The displayName to set.
        Returns:
        This builder for chaining.
      • 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:
        This builder for chaining.
      • setDisplayNameBytes

        public ProductSet.Builder setDisplayNameBytes​(com.google.protobuf.ByteString value)
         The user-provided name for this ProductSet. Must not be empty. Must be at
         most 4096 characters long.
         
        string display_name = 2;
        Parameters:
        value - The bytes for displayName to set.
        Returns:
        This builder for chaining.
      • 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];
        Specified by:
        hasIndexTime in interface ProductSetOrBuilder
        Returns:
        Whether the indexTime field is set.
      • getIndexTime

        public com.google.protobuf.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];
        Specified by:
        getIndexTime in interface ProductSetOrBuilder
        Returns:
        The indexTime.
      • setIndexTime

        public ProductSet.Builder setIndexTime​(com.google.protobuf.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];
      • setIndexTime

        public ProductSet.Builder setIndexTime​(com.google.protobuf.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];
      • mergeIndexTime

        public ProductSet.Builder mergeIndexTime​(com.google.protobuf.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];
      • 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];
      • getIndexTimeBuilder

        public com.google.protobuf.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];
      • getIndexTimeOrBuilder

        public com.google.protobuf.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];
        Specified by:
        getIndexTimeOrBuilder in interface ProductSetOrBuilder
      • 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];
        Specified by:
        hasIndexError in interface ProductSetOrBuilder
        Returns:
        Whether the indexError field is set.
      • getIndexError

        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];
        Specified by:
        getIndexError in interface ProductSetOrBuilder
        Returns:
        The indexError.
      • setIndexError

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

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

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

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

        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];
        Specified by:
        getIndexErrorOrBuilder in interface ProductSetOrBuilder
      • setUnknownFields

        public final ProductSet.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ProductSet.Builder>
      • mergeUnknownFields

        public final ProductSet.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ProductSet.Builder>