Calendar API v3 (revision 30)



com.google.api.services.calendar
Class Calendar

java.lang.Object
  extended by com.google.api.client.googleapis.services.AbstractGoogleClient
      extended by com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient
          extended by com.google.api.services.calendar.Calendar

public class Calendar
extends AbstractGoogleJsonClient

Service definition for Calendar (v3).

Lets you manipulate events and other calendar data.

For more information about this service, see the API Documentation

This service uses CalendarRequestInitializer to initialize global parameters via its Calendar.Builder.

Upgrade warning: this class now extends AbstractGoogleJsonClient, whereas in prior version 1.8 it extended GoogleClient.

Since:
1.3
Author:
Google, Inc.

Nested Class Summary
 class Calendar.Acl
          The "acl" collection of methods.
static class Calendar.Builder
          Builder for Calendar.
 class Calendar.CalendarList
          The "calendarList" collection of methods.
 class Calendar.Calendars
          The "calendars" collection of methods.
 class Calendar.Colors
          The "colors" collection of methods.
 class Calendar.Events
          The "events" collection of methods.
 class Calendar.Freebusy
          The "freebusy" collection of methods.
 class Calendar.Settings
          The "settings" collection of methods.
 
Field Summary
static java.lang.String DEFAULT_BASE_URL
          Deprecated. (scheduled to be removed in 1.13)
static java.lang.String DEFAULT_ROOT_URL
          The default encoded root URL of the service.
static java.lang.String DEFAULT_SERVICE_PATH
          The default encoded service path of the service.
 
Constructor Summary
Calendar(HttpTransport transport, JsonFactory jsonFactory, HttpRequestInitializer httpRequestInitializer)
          Constructor.
 
Method Summary
 Calendar.Acl acl()
          An accessor for creating requests from the Acl collection.
 Calendar.CalendarList calendarList()
          An accessor for creating requests from the CalendarList collection.
 Calendar.Calendars calendars()
          An accessor for creating requests from the Calendars collection.
 Calendar.Colors colors()
          An accessor for creating requests from the Colors collection.
 Calendar.Events events()
          An accessor for creating requests from the Events collection.
 Calendar.Freebusy freebusy()
          An accessor for creating requests from the Freebusy collection.
protected  void initialize(AbstractGoogleClientRequest<?> httpClientRequest)
           
 Calendar.Settings settings()
          An accessor for creating requests from the Settings collection.
 
Methods inherited from class com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient
getJsonFactory, getObjectParser
 
Methods inherited from class com.google.api.client.googleapis.services.AbstractGoogleClient
batch, batch, getApplicationName, getBaseUrl, getGoogleClientRequestInitializer, getRequestFactory, getRootUrl, getServicePath, getSuppressPatternChecks
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_ROOT_URL

public static final java.lang.String DEFAULT_ROOT_URL
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
See Also:
Constant Field Values

DEFAULT_SERVICE_PATH

public static final java.lang.String DEFAULT_SERVICE_PATH
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
See Also:
Constant Field Values

DEFAULT_BASE_URL

@Deprecated
public static final java.lang.String DEFAULT_BASE_URL
Deprecated. (scheduled to be removed in 1.13)
The default encoded base URL of the service. This is determined when the library is generated and normally should not be changed.

See Also:
Constant Field Values
Constructor Detail

Calendar

public Calendar(HttpTransport transport,
                JsonFactory jsonFactory,
                HttpRequestInitializer httpRequestInitializer)
Constructor.

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

Parameters:
transport - HTTP transport
jsonFactory - JSON factory
httpRequestInitializer - HTTP request initializer or null for none
Since:
1.7
Method Detail

initialize

protected void initialize(AbstractGoogleClientRequest<?> httpClientRequest)
                   throws java.io.IOException
Overrides:
initialize in class AbstractGoogleClient
Throws:
java.io.IOException

acl

public Calendar.Acl acl()
An accessor for creating requests from the Acl collection.

The typical use is:

   Calendar calendar = new Calendar(...);
   Calendar.Acl.List request = calendar.acl().list(parameters ...)
 

Returns:
the resource collection

calendarList

public Calendar.CalendarList calendarList()
An accessor for creating requests from the CalendarList collection.

The typical use is:

   Calendar calendar = new Calendar(...);
   Calendar.CalendarList.List request = calendar.calendarList().list(parameters ...)
 

Returns:
the resource collection

calendars

public Calendar.Calendars calendars()
An accessor for creating requests from the Calendars collection.

The typical use is:

   Calendar calendar = new Calendar(...);
   Calendar.Calendars.List request = calendar.calendars().list(parameters ...)
 

Returns:
the resource collection

colors

public Calendar.Colors colors()
An accessor for creating requests from the Colors collection.

The typical use is:

   Calendar calendar = new Calendar(...);
   Calendar.Colors.List request = calendar.colors().list(parameters ...)
 

Returns:
the resource collection

events

public Calendar.Events events()
An accessor for creating requests from the Events collection.

The typical use is:

   Calendar calendar = new Calendar(...);
   Calendar.Events.List request = calendar.events().list(parameters ...)
 

Returns:
the resource collection

freebusy

public Calendar.Freebusy freebusy()
An accessor for creating requests from the Freebusy collection.

The typical use is:

   Calendar calendar = new Calendar(...);
   Calendar.Freebusy.List request = calendar.freebusy().list(parameters ...)
 

Returns:
the resource collection

settings

public Calendar.Settings settings()
An accessor for creating requests from the Settings collection.

The typical use is:

   Calendar calendar = new Calendar(...);
   Calendar.Settings.List request = calendar.settings().list(parameters ...)
 

Returns:
the resource collection