public class Customsearch.Cse.Siterestrict.List extends CustomsearchRequest<Search>
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
USER_AGENT_SUFFIX
Modifier | Constructor and Description |
---|---|
protected |
List(String q)
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()
Turns off the translation between zh-CN and zh-TW.
|
String |
getCr()
Country restrict(s).
|
String |
getCx()
The custom search engine ID to scope this search query
|
String |
getDateRestrict()
Specifies all search results are from a time period
|
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()
Returns images of a specified type.
|
String |
getFilter()
Controls turning on or off the duplicate content filter.
|
String |
getGl()
Geolocation of end user.
|
String |
getGooglehost()
The local Google domain to use to perform the search.
|
String |
getHighRange()
Creates a range in form as_nlo value..as_nhi value and attempts to append it to query
|
String |
getHl()
Sets the user interface language.
|
String |
getHq()
Appends the extra query terms to the query.
|
String |
getImgColorType()
Returns black and white, grayscale, or color images: mono, gray, and color.
|
String |
getImgDominantColor()
Returns images of a specific dominant color: red, orange, yellow, green, teal, blue, purple, pink,
white, gray, black and brown.
|
String |
getImgSize()
Returns images of a specified size, where size can be one of: icon, small, medium, large, xlarge,
xxlarge, and huge.
|
String |
getImgType()
Returns images of a type, which can be one of: clipart, face, lineart, news, and photo.
|
String |
getLinkSite()
Specifies that all search results should contain a link to a particular URL
|
String |
getLowRange()
Creates a range in form as_nlo value..as_nhi value and attempts to append it to query
|
String |
getLr()
The language restriction for the search results
|
Long |
getNum()
Number of search results to return [default: 10]
|
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 [default: off]
|
String |
getSearchType()
Specifies the search type: image.
|
String |
getSiteSearch()
Specifies all search results should be pages from a given site
|
String |
getSiteSearchFilter()
Controls whether to include or exclude results from the site named in the as_sitesearch parameter
|
String |
getSort()
The sort expression to apply to the results
|
Long |
getStart()
The index of the first result to return
|
Customsearch.Cse.Siterestrict.List |
set(String parameterName,
Object value) |
Customsearch.Cse.Siterestrict.List |
setAlt(String alt)
Data format for the response.
|
Customsearch.Cse.Siterestrict.List |
setC2coff(String c2coff)
Turns off the translation between zh-CN and zh-TW.
|
Customsearch.Cse.Siterestrict.List |
setCr(String cr)
Country restrict(s).
|
Customsearch.Cse.Siterestrict.List |
setCx(String cx)
The custom search engine ID to scope this search query
|
Customsearch.Cse.Siterestrict.List |
setDateRestrict(String dateRestrict)
Specifies all search results are from a time period
|
Customsearch.Cse.Siterestrict.List |
setExactTerms(String exactTerms)
Identifies a phrase that all documents in the search results must contain
|
Customsearch.Cse.Siterestrict.List |
setExcludeTerms(String excludeTerms)
Identifies a word or phrase that should not appear in any documents in the search results
|
Customsearch.Cse.Siterestrict.List |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Customsearch.Cse.Siterestrict.List |
setFileType(String fileType)
Returns images of a specified type.
|
Customsearch.Cse.Siterestrict.List |
setFilter(String filter)
Controls turning on or off the duplicate content filter.
|
Customsearch.Cse.Siterestrict.List |
setGl(String gl)
Geolocation of end user.
|
Customsearch.Cse.Siterestrict.List |
setGooglehost(String googlehost)
The local Google domain to use to perform the search.
|
Customsearch.Cse.Siterestrict.List |
setHighRange(String highRange)
Creates a range in form as_nlo value..as_nhi value and attempts to append it to query
|
Customsearch.Cse.Siterestrict.List |
setHl(String hl)
Sets the user interface language.
|
Customsearch.Cse.Siterestrict.List |
setHq(String hq)
Appends the extra query terms to the query.
|
Customsearch.Cse.Siterestrict.List |
setImgColorType(String imgColorType)
Returns black and white, grayscale, or color images: mono, gray, and color.
|
Customsearch.Cse.Siterestrict.List |
setImgDominantColor(String imgDominantColor)
Returns images of a specific dominant color: red, orange, yellow, green, teal, blue,
purple, pink, white, gray, black and brown.
|
Customsearch.Cse.Siterestrict.List |
setImgSize(String imgSize)
Returns images of a specified size, where size can be one of: icon, small, medium, large,
xlarge, xxlarge, and huge.
|
Customsearch.Cse.Siterestrict.List |
setImgType(String imgType)
Returns images of a type, which can be one of: clipart, face, lineart, news, and photo.
|
Customsearch.Cse.Siterestrict.List |
setKey(String key)
API key.
|
Customsearch.Cse.Siterestrict.List |
setLinkSite(String linkSite)
Specifies that all search results should contain a link to a particular URL
|
Customsearch.Cse.Siterestrict.List |
setLowRange(String lowRange)
Creates a range in form as_nlo value..as_nhi value and attempts to append it to query
|
Customsearch.Cse.Siterestrict.List |
setLr(String lr)
The language restriction for the search results
|
Customsearch.Cse.Siterestrict.List |
setNum(Long num)
Number of search results to return
|
Customsearch.Cse.Siterestrict.List |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Customsearch.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
|
Customsearch.Cse.Siterestrict.List |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Customsearch.Cse.Siterestrict.List |
setQ(String q)
Query
|
Customsearch.Cse.Siterestrict.List |
setQuotaUser(String quotaUser)
An opaque string that represents a user for quota purposes.
|
Customsearch.Cse.Siterestrict.List |
setRelatedSite(String relatedSite)
Specifies that all search results should be pages that are related to the specified URL
|
Customsearch.Cse.Siterestrict.List |
setRights(String rights)
Filters based on licensing.
|
Customsearch.Cse.Siterestrict.List |
setSafe(String safe)
Search safety level
|
Customsearch.Cse.Siterestrict.List |
setSearchType(String searchType)
Specifies the search type: image.
|
Customsearch.Cse.Siterestrict.List |
setSiteSearch(String siteSearch)
Specifies all search results should be pages from a given site
|
Customsearch.Cse.Siterestrict.List |
setSiteSearchFilter(String siteSearchFilter)
Controls whether to include or exclude results from the site named in the as_sitesearch
parameter
|
Customsearch.Cse.Siterestrict.List |
setSort(String sort)
The sort expression to apply to the results
|
Customsearch.Cse.Siterestrict.List |
setStart(Long start)
The index of the first result to return
|
Customsearch.Cse.Siterestrict.List |
setUserIp(String userIp)
Deprecated.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setDisableGZipContent, setRequestHeaders
getJsonContent, newExceptionOnError, queue
buildHttpRequest, buildHttpRequestUrl, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getReturnRawInputSteam, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue, setReturnRawInputStream
clone, entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys, toString
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
protected List(String q)
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.
q
- Querypublic HttpResponse executeUsingHead() throws IOException
executeUsingHead
in class AbstractGoogleClientRequest<Search>
IOException
public HttpRequest buildHttpRequestUsingHead() throws IOException
buildHttpRequestUsingHead
in class AbstractGoogleClientRequest<Search>
IOException
public Customsearch.Cse.Siterestrict.List setAlt(String alt)
CustomsearchRequest
setAlt
in class CustomsearchRequest<Search>
public Customsearch.Cse.Siterestrict.List setFields(String fields)
CustomsearchRequest
setFields
in class CustomsearchRequest<Search>
public Customsearch.Cse.Siterestrict.List setKey(String key)
CustomsearchRequest
setKey
in class CustomsearchRequest<Search>
public Customsearch.Cse.Siterestrict.List setOauthToken(String oauthToken)
CustomsearchRequest
setOauthToken
in class CustomsearchRequest<Search>
public Customsearch.Cse.Siterestrict.List setPrettyPrint(Boolean prettyPrint)
CustomsearchRequest
setPrettyPrint
in class CustomsearchRequest<Search>
public Customsearch.Cse.Siterestrict.List setQuotaUser(String quotaUser)
CustomsearchRequest
setQuotaUser
in class CustomsearchRequest<Search>
public Customsearch.Cse.Siterestrict.List setUserIp(String userIp)
CustomsearchRequest
setUserIp
in class CustomsearchRequest<Search>
public String getQ()
public Customsearch.Cse.Siterestrict.List setQ(String q)
public String getC2coff()
public Customsearch.Cse.Siterestrict.List setC2coff(String c2coff)
public String getCr()
public Customsearch.Cse.Siterestrict.List setCr(String cr)
public String getCx()
public Customsearch.Cse.Siterestrict.List setCx(String cx)
public String getDateRestrict()
public Customsearch.Cse.Siterestrict.List setDateRestrict(String dateRestrict)
public String getExactTerms()
public Customsearch.Cse.Siterestrict.List setExactTerms(String exactTerms)
public String getExcludeTerms()
public Customsearch.Cse.Siterestrict.List setExcludeTerms(String excludeTerms)
public String getFileType()
public Customsearch.Cse.Siterestrict.List setFileType(String fileType)
public String getFilter()
public Customsearch.Cse.Siterestrict.List setFilter(String filter)
public String getGl()
public Customsearch.Cse.Siterestrict.List setGl(String gl)
public String getGooglehost()
public Customsearch.Cse.Siterestrict.List setGooglehost(String googlehost)
public String getHighRange()
public Customsearch.Cse.Siterestrict.List setHighRange(String highRange)
public String getHl()
public Customsearch.Cse.Siterestrict.List setHl(String hl)
public String getHq()
public Customsearch.Cse.Siterestrict.List setHq(String hq)
public String getImgColorType()
public Customsearch.Cse.Siterestrict.List setImgColorType(String imgColorType)
public String getImgDominantColor()
public Customsearch.Cse.Siterestrict.List setImgDominantColor(String imgDominantColor)
public String getImgSize()
public Customsearch.Cse.Siterestrict.List setImgSize(String imgSize)
public String getImgType()
public Customsearch.Cse.Siterestrict.List setImgType(String imgType)
public String getLinkSite()
public Customsearch.Cse.Siterestrict.List setLinkSite(String linkSite)
public String getLowRange()
public Customsearch.Cse.Siterestrict.List setLowRange(String lowRange)
public String getLr()
public Customsearch.Cse.Siterestrict.List setLr(String lr)
public Long getNum()
public Customsearch.Cse.Siterestrict.List setNum(Long num)
public String getOrTerms()
public Customsearch.Cse.Siterestrict.List setOrTerms(String orTerms)
public String getRelatedSite()
public Customsearch.Cse.Siterestrict.List setRelatedSite(String relatedSite)
public String getRights()
public Customsearch.Cse.Siterestrict.List setRights(String rights)
public String getSafe()
public Customsearch.Cse.Siterestrict.List setSafe(String safe)
public String getSearchType()
public Customsearch.Cse.Siterestrict.List setSearchType(String searchType)
public String getSiteSearch()
public Customsearch.Cse.Siterestrict.List setSiteSearch(String siteSearch)
public String getSiteSearchFilter()
public Customsearch.Cse.Siterestrict.List setSiteSearchFilter(String siteSearchFilter)
public String getSort()
public Customsearch.Cse.Siterestrict.List setSort(String sort)
public Long getStart()
public Customsearch.Cse.Siterestrict.List setStart(Long start)
public Customsearch.Cse.Siterestrict.List set(String parameterName, Object value)
set
in class CustomsearchRequest<Search>
Copyright © 2011–2020 Google. All rights reserved.