public class CustomSearchAPI.Cse.Siterestrict.List extends CustomSearchAPIRequest<Search>
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier | Constructor and Description |
|---|---|
protected |
List()
Returns metadata about the search performed, metadata about the engine used for the search, and
the search results.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.api.client.http.HttpRequest |
buildHttpRequestUsingHead() |
com.google.api.client.http.HttpResponse |
executeUsingHead() |
String |
getC2coff()
Enables or disables [Simplified and Traditional Chinese
Search](https://developers.google.com/custom-search/docs/json_api_reference#chineseSearch).
|
String |
getCr()
Restricts search results to documents originating in a particular country.
|
String |
getCx()
The Programmable Search Engine ID to use for this request.
|
String |
getDateRestrict()
Restricts results to URLs based on date.
|
Boolean |
getEnableAlternateSearchHandler()
Optional.
|
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()
Deprecated.
|
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.
|
Integer |
getSnippetLength()
Optional.
|
String |
getSort()
The sort expression to apply to the results.
|
Long |
getStart()
The index of the first result to return.
|
CustomSearchAPI.Cse.Siterestrict.List |
set(String parameterName,
Object value) |
CustomSearchAPI.Cse.Siterestrict.List |
set$Xgafv(String $Xgafv)
V1 error format.
|
CustomSearchAPI.Cse.Siterestrict.List |
setAccessToken(String accessToken)
OAuth access token.
|
CustomSearchAPI.Cse.Siterestrict.List |
setAlt(String alt)
Data format for response.
|
CustomSearchAPI.Cse.Siterestrict.List |
setC2coff(String c2coff)
Enables or disables [Simplified and Traditional Chinese
Search](https://developers.google.com/custom-
search/docs/json_api_reference#chineseSearch).
|
CustomSearchAPI.Cse.Siterestrict.List |
setCallback(String callback)
JSONP
|
CustomSearchAPI.Cse.Siterestrict.List |
setCr(String cr)
Restricts search results to documents originating in a particular country.
|
CustomSearchAPI.Cse.Siterestrict.List |
setCx(String cx)
The Programmable Search Engine ID to use for this request.
|
CustomSearchAPI.Cse.Siterestrict.List |
setDateRestrict(String dateRestrict)
Restricts results to URLs based on date.
|
CustomSearchAPI.Cse.Siterestrict.List |
setEnableAlternateSearchHandler(Boolean enableAlternateSearchHandler)
Optional.
|
CustomSearchAPI.Cse.Siterestrict.List |
setExactTerms(String exactTerms)
Identifies a phrase that all documents in the search results must contain.
|
CustomSearchAPI.Cse.Siterestrict.List |
setExcludeTerms(String excludeTerms)
Identifies a word or phrase that should not appear in any documents in the search
results.
|
CustomSearchAPI.Cse.Siterestrict.List |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
CustomSearchAPI.Cse.Siterestrict.List |
setFileType(String fileType)
Restricts results to files of a specified extension.
|
CustomSearchAPI.Cse.Siterestrict.List |
setFilter(String filter)
Controls turning on or off the duplicate content filter.
|
CustomSearchAPI.Cse.Siterestrict.List |
setGl(String gl)
Geolocation of end user.
|
CustomSearchAPI.Cse.Siterestrict.List |
setGooglehost(String googlehost)
**Deprecated**.
|
CustomSearchAPI.Cse.Siterestrict.List |
setHighRange(String highRange)
Specifies the ending value for a search range.
|
CustomSearchAPI.Cse.Siterestrict.List |
setHl(String hl)
Sets the user interface language.
|
CustomSearchAPI.Cse.Siterestrict.List |
setHq(String hq)
Appends the specified query terms to the query, as if they were combined with a logical
AND operator.
|
CustomSearchAPI.Cse.Siterestrict.List |
setImgColorType(String imgColorType)
Returns black and white, grayscale, transparent, or color images.
|
CustomSearchAPI.Cse.Siterestrict.List |
setImgDominantColor(String imgDominantColor)
Returns images of a specific dominant color.
|
CustomSearchAPI.Cse.Siterestrict.List |
setImgSize(String imgSize)
Returns images of a specified size.
|
CustomSearchAPI.Cse.Siterestrict.List |
setImgType(String imgType)
Returns images of a type.
|
CustomSearchAPI.Cse.Siterestrict.List |
setKey(String key)
API key.
|
CustomSearchAPI.Cse.Siterestrict.List |
setLinkSite(String linkSite)
Specifies that all search results should contain a link to a particular URL.
|
CustomSearchAPI.Cse.Siterestrict.List |
setLowRange(String lowRange)
Specifies the starting value for a search range.
|
CustomSearchAPI.Cse.Siterestrict.List |
setLr(String lr)
Restricts the search to documents written in a particular language (e.g., `lr=lang_ja`).
|
CustomSearchAPI.Cse.Siterestrict.List |
setNum(Integer num)
Number of search results to return.
|
CustomSearchAPI.Cse.Siterestrict.List |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
CustomSearchAPI.Cse.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.
|
CustomSearchAPI.Cse.Siterestrict.List |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
CustomSearchAPI.Cse.Siterestrict.List |
setQ(String q)
Query
|
CustomSearchAPI.Cse.Siterestrict.List |
setQuotaUser(String quotaUser)
Available to use for quota purposes for server-side applications.
|
CustomSearchAPI.Cse.Siterestrict.List |
setRelatedSite(String relatedSite)
Deprecated.
|
CustomSearchAPI.Cse.Siterestrict.List |
setRights(String rights)
Filters based on licensing.
|
CustomSearchAPI.Cse.Siterestrict.List |
setSafe(String safe)
Search safety level.
|
CustomSearchAPI.Cse.Siterestrict.List |
setSearchType(String searchType)
Specifies the search type: `image`.
|
CustomSearchAPI.Cse.Siterestrict.List |
setSiteSearch(String siteSearch)
Specifies a given site which should always be included or excluded from results (see
`siteSearchFilter` parameter, below).
|
CustomSearchAPI.Cse.Siterestrict.List |
setSiteSearchFilter(String siteSearchFilter)
Controls whether to include or exclude results from the site named in the `siteSearch`
parameter.
|
CustomSearchAPI.Cse.Siterestrict.List |
setSnippetLength(Integer snippetLength)
Optional.
|
CustomSearchAPI.Cse.Siterestrict.List |
setSort(String sort)
The sort expression to apply to the results.
|
CustomSearchAPI.Cse.Siterestrict.List |
setStart(Long start)
The index of the first result to return.
|
CustomSearchAPI.Cse.Siterestrict.List |
setUploadProtocol(String uploadProtocol)
Upload protocol for media (e.g.
|
CustomSearchAPI.Cse.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.
CustomSearchAPI.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)
must be called to initialize this instance immediately after invoking the constructor.
public com.google.api.client.http.HttpResponse executeUsingHead()
throws IOException
executeUsingHead in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<Search>IOExceptionpublic com.google.api.client.http.HttpRequest buildHttpRequestUsingHead()
throws IOException
buildHttpRequestUsingHead in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<Search>IOExceptionpublic CustomSearchAPI.Cse.Siterestrict.List set$Xgafv(String $Xgafv)
CustomSearchAPIRequestset$Xgafv in class CustomSearchAPIRequest<Search>public CustomSearchAPI.Cse.Siterestrict.List setAccessToken(String accessToken)
CustomSearchAPIRequestsetAccessToken in class CustomSearchAPIRequest<Search>public CustomSearchAPI.Cse.Siterestrict.List setAlt(String alt)
CustomSearchAPIRequestsetAlt in class CustomSearchAPIRequest<Search>public CustomSearchAPI.Cse.Siterestrict.List setCallback(String callback)
CustomSearchAPIRequestsetCallback in class CustomSearchAPIRequest<Search>public CustomSearchAPI.Cse.Siterestrict.List setFields(String fields)
CustomSearchAPIRequestsetFields in class CustomSearchAPIRequest<Search>public CustomSearchAPI.Cse.Siterestrict.List setKey(String key)
CustomSearchAPIRequestsetKey in class CustomSearchAPIRequest<Search>public CustomSearchAPI.Cse.Siterestrict.List setOauthToken(String oauthToken)
CustomSearchAPIRequestsetOauthToken in class CustomSearchAPIRequest<Search>public CustomSearchAPI.Cse.Siterestrict.List setPrettyPrint(Boolean prettyPrint)
CustomSearchAPIRequestsetPrettyPrint in class CustomSearchAPIRequest<Search>public CustomSearchAPI.Cse.Siterestrict.List setQuotaUser(String quotaUser)
CustomSearchAPIRequestsetQuotaUser in class CustomSearchAPIRequest<Search>public CustomSearchAPI.Cse.Siterestrict.List setUploadType(String uploadType)
CustomSearchAPIRequestsetUploadType in class CustomSearchAPIRequest<Search>public CustomSearchAPI.Cse.Siterestrict.List setUploadProtocol(String uploadProtocol)
CustomSearchAPIRequestsetUploadProtocol in class CustomSearchAPIRequest<Search>public String getC2coff()
public CustomSearchAPI.Cse.Siterestrict.List setC2coff(String c2coff)
public String getCr()
public CustomSearchAPI.Cse.Siterestrict.List setCr(String cr)
public String getCx()
public CustomSearchAPI.Cse.Siterestrict.List setCx(String cx)
public String getDateRestrict()
public CustomSearchAPI.Cse.Siterestrict.List setDateRestrict(String dateRestrict)
public Boolean getEnableAlternateSearchHandler()
public CustomSearchAPI.Cse.Siterestrict.List setEnableAlternateSearchHandler(Boolean enableAlternateSearchHandler)
public String getExactTerms()
public CustomSearchAPI.Cse.Siterestrict.List setExactTerms(String exactTerms)
public String getExcludeTerms()
public CustomSearchAPI.Cse.Siterestrict.List setExcludeTerms(String excludeTerms)
public String getFileType()
public CustomSearchAPI.Cse.Siterestrict.List setFileType(String fileType)
public String getFilter()
public CustomSearchAPI.Cse.Siterestrict.List setFilter(String filter)
public String getGl()
public CustomSearchAPI.Cse.Siterestrict.List setGl(String gl)
public String getGooglehost()
public CustomSearchAPI.Cse.Siterestrict.List setGooglehost(String googlehost)
public String getHighRange()
public CustomSearchAPI.Cse.Siterestrict.List setHighRange(String highRange)
public String getHl()
public CustomSearchAPI.Cse.Siterestrict.List setHl(String hl)
public String getHq()
public CustomSearchAPI.Cse.Siterestrict.List setHq(String hq)
public String getImgColorType()
public CustomSearchAPI.Cse.Siterestrict.List setImgColorType(String imgColorType)
public String getImgDominantColor()
public CustomSearchAPI.Cse.Siterestrict.List setImgDominantColor(String imgDominantColor)
public String getImgSize()
public CustomSearchAPI.Cse.Siterestrict.List setImgSize(String imgSize)
public String getImgType()
public CustomSearchAPI.Cse.Siterestrict.List setImgType(String imgType)
public String getLinkSite()
public CustomSearchAPI.Cse.Siterestrict.List setLinkSite(String linkSite)
public String getLowRange()
public CustomSearchAPI.Cse.Siterestrict.List setLowRange(String lowRange)
public String getLr()
public CustomSearchAPI.Cse.Siterestrict.List setLr(String lr)
public Integer getNum()
public CustomSearchAPI.Cse.Siterestrict.List setNum(Integer num)
public String getOrTerms()
public CustomSearchAPI.Cse.Siterestrict.List setOrTerms(String orTerms)
public String getQ()
public CustomSearchAPI.Cse.Siterestrict.List setQ(String q)
public String getRelatedSite()
public CustomSearchAPI.Cse.Siterestrict.List setRelatedSite(String relatedSite)
public String getRights()
public CustomSearchAPI.Cse.Siterestrict.List setRights(String rights)
public String getSafe()
public CustomSearchAPI.Cse.Siterestrict.List setSafe(String safe)
public String getSearchType()
public CustomSearchAPI.Cse.Siterestrict.List setSearchType(String searchType)
public String getSiteSearch()
public CustomSearchAPI.Cse.Siterestrict.List setSiteSearch(String siteSearch)
public String getSiteSearchFilter()
public CustomSearchAPI.Cse.Siterestrict.List setSiteSearchFilter(String siteSearchFilter)
public Integer getSnippetLength()
public CustomSearchAPI.Cse.Siterestrict.List setSnippetLength(Integer snippetLength)
public String getSort()
public CustomSearchAPI.Cse.Siterestrict.List setSort(String sort)
public Long getStart()
public CustomSearchAPI.Cse.Siterestrict.List setStart(Long start)
public CustomSearchAPI.Cse.Siterestrict.List set(String parameterName, Object value)
set in class CustomSearchAPIRequest<Search>Copyright © 2011–2024 Google. All rights reserved.