public class Customsearch.Siterestrict.List extends CustomsearchRequest<Search>
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>USER_AGENT_SUFFIX| Modifier | Constructor and Description |
|---|---|
protected |
List()
Returns metadata about the search performed, metadata about the custom search engine used for
the search, and the search results.
|
| Modifier and Type | Method and Description |
|---|---|
HttpRequest |
buildHttpRequestUsingHead() |
HttpResponse |
executeUsingHead() |
String |
getC2coff()
Enables or disables [Simplified and Traditional Chinese Search](https://developers.google.com
/custom-search/docs/xml_results#chineseSearch).
|
String |
getCr()
Restricts search results to documents originating in a particular country.
|
String |
getCx()
The custom search engine ID to use for this request.
|
String |
getDateRestrict()
Restricts results to URLs based on date.
|
String |
getExactTerms()
Identifies a phrase that all documents in the search results must contain.
|
String |
getExcludeTerms()
Identifies a word or phrase that should not appear in any documents in the search results.
|
String |
getFileType()
Restricts results to files of a specified extension.
|
String |
getFilter()
Controls turning on or off the duplicate content filter.
|
String |
getGl()
Geolocation of end user.
|
String |
getGooglehost()
Deprecated**.
|
String |
getHighRange()
Specifies the ending value for a search range.
|
String |
getHl()
Sets the user interface language.
|
String |
getHq()
Appends the specified query terms to the query, as if they were combined with a logical AND
operator.
|
String |
getImgColorType()
Returns black and white, grayscale, transparent, or color images.
|
String |
getImgDominantColor()
Returns images of a specific dominant color.
|
String |
getImgSize()
Returns images of a specified size.
|
String |
getImgType()
Returns images of a type.
|
String |
getLinkSite()
Specifies that all search results should contain a link to a particular URL.
|
String |
getLowRange()
Specifies the starting value for a search range.
|
String |
getLr()
Restricts the search to documents written in a particular language (e.g., `lr=lang_ja`).
|
Integer |
getNum()
Number of search results to return.
|
String |
getOrTerms()
Provides additional search terms to check for in a document, where each document in the search
results must contain at least one of the additional search terms.
|
String |
getQ()
Query
|
String |
getRelatedSite()
Specifies that all search results should be pages that are related to the specified URL.
|
String |
getRights()
Filters based on licensing.
|
String |
getSafe()
Search safety level.
|
String |
getSearchType()
Specifies the search type: `image`.
|
String |
getSiteSearch()
Specifies a given site which should always be included or excluded from results (see
`siteSearchFilter` parameter, below).
|
String |
getSiteSearchFilter()
Controls whether to include or exclude results from the site named in the `siteSearch` parameter.
|
String |
getSort()
The sort expression to apply to the results.
|
Long |
getStart()
The index of the first result to return.
|
Customsearch.Siterestrict.List |
set(String parameterName,
Object value) |
Customsearch.Siterestrict.List |
set$Xgafv(String $Xgafv)
V1 error format.
|
Customsearch.Siterestrict.List |
setAccessToken(String accessToken)
OAuth access token.
|
Customsearch.Siterestrict.List |
setAlt(String alt)
Data format for response.
|
Customsearch.Siterestrict.List |
setC2coff(String c2coff)
Enables or disables [Simplified and Traditional Chinese
Search](https://developers.google.com/custom-search/docs/xml_results#chineseSearch).
|
Customsearch.Siterestrict.List |
setCallback(String callback)
JSONP
|
Customsearch.Siterestrict.List |
setCr(String cr)
Restricts search results to documents originating in a particular country.
|
Customsearch.Siterestrict.List |
setCx(String cx)
The custom search engine ID to use for this request.
|
Customsearch.Siterestrict.List |
setDateRestrict(String dateRestrict)
Restricts results to URLs based on date.
|
Customsearch.Siterestrict.List |
setExactTerms(String exactTerms)
Identifies a phrase that all documents in the search results must contain.
|
Customsearch.Siterestrict.List |
setExcludeTerms(String excludeTerms)
Identifies a word or phrase that should not appear in any documents in the search results.
|
Customsearch.Siterestrict.List |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Customsearch.Siterestrict.List |
setFileType(String fileType)
Restricts results to files of a specified extension.
|
Customsearch.Siterestrict.List |
setFilter(String filter)
Controls turning on or off the duplicate content filter.
|
Customsearch.Siterestrict.List |
setGl(String gl)
Geolocation of end user.
|
Customsearch.Siterestrict.List |
setGooglehost(String googlehost)
**Deprecated**.
|
Customsearch.Siterestrict.List |
setHighRange(String highRange)
Specifies the ending value for a search range.
|
Customsearch.Siterestrict.List |
setHl(String hl)
Sets the user interface language.
|
Customsearch.Siterestrict.List |
setHq(String hq)
Appends the specified query terms to the query, as if they were combined with a logical AND
operator.
|
Customsearch.Siterestrict.List |
setImgColorType(String imgColorType)
Returns black and white, grayscale, transparent, or color images.
|
Customsearch.Siterestrict.List |
setImgDominantColor(String imgDominantColor)
Returns images of a specific dominant color.
|
Customsearch.Siterestrict.List |
setImgSize(String imgSize)
Returns images of a specified size.
|
Customsearch.Siterestrict.List |
setImgType(String imgType)
Returns images of a type.
|
Customsearch.Siterestrict.List |
setKey(String key)
API key.
|
Customsearch.Siterestrict.List |
setLinkSite(String linkSite)
Specifies that all search results should contain a link to a particular URL.
|
Customsearch.Siterestrict.List |
setLowRange(String lowRange)
Specifies the starting value for a search range.
|
Customsearch.Siterestrict.List |
setLr(String lr)
Restricts the search to documents written in a particular language (e.g., `lr=lang_ja`).
|
Customsearch.Siterestrict.List |
setNum(Integer num)
Number of search results to return.
|
Customsearch.Siterestrict.List |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Customsearch.Siterestrict.List |
setOrTerms(String orTerms)
Provides additional search terms to check for in a document, where each document in the
search results must contain at least one of the additional search terms.
|
Customsearch.Siterestrict.List |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Customsearch.Siterestrict.List |
setQ(String q)
Query
|
Customsearch.Siterestrict.List |
setQuotaUser(String quotaUser)
Available to use for quota purposes for server-side applications.
|
Customsearch.Siterestrict.List |
setRelatedSite(String relatedSite)
Specifies that all search results should be pages that are related to the specified URL.
|
Customsearch.Siterestrict.List |
setRights(String rights)
Filters based on licensing.
|
Customsearch.Siterestrict.List |
setSafe(String safe)
Search safety level.
|
Customsearch.Siterestrict.List |
setSearchType(String searchType)
Specifies the search type: `image`.
|
Customsearch.Siterestrict.List |
setSiteSearch(String siteSearch)
Specifies a given site which should always be included or excluded from results (see
`siteSearchFilter` parameter, below).
|
Customsearch.Siterestrict.List |
setSiteSearchFilter(String siteSearchFilter)
Controls whether to include or exclude results from the site named in the `siteSearch`
parameter.
|
Customsearch.Siterestrict.List |
setSort(String sort)
The sort expression to apply to the results.
|
Customsearch.Siterestrict.List |
setStart(Long start)
The index of the first result to return.
|
Customsearch.Siterestrict.List |
setUploadProtocol(String uploadProtocol)
Upload protocol for media (e.g.
|
Customsearch.Siterestrict.List |
setUploadType(String uploadType)
Legacy upload protocol for media (e.g.
|
get$Xgafv, getAbstractGoogleClient, getAccessToken, getAlt, getCallback, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUploadProtocol, getUploadType, setDisableGZipContent, setRequestHeadersgetJsonContent, newExceptionOnError, queuebuildHttpRequest, buildHttpRequestUrl, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getReturnRawInputSteam, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue, setReturnRawInputStreamclone, entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys, toStringclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllprotected List()
AbstractGoogleClientRequest.execute() method to invoke the remote operation.
Customsearch.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)
must be called to initialize this instance immediately after invoking the constructor.
public HttpResponse executeUsingHead() throws IOException
executeUsingHead in class AbstractGoogleClientRequest<Search>IOExceptionpublic HttpRequest buildHttpRequestUsingHead() throws IOException
buildHttpRequestUsingHead in class AbstractGoogleClientRequest<Search>IOExceptionpublic Customsearch.Siterestrict.List set$Xgafv(String $Xgafv)
CustomsearchRequestset$Xgafv in class CustomsearchRequest<Search>public Customsearch.Siterestrict.List setAccessToken(String accessToken)
CustomsearchRequestsetAccessToken in class CustomsearchRequest<Search>public Customsearch.Siterestrict.List setAlt(String alt)
CustomsearchRequestsetAlt in class CustomsearchRequest<Search>public Customsearch.Siterestrict.List setCallback(String callback)
CustomsearchRequestsetCallback in class CustomsearchRequest<Search>public Customsearch.Siterestrict.List setFields(String fields)
CustomsearchRequestsetFields in class CustomsearchRequest<Search>public Customsearch.Siterestrict.List setKey(String key)
CustomsearchRequestsetKey in class CustomsearchRequest<Search>public Customsearch.Siterestrict.List setOauthToken(String oauthToken)
CustomsearchRequestsetOauthToken in class CustomsearchRequest<Search>public Customsearch.Siterestrict.List setPrettyPrint(Boolean prettyPrint)
CustomsearchRequestsetPrettyPrint in class CustomsearchRequest<Search>public Customsearch.Siterestrict.List setQuotaUser(String quotaUser)
CustomsearchRequestsetQuotaUser in class CustomsearchRequest<Search>public Customsearch.Siterestrict.List setUploadType(String uploadType)
CustomsearchRequestsetUploadType in class CustomsearchRequest<Search>public Customsearch.Siterestrict.List setUploadProtocol(String uploadProtocol)
CustomsearchRequestsetUploadProtocol in class CustomsearchRequest<Search>public String getC2coff()
public Customsearch.Siterestrict.List setC2coff(String c2coff)
public String getCr()
public Customsearch.Siterestrict.List setCr(String cr)
public String getCx()
public Customsearch.Siterestrict.List setCx(String cx)
public String getDateRestrict()
public Customsearch.Siterestrict.List setDateRestrict(String dateRestrict)
public String getExactTerms()
public Customsearch.Siterestrict.List setExactTerms(String exactTerms)
public String getExcludeTerms()
public Customsearch.Siterestrict.List setExcludeTerms(String excludeTerms)
public String getFileType()
public Customsearch.Siterestrict.List setFileType(String fileType)
public String getFilter()
public Customsearch.Siterestrict.List setFilter(String filter)
public String getGl()
public Customsearch.Siterestrict.List setGl(String gl)
public String getGooglehost()
public Customsearch.Siterestrict.List setGooglehost(String googlehost)
public String getHighRange()
public Customsearch.Siterestrict.List setHighRange(String highRange)
public String getHl()
public Customsearch.Siterestrict.List setHl(String hl)
public String getHq()
public Customsearch.Siterestrict.List setHq(String hq)
public String getImgColorType()
public Customsearch.Siterestrict.List setImgColorType(String imgColorType)
public String getImgDominantColor()
public Customsearch.Siterestrict.List setImgDominantColor(String imgDominantColor)
public String getImgSize()
public Customsearch.Siterestrict.List setImgSize(String imgSize)
public String getImgType()
public Customsearch.Siterestrict.List setImgType(String imgType)
public String getLinkSite()
public Customsearch.Siterestrict.List setLinkSite(String linkSite)
public String getLowRange()
public Customsearch.Siterestrict.List setLowRange(String lowRange)
public String getLr()
public Customsearch.Siterestrict.List setLr(String lr)
public Integer getNum()
public Customsearch.Siterestrict.List setNum(Integer num)
public String getOrTerms()
public Customsearch.Siterestrict.List setOrTerms(String orTerms)
public String getQ()
public Customsearch.Siterestrict.List setQ(String q)
public String getRelatedSite()
public Customsearch.Siterestrict.List setRelatedSite(String relatedSite)
public String getRights()
public Customsearch.Siterestrict.List setRights(String rights)
public String getSafe()
public Customsearch.Siterestrict.List setSafe(String safe)
public String getSearchType()
public Customsearch.Siterestrict.List setSearchType(String searchType)
public String getSiteSearch()
public Customsearch.Siterestrict.List setSiteSearch(String siteSearch)
public String getSiteSearchFilter()
public Customsearch.Siterestrict.List setSiteSearchFilter(String siteSearchFilter)
public String getSort()
public Customsearch.Siterestrict.List setSort(String sort)
public Long getStart()
public Customsearch.Siterestrict.List setStart(Long start)
public Customsearch.Siterestrict.List set(String parameterName, Object value)
set in class CustomsearchRequest<Search>Copyright © 2011–2020 Google. All rights reserved.