public class Webmasters.Sites.Get extends WebmastersRequest<WmxSite>
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>USER_AGENT_SUFFIX| Modifier | Constructor and Description |
|---|---|
protected |
Get(String siteUrl)
Retrieves information about specific site.
|
| Modifier and Type | Method and Description |
|---|---|
HttpRequest |
buildHttpRequestUsingHead() |
HttpResponse |
executeUsingHead() |
String |
getSiteUrl()
The URI of the property as defined in Search Console.
|
Webmasters.Sites.Get |
set(String parameterName,
Object value) |
Webmasters.Sites.Get |
setAlt(String alt)
Data format for the response.
|
Webmasters.Sites.Get |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Webmasters.Sites.Get |
setKey(String key)
API key.
|
Webmasters.Sites.Get |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Webmasters.Sites.Get |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Webmasters.Sites.Get |
setQuotaUser(String quotaUser)
An opaque string that represents a user for quota purposes.
|
Webmasters.Sites.Get |
setSiteUrl(String siteUrl)
The URI of the property as defined in Search Console.
|
Webmasters.Sites.Get |
setUserIp(String userIp)
Deprecated.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, 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 Get(String siteUrl)
AbstractGoogleClientRequest.execute() method to invoke the remote operation.
Webmasters.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)
must be called to initialize this instance immediately after invoking the constructor.
siteUrl - The URI of the property as defined in Search Console. Examples: http://www.example.com/ or android-
app://com.example/ Note: for property-sets, use the URI that starts with sc-set: which is
used in Search Console URLs.public HttpResponse executeUsingHead() throws IOException
executeUsingHead in class AbstractGoogleClientRequest<WmxSite>IOExceptionpublic HttpRequest buildHttpRequestUsingHead() throws IOException
buildHttpRequestUsingHead in class AbstractGoogleClientRequest<WmxSite>IOExceptionpublic Webmasters.Sites.Get setAlt(String alt)
WebmastersRequestsetAlt in class WebmastersRequest<WmxSite>public Webmasters.Sites.Get setFields(String fields)
WebmastersRequestsetFields in class WebmastersRequest<WmxSite>public Webmasters.Sites.Get setKey(String key)
WebmastersRequestsetKey in class WebmastersRequest<WmxSite>public Webmasters.Sites.Get setOauthToken(String oauthToken)
WebmastersRequestsetOauthToken in class WebmastersRequest<WmxSite>public Webmasters.Sites.Get setPrettyPrint(Boolean prettyPrint)
WebmastersRequestsetPrettyPrint in class WebmastersRequest<WmxSite>public Webmasters.Sites.Get setQuotaUser(String quotaUser)
WebmastersRequestsetQuotaUser in class WebmastersRequest<WmxSite>public Webmasters.Sites.Get setUserIp(String userIp)
WebmastersRequestsetUserIp in class WebmastersRequest<WmxSite>public String getSiteUrl()
public Webmasters.Sites.Get setSiteUrl(String siteUrl)
public Webmasters.Sites.Get set(String parameterName, Object value)
set in class WebmastersRequest<WmxSite>Copyright © 2011–2021 Google. All rights reserved.