public final class CalendarListEntry
extends com.google.api.client.json.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: https://developers.google.com/api-client-library/java/google-http-java-client/json
Modifier and Type | Class and Description |
---|---|
static class |
CalendarListEntry.NotificationSettings
The notifications that the authenticated user is receiving for this calendar.
|
com.google.api.client.util.GenericData.Flags
AbstractMap.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 hexadecimal format "#0088aa".
|
String |
getColorId()
The color of the calendar.
|
ConferenceProperties |
getConferenceProperties()
Conferencing properties for this calendar, for example what types of conferences are allowed.
|
List<EventReminder> |
getDefaultReminders()
The default reminders that the authenticated user has for this calendar.
|
Boolean |
getDeleted()
Whether this calendar list entry has been deleted from the calendar list.
|
String |
getDescription()
Description of the calendar.
|
String |
getEtag()
ETag of the resource.
|
String |
getForegroundColor()
The foreground color of the calendar in the hexadecimal 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.
|
CalendarListEntry.NotificationSettings |
getNotificationSettings()
The notifications that the authenticated user is receiving for this calendar.
|
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 |
isDeleted()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE . |
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 hexadecimal format "#0088aa".
|
CalendarListEntry |
setColorId(String colorId)
The color of the calendar.
|
CalendarListEntry |
setConferenceProperties(ConferenceProperties conferenceProperties)
Conferencing properties for this calendar, for example what types of conferences are allowed.
|
CalendarListEntry |
setDefaultReminders(List<EventReminder> defaultReminders)
The default reminders that the authenticated user has for this calendar.
|
CalendarListEntry |
setDeleted(Boolean deleted)
Whether this calendar list entry has been deleted from the calendar list.
|
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 hexadecimal 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 |
setNotificationSettings(CalendarListEntry.NotificationSettings notificationSettings)
The notifications that the authenticated user is receiving for this calendar.
|
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, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public 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 ConferenceProperties getConferenceProperties()
null
for nonepublic CalendarListEntry setConferenceProperties(ConferenceProperties conferenceProperties)
conferenceProperties
- conferenceProperties or null
for nonepublic List<EventReminder> getDefaultReminders()
null
for nonepublic CalendarListEntry setDefaultReminders(List<EventReminder> defaultReminders)
defaultReminders
- defaultReminders or null
for nonepublic Boolean getDeleted()
null
for nonepublic CalendarListEntry setDeleted(Boolean deleted)
deleted
- deleted or null
for nonepublic boolean isDeleted()
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 this calendar list entry has been deleted from the calendar list. Read-only. Optional. The default is False.
public 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 attribute is only returned when the calendar is hidden, in which case the value is true.
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 CalendarListEntry.NotificationSettings getNotificationSettings()
null
for nonepublic CalendarListEntry setNotificationSettings(CalendarListEntry.NotificationSettings notificationSettings)
notificationSettings
- notificationSettings 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 com.google.api.client.json.GenericJson
public CalendarListEntry clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.