public class ByProjectKeyRecommendationsGeneralCategoriesGet extends io.vrap.rmf.base.client.ApiMethod<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()
| Constructor and Description |
|---|
ByProjectKeyRecommendationsGeneralCategoriesGet(io.vrap.rmf.base.client.ApiHttpClient apiHttpClient,
String projectKey) |
ByProjectKeyRecommendationsGeneralCategoriesGet(ByProjectKeyRecommendationsGeneralCategoriesGet t) |
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, executeBlocking, executeBlocking, getFirstQueryParam, getHeaders, getQueryParam, getQueryParams, getQueryParamUriString, getQueryParamUriStrings, send, sendBlocking, sendBlocking, with, with, withHeader, withHeaders, withHttpRequest, withoutHeader, withoutQueryParam, withQueryParam, withQueryParamspublic ByProjectKeyRecommendationsGeneralCategoriesGet(io.vrap.rmf.base.client.ApiHttpClient apiHttpClient, String projectKey)
public ByProjectKeyRecommendationsGeneralCategoriesGet(ByProjectKeyRecommendationsGeneralCategoriesGet t)
public io.vrap.rmf.base.client.ApiHttpResponse<GeneralCategoryRecommendationPagedQueryResponse> executeBlocking(io.vrap.rmf.base.client.ApiHttpClient client, Duration timeout)
executeBlocking in interface io.vrap.rmf.base.client.ClientRequestCommand<GeneralCategoryRecommendationPagedQueryResponse>executeBlocking in class io.vrap.rmf.base.client.ApiMethod<ByProjectKeyRecommendationsGeneralCategoriesGet,GeneralCategoryRecommendationPagedQueryResponse>public CompletableFuture<io.vrap.rmf.base.client.ApiHttpResponse<GeneralCategoryRecommendationPagedQueryResponse>> execute(io.vrap.rmf.base.client.ApiHttpClient client)
execute in interface io.vrap.rmf.base.client.ClientRequestCommand<GeneralCategoryRecommendationPagedQueryResponse>execute in class io.vrap.rmf.base.client.ApiMethod<ByProjectKeyRecommendationsGeneralCategoriesGet,GeneralCategoryRecommendationPagedQueryResponse>public String getProjectKey()
public List<String> getProductImageUrl()
public List<String> getProductName()
public List<String> getConfidenceMin()
public List<String> getConfidenceMax()
public void setProjectKey(String projectKey)
public <TValue> ByProjectKeyRecommendationsGeneralCategoriesGet withProductImageUrl(TValue productImageUrl)
public <TValue> ByProjectKeyRecommendationsGeneralCategoriesGet addProductImageUrl(TValue productImageUrl)
public ByProjectKeyRecommendationsGeneralCategoriesGet withProductImageUrl(Supplier<String> supplier)
public ByProjectKeyRecommendationsGeneralCategoriesGet addProductImageUrl(Supplier<String> supplier)
public ByProjectKeyRecommendationsGeneralCategoriesGet withProductImageUrl(Function<StringBuilder,StringBuilder> op)
public ByProjectKeyRecommendationsGeneralCategoriesGet addProductImageUrl(Function<StringBuilder,StringBuilder> op)
public <TValue> ByProjectKeyRecommendationsGeneralCategoriesGet withProductImageUrl(Collection<TValue> productImageUrl)
public <TValue> ByProjectKeyRecommendationsGeneralCategoriesGet addProductImageUrl(Collection<TValue> productImageUrl)
public <TValue> ByProjectKeyRecommendationsGeneralCategoriesGet withProductName(TValue productName)
public <TValue> ByProjectKeyRecommendationsGeneralCategoriesGet addProductName(TValue productName)
public ByProjectKeyRecommendationsGeneralCategoriesGet withProductName(Supplier<String> supplier)
public ByProjectKeyRecommendationsGeneralCategoriesGet addProductName(Supplier<String> supplier)
public ByProjectKeyRecommendationsGeneralCategoriesGet withProductName(Function<StringBuilder,StringBuilder> op)
public ByProjectKeyRecommendationsGeneralCategoriesGet addProductName(Function<StringBuilder,StringBuilder> op)
public <TValue> ByProjectKeyRecommendationsGeneralCategoriesGet withProductName(Collection<TValue> productName)
public <TValue> ByProjectKeyRecommendationsGeneralCategoriesGet addProductName(Collection<TValue> productName)
public <TValue> ByProjectKeyRecommendationsGeneralCategoriesGet withLimit(TValue limit)
public <TValue> ByProjectKeyRecommendationsGeneralCategoriesGet addLimit(TValue limit)
public ByProjectKeyRecommendationsGeneralCategoriesGet withLimit(Supplier<Integer> supplier)
public ByProjectKeyRecommendationsGeneralCategoriesGet addLimit(Supplier<Integer> supplier)
public ByProjectKeyRecommendationsGeneralCategoriesGet withLimit(Function<StringBuilder,StringBuilder> op)
public ByProjectKeyRecommendationsGeneralCategoriesGet addLimit(Function<StringBuilder,StringBuilder> op)
public <TValue> ByProjectKeyRecommendationsGeneralCategoriesGet withLimit(Collection<TValue> limit)
public <TValue> ByProjectKeyRecommendationsGeneralCategoriesGet addLimit(Collection<TValue> limit)
public <TValue> ByProjectKeyRecommendationsGeneralCategoriesGet withOffset(TValue offset)
public <TValue> ByProjectKeyRecommendationsGeneralCategoriesGet addOffset(TValue offset)
public ByProjectKeyRecommendationsGeneralCategoriesGet withOffset(Supplier<Integer> supplier)
public ByProjectKeyRecommendationsGeneralCategoriesGet addOffset(Supplier<Integer> supplier)
public ByProjectKeyRecommendationsGeneralCategoriesGet withOffset(Function<StringBuilder,StringBuilder> op)
public ByProjectKeyRecommendationsGeneralCategoriesGet addOffset(Function<StringBuilder,StringBuilder> op)
public <TValue> ByProjectKeyRecommendationsGeneralCategoriesGet withOffset(Collection<TValue> offset)
public <TValue> ByProjectKeyRecommendationsGeneralCategoriesGet addOffset(Collection<TValue> offset)
public <TValue> ByProjectKeyRecommendationsGeneralCategoriesGet withConfidenceMin(TValue confidenceMin)
public <TValue> ByProjectKeyRecommendationsGeneralCategoriesGet addConfidenceMin(TValue confidenceMin)
public ByProjectKeyRecommendationsGeneralCategoriesGet withConfidenceMin(Supplier<Double> supplier)
public ByProjectKeyRecommendationsGeneralCategoriesGet addConfidenceMin(Supplier<Double> supplier)
public ByProjectKeyRecommendationsGeneralCategoriesGet withConfidenceMin(Function<StringBuilder,StringBuilder> op)
public ByProjectKeyRecommendationsGeneralCategoriesGet addConfidenceMin(Function<StringBuilder,StringBuilder> op)
public <TValue> ByProjectKeyRecommendationsGeneralCategoriesGet withConfidenceMin(Collection<TValue> confidenceMin)
public <TValue> ByProjectKeyRecommendationsGeneralCategoriesGet addConfidenceMin(Collection<TValue> confidenceMin)
public <TValue> ByProjectKeyRecommendationsGeneralCategoriesGet withConfidenceMax(TValue confidenceMax)
public <TValue> ByProjectKeyRecommendationsGeneralCategoriesGet addConfidenceMax(TValue confidenceMax)
public ByProjectKeyRecommendationsGeneralCategoriesGet withConfidenceMax(Supplier<Double> supplier)
public ByProjectKeyRecommendationsGeneralCategoriesGet addConfidenceMax(Supplier<Double> supplier)
public ByProjectKeyRecommendationsGeneralCategoriesGet withConfidenceMax(Function<StringBuilder,StringBuilder> op)
public ByProjectKeyRecommendationsGeneralCategoriesGet addConfidenceMax(Function<StringBuilder,StringBuilder> op)
public <TValue> ByProjectKeyRecommendationsGeneralCategoriesGet withConfidenceMax(Collection<TValue> confidenceMax)
public <TValue> ByProjectKeyRecommendationsGeneralCategoriesGet addConfidenceMax(Collection<TValue> confidenceMax)
public int hashCode()