Class ProductSearchResults

  • All Implemented Interfaces:
    ProductSearchResultsOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class ProductSearchResults
    extends com.google.protobuf.GeneratedMessageV3
    implements ProductSearchResultsOrBuilder
     Results for a product search request.
     
    Protobuf type google.cloud.vision.v1.ProductSearchResults
    See Also:
    Serialized Form
    • Field Detail

      • INDEX_TIME_FIELD_NUMBER

        public static final int INDEX_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PRODUCT_GROUPED_RESULTS_FIELD_NUMBER

        public static final int PRODUCT_GROUPED_RESULTS_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • 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
      • 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
      • 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.GeneratedMessageV3
      • 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.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • 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
      • newBuilderForType

        public ProductSearchResults.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • 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.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
      • getDefaultInstanceForType

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