Class ProductSearchResults (3.2.0) 
  
      
     
  
  
  
   
  
    
  
  
    
    
    
  Version 3.2.0keyboard_arrow_down  
  
 
    
    
     
    
    
    
    
    
      
  
  
  
    
public   final   class  ProductSearchResults   extends   GeneratedMessageV3   implements   ProductSearchResultsOrBuilder  
   
   Results for a product search request.
 Protobuf type google.cloud.vision.v1p4beta1.ProductSearchResults
 
  
  
  
  Static Fields
   
  INDEX_TIME_FIELD_NUMBER 
  
    
public   static   final   int   INDEX_TIME_FIELD_NUMBER  
   
  Field Value 
  
  PRODUCT_GROUPED_RESULTS_FIELD_NUMBER 
  
    
public   static   final   int   PRODUCT_GROUPED_RESULTS_FIELD_NUMBER  
   
  Field Value 
  
  RESULTS_FIELD_NUMBER 
  
    
public   static   final   int   RESULTS_FIELD_NUMBER  
   
  Field Value 
  
  Static Methods
   
   
  getDefaultInstance() 
  
    
public   static   ProductSearchResults   getDefaultInstance ()  
   
  Returns 
  
   
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
   
  Returns 
  
   
  newBuilder() 
  
    
public   static   ProductSearchResults . Builder   newBuilder ()  
   
  Returns 
  
   
  newBuilder(ProductSearchResults prototype) 
  
    
public   static   ProductSearchResults . Builder   newBuilder ( ProductSearchResults   prototype )  
   
  Parameter 
  
  Returns 
  
   
  
  
    
public   static   ProductSearchResults   parseDelimitedFrom ( InputStream   input )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   ProductSearchResults   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(byte[] data) 
  
    
public   static   ProductSearchResults   parseFrom ( byte []   data )  
   
  Parameter 
  
    
      
        Name  
        Description  
       
      
        data  
        byte [] 
       
     
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   ProductSearchResults   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(ByteString data) 
  
    
public   static   ProductSearchResults   parseFrom ( ByteString   data )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   ProductSearchResults   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   ProductSearchResults   parseFrom ( CodedInputStream   input )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   ProductSearchResults   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   ProductSearchResults   parseFrom ( InputStream   input )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   ProductSearchResults   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(ByteBuffer data) 
  
    
public   static   ProductSearchResults   parseFrom ( ByteBuffer   data )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   ProductSearchResults   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parser() 
  
    
public   static   Parser<ProductSearchResults>   parser ()  
   
  Returns 
  
  Methods
   
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  getDefaultInstanceForType() 
  
    
public   ProductSearchResults   getDefaultInstanceForType ()  
   
  Returns 
  
   
  getIndexTime() 
  
    
public   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;
 
  Returns 
  
   
  getIndexTimeOrBuilder() 
  
    
public   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;
 
  Returns 
  
   
  getParserForType() 
  
    
public   Parser<ProductSearchResults>   getParserForType ()  
   
  Returns 
  
  Overrides 
  
   
  getProductGroupedResults(int index) 
  
    
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.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;
 
 
  Parameter 
  
    
      
        Name  
        Description  
       
      
        index  
        int  
       
     
  
  Returns 
  
   
  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.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;
 
 
  Returns 
  
   
  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.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;
 
 
  Returns 
  
   
  getProductGroupedResultsOrBuilder(int index) 
  
    
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.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;
 
 
  Parameter 
  
    
      
        Name  
        Description  
       
      
        index  
        int  
       
     
  
  Returns 
  
   
  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.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;
 
 
  Returns 
  
    
      
        Type  
        Description  
       
      
        List <? extends com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResultOrBuilder > 
         
       
     
  
   
  getResults(int index) 
  
    
public   ProductSearchResults . Result   getResults ( int   index )  
   
   List of results, one for each product match.
 repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 5;
 
  Parameter 
  
    
      
        Name  
        Description  
       
      
        index  
        int  
       
     
  
  Returns 
  
   
  getResultsCount() 
  
    
public   int   getResultsCount ()  
   
   List of results, one for each product match.
 repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 5;
 
  Returns 
  
   
  getResultsList() 
  
    
public   List<ProductSearchResults . Result >  getResultsList ()  
   
   List of results, one for each product match.
 repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 5;
 
  Returns 
  
   
  getResultsOrBuilder(int index) 
  
    
public   ProductSearchResults . ResultOrBuilder   getResultsOrBuilder ( int   index )  
   
   List of results, one for each product match.
 repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 5;
 
  Parameter 
  
    
      
        Name  
        Description  
       
      
        index  
        int  
       
     
  
  Returns 
  
   
  getResultsOrBuilderList() 
  
    
public   List <?   extends   ProductSearchResults . ResultOrBuilder >  getResultsOrBuilderList ()  
   
   List of results, one for each product match.
 repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 5;
 
  Returns 
  
    
      
        Type  
        Description  
       
      
        List <? extends com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder > 
         
       
     
  
   
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
   
  Returns 
  
  Overrides 
  
   
  getUnknownFields() 
  
    
public   final   UnknownFieldSet   getUnknownFields ()  
   
  Returns 
  
  Overrides 
  
   
  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;
 
  Returns 
  
    
      
        Type  
        Description  
       
      
        boolean  
        Whether the indexTime field is set.
 
       
     
  
   
  hashCode() 
  
  Returns 
  
  Overrides 
  
   
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
   
  Returns 
  
  Overrides 
  
   
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
   
  Returns 
  
  Overrides 
  
   
  newBuilderForType() 
  
    
public   ProductSearchResults . Builder   newBuilderForType ()  
   
  Returns 
  
   
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   ProductSearchResults . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  toBuilder() 
  
    
public   ProductSearchResults . Builder   toBuilder ()  
   
  Returns 
  
   
  writeTo(CodedOutputStream output) 
  
    
public   void   writeTo ( CodedOutputStream   output )  
   
  Parameter 
  
  Overrides 
  
  Exceptions 
  
 
     
    
  
  
  
     
  
 
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-30 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-30 UTC."],[],[]]