Calendar API v3 (revision 41)



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

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

public final class Event
extends GenericJson

Model definition for Event.

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
static class Event.Creator
          The creator of the event.
static class Event.ExtendedProperties
          Extended properties of the event.
static class Event.Gadget
          A gadget that extends this event.
static class Event.Organizer
          The organizer of the event.
static class Event.Reminders
          Information about the event's reminders for the authenticated user.
static class Event.Source
          Source of an event from which it was created; for example a web page, an email message or any document identifiable by an URL using HTTP/HTTPS protocol.
 
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
Event()
           
 
Method Summary
 Event clone()
           
 Boolean getAnyoneCanAddSelf()
          Whether anyone can invite themselves to the event.
 List<EventAttendee> getAttendees()
          The attendees of the event.
 Boolean getAttendeesOmitted()
          Whether attendees may have been omitted from the event's representation.
 String getColorId()
          The color of the event.
 DateTime getCreated()
          Creation time of the event (as a RFC 3339 timestamp).
 Event.Creator getCreator()
          The creator of the event.
 String getDescription()
          Description of the event.
 EventDateTime getEnd()
          The (exclusive) end time of the event.
 Boolean getEndTimeUnspecified()
          Whether the end time is actually unspecified.
 String getEtag()
          ETag of the resource.
 Event.ExtendedProperties getExtendedProperties()
          Extended properties of the event.
 Event.Gadget getGadget()
          A gadget that extends this event.
 Boolean getGuestsCanInviteOthers()
          Whether attendees other than the organizer can invite others to the event.
 Boolean getGuestsCanModify()
          Whether attendees other than the organizer can modify the event.
 Boolean getGuestsCanSeeOtherGuests()
          Whether attendees other than the organizer can see who the event's attendees are.
 String getHangoutLink()
          An absolute link to the Google+ hangout associated with this event.
 String getHtmlLink()
          An absolute link to this event in the Google Calendar Web UI.
 String getICalUID()
          Event ID in the iCalendar format.
 String getId()
          Identifier of the event.
 String getKind()
          Type of the resource ("calendar#event").
 String getLocation()
          Geographic location of the event as free-form text.
 Boolean getLocked()
          Whether this is a locked event copy where no changes can be made to the main event fields "summary", "description", "location", "start", "end" or "recurrence".
 Event.Organizer getOrganizer()
          The organizer of the event.
 EventDateTime getOriginalStartTime()
          For an instance of a recurring event, this is the time at which this event would start according to the recurrence data in the recurring event identified by recurringEventId.
 Boolean getPrivateCopy()
          Whether this is a private event copy where changes are not shared with other copies on other calendars.
 List<String> getRecurrence()
          List of RRULE, EXRULE, RDATE and EXDATE lines for a recurring event.
 String getRecurringEventId()
          For an instance of a recurring event, this is the event ID of the recurring event itself.
 Event.Reminders getReminders()
          Information about the event's reminders for the authenticated user.
 Integer getSequence()
          Sequence number as per iCalendar.
 Event.Source getSource()
          Source of an event from which it was created; for example a web page, an email message or any document identifiable by an URL using HTTP/HTTPS protocol.
 EventDateTime getStart()
          The (inclusive) start time of the event.
 String getStatus()
          Status of the event.
 String getSummary()
          Title of the event.
 String getTransparency()
          Whether the event blocks time on the calendar.
 DateTime getUpdated()
          Last modification time of the event (as a RFC 3339 timestamp).
 String getVisibility()
          Visibility of the event.
 Event set(String fieldName, Object value)
           
 Event setAnyoneCanAddSelf(Boolean anyoneCanAddSelf)
          Whether anyone can invite themselves to the event.
 Event setAttendees(List<EventAttendee> attendees)
          The attendees of the event.
 Event setAttendeesOmitted(Boolean attendeesOmitted)
          Whether attendees may have been omitted from the event's representation.
 Event setColorId(String colorId)
          The color of the event.
 Event setCreated(DateTime created)
          Creation time of the event (as a RFC 3339 timestamp).
 Event setCreator(Event.Creator creator)
          The creator of the event.
 Event setDescription(String description)
          Description of the event.
 Event setEnd(EventDateTime end)
          The (exclusive) end time of the event.
 Event setEndTimeUnspecified(Boolean endTimeUnspecified)
          Whether the end time is actually unspecified.
 Event setEtag(String etag)
          ETag of the resource.
 Event setExtendedProperties(Event.ExtendedProperties extendedProperties)
          Extended properties of the event.
 Event setGadget(Event.Gadget gadget)
          A gadget that extends this event.
 Event setGuestsCanInviteOthers(Boolean guestsCanInviteOthers)
          Whether attendees other than the organizer can invite others to the event.
 Event setGuestsCanModify(Boolean guestsCanModify)
          Whether attendees other than the organizer can modify the event.
 Event setGuestsCanSeeOtherGuests(Boolean guestsCanSeeOtherGuests)
          Whether attendees other than the organizer can see who the event's attendees are.
 Event setHangoutLink(String hangoutLink)
          An absolute link to the Google+ hangout associated with this event.
 Event setHtmlLink(String htmlLink)
          An absolute link to this event in the Google Calendar Web UI.
 Event setICalUID(String iCalUID)
          Event ID in the iCalendar format.
 Event setId(String id)
          Identifier of the event.
 Event setKind(String kind)
          Type of the resource ("calendar#event").
 Event setLocation(String location)
          Geographic location of the event as free-form text.
 Event setLocked(Boolean locked)
          Whether this is a locked event copy where no changes can be made to the main event fields "summary", "description", "location", "start", "end" or "recurrence".
 Event setOrganizer(Event.Organizer organizer)
          The organizer of the event.
 Event setOriginalStartTime(EventDateTime originalStartTime)
          For an instance of a recurring event, this is the time at which this event would start according to the recurrence data in the recurring event identified by recurringEventId.
 Event setPrivateCopy(Boolean privateCopy)
          Whether this is a private event copy where changes are not shared with other copies on other calendars.
 Event setRecurrence(List<String> recurrence)
          List of RRULE, EXRULE, RDATE and EXDATE lines for a recurring event.
 Event setRecurringEventId(String recurringEventId)
          For an instance of a recurring event, this is the event ID of the recurring event itself.
 Event setReminders(Event.Reminders reminders)
          Information about the event's reminders for the authenticated user.
 Event setSequence(Integer sequence)
          Sequence number as per iCalendar.
 Event setSource(Event.Source source)
          Source of an event from which it was created; for example a web page, an email message or any document identifiable by an URL using HTTP/HTTPS protocol.
 Event setStart(EventDateTime start)
          The (inclusive) start time of the event.
 Event setStatus(String status)
          Status of the event.
 Event setSummary(String summary)
          Title of the event.
 Event setTransparency(String transparency)
          Whether the event blocks time on the calendar.
 Event setUpdated(DateTime updated)
          Last modification time of the event (as a RFC 3339 timestamp).
 Event setVisibility(String visibility)
          Visibility of the event.
 
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

