Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   /*
    * Copyright 2010 Google Inc.
    *
    * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
    * in compliance with the License. You may obtain a copy of the License at
    *
    * http://www.apache.org/licenses/LICENSE-2.0
    *
    * Unless required by applicable law or agreed to in writing, software distributed under the License
   * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
   * or implied. See the License for the specific language governing permissions and limitations under
   * the License.
   */
  /*
   * This code was generated by https://code.google.com/p/google-apis-client-generator/
   * (build: 2015-03-26 20:30:19 UTC)
   * on 2015-06-25 at 10:52:38 UTC 
   * Modify at your own risk.
   */
  
  package com.google.api.services.webmasters;

Service definition for Webmasters (v3).

Lets you view Google Webmaster Tools data for your verified sites.

For more information about this service, see the API Documentation

This service uses WebmastersRequestInitializer to initialize global parameters via its Webmasters.Builder.

Author(s):
Google, Inc.
Since:
1.3
  
  @SuppressWarnings("javadoc")
  
    // Note: Leave this static initializer at the top of the file.
    static {
      com.google.api.client.util.Preconditions.checkState(
          ...... == 1 &&
          "You are currently running with version %s of google-api-client. " +
          "You need at least version 1.15 of google-api-client to run version " +
          "1.19.0 of the Webmaster Tools API library."......);
    }

  
The default encoded root URL of the service. This is determined when the library is generated and normally should not be changed.

Since:
1.7
  
    public static final String DEFAULT_ROOT_URL = "https://www.googleapis.com/";

  
The default encoded service path of the service. This is determined when the library is generated and normally should not be changed.

Since:
1.7
  
    public static final String DEFAULT_SERVICE_PATH = "webmasters/v3/";

  
The default encoded base URL of the service. This is determined when the library is generated and normally should not be changed.
  
    public static final String DEFAULT_BASE_URL =  + ;

  
Constructor.

Use Webmasters.Builder if you need to specify any of the optional parameters.

Parameters:
transport HTTP transport, which should normally be:
jsonFactory JSON factory, which may be:
  • Jackson: com.google.api.client.json.jackson2.JacksonFactory
  • Google GSON: com.google.api.client.json.gson.GsonFactory
  • Android Honeycomb or higher: com.google.api.client.extensions.android.json.AndroidJsonFactory
httpRequestInitializer HTTP request initializer or null for none
Since:
1.7
 
       com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) {
     this(new Builder(transportjsonFactoryhttpRequestInitializer));
   }

  

Parameters:
builder builder
 
   Webmasters(Builder builder) {
     super(builder);
   }
 
   protected void initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest<?> httpClientRequestthrows java.io.IOException {
     super.initialize(httpClientRequest);
   }

  
An accessor for creating requests from the Searchanalytics collection.

The typical use is:

   Webmasters webmasters = new Webmasters(...);
   Webmasters.Searchanalytics.List request = webmasters.searchanalytics().list(parameters ...)
 

Returns:
the resource collection
 
     return new Searchanalytics();
   }

  
The "searchanalytics" collection of methods.
 
   public class Searchanalytics {

    
[LIMITED ACCESS] Query your data with filters and parameters that you define. Returns zero or more rows grouped by the row keys that you define. You must define a date range of one or more days. When date is one of the group by values, any days without data are omitted from the result list. If you need to know which days have data, issue a broad date range query grouped by date for any metric, and see which day rows are returned. Create a request for the method "searchanalytics.query". This request holds the parameters needed by the webmasters server. After setting any optional parameters, call the com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
siteUrl The site's URL, including protocol. For example: http://www.example.com/
content the com.google.api.services.webmasters.model.SearchAnalyticsQueryRequest
Returns:
the request
 
       Query result = new Query(siteUrlcontent);
       initialize(result);
       return result;
     }
 
 
       private static final String REST_PATH = "sites/{siteUrl}/searchAnalytics/query";

      
[LIMITED ACCESS] Query your data with filters and parameters that you define. Returns zero or more rows grouped by the row keys that you define. You must define a date range of one or more days. When date is one of the group by values, any days without data are omitted from the result list. If you need to know which days have data, issue a broad date range query grouped by date for any metric, and see which day rows are returned. Create a request for the method "searchanalytics.query". This request holds the parameters needed by the the webmasters server. After setting any optional parameters, call the com.google.api.client.googleapis.services.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.

