Calendar API v3 (revision 41)



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

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.CalendarListEntry
All Implemented Interfaces:
Cloneable, Map<String,Object>

public final class CalendarListEntry
extends GenericJson

Model definition for CalendarListEntry.

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
CalendarListEntry()
           
 
Method Summary
 CalendarListEntry clone()
           
 String getAccessRole()
          The effective access role that the authenticated user has on the calendar.
 String getBackgroundColor()
          The main color of the calendar in the format '#0088aa'.
 String getColorId()
          The color of the calendar.
 List<EventReminder> getDefaultReminders()
          The default reminders that the authenticated user has for this calendar.
 String getDescription()
          Description of the calendar.
 String getEtag()
          ETag of the resource.
 String getForegroundColor()
          The foreground color of the calendar in the format '#ffffff'.
 Boolean getHidden()
          Whether the calendar has been hidden from the list.
 String getId()
          Identifier of the calendar.
 String getKind()
          Type of the resource ("calendar#calendarListEntry").
 String getLocation()
          Geographic location of the calendar as free-form text.
 Boolean getPrimary()
          Whether the calendar is the primary calendar of the authenticated user.
 Boolean getSelected()
          Whether the calendar content shows up in the calendar UI.
 String getSummary()
          Title of the calendar.
 String getSummaryOverride()
          The summary that the authenticated user has set for this calendar.
 String getTimeZone()
          The time zone of the calendar.
 CalendarListEntry set(String fieldName, Object value)
           
 CalendarListEntry setAccessRole(String accessRole)
          The effective access role that the authenticated user has on the calendar.
 CalendarListEntry setBackgroundColor(String backgroundColor)
          The main color of the calendar in the format '#0088aa'.
 CalendarListEntry setColorId(String colorId)
          The color of the calendar.
 CalendarListEntry setDefaultReminders(List<EventReminder> defaultReminders)
          The default reminders that the authenticated user has for this calendar.
 CalendarListEntry setDescription(String description)
          Description of the calendar.
 CalendarListEntry setEtag(String etag)
          ETag of the resource.
 CalendarListEntry setForegroundColor(String foregroundColor)
          The foreground color of the calendar in the format '#ffffff'.
 CalendarListEntry setHidden(Boolean hidden)
          Whether the calendar has been hidden from the list.
 CalendarListEntry setId(String id)
          Identifier of the calendar.
 CalendarListEntry setKind(String kind)
          Type of the resource ("calendar#calendarListEntry").
 CalendarListEntry setLocation(String location)
          Geographic location of the calendar as free-form text.
 CalendarListEntry setPrimary(Boolean primary)
          Whether the calendar is the primary calendar of the authenticated user.
 CalendarListEntry setSelected(Boolean selected)
          Whether the calendar content shows up in the calendar UI.
 CalendarListEntry setSummary(String summary)
          Title of the calendar.
 CalendarListEntry setSummaryOverride(String summaryOverride)
          The summary that the authenticated user has set for this calendar.
 CalendarListEntry setTimeZone(String timeZone)
          The time zone of the calendar.
 
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

CalendarListEntry

public CalendarListEntry()
Method Detail

getAccessRole

public String getAccessRole()
The effective access role that the authenticated user has on the calendar. Read-only. Possible values are: - "freeBusyReader" - Provides read access to free/busy information. - "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden. - "writer" - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible. - "owner" - Provides 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 CalendarListEntry setAccessRole(String accessRole)
The effective access role that the authenticated user has on the calendar. Read-only. Possible values are: - "freeBusyReader" - Provides read access to free/busy information. - "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden. - "writer" - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible. - "owner" - Provides 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

getBackgroundColor

public String getBackgroundColor()
The main color of the calendar in the format '#0088aa'. This property supersedes the index- based colorId property. Optional.

Returns:
value or null for none

setBackgroundColor

public CalendarListEntry setBackgroundColor(String backgroundColor)
The main color of the calendar in the format '#0088aa'. This property supersedes the index- based colorId property. Optional.

