Class ProductSearchResults

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.vision.v1.ProductSearchResults
All Implemented Interfaces:
ProductSearchResultsOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class ProductSearchResults extends com.google.protobuf.GeneratedMessage implements ProductSearchResultsOrBuilder
 Results for a product search request.
 
Protobuf type google.cloud.vision.v1.ProductSearchResults
See Also:
  • Field Details

    • INDEX_TIME_FIELD_NUMBER

      public static final int INDEX_TIME_FIELD_NUMBER
      See Also:
    • RESULTS_FIELD_NUMBER

      public static final int RESULTS_FIELD_NUMBER
      See Also:
    • PRODUCT_GROUPED_RESULTS_FIELD_NUMBER

      public static final int PRODUCT_GROUPED_RESULTS_FIELD_NUMBER
      See Also:
  • 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
    • 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.
    • 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
    • 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
    • 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
    • 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
    • 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
    • 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
    • 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
    • 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
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static ProductSearchResults parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ProductSearchResults parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ProductSearchResults parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ProductSearchResults parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ProductSearchResults parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ProductSearchResults parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ProductSearchResults parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ProductSearchResults parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ProductSearchResults parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ProductSearchResults parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ProductSearchResults parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ProductSearchResults parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static ProductSearchResults.Builder newBuilder()
    • newBuilder

      public static ProductSearchResults.Builder newBuilder(ProductSearchResults prototype)
    • toBuilder

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

      protected ProductSearchResults.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static ProductSearchResults getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ProductSearchResults> parser()
    • getParserForType

      public com.google.protobuf.Parser<ProductSearchResults> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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