Event

public Event()
Method Detail

getAnyoneCanAddSelf

public Boolean getAnyoneCanAddSelf()
Whether anyone can invite themselves to the event. Optional. The default is False.

Returns:
value or null for none

setAnyoneCanAddSelf

public Event setAnyoneCanAddSelf(Boolean anyoneCanAddSelf)
Whether anyone can invite themselves to the event. Optional. The default is False.

Parameters:
anyoneCanAddSelf - anyoneCanAddSelf or null for none

getAttendees

public List<EventAttendee> getAttendees()
The attendees of the event.

Returns:
value or null for none

setAttendees

public Event setAttendees(List<EventAttendee> attendees)
The attendees of the event.

Parameters:
attendees - attendees or null for none

getAttendeesOmitted

public Boolean getAttendeesOmitted()
Whether attendees may have been omitted from the event's representation. When retrieving an event, this may be due to a restriction specified by the 'maxAttendee' query parameter. When updating an event, this can be used to only update the participant's response. Optional. The default is False.

Returns:
value or null for none

setAttendeesOmitted

public Event setAttendeesOmitted(Boolean attendeesOmitted)
Whether attendees may have been omitted from the event's representation. When retrieving an event, this may be due to a restriction specified by the 'maxAttendee' query parameter. When updating an event, this can be used to only update the participant's response. Optional. The default is False.

