target.apidocs.com.google.api.services.customsearch.model.Search.html Maven / Gradle / Ivy
Search (Custom Search API v1-rev20200401-1.30.9)
com.google.api.services.customsearch.model
Class Search
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.customsearch.model.Search
-
public final class Search
extends GenericJson
Model definition for Search.
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 CustomSearch API. For a detailed explanation see:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
static class
Search.SearchInformation
Model definition for SearchSearchInformation.
static class
Search.Spelling
Model definition for SearchSpelling.
static class
Search.Url
Model definition for SearchUrl.
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
Search()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Search
clone()
Context
getContext()
List<Result>
getItems()
String
getKind()
List<Promotion>
getPromotions()
Map<String,List<Query>>
getQueries()
Search.SearchInformation
getSearchInformation()
Search.Spelling
getSpelling()
Search.Url
getUrl()
Search
set(String fieldName,
Object value)
Search
setContext(Context context)
Search
setItems(List<Result> items)
Search
setKind(String kind)
Search
setPromotions(List<Promotion> promotions)
Search
setQueries(Map<String,List<Query>> queries)
Search
setSearchInformation(Search.SearchInformation searchInformation)
Search
setSpelling(Search.Spelling spelling)
Search
setUrl(Search.Url url)
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getContext
public Context getContext()
- Returns:
- value or
null
for none
-
getKind
public String getKind()
- Returns:
- value or
null
for none
-
setPromotions
public Search setPromotions(List<Promotion> promotions)
- Parameters:
promotions
- promotions or null
for none
-
setQueries
public Search setQueries(Map<String,List<Query>> queries)
- Parameters:
queries
- queries or null
for none
-
getSearchInformation
public Search.SearchInformation getSearchInformation()
- Returns:
- value or
null
for none
-
setSearchInformation
public Search setSearchInformation(Search.SearchInformation searchInformation)
- Parameters:
searchInformation
- searchInformation or null
for none
-
getSpelling
public Search.Spelling getSpelling()
- Returns:
- value or
null
for none
-
setSpelling
public Search setSpelling(Search.Spelling spelling)
- Parameters:
spelling
- spelling or null
for none
-
getUrl
public Search.Url getUrl()
- Returns:
- value or
null
for none
-
setUrl
public Search setUrl(Search.Url url)
- Parameters:
url
- url or null
for none
-
set
public Search set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public Search clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2020 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy