Calendar API v3 (revision 41)



com.google.api.services.calendar.model
Class Events

java.lang.Object
  extended by java.util.AbstractMap<String,Object>
      extended by com.google.api.client.util.GenericData
          extended by com.google.api.client.json.GenericJson
              extended by com.google.api.services.calendar.model.Events
All Implemented Interfaces:
Cloneable, Map<String,Object>

public final class Events
extends GenericJson

Model definition for Events.

This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Calendar API. For a detailed explanation see: http://code.google.com/p/google-api-java-client/wiki/Json

Author:
Google, Inc.

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
Events()
           
 
Method Summary
 Events clone()
           
 String getAccessRole()
          The user's access role for this calendar.
 List<EventReminder> getDefaultReminders()
          The default reminders on the calendar for the authenticated user.
 String getDescription()
          Description of the calendar.
 String getEtag()
          ETag of the collection.
 List<Event> getItems()
          List of events on the calendar.
 String getKind()
          Type of the collection ("calendar#events").
 String getNextPageToken()
          Token used to access the next page of this result.
 String getSummary()
          Title of the calendar.
 String getTimeZone()
          The time zone of the calendar.
 DateTime getUpdated()
          Last modification time of the calendar (as a RFC 3339 timestamp).
 Events set(String fieldName, Object value)
           
 Events setAccessRole(String accessRole)
          The user's access role for this calendar.
 Events setDefaultReminders(List<EventReminder> defaultReminders)
          The default reminders on the calendar for the authenticated user.
 Events setDescription(String description)
          Description of the calendar.
 Events setEtag(String etag)
          ETag of the collection.
 Events setItems(List<Event> items)
          List of events on the calendar.
 Events setKind(String kind)
          Type of the collection ("calendar#events").
 Events setNextPageToken(String nextPageToken)
          Token used to access the next page of this result.
 Events setSummary(String summary)
          Title of the calendar.
 Events setTimeZone(String timeZone)
          The time zone of the calendar.
 Events setUpdated(DateTime updated)
          Last modification time of the calendar (as a RFC 3339 timestamp).
 
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
 
Methods inherited from class com.google.api.client.util.GenericData
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
 
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Events

public Events()
Method Detail

getAccessRole

public String getAccessRole()
The user's access role for this calendar. Read-only. Possible values are: - "none" - The user has no access. - "freeBusyReader" - The user has read access to free/busy information. - "reader" - The user has read access to the calendar. Private events will appear to users with reader access, but event details will be hidden. - "writer" - The user has read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible. - "owner" - The user has ownership of the calendar. This role has all of the permissions of the writer role with the additional ability to see and manipulate ACLs.

Returns:
value or null for none

setAccessRole

public Events setAccessRole(String accessRole)
The user's access role for this calendar. Read-only. Possible values are: - "none" - The user has no access. - "freeBusyReader" - The user has read access to free/busy information. - "reader" - The user has read access to the calendar. Private events will appear to users with reader access, but event details will be hidden. - "writer" - The user has read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible. - "owner" - The user has ownership of the calendar. This role has all of the permissions of the writer role with the additional ability to see and manipulate ACLs.

Parameters:
accessRole - accessRole or null for none

getDefaultReminders

public List<EventReminder> getDefaultReminders()
The default reminders on the calendar for the authenticated user. These reminders apply to all events on this calendar that do not explicitly override them (i.e. do not have 'reminders.useDefault' set to 'true').

Returns:
value or null for none

setDefaultReminders

public Events setDefaultReminders(List<EventReminder> defaultReminders)
The default reminders on the calendar for the authenticated user. These reminders apply to all events on this calendar that do not explicitly override them (i.e. do not have 'reminders.useDefault' set to 'true').

Parameters:
defaultReminders - defaultReminders or null for none

getDescription

public String getDescription()
Description of the calendar. Read-only.

Returns:
value or null for none

setDescription

public Events setDescription(String description)
Description of the calendar. Read-only.

Parameters:
description - description or null for none

getEtag

public String getEtag()
ETag of the collection.

Returns:
value or null for none

setEtag

public Events setEtag(String etag)
ETag of the collection.

Parameters:
etag - etag or null for none

getItems

public List<Event> getItems()
List of events on the calendar.

Returns:
value or null for none

setItems

public Events setItems(List<Event> items)
List of events on the calendar.

Parameters:
items - items or null for none

getKind

public String getKind()
Type of the collection ("calendar#events").

Returns:
value or null for none

setKind

public Events setKind(String kind)
Type of the collection ("calendar#events").

Parameters:
kind - kind or null for none

getNextPageToken

public String getNextPageToken()
Token used to access the next page of this result. Omitted if no further results are available.

Returns:
value or null for none

setNextPageToken

public Events setNextPageToken(String nextPageToken)
Token used to access the next page of this result. Omitted if no further results are available.

Parameters:
nextPageToken - nextPageToken or null for none

getSummary

public String getSummary()
Title of the calendar. Read-only.

Returns:
value or null for none

setSummary

public Events setSummary(String summary)
Title of the calendar. Read-only.

Parameters:
summary - summary or null for none

getTimeZone

public String getTimeZone()
The time zone of the calendar. Read-only.

Returns:
value or null for none

setTimeZone

public Events setTimeZone(String timeZone)
The time zone of the calendar. Read-only.

Parameters:
timeZone - timeZone or null for none

getUpdated

public DateTime getUpdated()
Last modification time of the calendar (as a RFC 3339 timestamp). Read-only.

Returns:
value or null for none

setUpdated

public Events setUpdated(DateTime updated)
Last modification time of the calendar (as a RFC 3339 timestamp). Read-only.

Parameters:
updated - updated or null for none

set

public Events set(String fieldName,
                  Object value)
Overrides:
set in class GenericJson

clone

public Events clone()
Overrides:
clone in class GenericJson