Parameters:
attendeesOmitted - attendeesOmitted or null for none

getColorId

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

Returns:
value or null for none

setColorId

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

Parameters:
colorId - colorId or null for none

getCreated

public DateTime getCreated()
Creation time of the event (as a RFC 3339 timestamp). Read-only.

Returns:
value or null for none

setCreated

public Event setCreated(DateTime created)
Creation time of the event (as a RFC 3339 timestamp). Read-only.

Parameters:
created - created or null for none

getCreator

public Event.Creator getCreator()
The creator of the event. Read-only.

Returns:
value or null for none

setCreator

public Event setCreator(Event.Creator creator)
The creator of the event. Read-only.

Parameters:
creator - creator or null for none

getDescription

public String getDescription()
Description of the event. Optional.

Returns:
value or null for none

setDescription

public Event setDescription(String description)
Description of the event. Optional.

Parameters:
description - description or null for none

getEnd

public EventDateTime getEnd()
The (exclusive) end time of the event. For a recurring event, this is the end time of the first instance.

Returns:
value or null for none

setEnd

public Event setEnd(EventDateTime end)
The (exclusive) end time of the event. For a recurring event, this is the end time of the first instance.

Parameters:
end - end or null for none

getEndTimeUnspecified

public Boolean getEndTimeUnspecified()
Whether the end time is actually unspecified. An end time is still provided for compatibility reasons, even if this attribute is set to True. The default is False.

Returns:
value or null for none

setEndTimeUnspecified

public Event setEndTimeUnspecified(Boolean endTimeUnspecified)
Whether the end time is actually unspecified. An end time is still provided for compatibility reasons, even if this attribute is set to True. The default is False.

Parameters:
endTimeUnspecified - endTimeUnspecified or null for none

getEtag

public String getEtag()
ETag of the resource.

Returns:
value or null for none

setEtag

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

Parameters:
etag - etag or null for none

getExtendedProperties

public Event.ExtendedProperties getExtendedProperties()
Extended properties of the event.

Returns:
value or null for none

setExtendedProperties

public Event setExtendedProperties(Event.ExtendedProperties extendedProperties)
Extended properties of the event.

Parameters:
extendedProperties - extendedProperties or null for none

getGadget

public Event.Gadget getGadget()
A gadget that extends this event.

Returns:
value or null for none

setGadget

public Event setGadget(Event.Gadget gadget)
A gadget that extends this event.

Parameters:
gadget - gadget or null for none

getGuestsCanInviteOthers

public Boolean getGuestsCanInviteOthers()
Whether attendees other than the organizer can invite others to the event. Optional. The default is True.

Returns:
value or null for none

setGuestsCanInviteOthers

public Event setGuestsCanInviteOthers(Boolean guestsCanInviteOthers)
Whether attendees other than the organizer can invite others to the event. Optional. The default is True.

Parameters:
guestsCanInviteOthers - guestsCanInviteOthers or null for none

getGuestsCanModify

public Boolean getGuestsCanModify()
Whether attendees other than the organizer can modify the event. Optional. The default is False.

Returns:
value or null for none

setGuestsCanModify

public Event setGuestsCanModify(Boolean guestsCanModify)
Whether attendees other than the organizer can modify the event. Optional. The default is False.

Parameters:
guestsCanModify - guestsCanModify or null for none

getGuestsCanSeeOtherGuests

public Boolean getGuestsCanSeeOtherGuests()
Whether attendees other than the organizer can see who the event's attendees are. Optional. The default is True.

Returns:
value or null for none

