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.Flags
AbstractMap.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, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public 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 GenericJson
public SearchResponse clone()
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.