public class Calendar
extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient
Manipulates 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
.
Modifier and Type | Class and Description |
---|---|
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.Channels
The "channels" 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.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_BASE_URL
The default encoded base URL of the service.
|
static java.lang.String |
DEFAULT_BATCH_PATH
The default encoded batch path of the service.
|
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 and Description |
---|
Calendar(com.google.api.client.http.HttpTransport transport,
com.google.api.client.json.JsonFactory jsonFactory,
com.google.api.client.http.HttpRequestInitializer httpRequestInitializer)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.Channels |
channels()
An accessor for creating requests from the Channels 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(com.google.api.client.googleapis.services.AbstractGoogleClientRequest<?> httpClientRequest) |
Calendar.Settings |
settings()
An accessor for creating requests from the Settings collection.
|
getJsonFactory, getObjectParser
public static final java.lang.String DEFAULT_ROOT_URL
public static final java.lang.String DEFAULT_SERVICE_PATH
public static final java.lang.String DEFAULT_BATCH_PATH
public static final java.lang.String DEFAULT_BASE_URL
public Calendar(com.google.api.client.http.HttpTransport transport, com.google.api.client.json.JsonFactory jsonFactory, com.google.api.client.http.HttpRequestInitializer httpRequestInitializer)
Use Calendar.Builder
if you need to specify any of the optional parameters.
transport
- HTTP transport, which should normally be:
com.google.api.client.extensions.appengine.http.UrlFetchTransport
newCompatibleTransport
from
com.google.api.client.extensions.android.http.AndroidHttp
com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()
jsonFactory
- JSON factory, which may be:
com.google.api.client.json.jackson2.JacksonFactory
com.google.api.client.json.gson.GsonFactory
com.google.api.client.extensions.android.json.AndroidJsonFactory
httpRequestInitializer
- HTTP request initializer or null
for noneprotected void initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest<?> httpClientRequest) throws java.io.IOException
initialize
in class com.google.api.client.googleapis.services.AbstractGoogleClient
java.io.IOException
public Calendar.Acl acl()
The typical use is:
Calendar calendar = new Calendar(...);
Calendar.Acl.List request = calendar.acl().list(parameters ...)
public Calendar.CalendarList calendarList()
The typical use is:
Calendar calendar = new Calendar(...);
Calendar.CalendarList.List request = calendar.calendarList().list(parameters ...)
public Calendar.Calendars calendars()
The typical use is:
Calendar calendar = new Calendar(...);
Calendar.Calendars.List request = calendar.calendars().list(parameters ...)
public Calendar.Channels channels()
The typical use is:
Calendar calendar = new Calendar(...);
Calendar.Channels.List request = calendar.channels().list(parameters ...)
public Calendar.Colors colors()
The typical use is:
Calendar calendar = new Calendar(...);
Calendar.Colors.List request = calendar.colors().list(parameters ...)
public Calendar.Events events()
The typical use is:
Calendar calendar = new Calendar(...);
Calendar.Events.List request = calendar.events().list(parameters ...)
public Calendar.Freebusy freebusy()
The typical use is:
Calendar calendar = new Calendar(...);
Calendar.Freebusy.List request = calendar.freebusy().list(parameters ...)
public Calendar.Settings settings()
The typical use is:
Calendar calendar = new Calendar(...);
Calendar.Settings.List request = calendar.settings().list(parameters ...)