Class ProductSet.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ProductSet.Builder>
com.google.cloud.vision.v1.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.GeneratedMessage.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 Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public ProductSet.Builder mergeFrom(ProductSet other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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 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(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(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(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 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 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