public class Event extends ApiEntity
See the reference documentation at https://developers.google.com/google-apps/calendar/v3/reference/events#resource.
| Modifier and Type | Class and Description |
|---|---|
static class |
Event.Attendee
Details of an attendee of an event.
|
static class |
Event.Creator
Information about the creator of an event.
|
static class |
Event.DateTimeTimezone
Details of the start or end of an event.
|
static class |
Event.ExtendedProperties
Extended properties of an event.
|
static class |
Event.Gadget
A gadget that extends an event.
|
static class |
Event.Organizer
Information about an event's organizer.
|
static class |
Event.ReminderOverride
Details of the overrides to reminders.
|
static class |
Event.Reminders
Information about the event's reminders for the authenticated user.
|
static class |
Event.Source
Source from which an event was created; for example a web page, an email message
or any document identifiable by an URL using HTTP/HTTPS protocol.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Event()
Constructor protected so instances must be retrieved from Google Calendar
itself.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Event.Attendee> |
getAttendees()
The attendees of this event.
|
java.lang.String |
getColorId()
The colour of this event.
|
java.util.Date |
getCreated()
The creation time of this event.
|
Event.Creator |
getCreator()
The creator of this event.
|
java.lang.String |
getDescription()
The description of this event.
|
Event.DateTimeTimezone |
getEnd()
The (exclusive) end time of this event.
|
Event.ExtendedProperties |
getExtendedProperties()
The extended properties of this event.
|
Event.Gadget |
getGadget()
A gadget that extends this event.
|
java.lang.String |
getHangoutLink()
An absolute link to the Google+ hangout associated with this event.
|
java.lang.String |
getHtmlLink()
An absolute link to this event in the Google Calendar Web UI.
|
java.lang.String |
getiCalUid()
This event's ID in the iCalendar format.
|
java.lang.String |
getLocation()
The geographic location of this event as free-form text.
|
Event.Organizer |
getOrganizer()
The organizer of this event.
|
Event.DateTimeTimezone |
getOriginalStartTime()
For an instance of a recurring event, return the time at which this event
would start according to the recurrence data in the recurring event identified
by
recurringEventId. |
java.util.List<java.lang.String> |
getRecurrence()
A list of RRULE, EXRULE, RDATE and EXDATE lines for a recurring event.
|
java.lang.String |
getRecurringEventId()
For an instance of a recurring event, return this event ID of the recurring event
itself.
|
Event.Reminders |
getReminders()
Information about this event's reminders for the authenticated user.
|
java.lang.Integer |
getSequence()
The sequence number as per iCalendar.
|
Event.Source |
getSource()
The source of an event from which this event was created; for example a
web page, an email message or any document identifiable by an URL using HTTP/HTTPS
protocol.
|
Event.DateTimeTimezone |
getStart()
The (inclusive) start time of this event.
|
EventStatus |
getStatus()
The status of this event.
|
java.lang.String |
getSummary()
The title of this event.
|
Transparency |
getTransparency()
Whether this event blocks time on the calendar.
|
java.util.Date |
getUpdated()
The last modification time of this event.
|
Visibility |
getVisibility()
The visibility of this event.
|
java.lang.Boolean |
isAnyoneCanAddSelf()
Whether anyone can invite themselves to this event.
|
java.lang.Boolean |
isAttendeesOmitted()
Whether attendees may have been omitted from this event's representation.
|
java.lang.Boolean |
isEndTimeUnspecified()
Whether the end time is actually unspecified.
|
java.lang.Boolean |
isGuestsCanInviteOthers()
Whether attendees other than the organizer can invite others to this event.
|
java.lang.Boolean |
isGuestsCanModify()
Whether attendees other than the organizer can modify this event.
|
java.lang.Boolean |
isGuestsCanSeeOtherGuests()
Whether attendees other than the organizer can see who this event's
attendees are.
|
java.lang.Boolean |
isLocked()
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".
|
java.lang.Boolean |
isPrivateCopy()
Whether this is a private event copy where changes are not shared with
other copies on other calendars.
|
Event |
setGuestsCanInviteOthers(java.lang.Boolean guestsCanInviteOthers)
Sets whether attendees other than the organizer can invite others to the event.
|
Event |
setGuestsCanSeeOtherGuests(java.lang.Boolean guestsCanSeeOtherGuests)
Sets whether attendees other than the organizer can see who the event's attendees
are.
|
Event |
setLocation(java.lang.String location)
Sets the location of this event.
|
Event |
setRecurrence(java.util.List<java.lang.String> list)
Replaces the list of RRULE, EXRULE, RDATE and EXDATE lines for a recurring event.
|
Event |
setStatus(EventStatus status)
Sets the status of this event.
|
Event |
setSummary(java.lang.String summary)
Sets the title of this event.
|
protected Event()
public EventStatus getStatus()
null if none.public Event setStatus(EventStatus status)
status - the new status, or null for none.public java.lang.String getHtmlLink()
null if none.public java.util.Date getCreated()
null if none.public java.util.Date getUpdated()
null if none.public java.lang.String getSummary()
null if none.public Event setSummary(java.lang.String summary)
summary - the new title.public java.lang.String getDescription()
null if none.public java.lang.String getLocation()
null if none.public Event setLocation(java.lang.String location)
location - the new location, or null for none.public java.lang.String getColorId()
null if none.public Event.Creator getCreator()
null if none.public Event.Organizer getOrganizer()
null if none.public Event.DateTimeTimezone getStart()
null if none.public Event.DateTimeTimezone getEnd()
null if none.public java.lang.Boolean isEndTimeUnspecified()
true.
If true, the end time should be disregarded.null if none.public java.lang.String getRecurringEventId()
null if none.public Event.DateTimeTimezone getOriginalStartTime()
recurringEventId.null if none.public Transparency getTransparency()
null if none.public Visibility getVisibility()
null if none.public java.lang.String getiCalUid()
null if none.public java.lang.Integer getSequence()
null if none.public java.lang.Boolean isAttendeesOmitted()
null if none.public java.lang.String getHangoutLink()
null if none.public java.lang.Boolean isAnyoneCanAddSelf()
null if none.public java.lang.Boolean isGuestsCanInviteOthers()
null if none.public java.lang.Boolean isGuestsCanModify()
null if none.public java.lang.Boolean isGuestsCanSeeOtherGuests()
null if none.public java.lang.Boolean isPrivateCopy()
null if none.public java.lang.Boolean isLocked()
null if none.public java.util.List<java.lang.String> getRecurrence()
null if none.public Event setRecurrence(java.util.List<java.lang.String> list)
list - the new list, or null for none.public java.util.List<Event.Attendee> getAttendees()
null if none.public Event.ExtendedProperties getExtendedProperties()
null if none.public Event.Gadget getGadget()
null if none.public Event.Reminders getReminders()
null if none.public Event.Source getSource()
null if none.public Event setGuestsCanInviteOthers(java.lang.Boolean guestsCanInviteOthers)
guestsCanInviteOthers - the new value.public Event setGuestsCanSeeOtherGuests(java.lang.Boolean guestsCanSeeOtherGuests)
guestsCanSeeOtherGuests - the new value.