public interface ImageSearchResponse
Response format from image search endpoint.
| Modifier and Type | Method and Description |
|---|---|
static ImageSearchResponseBuilder |
builder() |
static ImageSearchResponseBuilder |
builder(ImageSearchResponse template) |
@NotNull Integer |
getCount()
The maximum number of results to return from a query.
|
@NotNull Double |
getOffset()
The offset into the results matching the query.
|
@NotNull @Valid List<ResultItem> |
getResults()
An array of image URLs of images that are similar to the query image.
|
@NotNull Integer |
getTotal()
The total number of product images that were have been analyzed.
|
static ImageSearchResponse |
of() |
static ImageSearchResponse |
of(ImageSearchResponse template) |
void |
setCount(Integer count) |
void |
setOffset(Double offset) |
void |
setResults(List<ResultItem> results) |
void |
setResults(ResultItem... results) |
void |
setTotal(Integer total) |
default <T> T |
withImageSearchResponse(Function<ImageSearchResponse,T> helper) |
@NotNull @NotNull Integer getCount()
The maximum number of results to return from a query.
@NotNull @NotNull 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.
@NotNull @NotNull Integer getTotal()
The total number of product images that were have been analyzed.
@NotNull @Valid @NotNull @Valid 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.
void setCount(Integer count)
void setOffset(Double offset)
void setTotal(Integer total)
void setResults(ResultItem... results)
void setResults(List<ResultItem> results)
static ImageSearchResponse of()
static ImageSearchResponse of(ImageSearchResponse template)
static ImageSearchResponseBuilder builder()
static ImageSearchResponseBuilder builder(ImageSearchResponse template)
default <T> T withImageSearchResponse(Function<ImageSearchResponse,T> helper)