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 -
Method Summary
Modifier and TypeMethodDescriptionbooleangetCount()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.inthashCode()voidThe maximum number of results to return from a query.voidNumber of elements skipped.voidsetResults(ResultItem... results) An array of image URLs of images that are similar to the query image.voidsetResults(List<ResultItem> results) An array of image URLs of images that are similar to the query image.voidThe total number of product images that were have been analyzed.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.commercetools.ml.models.image_search.ImageSearchResponse
withImageSearchResponseMethods 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:
getCountin interfaceImageSearchResponse- Returns:
- count
-
getOffset
Number of elements skipped.
- Specified by:
getOffsetin interfaceImageSearchResponse- Returns:
- offset
-
getTotal
The total number of product images that were have been analyzed.
- Specified by:
getTotalin 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:
getResultsin interfaceImageSearchResponse- Returns:
- results
-
setCount
Description copied from interface:ImageSearchResponseThe maximum number of results to return from a query.
- Specified by:
setCountin interfaceImageSearchResponse- Parameters:
count- value to be set
-
setOffset
Description copied from interface:ImageSearchResponseNumber of elements skipped.
- Specified by:
setOffsetin interfaceImageSearchResponse- Parameters:
offset- value to be set
-
setTotal
Description copied from interface:ImageSearchResponseThe total number of product images that were have been analyzed.
- Specified by:
setTotalin interfaceImageSearchResponse- Parameters:
total- value to be set
-
setResults
Description copied from interface:ImageSearchResponseAn array of image URLs of images that are similar to the query image. If no matching images are found, results is empty.
- Specified by:
setResultsin interfaceImageSearchResponse- Parameters:
results- values to be set
-
setResults
Description copied from interface:ImageSearchResponseAn array of image URLs of images that are similar to the query image. If no matching images are found, results is empty.
- Specified by:
setResultsin interfaceImageSearchResponse- Parameters:
results- values to be set
-
equals
-
hashCode
public int hashCode()
-