Package com.commercetools.ml.client
Class ByProjectKeyRecommendationsGeneralCategoriesGet
java.lang.Object
io.vrap.rmf.base.client.ApiMethod<T,TResult>
io.vrap.rmf.base.client.TypeApiMethod<ByProjectKeyRecommendationsGeneralCategoriesGet,GeneralCategoryRecommendationPagedQueryResponse>
com.commercetools.ml.client.ByProjectKeyRecommendationsGeneralCategoriesGet
- All Implemented Interfaces:
ClientRequestCommand<GeneralCategoryRecommendationPagedQueryResponse>
,CreateHttpRequestCommand
,HttpRequestCommand<GeneralCategoryRecommendationPagedQueryResponse>
,RequestCommand<GeneralCategoryRecommendationPagedQueryResponse>
public class ByProjectKeyRecommendationsGeneralCategoriesGet
extends TypeApiMethod<ByProjectKeyRecommendationsGeneralCategoriesGet,GeneralCategoryRecommendationPagedQueryResponse>
This endpoint takes arbitrary product names or image URLs and generates recommendations from a general set of categories, which cover a broad range of industries. The full list of supported categories can be found here. These are independent of the categories that are actually defined in your project. The main purpose of this API is to provide a quick way to test the behavior of the category recommendations engine for different names and images. In contrast to the project-specific endpoint, this endpoint does not have activation criteria and is enabled for all projects.
CompletableFuture<ApiHttpResponse<com.commercetools.ml.models.general_category_recommendations.GeneralCategoryRecommendationPagedQueryResponse>> result = apiRoot
.withProjectKey("{projectKey}")
.recommendations()
.generalCategories()
.get()
.withProductName(productName)
.execute()
-
Nested Class Summary
Nested classes/interfaces inherited from class io.vrap.rmf.base.client.ApiMethod
ApiMethod.ParamEntry<K,
V> -
Constructor Summary
ConstructorDescriptionByProjectKeyRecommendationsGeneralCategoriesGet
(ApiHttpClient apiHttpClient, String projectKey) -
Method Summary
Modifier and TypeMethodDescriptionaddConfidenceMax
(Collection<TValue> confidenceMax) add additional confidenceMax query parametersadd additional confidenceMax query parameteraddConfidenceMax
(Supplier<Double> supplier) add additional confidenceMax query parameteraddConfidenceMax
(TValue confidenceMax) add additional confidenceMax query parameteraddConfidenceMin
(Collection<TValue> confidenceMin) add additional confidenceMin query parametersadd additional confidenceMin query parameteraddConfidenceMin
(Supplier<Double> supplier) add additional confidenceMin query parameteraddConfidenceMin
(TValue confidenceMin) add additional confidenceMin query parameteraddLimit
(Collection<TValue> limit) add additional limit query parametersadd additional limit query parameteradd additional limit query parameteraddLimit
(TValue limit) add additional limit query parameteraddOffset
(Collection<TValue> offset) add additional offset query parametersadd additional offset query parameteradd additional offset query parameteraddOffset
(TValue offset) add additional offset query parameteraddProductImageUrl
(Collection<TValue> productImageUrl) add additional productImageUrl query parametersadd additional productImageUrl query parameteraddProductImageUrl
(Supplier<String> supplier) add additional productImageUrl query parameteraddProductImageUrl
(TValue productImageUrl) add additional productImageUrl query parameteraddProductName
(Collection<TValue> productName) add additional productName query parametersadd additional productName query parameteraddProductName
(Supplier<String> supplier) add additional productName query parameteraddProductName
(TValue productName) add additional productName query parameterboolean
execute
(ApiHttpClient client) executeBlocking
(ApiHttpClient client, Duration timeout) getLimit()
int
hashCode()
int
com.fasterxml.jackson.core.type.TypeReference<GeneralCategoryRecommendationPagedQueryResponse>
void
setProjectKey
(String projectKey) toString()
withConfidenceMax
(Collection<TValue> confidenceMax) set confidenceMax with the specified valuesset confidenceMax with the specified valuewithConfidenceMax
(Supplier<Double> supplier) set confidenceMax with the specified valuewithConfidenceMax
(TValue confidenceMax) set confidenceMax with the specified valuewithConfidenceMin
(Collection<TValue> confidenceMin) set confidenceMin with the specified valuesset confidenceMin with the specified valuewithConfidenceMin
(Supplier<Double> supplier) set confidenceMin with the specified valuewithConfidenceMin
(TValue confidenceMin) set confidenceMin with the specified valuewithLimit
(Collection<TValue> limit) set limit with the specified valuesset limit with the specified valueset limit with the specified valuewithLimit
(TValue limit) set limit with the specified valuewithOffset
(Collection<TValue> offset) set offset with the specified valuesset offset with the specified valuewithOffset
(Supplier<Integer> supplier) set offset with the specified valuewithOffset
(TValue offset) set offset with the specified valuewithProductImageUrl
(Collection<TValue> productImageUrl) set productImageUrl with the specified valuesset productImageUrl with the specified valuewithProductImageUrl
(Supplier<String> supplier) set productImageUrl with the specified valuewithProductImageUrl
(TValue productImageUrl) set productImageUrl with the specified valuewithProductName
(Collection<TValue> productName) set productName with the specified valuesset productName with the specified valuewithProductName
(Supplier<String> supplier) set productName with the specified valuewithProductName
(TValue productName) set productName 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.CreateHttpRequestCommand
createHttpRequest
Methods inherited from interface io.vrap.rmf.base.client.RequestCommand
executeBlocking
-
Constructor Details
-
ByProjectKeyRecommendationsGeneralCategoriesGet
public ByProjectKeyRecommendationsGeneralCategoriesGet(ApiHttpClient apiHttpClient, String projectKey) -
ByProjectKeyRecommendationsGeneralCategoriesGet
public ByProjectKeyRecommendationsGeneralCategoriesGet(ByProjectKeyRecommendationsGeneralCategoriesGet t)
-
-
Method Details
-
resultType
public com.fasterxml.jackson.core.type.TypeReference<GeneralCategoryRecommendationPagedQueryResponse> resultType() -
executeBlocking
public ApiHttpResponse<GeneralCategoryRecommendationPagedQueryResponse> executeBlocking(ApiHttpClient client, Duration timeout) - Specified by:
executeBlocking
in interfaceClientRequestCommand<GeneralCategoryRecommendationPagedQueryResponse>
- Specified by:
executeBlocking
in classApiMethod<ByProjectKeyRecommendationsGeneralCategoriesGet,
GeneralCategoryRecommendationPagedQueryResponse>
-
execute
public CompletableFuture<ApiHttpResponse<GeneralCategoryRecommendationPagedQueryResponse>> execute(ApiHttpClient client) - Specified by:
execute
in interfaceClientRequestCommand<GeneralCategoryRecommendationPagedQueryResponse>
- Specified by:
execute
in classApiMethod<ByProjectKeyRecommendationsGeneralCategoriesGet,
GeneralCategoryRecommendationPagedQueryResponse>
-
getProjectKey
-
getProductImageUrl
-
getProductName
-
getLimit
-
getOffset
-
getConfidenceMin
-
getConfidenceMax
-
setProjectKey
-
withProductImageUrl
public <TValue> ByProjectKeyRecommendationsGeneralCategoriesGet withProductImageUrl(TValue productImageUrl) set productImageUrl with the specified value- Type Parameters:
TValue
- value type- Parameters:
productImageUrl
- value to be set- Returns:
- ByProjectKeyRecommendationsGeneralCategoriesGet
-
addProductImageUrl
public <TValue> ByProjectKeyRecommendationsGeneralCategoriesGet addProductImageUrl(TValue productImageUrl) add additional productImageUrl query parameter- Type Parameters:
TValue
- value type- Parameters:
productImageUrl
- value to be added- Returns:
- ByProjectKeyRecommendationsGeneralCategoriesGet
-
withProductImageUrl
public ByProjectKeyRecommendationsGeneralCategoriesGet withProductImageUrl(Supplier<String> supplier) set productImageUrl with the specified value- Parameters:
supplier
- supplier for the value to be set- Returns:
- ByProjectKeyRecommendationsGeneralCategoriesGet
-
addProductImageUrl
public ByProjectKeyRecommendationsGeneralCategoriesGet addProductImageUrl(Supplier<String> supplier) add additional productImageUrl query parameter- Parameters:
supplier
- supplier for the value to be added- Returns:
- ByProjectKeyRecommendationsGeneralCategoriesGet
-
withProductImageUrl
public ByProjectKeyRecommendationsGeneralCategoriesGet withProductImageUrl(Function<StringBuilder, StringBuilder> op) set productImageUrl with the specified value- Parameters:
op
- builder for the value to be set- Returns:
- ByProjectKeyRecommendationsGeneralCategoriesGet
-
addProductImageUrl
public ByProjectKeyRecommendationsGeneralCategoriesGet addProductImageUrl(Function<StringBuilder, StringBuilder> op) add additional productImageUrl query parameter- Parameters:
op
- builder for the value to be added- Returns:
- ByProjectKeyRecommendationsGeneralCategoriesGet
-
withProductImageUrl
public <TValue> ByProjectKeyRecommendationsGeneralCategoriesGet withProductImageUrl(Collection<TValue> productImageUrl) set productImageUrl with the specified values- Type Parameters:
TValue
- value type- Parameters:
productImageUrl
- values to be set- Returns:
- ByProjectKeyRecommendationsGeneralCategoriesGet
-
addProductImageUrl
public <TValue> ByProjectKeyRecommendationsGeneralCategoriesGet addProductImageUrl(Collection<TValue> productImageUrl) add additional productImageUrl query parameters- Type Parameters:
TValue
- value type- Parameters:
productImageUrl
- values to be added- Returns:
- ByProjectKeyRecommendationsGeneralCategoriesGet
-
withProductName
set productName with the specified value- Type Parameters:
TValue
- value type- Parameters:
productName
- value to be set- Returns:
- ByProjectKeyRecommendationsGeneralCategoriesGet
-
addProductName
add additional productName query parameter- Type Parameters:
TValue
- value type- Parameters:
productName
- value to be added- Returns:
- ByProjectKeyRecommendationsGeneralCategoriesGet
-
withProductName
set productName with the specified value- Parameters:
supplier
- supplier for the value to be set- Returns:
- ByProjectKeyRecommendationsGeneralCategoriesGet
-
addProductName
add additional productName query parameter- Parameters:
supplier
- supplier for the value to be added- Returns:
- ByProjectKeyRecommendationsGeneralCategoriesGet
-
withProductName
public ByProjectKeyRecommendationsGeneralCategoriesGet withProductName(Function<StringBuilder, StringBuilder> op) set productName with the specified value- Parameters:
op
- builder for the value to be set- Returns:
- ByProjectKeyRecommendationsGeneralCategoriesGet
-
addProductName
public ByProjectKeyRecommendationsGeneralCategoriesGet addProductName(Function<StringBuilder, StringBuilder> op) add additional productName query parameter- Parameters:
op
- builder for the value to be added- Returns:
- ByProjectKeyRecommendationsGeneralCategoriesGet
-
withProductName
public <TValue> ByProjectKeyRecommendationsGeneralCategoriesGet withProductName(Collection<TValue> productName) set productName with the specified values- Type Parameters:
TValue
- value type- Parameters:
productName
- values to be set- Returns:
- ByProjectKeyRecommendationsGeneralCategoriesGet
-
addProductName
public <TValue> ByProjectKeyRecommendationsGeneralCategoriesGet addProductName(Collection<TValue> productName) add additional productName query parameters- Type Parameters:
TValue
- value type- Parameters:
productName
- values to be added- Returns:
- ByProjectKeyRecommendationsGeneralCategoriesGet
-
withLimit
set limit with the specified value- Type Parameters:
TValue
- value type- Parameters:
limit
- value to be set- Returns:
- ByProjectKeyRecommendationsGeneralCategoriesGet
-
addLimit
add additional limit query parameter- Type Parameters:
TValue
- value type- Parameters:
limit
- value to be added- Returns:
- ByProjectKeyRecommendationsGeneralCategoriesGet
-
withLimit
set limit with the specified value- Parameters:
supplier
- supplier for the value to be set- Returns:
- ByProjectKeyRecommendationsGeneralCategoriesGet
-
addLimit
add additional limit query parameter- Parameters:
supplier
- supplier for the value to be added- Returns:
- ByProjectKeyRecommendationsGeneralCategoriesGet
-
withLimit
public ByProjectKeyRecommendationsGeneralCategoriesGet withLimit(Function<StringBuilder, StringBuilder> op) set limit with the specified value- Parameters:
op
- builder for the value to be set- Returns:
- ByProjectKeyRecommendationsGeneralCategoriesGet
-
addLimit
public ByProjectKeyRecommendationsGeneralCategoriesGet addLimit(Function<StringBuilder, StringBuilder> op) add additional limit query parameter- Parameters:
op
- builder for the value to be added- Returns:
- ByProjectKeyRecommendationsGeneralCategoriesGet
-
withLimit
set limit with the specified values- Type Parameters:
TValue
- value type- Parameters:
limit
- values to be set- Returns:
- ByProjectKeyRecommendationsGeneralCategoriesGet
-
addLimit
add additional limit query parameters- Type Parameters:
TValue
- value type- Parameters:
limit
- values to be added- Returns:
- ByProjectKeyRecommendationsGeneralCategoriesGet
-
withOffset
set offset with the specified value- Type Parameters:
TValue
- value type- Parameters:
offset
- value to be set- Returns:
- ByProjectKeyRecommendationsGeneralCategoriesGet
-
addOffset
add additional offset query parameter- Type Parameters:
TValue
- value type- Parameters:
offset
- value to be added- Returns:
- ByProjectKeyRecommendationsGeneralCategoriesGet
-
withOffset
set offset with the specified value- Parameters:
supplier
- supplier for the value to be set- Returns:
- ByProjectKeyRecommendationsGeneralCategoriesGet
-
addOffset
add additional offset query parameter- Parameters:
supplier
- supplier for the value to be added- Returns:
- ByProjectKeyRecommendationsGeneralCategoriesGet
-
withOffset
public ByProjectKeyRecommendationsGeneralCategoriesGet withOffset(Function<StringBuilder, StringBuilder> op) set offset with the specified value- Parameters:
op
- builder for the value to be set- Returns:
- ByProjectKeyRecommendationsGeneralCategoriesGet
-
addOffset
public ByProjectKeyRecommendationsGeneralCategoriesGet addOffset(Function<StringBuilder, StringBuilder> op) add additional offset query parameter- Parameters:
op
- builder for the value to be added- Returns:
- ByProjectKeyRecommendationsGeneralCategoriesGet
-
withOffset
public <TValue> ByProjectKeyRecommendationsGeneralCategoriesGet withOffset(Collection<TValue> offset) set offset with the specified values- Type Parameters:
TValue
- value type- Parameters:
offset
- values to be set- Returns:
- ByProjectKeyRecommendationsGeneralCategoriesGet
-
addOffset
public <TValue> ByProjectKeyRecommendationsGeneralCategoriesGet addOffset(Collection<TValue> offset) add additional offset query parameters- Type Parameters:
TValue
- value type- Parameters:
offset
- values to be added- Returns:
- ByProjectKeyRecommendationsGeneralCategoriesGet
-
withConfidenceMin
public <TValue> ByProjectKeyRecommendationsGeneralCategoriesGet withConfidenceMin(TValue confidenceMin) set confidenceMin with the specified value- Type Parameters:
TValue
- value type- Parameters:
confidenceMin
- value to be set- Returns:
- ByProjectKeyRecommendationsGeneralCategoriesGet
-
addConfidenceMin
public <TValue> ByProjectKeyRecommendationsGeneralCategoriesGet addConfidenceMin(TValue confidenceMin) add additional confidenceMin query parameter- Type Parameters:
TValue
- value type- Parameters:
confidenceMin
- value to be added- Returns:
- ByProjectKeyRecommendationsGeneralCategoriesGet
-
withConfidenceMin
set confidenceMin with the specified value- Parameters:
supplier
- supplier for the value to be set- Returns:
- ByProjectKeyRecommendationsGeneralCategoriesGet
-
addConfidenceMin
add additional confidenceMin query parameter- Parameters:
supplier
- supplier for the value to be added- Returns:
- ByProjectKeyRecommendationsGeneralCategoriesGet
-
withConfidenceMin
public ByProjectKeyRecommendationsGeneralCategoriesGet withConfidenceMin(Function<StringBuilder, StringBuilder> op) set confidenceMin with the specified value- Parameters:
op
- builder for the value to be set- Returns:
- ByProjectKeyRecommendationsGeneralCategoriesGet
-
addConfidenceMin
public ByProjectKeyRecommendationsGeneralCategoriesGet addConfidenceMin(Function<StringBuilder, StringBuilder> op) add additional confidenceMin query parameter- Parameters:
op
- builder for the value to be added- Returns:
- ByProjectKeyRecommendationsGeneralCategoriesGet
-
withConfidenceMin
public <TValue> ByProjectKeyRecommendationsGeneralCategoriesGet withConfidenceMin(Collection<TValue> confidenceMin) set confidenceMin with the specified values- Type Parameters:
TValue
- value type- Parameters:
confidenceMin
- values to be set- Returns:
- ByProjectKeyRecommendationsGeneralCategoriesGet
-
addConfidenceMin
public <TValue> ByProjectKeyRecommendationsGeneralCategoriesGet addConfidenceMin(Collection<TValue> confidenceMin) add additional confidenceMin query parameters- Type Parameters:
TValue
- value type- Parameters:
confidenceMin
- values to be added- Returns:
- ByProjectKeyRecommendationsGeneralCategoriesGet
-
withConfidenceMax
public <TValue> ByProjectKeyRecommendationsGeneralCategoriesGet withConfidenceMax(TValue confidenceMax) set confidenceMax with the specified value- Type Parameters:
TValue
- value type- Parameters:
confidenceMax
- value to be set- Returns:
- ByProjectKeyRecommendationsGeneralCategoriesGet
-
addConfidenceMax
public <TValue> ByProjectKeyRecommendationsGeneralCategoriesGet addConfidenceMax(TValue confidenceMax) add additional confidenceMax query parameter- Type Parameters:
TValue
- value type- Parameters:
confidenceMax
- value to be added- Returns:
- ByProjectKeyRecommendationsGeneralCategoriesGet
-
withConfidenceMax
set confidenceMax with the specified value- Parameters:
supplier
- supplier for the value to be set- Returns:
- ByProjectKeyRecommendationsGeneralCategoriesGet
-
addConfidenceMax
add additional confidenceMax query parameter- Parameters:
supplier
- supplier for the value to be added- Returns:
- ByProjectKeyRecommendationsGeneralCategoriesGet
-
withConfidenceMax
public ByProjectKeyRecommendationsGeneralCategoriesGet withConfidenceMax(Function<StringBuilder, StringBuilder> op) set confidenceMax with the specified value- Parameters:
op
- builder for the value to be set- Returns:
- ByProjectKeyRecommendationsGeneralCategoriesGet
-
addConfidenceMax
public ByProjectKeyRecommendationsGeneralCategoriesGet addConfidenceMax(Function<StringBuilder, StringBuilder> op) add additional confidenceMax query parameter- Parameters:
op
- builder for the value to be added- Returns:
- ByProjectKeyRecommendationsGeneralCategoriesGet
-
withConfidenceMax
public <TValue> ByProjectKeyRecommendationsGeneralCategoriesGet withConfidenceMax(Collection<TValue> confidenceMax) set confidenceMax with the specified values- Type Parameters:
TValue
- value type- Parameters:
confidenceMax
- values to be set- Returns:
- ByProjectKeyRecommendationsGeneralCategoriesGet
-
addConfidenceMax
public <TValue> ByProjectKeyRecommendationsGeneralCategoriesGet addConfidenceMax(Collection<TValue> confidenceMax) add additional confidenceMax query parameters- Type Parameters:
TValue
- value type- Parameters:
confidenceMax
- values to be added- Returns:
- ByProjectKeyRecommendationsGeneralCategoriesGet
-
equals
-
hashCode
public int hashCode() -
toString
-
reflectionHashCode
public int reflectionHashCode()
-