setGuestsCanSeeOtherGuests

public Event setGuestsCanSeeOtherGuests(Boolean guestsCanSeeOtherGuests)
Whether attendees other than the organizer can see who the event's attendees are. Optional. The default is True.

Parameters:
guestsCanSeeOtherGuests - guestsCanSeeOtherGuests or null for none

getHangoutLink

public String getHangoutLink()
An absolute link to the Google+ hangout associated with this event. Read-only.

Returns:
value or null for none

setHangoutLink

public Event setHangoutLink(String hangoutLink)
An absolute link to the Google+ hangout associated with this event. Read-only.

Parameters:
hangoutLink - hangoutLink or null for none

getHtmlLink

public String getHtmlLink()
An absolute link to this event in the Google Calendar Web UI. Read-only.

Returns:
value or null for none

setHtmlLink

public Event setHtmlLink(String htmlLink)
An absolute link to this event in the Google Calendar Web UI. Read-only.

Parameters:
htmlLink - htmlLink or null for none

getICalUID

public String getICalUID()
Event ID in the iCalendar format.

Returns:
value or null for none

setICalUID

public Event setICalUID(String iCalUID)
Event ID in the iCalendar format.

Parameters:
iCalUID - iCalUID or null for none

getId

public String getId()
Identifier of the event.

Returns:
value or null for none

setId

public Event setId(String id)
Identifier of the event.

Parameters:
id - id or null for none

getKind

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

Returns:
value or null for none

setKind

public Event setKind(String kind)
Type of the resource ("calendar#event").

Parameters:
kind - kind or null for none

getLocation

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

Returns:
value or null for none

setLocation

public Event setLocation(String location)
Geographic location of the event as free-form text. Optional.

Parameters:
location - location or null for none

getLocked

public Boolean getLocked()
Whether this is a locked event copy where no changes can be made to the main event fields "summary", "description", "location", "start", "end" or "recurrence". The default is False. Read-Only.

Returns:
value or null for none

setLocked

public Event setLocked(Boolean locked)
Whether this is a locked event copy where no changes can be made to the main event fields "summary", "description", "location", "start", "end" or "recurrence". The default is False. Read-Only.

Parameters:
locked - locked or null for none

getOrganizer

public Event.Organizer getOrganizer()
The organizer of the event. If the organizer is also an attendee, this is indicated with a separate entry in 'attendees' with the 'organizer' field set to True. To change the organizer, use the "move" operation. Read-only, except when importing an event.

Returns:
value or null for none

setOrganizer

public Event setOrganizer(Event.Organizer organizer)
The organizer of the event. If the organizer is also an attendee, this is indicated with a separate entry in 'attendees' with the 'organizer' field set to True. To change the organizer, use the "move" operation. Read-only, except when importing an event.

Parameters:
organizer - organizer or null for none

getOriginalStartTime

public EventDateTime getOriginalStartTime()
For an instance of a recurring event, this is the time at which this event would start according to the recurrence data in the recurring event identified by recurringEventId. Immutable.

Returns:
value or null for none

setOriginalStartTime

public Event setOriginalStartTime(EventDateTime originalStartTime)
For an instance of a recurring event, this is the time at which this event would start according to the recurrence data in the recurring event identified by recurringEventId. Immutable.

Parameters:
originalStartTime - originalStartTime or null for none

getPrivateCopy

public Boolean getPrivateCopy()
Whether this is a private event copy where changes are not shared with other copies on other calendars. Optional. Immutable. The default is False.

Returns:
value or null for none

setPrivateCopy

public Event setPrivateCopy(Boolean privateCopy)
Whether this is a private event copy where changes are not shared with other copies on other calendars. Optional. Immutable. The default is False.

Parameters:
privateCopy - privateCopy or null for none

getRecurrence

public List<String> getRecurrence()
List of RRULE, EXRULE, RDATE and EXDATE lines for a recurring event. This field is omitted for single events or instances of recurring events.

Returns:
value or null for none

setRecurrence