Parameters:
siteUrl The site's URL, including protocol. For example: http://www.example.com/
content the com.google.api.services.webmasters.model.SearchAnalyticsQueryRequest
Since:
1.13
 
       protected Query(java.lang.String siteUrlcom.google.api.services.webmasters.model.SearchAnalyticsQueryRequest content) {
         super(Webmasters.this"POST"contentcom.google.api.services.webmasters.model.SearchAnalyticsQueryResponse.class);
         this. = com.google.api.client.util.Preconditions.checkNotNull(siteUrl"Required parameter siteUrl must be specified.");
       }
 
       @Override
       public Query setAlt(java.lang.String alt) {
         return (Querysuper.setAlt(alt);
       }
 
       @Override
       public Query setFields(java.lang.String fields) {
         return (Querysuper.setFields(fields);
       }
 
       @Override
       public Query setKey(java.lang.String key) {
         return (Querysuper.setKey(key);
       }
 
       @Override
       public Query setOauthToken(java.lang.String oauthToken) {
         return (Querysuper.setOauthToken(oauthToken);
       }
 
       @Override
       public Query setPrettyPrint(java.lang.Boolean prettyPrint) {
         return (Querysuper.setPrettyPrint(prettyPrint);
       }
 
       @Override
       public Query setQuotaUser(java.lang.String quotaUser) {
         return (Querysuper.setQuotaUser(quotaUser);
       }
 
       @Override
       public Query setUserIp(java.lang.String userIp) {
         return (Querysuper.setUserIp(userIp);
       }

      
The site's URL, including protocol. For example: http://www.example.com/
 
       @com.google.api.client.util.Key
       private java.lang.String siteUrl;

      
The site's URL, including protocol. For example: http://www.example.com/
 
       public java.lang.String getSiteUrl() {
         return ;
       }

      
The site's URL, including protocol. For example: http://www.example.com/
 
       public Query setSiteUrl(java.lang.String siteUrl) {
         this. = siteUrl;
         return this;
       }
 
       @Override
       public Query set(String parameterNameObject value) {
         return (Querysuper.set(parameterNamevalue);
       }
     }
 
   }

  
An accessor for creating requests from the Sitemaps collection.

The typical use is:

   Webmasters webmasters = new Webmasters(...);
   Webmasters.Sitemaps.List request = webmasters.sitemaps().list(parameters ...)
 

Returns:
the resource collection
 
   public Sitemaps sitemaps() {
     return new Sitemaps();
   }

  
The "sitemaps" collection of methods.
 
   public class Sitemaps {

    
Deletes a sitemap from this site. Create a request for the method "sitemaps.delete". This request holds the parameters needed by the webmasters server. After setting any optional parameters, call the com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
siteUrl The site's URL, including protocol. For example: http://www.example.com/
feedpath The URL of the actual sitemap. For example: http://www.example.com/sitemap.xml
Returns:
the request
 
     public Delete delete(java.lang.String siteUrljava.lang.String feedpaththrows java.io.IOException {
       Delete result = new Delete(siteUrlfeedpath);
       initialize(result);
       return result;
     }
 
     public class Delete extends WebmastersRequest<Void> {
 
       private static final String REST_PATH = "sites/{siteUrl}/sitemaps/{feedpath}";

      
Deletes a sitemap from this site. Create a request for the method "sitemaps.delete". This request holds the parameters needed by the the webmasters server. After setting any optional parameters, call the com.google.api.client.googleapis.services.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.

Parameters:
siteUrl The site's URL, including protocol. For example: http://www.example.com/
feedpath The URL of the actual sitemap. For example: http://www.example.com/sitemap.xml
Since:
1.13
 
       protected Delete(java.lang.String siteUrljava.lang.String feedpath) {
         super(Webmasters.this"DELETE"nullVoid.class);
         this. = com.google.api.client.util.Preconditions.checkNotNull(siteUrl"Required parameter siteUrl must be specified.");
         this. = com.google.api.client.util.Preconditions.checkNotNull(feedpath"Required parameter feedpath must be specified.");
       }
 
       @Override
       public Delete setAlt(java.lang.String alt) {
         return (Deletesuper.setAlt(alt);
       }
 
       @Override
       public Delete setFields(java.lang.String fields) {
         return (Deletesuper.setFields(fields);
       }
 
       @Override
       public Delete setKey(java.lang.String key) {
         return (Deletesuper.setKey(key);
       }
 
       @Override
       public Delete setOauthToken(java.lang.String oauthToken) {
         return (Deletesuper.setOauthToken(oauthToken);
       }
 
       @Override
       public Delete setPrettyPrint(java.lang.Boolean prettyPrint) {
         return (Deletesuper.setPrettyPrint(prettyPrint);
       }
 
       @Override
       public Delete setQuotaUser(java.lang.String quotaUser) {
         return (Deletesuper.setQuotaUser(quotaUser);
       }
 
       @Override
       public Delete setUserIp(java.lang.String userIp) {
         return (Deletesuper.setUserIp(userIp);
       }

      
The site's URL, including protocol. For example: http://www.example.com/
 
       @com.google.api.client.util.Key
       private java.lang.String siteUrl;

      
The site's URL, including protocol. For example: http://www.example.com/
 
       public java.lang.String getSiteUrl() {
         return ;
       }

      
The site's URL, including protocol. For example: http://www.example.com/
 
       public Delete setSiteUrl(java.lang.String siteUrl) {
         this. = siteUrl;
         return this;
       }

      
The URL of the actual sitemap. For example: http://www.example.com/sitemap.xml
 
       @com.google.api.client.util.Key
       private java.lang.String feedpath;

      
The URL of the actual sitemap. For example: http://www.example.com/sitemap.xml
 
       public java.lang.String getFeedpath() {
         return ;
       }

      
The URL of the actual sitemap. For example: http://www.example.com/sitemap.xml
 
       public Delete setFeedpath(java.lang.String feedpath) {
         this. = feedpath;
         return this;
       }
 
       @Override
       public Delete set(String parameterNameObject value) {
         return (Deletesuper.set(parameterNamevalue);
       }
     }
    
Retrieves information about a specific sitemap. Create a request for the method "sitemaps.get". This request holds the parameters needed by the webmasters server. After setting any optional parameters, call the com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
siteUrl The site's URL, including protocol. For example: http://www.example.com/
feedpath The URL of the actual sitemap. For example: http://www.example.com/sitemap.xml
Returns:
the request
 
     public Get get(java.lang.String siteUrljava.lang.String feedpaththrows java.io.IOException {
       Get result = new Get(siteUrlfeedpath);
       initialize(result);
       return result;
     }
 
     public class Get extends WebmastersRequest<com.google.api.services.webmasters.model.WmxSitemap> {
 
       private static final String REST_PATH = "sites/{siteUrl}/sitemaps/{feedpath}";

      
Retrieves information about a specific sitemap. Create a request for the method "sitemaps.get". This request holds the parameters needed by the the webmasters server. After setting any optional parameters, call the com.google.api.client.googleapis.services.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.

Parameters:
siteUrl The site's URL, including protocol. For example: http://www.example.com/
feedpath The URL of the actual sitemap. For example: http://www.example.com/sitemap.xml
Since:
1.13
 
       protected Get(java.lang.String siteUrljava.lang.String feedpath) {
         super(Webmasters.this"GET"nullcom.google.api.services.webmasters.model.WmxSitemap.class);
         this. = com.google.api.client.util.Preconditions.checkNotNull(siteUrl"Required parameter siteUrl must be specified.");
         this. = com.google.api.client.util.Preconditions.checkNotNull(feedpath"Required parameter feedpath must be specified.");
       }
 
       @Override
         return super.executeUsingHead();
       }
 
       @Override
         return super.buildHttpRequestUsingHead();
       }
 
       @Override
       public Get setAlt(java.lang.String alt) {
         return (Getsuper.setAlt(alt);
       }
 
       @Override
       public Get setFields(java.lang.String fields) {
         return (Getsuper.setFields(fields);
       }
 
       @Override
       public Get setKey(java.lang.String key) {
         return (Getsuper.setKey(key);
       }
 
       @Override
       public Get setOauthToken(java.lang.String oauthToken) {
         return (Getsuper.setOauthToken(oauthToken);
       }
 
       @Override
       public Get setPrettyPrint(java.lang.Boolean prettyPrint) {
         return (Getsuper.setPrettyPrint(prettyPrint);
       }
 
       @Override
       public Get setQuotaUser(java.lang.String quotaUser) {
         return (Getsuper.setQuotaUser(quotaUser);
       }
 
       @Override
       public Get setUserIp(java.lang.String userIp) {
         return (Getsuper.setUserIp(userIp);
       }

      
The site's URL, including protocol. For example: http://www.example.com/
 
       @com.google.api.client.util.Key
       private java.lang.String siteUrl;

      
The site's URL, including protocol. For example: http://www.example.com/
 
       public java.lang.String getSiteUrl() {
         return ;
       }

      
The site's URL, including protocol. For example: http://www.example.com/
 
       public Get setSiteUrl(java.lang.String siteUrl) {
         this. = siteUrl;
         return this;
       }

      
The URL of the actual sitemap. For example: http://www.example.com/sitemap.xml
 
       @com.google.api.client.util.Key
       private java.lang.String feedpath;

      
The URL of the actual sitemap. For example: http://www.example.com/sitemap.xml
 
       public java.lang.String getFeedpath() {
         return ;
       }

      
The URL of the actual sitemap. For example: http://www.example.com/sitemap.xml
 
       public Get setFeedpath(java.lang.String feedpath) {
         this. = feedpath;
         return this;
       }
 
       @Override
       public Get set(String parameterNameObject value) {
         return (Getsuper.set(parameterNamevalue);
       }
     }
    
Lists the sitemaps-entries submitted for this site, or included in the sitemap index file (if sitemapIndex is specified in the request). Create a request for the method "sitemaps.list". This request holds the parameters needed by the webmasters server. After setting any optional parameters, call the com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
siteUrl The site's URL, including protocol. For example: http://www.example.com/
Returns:
the request
 
     public List list(java.lang.String siteUrlthrows java.io.IOException {
       List result = new List(siteUrl);
       initialize(result);
       return result;
     }
 
 
       private static final String REST_PATH = "sites/{siteUrl}/sitemaps";

      
Lists the sitemaps-entries submitted for this site, or included in the sitemap index file (if sitemapIndex is specified in the request). Create a request for the method "sitemaps.list". This request holds the parameters needed by the the webmasters server. After setting any optional parameters, call the com.google.api.client.googleapis.services.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.

Parameters:
siteUrl The site's URL, including protocol. For example: http://www.example.com/
Since:
1.13
 
       protected List(java.lang.String siteUrl) {
         super(Webmasters.this"GET"nullcom.google.api.services.webmasters.model.SitemapsListResponse.class);
         this. = com.google.api.client.util.Preconditions.checkNotNull(siteUrl"Required parameter siteUrl must be specified.");
       }
 
       @Override
         return super.executeUsingHead();
       }
 
       @Override
         return super.buildHttpRequestUsingHead();
       }
 
       @Override
       public List setAlt(java.lang.String alt) {
         return (Listsuper.setAlt(alt);
       }
 
       @Override
       public List setFields(java.lang.String fields) {
         return (Listsuper.setFields(fields);
       }
 
       @Override
       public List setKey(java.lang.String key) {
         return (Listsuper.setKey(key);
       }
 
       @Override
       public List setOauthToken(java.lang.String oauthToken) {
         return (Listsuper.setOauthToken(oauthToken);
       }
 
       @Override
       public List setPrettyPrint(java.lang.Boolean prettyPrint) {
         return (Listsuper.setPrettyPrint(prettyPrint);
       }
 
       @Override
       public List setQuotaUser(java.lang.String quotaUser) {
         return (Listsuper.setQuotaUser(quotaUser);
       }
 
       @Override
       public List setUserIp(java.lang.String userIp) {
         return (Listsuper.setUserIp(userIp);
       }

      
The site's URL, including protocol. For example: http://www.example.com/
 
       @com.google.api.client.util.Key
       private java.lang.String siteUrl;

      
The site's URL, including protocol. For example: http://www.example.com/
 
       public java.lang.String getSiteUrl() {
         return ;
       }

      
The site's URL, including protocol. For example: http://www.example.com/
 
       public List setSiteUrl(java.lang.String siteUrl) {
         this. = siteUrl;
         return this;
       }

      
A URL of a site's sitemap index. For example: http://www.example.com/sitemapindex.xml
 
       @com.google.api.client.util.Key
       private java.lang.String sitemapIndex;

      
A URL of a site's sitemap index. For example: http://www.example.com/sitemapindex.xml
 
       public java.lang.String getSitemapIndex() {
         return ;
       }

      
A URL of a site's sitemap index. For example: http://www.example.com/sitemapindex.xml
 
       public List setSitemapIndex(java.lang.String sitemapIndex) {
         this. = sitemapIndex;
         return this;
       }
 
       @Override
       public List set(String parameterNameObject value) {
         return (Listsuper.set(parameterNamevalue);
       }
     }
    
Submits a sitemap for a site. Create a request for the method "sitemaps.submit". This request holds the parameters needed by the webmasters server. After setting any optional parameters, call the com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
siteUrl The site's URL, including protocol. For example: http://www.example.com/
feedpath The URL of the sitemap to add. For example: http://www.example.com/sitemap.xml
Returns:
the request
 
     public Submit submit(java.lang.String siteUrljava.lang.String feedpaththrows java.io.IOException {
       Submit result = new Submit(siteUrlfeedpath);
       initialize(result);
       return result;
     }
 
     public class Submit extends WebmastersRequest<Void> {
 
       private static final String REST_PATH = "sites/{siteUrl}/sitemaps/{feedpath}";

      
Submits a sitemap for a site. Create a request for the method "sitemaps.submit". This request holds the parameters needed by the the webmasters server. After setting any optional parameters, call the com.google.api.client.googleapis.services.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.

Parameters:
siteUrl The site's URL, including protocol. For example: http://www.example.com/
feedpath The URL of the sitemap to add. For example: http://www.example.com/sitemap.xml
Since:
1.13
 
       protected Submit(java.lang.String siteUrljava.lang.String feedpath) {
         super(Webmasters.this"PUT"nullVoid.class);
         this. = com.google.api.client.util.Preconditions.checkNotNull(siteUrl"Required parameter siteUrl must be specified.");
         this. = com.google.api.client.util.Preconditions.checkNotNull(feedpath"Required parameter feedpath must be specified.");
       }
 
       @Override
       public Submit setAlt(java.lang.String alt) {
         return (Submitsuper.setAlt(alt);
       }
 
       @Override
       public Submit setFields(java.lang.String fields) {
         return (Submitsuper.setFields(fields);
       }
 
       @Override
       public Submit setKey(java.lang.String key) {
         return (Submitsuper.setKey(key);
       }
 
       @Override
       public Submit setOauthToken(java.lang.String oauthToken) {
         return (Submitsuper.setOauthToken(oauthToken);
       }
 
       @Override
       public Submit setPrettyPrint(java.lang.Boolean prettyPrint) {
         return (Submitsuper.setPrettyPrint(prettyPrint);
       }
 
       @Override
       public Submit setQuotaUser(java.lang.String quotaUser) {
         return (Submitsuper.setQuotaUser(quotaUser);
       }
 
       @Override
       public Submit setUserIp(java.lang.String userIp) {
         return (Submitsuper.setUserIp(userIp);
       }

      
The site's URL, including protocol. For example: http://www.example.com/
 
       @com.google.api.client.util.Key
       private java.lang.String siteUrl;

      
The site's URL, including protocol. For example: http://www.example.com/
 
       public java.lang.String getSiteUrl() {
         return ;
       }

      
The site's URL, including protocol. For example: http://www.example.com/
 
       public Submit setSiteUrl(java.lang.String siteUrl) {
         this. = siteUrl;
         return this;
       }

      
The URL of the sitemap to add. For example: http://www.example.com/sitemap.xml
 
       @com.google.api.client.util.Key
       private java.lang.String feedpath;

      
The URL of the sitemap to add. For example: http://www.example.com/sitemap.xml
 
       public java.lang.String getFeedpath() {
         return ;
       }

      
The URL of the sitemap to add. For example: http://www.example.com/sitemap.xml
 
       public Submit setFeedpath(java.lang.String feedpath) {
         this. = feedpath;
         return this;
       }
 
       @Override
       public Submit set(String parameterNameObject value) {
         return (Submitsuper.set(parameterNamevalue);
       }
     }
 
   }

  
An accessor for creating requests from the Sites collection.

The typical use is:

   Webmasters webmasters = new Webmasters(...);
   Webmasters.Sites.List request = webmasters.sites().list(parameters ...)
 

Returns:
the resource collection
 
   public Sites sites() {
     return new Sites();
   }

  
The "sites" collection of methods.
 
   public class Sites {

    
Adds a site to the set of the user's sites in Webmaster Tools. Create a request for the method "sites.add". This request holds the parameters needed by the webmasters server. After setting any optional parameters, call the com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
siteUrl The URL of the site to add.
Returns:
the request
 
     public Add add(java.lang.String siteUrlthrows java.io.IOException {
       Add result = new Add(siteUrl);
       initialize(result);
       return result;
     }
 
     public class Add extends WebmastersRequest<Void> {
 
       private static final String REST_PATH = "sites/{siteUrl}";

      
Adds a site to the set of the user's sites in Webmaster Tools. Create a request for the method "sites.add". This request holds the parameters needed by the the webmasters server. After setting any optional parameters, call the com.google.api.client.googleapis.services.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.

Parameters:
siteUrl The URL of the site to add.
Since:
1.13
 
       protected Add(java.lang.String siteUrl) {
         super(Webmasters.this"PUT"nullVoid.class);
         this. = com.google.api.client.util.Preconditions.checkNotNull(siteUrl"Required parameter siteUrl must be specified.");
       }
 
       @Override
       public Add setAlt(java.lang.String alt) {
         return (Addsuper.setAlt(alt);
       }
 
       @Override
       public Add setFields(java.lang.String fields) {
         return (Addsuper.setFields(fields);
       }
 
       @Override
       public Add setKey(java.lang.String key) {
         return (Addsuper.setKey(key);
       }
 
       @Override
       public Add setOauthToken(java.lang.String oauthToken) {
         return (Addsuper.setOauthToken(oauthToken);
       }
 
       @Override
       public Add setPrettyPrint(java.lang.Boolean prettyPrint) {
         return (Addsuper.setPrettyPrint(prettyPrint);
       }
 
       @Override
       public Add setQuotaUser(java.lang.String quotaUser) {
         return (Addsuper.setQuotaUser(quotaUser);
       }
 
       @Override
       public Add setUserIp(java.lang.String userIp) {
         return (Addsuper.setUserIp(userIp);
       }

      
The URL of the site to add.
 
       @com.google.api.client.util.Key
       private java.lang.String siteUrl;

      
The URL of the site to add.
 
       public java.lang.String getSiteUrl() {
         return ;
       }

      
The URL of the site to add.
 
       public Add setSiteUrl(java.lang.String siteUrl) {
         this. = siteUrl;
         return this;
       }
 
       @Override
       public Add set(String parameterNameObject value) {
         return (Addsuper.set(parameterNamevalue);
       }
     }
    
Removes a site from the set of the user's Webmaster Tools sites. Create a request for the method "sites.delete". This request holds the parameters needed by the webmasters server. After setting any optional parameters, call the com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
siteUrl The URI of the property as defined in Search Console. Examples: http://www.example.com/ or android- app://com.example/
Returns:
the request
 
     public Delete delete(java.lang.String siteUrlthrows java.io.IOException {
       Delete result = new Delete(siteUrl);
       initialize(result);
       return result;
     }
 
     public class Delete extends WebmastersRequest<Void> {
 
       private static final String REST_PATH = "sites/{siteUrl}";

      
Removes a site from the set of the user's Webmaster Tools sites. Create a request for the method "sites.delete". This request holds the parameters needed by the the webmasters server. After setting any optional parameters, call the com.google.api.client.googleapis.services.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.

Parameters:
siteUrl The URI of the property as defined in Search Console. Examples: http://www.example.com/ or android- app://com.example/
Since:
1.13
 
       protected Delete(java.lang.String siteUrl) {
         super(Webmasters.this"DELETE"nullVoid.class);
         this. = com.google.api.client.util.Preconditions.checkNotNull(siteUrl"Required parameter siteUrl must be specified.");
       }
 
       @Override
       public Delete setAlt(java.lang.String alt) {
         return (Deletesuper.setAlt(alt);
       }
 
       @Override
       public Delete setFields(java.lang.String fields) {
         return (Deletesuper.setFields(fields);
       }
 
       @Override
       public Delete setKey(java.lang.String key) {
         return (Deletesuper.setKey(key);
       }
 
       @Override
       public Delete setOauthToken(java.lang.String oauthToken) {
         return (Deletesuper.setOauthToken(oauthToken);
       }
 
       @Override
       public Delete setPrettyPrint(java.lang.Boolean prettyPrint) {
         return (Deletesuper.setPrettyPrint(prettyPrint);
       }
 
       @Override
       public Delete setQuotaUser(java.lang.String quotaUser) {
         return (Deletesuper.setQuotaUser(quotaUser);
       }
 
       @Override
       public Delete setUserIp(java.lang.String userIp) {
         return (Deletesuper.setUserIp(userIp);
       }

      
The URI of the property as defined in Search Console. Examples: http://www.example.com/ or android-app://com.example/
 
       @com.google.api.client.util.Key
       private java.lang.String siteUrl;

      
The URI of the property as defined in Search Console. Examples: http://www.example.com/ or android- app://com.example/
 
       public java.lang.String getSiteUrl() {
         return ;
       }

      
The URI of the property as defined in Search Console. Examples: http://www.example.com/ or android-app://com.example/
 
       public Delete setSiteUrl(java.lang.String siteUrl) {
         this. = siteUrl;
         return this;
       }
 
       @Override
       public Delete set(String parameterNameObject value) {
         return (Deletesuper.set(parameterNamevalue);
       }
     }
    
Retrieves information about specific site. Create a request for the method "sites.get". This request holds the parameters needed by the webmasters server. After setting any optional parameters, call the com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
siteUrl The URI of the property as defined in Search Console. Examples: http://www.example.com/ or android- app://com.example/
Returns:
the request
 
     public Get get(java.lang.String siteUrlthrows java.io.IOException {
       Get result = new Get(siteUrl);
       initialize(result);
       return result;
     }
 
     public class Get extends WebmastersRequest<com.google.api.services.webmasters.model.WmxSite> {
 
       private static final String REST_PATH = "sites/{siteUrl}";

      
Retrieves information about specific site. Create a request for the method "sites.get". This request holds the parameters needed by the the webmasters server. After setting any optional parameters, call the com.google.api.client.googleapis.services.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.

Parameters:
siteUrl The URI of the property as defined in Search Console. Examples: http://www.example.com/ or android- app://com.example/
Since:
1.13
      protected Get(java.lang.String siteUrl) {
        super(Webmasters.this"GET"nullcom.google.api.services.webmasters.model.WmxSite.class);
        this. = com.google.api.client.util.Preconditions.checkNotNull(siteUrl"Required parameter siteUrl must be specified.");
      }
      @Override
        return super.executeUsingHead();
      }
      @Override
        return super.buildHttpRequestUsingHead();
      }
      @Override
      public Get setAlt(java.lang.String alt) {
        return (Getsuper.setAlt(alt);
      }
      @Override
      public Get setFields(java.lang.String fields) {
        return (Getsuper.setFields(fields);
      }
      @Override
      public Get setKey(java.lang.String key) {
        return (Getsuper.setKey(key);
      }
      @Override
      public Get setOauthToken(java.lang.String oauthToken) {
        return (Getsuper.setOauthToken(oauthToken);
      }
      @Override
      public Get setPrettyPrint(java.lang.Boolean prettyPrint) {
        return (Getsuper.setPrettyPrint(prettyPrint);
      }
      @Override
      public Get setQuotaUser(java.lang.String quotaUser) {
        return (Getsuper.setQuotaUser(quotaUser);
      }
      @Override
      public Get setUserIp(java.lang.String userIp) {
        return (Getsuper.setUserIp(userIp);
      }

      
The URI of the property as defined in Search Console. Examples: http://www.example.com/ or android-app://com.example/
      private java.lang.String siteUrl;

      
The URI of the property as defined in Search Console. Examples: http://www.example.com/ or android- app://com.example/
      public java.lang.String getSiteUrl() {
        return ;
      }

      
The URI of the property as defined in Search Console. Examples: http://www.example.com/ or android-app://com.example/
      public Get setSiteUrl(java.lang.String siteUrl) {
        this. = siteUrl;
        return this;
      }
      @Override
      public Get set(String parameterNameObject value) {
        return (Getsuper.set(parameterNamevalue);
      }
    }
    
Lists the user's Webmaster Tools sites. Create a request for the method "sites.list". This request holds the parameters needed by the webmasters server. After setting any optional parameters, call the com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Returns:
the request
    public List list() throws java.io.IOException {
      List result = new List();
      initialize(result);
      return result;
    }
      private static final String REST_PATH = "sites";

      
Lists the user's Webmaster Tools sites. Create a request for the method "sites.list". This request holds the parameters needed by the the webmasters server. After setting any optional parameters, call the com.google.api.client.googleapis.services.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.

Since:
1.13
      protected List() {
        super(Webmasters.this"GET"nullcom.google.api.services.webmasters.model.SitesListResponse.class);
      }
      @Override
        return super.executeUsingHead();
      }
      @Override
        return super.buildHttpRequestUsingHead();
      }
      @Override
      public List setAlt(java.lang.String alt) {
        return (Listsuper.setAlt(alt);
      }
      @Override
      public List setFields(java.lang.String fields) {
        return (Listsuper.setFields(fields);
      }
      @Override
      public List setKey(java.lang.String key) {
        return (Listsuper.setKey(key);
      }
      @Override
      public List setOauthToken(java.lang.String oauthToken) {
        return (Listsuper.setOauthToken(oauthToken);
      }
      @Override
      public List setPrettyPrint(java.lang.Boolean prettyPrint) {
        return (Listsuper.setPrettyPrint(prettyPrint);
      }
      @Override
      public List setQuotaUser(java.lang.String quotaUser) {
        return (Listsuper.setQuotaUser(quotaUser);
      }
      @Override
      public List setUserIp(java.lang.String userIp) {
        return (Listsuper.setUserIp(userIp);
      }
      @Override
      public List set(String parameterNameObject value) {
        return (Listsuper.set(parameterNamevalue);
      }
    }
  }

  
An accessor for creating requests from the Urlcrawlerrorscounts collection.

The typical use is:

   Webmasters webmasters = new Webmasters(...);
   Webmasters.Urlcrawlerrorscounts.List request = webmasters.urlcrawlerrorscounts().list(parameters ...)
 

Returns:
the resource collection
    return new Urlcrawlerrorscounts();
  }

  
The "urlcrawlerrorscounts" collection of methods.
  public class Urlcrawlerrorscounts {

    
Retrieves a time series of the number of URL crawl errors per error category and platform. Create a request for the method "urlcrawlerrorscounts.query". This request holds the parameters needed by the webmasters server. After setting any optional parameters, call the com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
siteUrl The site's URL, including protocol. For example: http://www.example.com/
Returns:
the request
    public Query query(java.lang.String siteUrlthrows java.io.IOException {
      Query result = new Query(siteUrl);
      initialize(result);
      return result;
    }
      private static final String REST_PATH = "sites/{siteUrl}/urlCrawlErrorsCounts/query";

      
Retrieves a time series of the number of URL crawl errors per error category and platform. Create a request for the method "urlcrawlerrorscounts.query". This request holds the parameters needed by the the webmasters server. After setting any optional parameters, call the com.google.api.client.googleapis.services.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.

Parameters:
siteUrl The site's URL, including protocol. For example: http://www.example.com/
Since:
1.13
      protected Query(java.lang.String siteUrl) {
        super(Webmasters.this"GET"nullcom.google.api.services.webmasters.model.UrlCrawlErrorsCountsQueryResponse.class);
        this. = com.google.api.client.util.Preconditions.checkNotNull(siteUrl"Required parameter siteUrl must be specified.");
      }
      @Override
        return super.executeUsingHead();
      }
      @Override
        return super.buildHttpRequestUsingHead();
      }
      @Override
      public Query setAlt(java.lang.String alt) {
        return (Querysuper.setAlt(alt);
      }
      @Override
      public Query setFields(java.lang.String fields) {
        return (Querysuper.setFields(fields);
      }
      @Override
      public Query setKey(java.lang.String key) {
        return (Querysuper.setKey(key);
      }
      @Override
      public Query </