Class ImageSearchResponseImpl

java.lang.Object
com.commercetools.ml.models.image_search.ImageSearchResponseImpl
All Implemented Interfaces:
ImageSearchResponse, io.vrap.rmf.base.client.ModelBase

public class ImageSearchResponseImpl extends Object implements ImageSearchResponse, io.vrap.rmf.base.client.ModelBase

Response format from image search endpoint.

  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase

    io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
  • Constructor Summary

    Constructors
    Constructor
    Description
    create empty instance
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    The maximum number of results to return from a query.
    Number of elements skipped.
    An array of image URLs of images that are similar to the query image.
    The total number of product images that were have been analyzed.
    int
     
    void
    The maximum number of results to return from a query.
    void
    setOffset(Double offset)
    Number of elements skipped.
    void
    setResults(ResultItem... results)
    An array of image URLs of images that are similar to the query image.
    void
    An array of image URLs of images that are similar to the query image.
    void
    The total number of product images that were have been analyzed.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.commercetools.ml.models.image_search.ImageSearchResponse

    withImageSearchResponse

    Methods inherited from interface io.vrap.rmf.base.client.ModelBase

    reflectionString, reflectionString
  • Constructor Details

    • ImageSearchResponseImpl

      public ImageSearchResponseImpl()
      create empty instance
  • Method Details

    • getCount

      public Integer getCount()

      The maximum number of results to return from a query.

      Specified by:
      getCount in interface ImageSearchResponse
      Returns:
      count
    • getOffset

      public Double getOffset()

      Number of elements skipped.

      Specified by:
      getOffset in interface ImageSearchResponse
      Returns:
      offset
    • getTotal

      public Integer getTotal()

      The total number of product images that were have been analyzed.

      Specified by:
      getTotal in interface ImageSearchResponse
      Returns:
      total
    • getResults

      public List<ResultItem> getResults()

      An array of image URLs of images that are similar to the query image. If no matching images are found, results is empty.

      Specified by:
      getResults in interface ImageSearchResponse
      Returns:
      results
    • setCount

      public void setCount(Integer count)
      Description copied from interface: ImageSearchResponse

      The maximum number of results to return from a query.

      Specified by:
      setCount in interface ImageSearchResponse
      Parameters:
      count - value to be set
    • setOffset

      public void setOffset(Double offset)
      Description copied from interface: ImageSearchResponse

      Number of elements skipped.

      Specified by:
      setOffset in interface ImageSearchResponse
      Parameters:
      offset - value to be set
    • setTotal

      public void setTotal(Integer total)
      Description copied from interface: ImageSearchResponse

      The total number of product images that were have been analyzed.

      Specified by:
      setTotal in interface ImageSearchResponse
      Parameters:
      total - value to be set
    • setResults

      public void setResults(ResultItem... results)
      Description copied from interface: ImageSearchResponse

      An array of image URLs of images that are similar to the query image. If no matching images are found, results is empty.

      Specified by:
      setResults in interface ImageSearchResponse
      Parameters:
      results - values to be set
    • setResults

      public void setResults(List<ResultItem> results)
      Description copied from interface: ImageSearchResponse

      An array of image URLs of images that are similar to the query image. If no matching images are found, results is empty.

      Specified by:
      setResults in interface ImageSearchResponse
      Parameters:
      results - values to be set
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object