public final class CalendarListEntry extends GenericJson
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-http-java-client/wiki/JSON
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
CalendarListEntry() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
boolean |
isHidden()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE. |
boolean |
isPrimary()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE. |
boolean |
isSelected()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE. |
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.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic String getAccessRole()
null for nonepublic CalendarListEntry setAccessRole(String accessRole)
accessRole - accessRole or null for nonepublic String getBackgroundColor()
null for nonepublic CalendarListEntry setBackgroundColor(String backgroundColor)
backgroundColor - backgroundColor or null for nonepublic String getColorId()
null for nonepublic CalendarListEntry setColorId(String colorId)
colorId - colorId or null for nonepublic List<EventReminder> getDefaultReminders()
null for nonepublic CalendarListEntry setDefaultReminders(List<EventReminder> defaultReminders)
defaultReminders - defaultReminders or null for nonepublic String getDescription()
null for nonepublic CalendarListEntry setDescription(String description)
description - description or null for nonepublic String getEtag()
null for nonepublic CalendarListEntry setEtag(String etag)
etag - etag or null for nonepublic String getForegroundColor()
null for nonepublic CalendarListEntry setForegroundColor(String foregroundColor)
foregroundColor - foregroundColor or null for nonepublic Boolean getHidden()
null for nonepublic CalendarListEntry setHidden(Boolean hidden)
hidden - hidden or null for nonepublic boolean isHidden()
Boolean.TRUE or Boolean.FALSE.
Boolean properties can have four possible values:
null, Data.NULL_BOOLEAN, Boolean.TRUE
or Boolean.FALSE.
This method returns Boolean.TRUE if the default of the property is Boolean.TRUE
and it is null or Data.NULL_BOOLEAN.
Boolean.FALSE is returned if the default of the property is Boolean.FALSE and
it is null or Data.NULL_BOOLEAN.
Whether the calendar has been hidden from the list. Optional. The default is False.
public String getId()
null for nonepublic CalendarListEntry setId(String id)
id - id or null for nonepublic String getKind()
null for nonepublic CalendarListEntry setKind(String kind)
kind - kind or null for nonepublic String getLocation()
null for nonepublic CalendarListEntry setLocation(String location)
location - location or null for nonepublic Boolean getPrimary()
null for nonepublic CalendarListEntry setPrimary(Boolean primary)
primary - primary or null for nonepublic boolean isPrimary()
Boolean.TRUE or Boolean.FALSE.
Boolean properties can have four possible values:
null, Data.NULL_BOOLEAN, Boolean.TRUE
or Boolean.FALSE.
This method returns Boolean.TRUE if the default of the property is Boolean.TRUE
and it is null or Data.NULL_BOOLEAN.
Boolean.FALSE is returned if the default of the property is Boolean.FALSE and
it is null or Data.NULL_BOOLEAN.
Whether the calendar is the primary calendar of the authenticated user. Read-only. Optional. The default is False.
public Boolean getSelected()
null for nonepublic CalendarListEntry setSelected(Boolean selected)
selected - selected or null for nonepublic boolean isSelected()
Boolean.TRUE or Boolean.FALSE.
Boolean properties can have four possible values:
null, Data.NULL_BOOLEAN, Boolean.TRUE
or Boolean.FALSE.
This method returns Boolean.TRUE if the default of the property is Boolean.TRUE
and it is null or Data.NULL_BOOLEAN.
Boolean.FALSE is returned if the default of the property is Boolean.FALSE and
it is null or Data.NULL_BOOLEAN.
Whether the calendar content shows up in the calendar UI. Optional. The default is False.
public String getSummary()
null for nonepublic CalendarListEntry setSummary(String summary)
summary - summary or null for nonepublic String getSummaryOverride()
null for nonepublic CalendarListEntry setSummaryOverride(String summaryOverride)
summaryOverride - summaryOverride or null for nonepublic String getTimeZone()
null for nonepublic CalendarListEntry setTimeZone(String timeZone)
timeZone - timeZone or null for nonepublic CalendarListEntry set(String fieldName, Object value)
set in class GenericJsonpublic CalendarListEntry clone()
clone in class GenericJson