Package com.commercetools.ml.client
Class ByProjectKeyImageSearchPost
java.lang.Object
io.vrap.rmf.base.client.ApiMethod<T,TResult>
io.vrap.rmf.base.client.BodyApiMethod<ByProjectKeyImageSearchPost,ImageSearchResponse,File>
com.commercetools.ml.client.ByProjectKeyImageSearchPost
- All Implemented Interfaces:
io.vrap.rmf.base.client.ClientRequestCommand<ImageSearchResponse>
,io.vrap.rmf.base.client.CreateHttpRequestCommand
,io.vrap.rmf.base.client.RequestCommand<ImageSearchResponse>
public class ByProjectKeyImageSearchPost
extends io.vrap.rmf.base.client.BodyApiMethod<ByProjectKeyImageSearchPost,ImageSearchResponse,File>
Accepts an image file and returns similar products from product catalogue.
CompletableFuture<ApiHttpResponse<com.commercetools.ml.models.image_search.ImageSearchResponse>> result = apiRoot
.withProjectKey("{projectKey}")
.imageSearch()
.post(file)
.execute()
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionByProjectKeyImageSearchPost
(io.vrap.rmf.base.client.ApiHttpClient apiHttpClient, String projectKey, File file) -
Method Summary
Modifier and TypeMethodDescription<TValue> ByProjectKeyImageSearchPost
addLimit
(Collection<TValue> limit) add additional limit query parametersadd additional limit query parameteradd additional limit query parameter<TValue> ByProjectKeyImageSearchPost
addLimit
(TValue limit) add additional limit query parameter<TValue> ByProjectKeyImageSearchPost
addOffset
(Collection<TValue> offset) add additional offset query parametersadd additional offset query parameteradd additional offset query parameter<TValue> ByProjectKeyImageSearchPost
addOffset
(TValue offset) add additional offset query parameterboolean
CompletableFuture<io.vrap.rmf.base.client.ApiHttpResponse<ImageSearchResponse>>
execute
(io.vrap.rmf.base.client.ApiHttpClient client) io.vrap.rmf.base.client.ApiHttpResponse<ImageSearchResponse>
executeBlocking
(io.vrap.rmf.base.client.ApiHttpClient client, Duration timeout) getBody()
getLimit()
int
hashCode()
int
void
setProjectKey
(String projectKey) toString()
<TValue> ByProjectKeyImageSearchPost
withLimit
(Collection<TValue> limit) set limit with the specified valuesset limit with the specified valueset limit with the specified value<TValue> ByProjectKeyImageSearchPost
withLimit
(TValue limit) set limit with the specified value<TValue> ByProjectKeyImageSearchPost
withOffset
(Collection<TValue> offset) set offset with the specified valuesset offset with the specified valuewithOffset
(Supplier<Integer> supplier) set offset with the specified value<TValue> ByProjectKeyImageSearchPost
withOffset
(TValue offset) set offset with the specified valueMethods inherited from class io.vrap.rmf.base.client.ApiMethod
addHeader, addQueryParam, addQueryParams, contentType, createHttpRequest, execute, execute, execute, execute, execute, execute, execute, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, getFirstQueryParam, getHeaders, getQueryParam, getQueryParams, getQueryParamUriString, getQueryParamUriStrings, send, sendBlocking, sendBlocking, with, with, withHeader, withHeaders, withHttpRequest, withoutHeader, withoutQueryParam, withQueryParam, withQueryParams
Methods inherited from interface io.vrap.rmf.base.client.ClientRequestCommand
executeBlocking
Methods inherited from interface io.vrap.rmf.base.client.RequestCommand
executeBlocking
-
Constructor Details
-
ByProjectKeyImageSearchPost
-
ByProjectKeyImageSearchPost
-
-
Method Details
-
executeBlocking
public io.vrap.rmf.base.client.ApiHttpResponse<ImageSearchResponse> executeBlocking(io.vrap.rmf.base.client.ApiHttpClient client, Duration timeout) - Specified by:
executeBlocking
in interfaceio.vrap.rmf.base.client.ClientRequestCommand<ImageSearchResponse>
- Specified by:
executeBlocking
in classio.vrap.rmf.base.client.ApiMethod<ByProjectKeyImageSearchPost,
ImageSearchResponse>
-
execute
public CompletableFuture<io.vrap.rmf.base.client.ApiHttpResponse<ImageSearchResponse>> execute(io.vrap.rmf.base.client.ApiHttpClient client) - Specified by:
execute
in interfaceio.vrap.rmf.base.client.ClientRequestCommand<ImageSearchResponse>
- Specified by:
execute
in classio.vrap.rmf.base.client.ApiMethod<ByProjectKeyImageSearchPost,
ImageSearchResponse>
-
getProjectKey
-
getLimit
-
getOffset
-
setProjectKey
-
withLimit
set limit with the specified value- Type Parameters:
TValue
- value type- Parameters:
limit
- value to be set- Returns:
- ByProjectKeyImageSearchPost
-
addLimit
add additional limit query parameter- Type Parameters:
TValue
- value type- Parameters:
limit
- value to be added- Returns:
- ByProjectKeyImageSearchPost
-
withLimit
set limit with the specified value- Parameters:
supplier
- supplier for the value to be set- Returns:
- ByProjectKeyImageSearchPost
-
addLimit
add additional limit query parameter- Parameters:
supplier
- supplier for the value to be added- Returns:
- ByProjectKeyImageSearchPost
-
withLimit
set limit with the specified value- Parameters:
op
- builder for the value to be set- Returns:
- ByProjectKeyImageSearchPost
-
addLimit
add additional limit query parameter- Parameters:
op
- builder for the value to be added- Returns:
- ByProjectKeyImageSearchPost
-
withLimit
set limit with the specified values- Type Parameters:
TValue
- value type- Parameters:
limit
- values to be set- Returns:
- ByProjectKeyImageSearchPost
-
addLimit
add additional limit query parameters- Type Parameters:
TValue
- value type- Parameters:
limit
- values to be added- Returns:
- ByProjectKeyImageSearchPost
-
withOffset
set offset with the specified value- Type Parameters:
TValue
- value type- Parameters:
offset
- value to be set- Returns:
- ByProjectKeyImageSearchPost
-
addOffset
add additional offset query parameter- Type Parameters:
TValue
- value type- Parameters:
offset
- value to be added- Returns:
- ByProjectKeyImageSearchPost
-
withOffset
set offset with the specified value- Parameters:
supplier
- supplier for the value to be set- Returns:
- ByProjectKeyImageSearchPost
-
addOffset
add additional offset query parameter- Parameters:
supplier
- supplier for the value to be added- Returns:
- ByProjectKeyImageSearchPost
-
withOffset
set offset with the specified value- Parameters:
op
- builder for the value to be set- Returns:
- ByProjectKeyImageSearchPost
-
addOffset
add additional offset query parameter- Parameters:
op
- builder for the value to be added- Returns:
- ByProjectKeyImageSearchPost
-
withOffset
set offset with the specified values- Type Parameters:
TValue
- value type- Parameters:
offset
- values to be set- Returns:
- ByProjectKeyImageSearchPost
-
addOffset
add additional offset query parameters- Type Parameters:
TValue
- value type- Parameters:
offset
- values to be added- Returns:
- ByProjectKeyImageSearchPost
-
getBody
- Overrides:
getBody
in classio.vrap.rmf.base.client.BodyApiMethod<ByProjectKeyImageSearchPost,
ImageSearchResponse, File>
-
withBody
- Overrides:
withBody
in classio.vrap.rmf.base.client.BodyApiMethod<ByProjectKeyImageSearchPost,
ImageSearchResponse, File>
-
equals
-
hashCode
public int hashCode() -
toString
-
reflectionHashCode
public int reflectionHashCode()
-