Parameters:
backgroundColor - backgroundColor or null for none

getColorId

public String getColorId()
The color of the calendar. This is an ID referring to an entry in the "calendar" section of the colors definition (see the "colors" endpoint). Optional.

Returns:
value or null for none

setColorId

public CalendarListEntry setColorId(String colorId)
The color of the calendar. This is an ID referring to an entry in the "calendar" section of the colors definition (see the "colors" endpoint). Optional.

Parameters:
colorId - colorId or null for none

getDefaultReminders

public List<EventReminder> getDefaultReminders()
The default reminders that the authenticated user has for this calendar.

Returns:
value or null for none

setDefaultReminders

public CalendarListEntry setDefaultReminders(List<EventReminder> defaultReminders)
The default reminders that the authenticated user has for this calendar.

Parameters:
defaultReminders - defaultReminders or null for none

getDescription

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

Returns:
value or null for none

setDescription

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

Parameters:
description - description or null for none

getEtag

public String getEtag()
ETag of the resource.

Returns:
value or null for none

setEtag

public CalendarListEntry setEtag(String etag)
ETag of the resource.

Parameters:
etag - etag or null for none

getForegroundColor

public String getForegroundColor()
The foreground color of the calendar in the format '#ffffff'. This property supersedes the index-based colorId property. Optional.

Returns:
value or null for none

setForegroundColor

public CalendarListEntry setForegroundColor(String foregroundColor)
The foreground color of the calendar in the format '#ffffff'. This property supersedes the index-based colorId property. Optional.

Parameters:
foregroundColor - foregroundColor or null for none

getHidden

public Boolean getHidden()
Whether the calendar has been hidden from the list. Optional. The default is False.

Returns:
value or null for none

setHidden

public CalendarListEntry setHidden(Boolean hidden)
Whether the calendar has been hidden from the list. Optional. The default is False.

Parameters:
hidden - hidden or null for none

getId

public String getId()
Identifier of the calendar.

Returns:
value or null for none

setId

public CalendarListEntry setId(String id)
Identifier of the calendar.

Parameters:
id - id or null for none

getKind

public String getKind()
Type of the resource ("calendar#calendarListEntry").

Returns:
value or null for none

setKind

public CalendarListEntry setKind(String kind)
Type of the resource ("calendar#calendarListEntry").

Parameters:
kind - kind or null for none

getLocation

public String getLocation()
Geographic location of the calendar as free-form text. Optional. Read-only.

Returns:
value or null for none

setLocation

public CalendarListEntry setLocation(String location)
Geographic location of the calendar as free-form text. Optional. Read-only.

Parameters:
location - location or null for none

getPrimary

public Boolean getPrimary()
Whether the calendar is the primary calendar of the authenticated user. Read-only. Optional. The default is False.

Returns:
value or null for none

setPrimary

public CalendarListEntry setPrimary(Boolean primary)
Whether the calendar is the primary calendar of the authenticated user. Read-only. Optional. The default is False.

Parameters:
primary - primary or null for none

getSelected

public Boolean getSelected()
Whether the calendar content shows up in the calendar UI. Optional. The default is False.

Returns:
value or null for none

setSelected

public CalendarListEntry setSelected(Boolean selected)
Whether the calendar content shows up in the calendar UI. Optional. The default is False.

Parameters:
selected - selected or null for none

getSummary

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

Returns:
value or null for none

setSummary

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

Parameters:
summary - summary or null for none

getSummaryOverride

public String getSummaryOverride()
The summary that the authenticated user has set for this calendar. Optional.

Returns:
value or null for none

setSummaryOverride

public CalendarListEntry setSummaryOverride(String summaryOverride)
The summary that the authenticated user has set for this calendar. Optional.

Parameters:
summaryOverride - summaryOverride or null for none

getTimeZone

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

Returns:
value or null for none

setTimeZone

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

Parameters:
timeZone - timeZone or null for none

set

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

clone

public CalendarListEntry clone()
Overrides:
clone in class GenericJson