public Event setRecurrence(List<String> recurrence)
List of RRULE, EXRULE, RDATE and EXDATE lines for a recurring event. This field is omitted for single events or instances of recurring events.

Parameters:
recurrence - recurrence or null for none

getRecurringEventId

public String getRecurringEventId()
For an instance of a recurring event, this is the event ID of the recurring event itself. Immutable.

Returns:
value or null for none

setRecurringEventId

public Event setRecurringEventId(String recurringEventId)
For an instance of a recurring event, this is the event ID of the recurring event itself. Immutable.

Parameters:
recurringEventId - recurringEventId or null for none

getReminders

public Event.Reminders getReminders()
Information about the event's reminders for the authenticated user.

Returns:
value or null for none

setReminders

public Event setReminders(Event.Reminders reminders)
Information about the event's reminders for the authenticated user.

Parameters:
reminders - reminders or null for none

getSequence

public Integer getSequence()
Sequence number as per iCalendar.

Returns:
value or null for none

setSequence

public Event setSequence(Integer sequence)
Sequence number as per iCalendar.

Parameters:
sequence - sequence or null for none

getSource

public Event.Source getSource()
Source of an event from which it was created; for example a web page, an email message or any document identifiable by an URL using HTTP/HTTPS protocol. Accessible only by the creator of the event.

Returns:
value or null for none

setSource

public Event setSource(Event.Source source)
Source of an event from which it was created; for example a web page, an email message or any document identifiable by an URL using HTTP/HTTPS protocol. Accessible only by the creator of the event.

Parameters:
source - source or null for none

getStart

public EventDateTime getStart()
The (inclusive) start time of the event. For a recurring event, this is the start time of the first instance.

Returns:
value or null for none

setStart

public Event setStart(EventDateTime start)
The (inclusive) start time of the event. For a recurring event, this is the start time of the first instance.

Parameters:
start - start or null for none

getStatus

public String getStatus()
Status of the event. Optional. Possible values are: - "confirmed" - The event is confirmed. This is the default status. - "tentative" - The event is tentatively confirmed. - "cancelled" - The event is cancelled.

Returns:
value or null for none

setStatus

public Event setStatus(String status)
Status of the event. Optional. Possible values are: - "confirmed" - The event is confirmed. This is the default status. - "tentative" - The event is tentatively confirmed. - "cancelled" - The event is cancelled.

Parameters:
status - status or null for none

getSummary

public String getSummary()
Title of the event.

Returns:
value or null for none

setSummary

public Event setSummary(String summary)
Title of the event.

Parameters:
summary - summary or null for none

getTransparency

public String getTransparency()
Whether the event blocks time on the calendar. Optional. Possible values are: - "opaque" - The event blocks time on the calendar. This is the default value. - "transparent" - The event does not block time on the calendar.

Returns:
value or null for none

setTransparency

public Event setTransparency(String transparency)
Whether the event blocks time on the calendar. Optional. Possible values are: - "opaque" - The event blocks time on the calendar. This is the default value. - "transparent" - The event does not block time on the calendar.

Parameters:
transparency - transparency or null for none

getUpdated

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

Returns:
value or null for none

setUpdated

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

Parameters:
updated - updated or null for none

getVisibility

public String getVisibility()
Visibility of the event. Optional. Possible values are: - "default" - Uses the default visibility for events on the calendar. This is the default value. - "public" - The event is public and event details are visible to all readers of the calendar. - "private" - The event is private and only event attendees may view event details. - "confidential" - The event is private. This value is provided for compatibility reasons.

Returns:
value or null for none

setVisibility

public Event setVisibility(String visibility)
Visibility of the event. Optional. Possible values are: - "default" - Uses the default visibility for events on the calendar. This is the default value. - "public" - The event is public and event details are visible to all readers of the calendar. - "private" - The event is private and only event attendees may view event details. - "confidential" - The event is private. This value is provided for compatibility reasons.

Parameters:
visibility - visibility or null for none

set

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

clone

public Event clone()
Overrides:
clone in class GenericJson