Class ProductSearchResults.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ProductSearchResults.Builder>
com.google.cloud.vision.v1.ProductSearchResults.Builder
All Implemented Interfaces:
ProductSearchResultsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ProductSearchResults

public static final class ProductSearchResults.Builder extends com.google.protobuf.GeneratedMessage.Builder<ProductSearchResults.Builder> implements ProductSearchResultsOrBuilder
 Results for a product search request.
 
Protobuf type google.cloud.vision.v1.ProductSearchResults
  • 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<ProductSearchResults.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<ProductSearchResults.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<ProductSearchResults.Builder>
    • getDefaultInstanceForType

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

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

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

      public ProductSearchResults.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<ProductSearchResults.Builder>
    • mergeFrom

    • isInitialized

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

      public ProductSearchResults.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<ProductSearchResults.Builder>
      Throws:
      IOException
    • hasIndexTime

      public boolean hasIndexTime()
       Timestamp of the index which provided these results. Products added to the
       product set and products removed from the product set after this time are
       not reflected in the current results.
       
      .google.protobuf.Timestamp index_time = 2;
      Specified by:
      hasIndexTime in interface ProductSearchResultsOrBuilder
      Returns:
      Whether the indexTime field is set.
    • getIndexTime

      public com.google.protobuf.Timestamp getIndexTime()
       Timestamp of the index which provided these results. Products added to the
       product set and products removed from the product set after this time are
       not reflected in the current results.
       
      .google.protobuf.Timestamp index_time = 2;
      Specified by:
      getIndexTime in interface ProductSearchResultsOrBuilder
      Returns:
      The indexTime.
    • setIndexTime

      public ProductSearchResults.Builder setIndexTime(com.google.protobuf.Timestamp value)
       Timestamp of the index which provided these results. Products added to the
       product set and products removed from the product set after this time are
       not reflected in the current results.
       
      .google.protobuf.Timestamp index_time = 2;
    • setIndexTime

      public ProductSearchResults.Builder setIndexTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Timestamp of the index which provided these results. Products added to the
       product set and products removed from the product set after this time are
       not reflected in the current results.
       
      .google.protobuf.Timestamp index_time = 2;
    • mergeIndexTime

      public ProductSearchResults.Builder mergeIndexTime(com.google.protobuf.Timestamp value)
       Timestamp of the index which provided these results. Products added to the
       product set and products removed from the product set after this time are
       not reflected in the current results.
       
      .google.protobuf.Timestamp index_time = 2;
    • clearIndexTime

      public ProductSearchResults.Builder clearIndexTime()
       Timestamp of the index which provided these results. Products added to the
       product set and products removed from the product set after this time are
       not reflected in the current results.
       
      .google.protobuf.Timestamp index_time = 2;
    • getIndexTimeBuilder

      public com.google.protobuf.Timestamp.Builder getIndexTimeBuilder()
       Timestamp of the index which provided these results. Products added to the
       product set and products removed from the product set after this time are
       not reflected in the current results.
       
      .google.protobuf.Timestamp index_time = 2;
    • getIndexTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder()
       Timestamp of the index which provided these results. Products added to the
       product set and products removed from the product set after this time are
       not reflected in the current results.
       
      .google.protobuf.Timestamp index_time = 2;
      Specified by:
      getIndexTimeOrBuilder in interface ProductSearchResultsOrBuilder
    • getResultsList

      public List<ProductSearchResults.Result> getResultsList()
       List of results, one for each product match.
       
      repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5;
      Specified by:
      getResultsList in interface ProductSearchResultsOrBuilder
    • getResultsCount

      public int getResultsCount()
       List of results, one for each product match.
       
      repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5;
      Specified by:
      getResultsCount in interface ProductSearchResultsOrBuilder
    • getResults

      public ProductSearchResults.Result getResults(int index)
       List of results, one for each product match.
       
      repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5;
      Specified by:
      getResults in interface ProductSearchResultsOrBuilder
    • setResults

      public ProductSearchResults.Builder setResults(int index, ProductSearchResults.Result value)
       List of results, one for each product match.
       
      repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5;
    • setResults

      public ProductSearchResults.Builder setResults(int index, ProductSearchResults.Result.Builder builderForValue)
       List of results, one for each product match.
       
      repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5;
    • addResults

       List of results, one for each product match.
       
      repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5;
    • addResults

      public ProductSearchResults.Builder addResults(int index, ProductSearchResults.Result value)
       List of results, one for each product match.
       
      repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5;
    • addResults

       List of results, one for each product match.
       
      repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5;
    • addResults

      public ProductSearchResults.Builder addResults(int index, ProductSearchResults.Result.Builder builderForValue)
       List of results, one for each product match.
       
      repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5;
    • addAllResults

      public ProductSearchResults.Builder addAllResults(Iterable<? extends ProductSearchResults.Result> values)
       List of results, one for each product match.
       
      repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5;
    • clearResults

      public ProductSearchResults.Builder clearResults()
       List of results, one for each product match.
       
      repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5;
    • removeResults

      public ProductSearchResults.Builder removeResults(int index)
       List of results, one for each product match.
       
      repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5;
    • getResultsBuilder

      public ProductSearchResults.Result.Builder getResultsBuilder(int index)
       List of results, one for each product match.
       
      repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5;
    • getResultsOrBuilder

      public ProductSearchResults.ResultOrBuilder getResultsOrBuilder(int index)
       List of results, one for each product match.
       
      repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5;
      Specified by:
      getResultsOrBuilder in interface ProductSearchResultsOrBuilder
    • getResultsOrBuilderList

      public List<? extends ProductSearchResults.ResultOrBuilder> getResultsOrBuilderList()
       List of results, one for each product match.
       
      repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5;
      Specified by:
      getResultsOrBuilderList in interface ProductSearchResultsOrBuilder
    • addResultsBuilder

      public ProductSearchResults.Result.Builder addResultsBuilder()
       List of results, one for each product match.
       
      repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5;
    • addResultsBuilder

      public ProductSearchResults.Result.Builder addResultsBuilder(int index)
       List of results, one for each product match.
       
      repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5;
    • getResultsBuilderList

      public List<ProductSearchResults.Result.Builder> getResultsBuilderList()
       List of results, one for each product match.
       
      repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5;
    • getProductGroupedResultsList

      public List<ProductSearchResults.GroupedResult> getProductGroupedResultsList()
       List of results grouped by products detected in the query image. Each entry
       corresponds to one bounding polygon in the query image, and contains the
       matching products specific to that region. There may be duplicate product
       matches in the union of all the per-product results.
       
      repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6;
      Specified by:
      getProductGroupedResultsList in interface ProductSearchResultsOrBuilder
    • getProductGroupedResultsCount

      public int getProductGroupedResultsCount()
       List of results grouped by products detected in the query image. Each entry
       corresponds to one bounding polygon in the query image, and contains the
       matching products specific to that region. There may be duplicate product
       matches in the union of all the per-product results.
       
      repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6;
      Specified by:
      getProductGroupedResultsCount in interface ProductSearchResultsOrBuilder
    • getProductGroupedResults

      public ProductSearchResults.GroupedResult getProductGroupedResults(int index)
       List of results grouped by products detected in the query image. Each entry
       corresponds to one bounding polygon in the query image, and contains the
       matching products specific to that region. There may be duplicate product
       matches in the union of all the per-product results.
       
      repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6;
      Specified by:
      getProductGroupedResults in interface ProductSearchResultsOrBuilder
    • setProductGroupedResults

      public ProductSearchResults.Builder setProductGroupedResults(int index, ProductSearchResults.GroupedResult value)
       List of results grouped by products detected in the query image. Each entry
       corresponds to one bounding polygon in the query image, and contains the
       matching products specific to that region. There may be duplicate product
       matches in the union of all the per-product results.
       
      repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6;
    • setProductGroupedResults

      public ProductSearchResults.Builder setProductGroupedResults(int index, ProductSearchResults.GroupedResult.Builder builderForValue)
       List of results grouped by products detected in the query image. Each entry
       corresponds to one bounding polygon in the query image, and contains the
       matching products specific to that region. There may be duplicate product
       matches in the union of all the per-product results.
       
      repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6;
    • addProductGroupedResults

      public ProductSearchResults.Builder addProductGroupedResults(ProductSearchResults.GroupedResult value)
       List of results grouped by products detected in the query image. Each entry
       corresponds to one bounding polygon in the query image, and contains the
       matching products specific to that region. There may be duplicate product
       matches in the union of all the per-product results.
       
      repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6;
    • addProductGroupedResults

      public ProductSearchResults.Builder addProductGroupedResults(int index, ProductSearchResults.GroupedResult value)
       List of results grouped by products detected in the query image. Each entry
       corresponds to one bounding polygon in the query image, and contains the
       matching products specific to that region. There may be duplicate product
       matches in the union of all the per-product results.
       
      repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6;
    • addProductGroupedResults

      public ProductSearchResults.Builder addProductGroupedResults(ProductSearchResults.GroupedResult.Builder builderForValue)
       List of results grouped by products detected in the query image. Each entry
       corresponds to one bounding polygon in the query image, and contains the
       matching products specific to that region. There may be duplicate product
       matches in the union of all the per-product results.
       
      repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6;
    • addProductGroupedResults

      public ProductSearchResults.Builder addProductGroupedResults(int index, ProductSearchResults.GroupedResult.Builder builderForValue)
       List of results grouped by products detected in the query image. Each entry
       corresponds to one bounding polygon in the query image, and contains the
       matching products specific to that region. There may be duplicate product
       matches in the union of all the per-product results.
       
      repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6;
    • addAllProductGroupedResults

      public ProductSearchResults.Builder addAllProductGroupedResults(Iterable<? extends ProductSearchResults.GroupedResult> values)
       List of results grouped by products detected in the query image. Each entry
       corresponds to one bounding polygon in the query image, and contains the
       matching products specific to that region. There may be duplicate product
       matches in the union of all the per-product results.
       
      repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6;
    • clearProductGroupedResults

      public ProductSearchResults.Builder clearProductGroupedResults()
       List of results grouped by products detected in the query image. Each entry
       corresponds to one bounding polygon in the query image, and contains the
       matching products specific to that region. There may be duplicate product
       matches in the union of all the per-product results.
       
      repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6;
    • removeProductGroupedResults

      public ProductSearchResults.Builder removeProductGroupedResults(int index)
       List of results grouped by products detected in the query image. Each entry
       corresponds to one bounding polygon in the query image, and contains the
       matching products specific to that region. There may be duplicate product
       matches in the union of all the per-product results.
       
      repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6;
    • getProductGroupedResultsBuilder

      public ProductSearchResults.GroupedResult.Builder getProductGroupedResultsBuilder(int index)
       List of results grouped by products detected in the query image. Each entry
       corresponds to one bounding polygon in the query image, and contains the
       matching products specific to that region. There may be duplicate product
       matches in the union of all the per-product results.
       
      repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6;
    • getProductGroupedResultsOrBuilder

      public ProductSearchResults.GroupedResultOrBuilder getProductGroupedResultsOrBuilder(int index)
       List of results grouped by products detected in the query image. Each entry
       corresponds to one bounding polygon in the query image, and contains the
       matching products specific to that region. There may be duplicate product
       matches in the union of all the per-product results.
       
      repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6;
      Specified by:
      getProductGroupedResultsOrBuilder in interface ProductSearchResultsOrBuilder
    • getProductGroupedResultsOrBuilderList

      public List<? extends ProductSearchResults.GroupedResultOrBuilder> getProductGroupedResultsOrBuilderList()
       List of results grouped by products detected in the query image. Each entry
       corresponds to one bounding polygon in the query image, and contains the
       matching products specific to that region. There may be duplicate product
       matches in the union of all the per-product results.
       
      repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6;
      Specified by:
      getProductGroupedResultsOrBuilderList in interface ProductSearchResultsOrBuilder
    • addProductGroupedResultsBuilder

      public ProductSearchResults.GroupedResult.Builder addProductGroupedResultsBuilder()
       List of results grouped by products detected in the query image. Each entry
       corresponds to one bounding polygon in the query image, and contains the
       matching products specific to that region. There may be duplicate product
       matches in the union of all the per-product results.
       
      repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6;
    • addProductGroupedResultsBuilder

      public ProductSearchResults.GroupedResult.Builder addProductGroupedResultsBuilder(int index)
       List of results grouped by products detected in the query image. Each entry
       corresponds to one bounding polygon in the query image, and contains the
       matching products specific to that region. There may be duplicate product
       matches in the union of all the per-product results.
       
      repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6;
    • getProductGroupedResultsBuilderList

      public List<ProductSearchResults.GroupedResult.Builder> getProductGroupedResultsBuilderList()
       List of results grouped by products detected in the query image. Each entry
       corresponds to one bounding polygon in the query image, and contains the
       matching products specific to that region. There may be duplicate product
       matches in the union of all the per-product results.
       
      repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6;