public final class SearchResponse extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Knowledge Graph Search API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
SearchResponse() |
| Modifier and Type | Method and Description |
|---|---|
SearchResponse |
clone() |
Object |
getContext()
The local context applicable for the response.
|
List<Object> |
getItemListElement()
The item list of search results.
|
Object |
getType()
The schema type of top-level JSON-LD object, e.g.
|
SearchResponse |
set(String fieldName,
Object value) |
SearchResponse |
setContext(Object context)
The local context applicable for the response.
|
SearchResponse |
setItemListElement(List<Object> itemListElement)
The item list of search results.
|
SearchResponse |
setType(Object type)
The schema type of top-level JSON-LD object, e.g.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Object getContext()
null for nonepublic SearchResponse setContext(Object context)
context - context or null for nonepublic Object getType()
null for nonepublic SearchResponse setType(Object type)
type - type or null for nonepublic List<Object> getItemListElement()
null for nonepublic SearchResponse setItemListElement(List<Object> itemListElement)
itemListElement - itemListElement or null for nonepublic SearchResponse set(String fieldName, Object value)
set in class GenericJsonpublic SearchResponse clone()
clone in class GenericJsonCopyright © 2011–2022 Google. All rights reserved.