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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getCount()
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.getTotal()
The total number of product images that were have been analyzed.int
hashCode()
void
The maximum number of results to return from a query.void
Number of elements skipped.void
setResults
(ResultItem... results) An array of image URLs of images that are similar to the query image.void
setResults
(List<ResultItem> results) 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
The maximum number of results to return from a query.
- Specified by:
getCount
in interfaceImageSearchResponse
- Returns:
- count
-
getOffset
Number of elements skipped.
- Specified by:
getOffset
in interfaceImageSearchResponse
- Returns:
- offset
-
getTotal
The total number of product images that were have been analyzed.
- Specified by:
getTotal
in interfaceImageSearchResponse
- Returns:
- total
-
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 interfaceImageSearchResponse
- Returns:
- results
-
setCount
Description copied from interface:ImageSearchResponse
The maximum number of results to return from a query.
- Specified by:
setCount
in interfaceImageSearchResponse
- Parameters:
count
- value to be set
-
setOffset
Description copied from interface:ImageSearchResponse
Number of elements skipped.
- Specified by:
setOffset
in interfaceImageSearchResponse
- Parameters:
offset
- value to be set
-
setTotal
Description copied from interface:ImageSearchResponse
The total number of product images that were have been analyzed.
- Specified by:
setTotal
in interfaceImageSearchResponse
- Parameters:
total
- value to be set
-
setResults
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 interfaceImageSearchResponse
- Parameters:
results
- values to be set
-
setResults
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 interfaceImageSearchResponse
- Parameters:
results
- values to be set
-
equals
-
hashCode
public int hashCode()
-