public final class Search
extends com.google.api.client.json.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 Custom Search API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
| Modifier and Type | Class and Description |
|---|---|
static class |
Search.Queries
Query metadata for the previous, current, and next pages of results.
|
static class |
Search.SearchInformation
Metadata about a search operation.
|
static class |
Search.Spelling
Spell correction information for a query.
|
static class |
Search.Url
OpenSearch template and URL.
|
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Search() |
| Modifier and Type | Method and Description |
|---|---|
Search |
clone() |
Map<String,Object> |
getContext()
Metadata and refinements associated with the given search engine, including: * The name of the
search engine that was used for the query.
|
List<Result> |
getItems()
The current set of custom search results.
|
String |
getKind()
Unique identifier for the type of current object.
|
List<Promotion> |
getPromotions()
The set of [promotions](https://developers.google.com/custom-search/docs/promotions).
|
Search.Queries |
getQueries()
Query metadata for the previous, current, and next pages of results.
|
Search.SearchInformation |
getSearchInformation()
Metadata about a search operation.
|
Search.Spelling |
getSpelling()
Spell correction information for a query.
|
Search.Url |
getUrl()
OpenSearch template and URL.
|
Search |
set(String fieldName,
Object value) |
Search |
setContext(Map<String,Object> context)
Metadata and refinements associated with the given search engine, including: * The name of the
search engine that was used for the query.
|
Search |
setItems(List<Result> items)
The current set of custom search results.
|
Search |
setKind(String kind)
Unique identifier for the type of current object.
|
Search |
setPromotions(List<Promotion> promotions)
The set of [promotions](https://developers.google.com/custom-search/docs/promotions).
|
Search |
setQueries(Search.Queries queries)
Query metadata for the previous, current, and next pages of results.
|
Search |
setSearchInformation(Search.SearchInformation searchInformation)
Metadata about a search operation.
|
Search |
setSpelling(Search.Spelling spelling)
Spell correction information for a query.
|
Search |
setUrl(Search.Url url)
OpenSearch template and URL.
|
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 Map<String,Object> getContext()
null for nonepublic Search setContext(Map<String,Object> context)
context - context or null for nonepublic List<Result> getItems()
null for nonepublic Search setItems(List<Result> items)
items - items or null for nonepublic String getKind()
null for nonepublic Search setKind(String kind)
kind - kind or null for nonepublic List<Promotion> getPromotions()
null for nonepublic Search setPromotions(List<Promotion> promotions)
promotions - promotions or null for nonepublic Search.Queries getQueries()
null for nonepublic Search setQueries(Search.Queries queries)
queries - queries or null for nonepublic Search.SearchInformation getSearchInformation()
null for nonepublic Search setSearchInformation(Search.SearchInformation searchInformation)
searchInformation - searchInformation or null for nonepublic Search.Spelling getSpelling()
null for nonepublic Search setSpelling(Search.Spelling spelling)
spelling - spelling or null for nonepublic Search.Url getUrl()
null for nonepublic Search setUrl(Search.Url url)
url - url or null for nonepublic Search set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic Search clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2024 Google. All rights reserved.