public static class Storefront.PredictiveSearchResult extends AbstractResponse<Storefront.PredictiveSearchResult>
optimisticData, responseData| Constructor and Description |
|---|
PredictiveSearchResult() |
PredictiveSearchResult(JsonObject fields) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Storefront.Article> |
getArticles()
The articles that match the search query.
|
java.util.List<Storefront.Collection> |
getCollections()
The articles that match the search query.
|
java.lang.String |
getGraphQlTypeName() |
java.util.List<Storefront.Page> |
getPages()
The pages that match the search query.
|
java.util.List<Storefront.Product> |
getProducts()
The products that match the search query.
|
java.util.List<Storefront.SearchQuerySuggestion> |
getQueries()
The query suggestions that are relevant to the search query.
|
Storefront.PredictiveSearchResult |
setArticles(java.util.List<Storefront.Article> arg) |
Storefront.PredictiveSearchResult |
setCollections(java.util.List<Storefront.Collection> arg) |
Storefront.PredictiveSearchResult |
setPages(java.util.List<Storefront.Page> arg) |
Storefront.PredictiveSearchResult |
setProducts(java.util.List<Storefront.Product> arg) |
Storefront.PredictiveSearchResult |
setQueries(java.util.List<Storefront.SearchQuerySuggestion> arg) |
boolean |
unwrapsToObject(java.lang.String key) |
collectNodes, get, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, withAliaspublic PredictiveSearchResult()
public PredictiveSearchResult(JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic java.lang.String getGraphQlTypeName()
public java.util.List<Storefront.Article> getArticles()
public Storefront.PredictiveSearchResult setArticles(java.util.List<Storefront.Article> arg)
public java.util.List<Storefront.Collection> getCollections()
public Storefront.PredictiveSearchResult setCollections(java.util.List<Storefront.Collection> arg)
public java.util.List<Storefront.Page> getPages()
public Storefront.PredictiveSearchResult setPages(java.util.List<Storefront.Page> arg)
public java.util.List<Storefront.Product> getProducts()
public Storefront.PredictiveSearchResult setProducts(java.util.List<Storefront.Product> arg)
public java.util.List<Storefront.SearchQuerySuggestion> getQueries()
public Storefront.PredictiveSearchResult setQueries(java.util.List<Storefront.SearchQuerySuggestion> arg)
public boolean unwrapsToObject(java.lang.String key)
unwrapsToObject in class AbstractResponse<Storefront.PredictiveSearchResult>