public class ImageSearchResponseImpl extends Object implements ImageSearchResponse
Response format from image search endpoint.
| Constructor and Description |
|---|
ImageSearchResponseImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Integer |
getCount()
The maximum number of results to return from a query.
|
Double |
getOffset()
The offset into the results matching the query.
|
List<ResultItem> |
getResults()
An array of image URLs of images that are similar to the query image.
|
Integer |
getTotal()
The total number of product images that were have been analyzed.
|
int |
hashCode() |
void |
setCount(Integer count) |
void |
setOffset(Double offset) |
void |
setResults(List<ResultItem> results) |
void |
setResults(ResultItem... results) |
void |
setTotal(Integer total) |
getClass, notify, notifyAll, toString, wait, wait, waitbuilder, builder, of, of, withImageSearchResponsepublic Integer getCount()
The maximum number of results to return from a query.
getCount in interface ImageSearchResponsepublic Double getOffset()
The offset into the results matching the query. An offset of 0 is the default value indicating that no results should be skipped.
getOffset in interface ImageSearchResponsepublic Integer getTotal()
The total number of product images that were have been analyzed.
getTotal in interface ImageSearchResponsepublic 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.
getResults in interface ImageSearchResponsepublic void setCount(Integer count)
setCount in interface ImageSearchResponsepublic void setOffset(Double offset)
setOffset in interface ImageSearchResponsepublic void setTotal(Integer total)
setTotal in interface ImageSearchResponsepublic void setResults(ResultItem... results)
setResults in interface ImageSearchResponsepublic void setResults(List<ResultItem> results)
setResults in interface ImageSearchResponse