public final class Event
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 |
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 from which the event was created.
|
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
Event() |
Modifier and Type | Method and Description |
---|---|
Event |
clone() |
java.lang.Boolean |
getAnyoneCanAddSelf()
Whether anyone can invite themselves to the event (currently works for Google+ events only).
|
java.util.List<EventAttachment> |
getAttachments()
File attachments for the event.
|
java.util.List<EventAttendee> |
getAttendees()
The attendees of the event.
|
java.lang.Boolean |
getAttendeesOmitted()
Whether attendees may have been omitted from the event's representation.
|
java.lang.String |
getColorId()
The color of the event.
|
ConferenceData |
getConferenceData()
The conference-related information, such as details of a Hangouts Meet conference.
|
com.google.api.client.util.DateTime |
getCreated()
Creation time of the event (as a RFC3339 timestamp).
|
Event.Creator |
getCreator()
The creator of the event.
|
java.lang.String |
getDescription()
Description of the event.
|
EventDateTime |
getEnd()
The (exclusive) end time of the event.
|
java.lang.Boolean |
getEndTimeUnspecified()
Whether the end time is actually unspecified.
|
java.lang.String |
getEtag()
ETag of the resource.
|
Event.ExtendedProperties |
getExtendedProperties()
Extended properties of the event.
|
Event.Gadget |
getGadget()
A gadget that extends this event.
|
java.lang.Boolean |
getGuestsCanInviteOthers()
Whether attendees other than the organizer can invite others to the event.
|
java.lang.Boolean |
getGuestsCanModify()
Whether attendees other than the organizer can modify the event.
|
java.lang.Boolean |
getGuestsCanSeeOtherGuests()
Whether attendees other than the organizer can see who the event's attendees are.
|
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()
Event unique identifier as defined in RFC5545.
|
java.lang.String |
getId()
Opaque identifier of the event.
|
java.lang.String |
getKind()
Type of the resource ("calendar#event").
|
java.lang.String |
getLocation()
Geographic location of the event as free-form text.
|
java.lang.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.
|
java.lang.Boolean |
getPrivateCopy()
If set to True, Event propagation is disabled.
|
java.util.List<java.lang.String> |
getRecurrence()
List of RRULE, EXRULE, RDATE and EXDATE lines for a recurring event, as specified in RFC5545.
|
java.lang.String |
getRecurringEventId()
For an instance of a recurring event, this is the id of the recurring event to which this
instance belongs.
|
Event.Reminders |
getReminders()
Information about the event's reminders for the authenticated user.
|
java.lang.Integer |
getSequence()
Sequence number as per iCalendar.
|
Event.Source |
getSource()
Source from which the event was created.
|
EventDateTime |
getStart()
The (inclusive) start time of the event.
|
java.lang.String |
getStatus()
Status of the event.
|
java.lang.String |
getSummary()
Title of the event.
|
java.lang.String |
getTransparency()
Whether the event blocks time on the calendar.
|
com.google.api.client.util.DateTime |
getUpdated()
Last modification time of the event (as a RFC3339 timestamp).
|
java.lang.String |
getVisibility()
Visibility of the event.
|
boolean |
isAnyoneCanAddSelf()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE . |
boolean |
isAttendeesOmitted()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE . |
boolean |
isEndTimeUnspecified()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE . |
boolean |
isGuestsCanInviteOthers()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE . |
boolean |
isGuestsCanModify()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE . |
boolean |
isGuestsCanSeeOtherGuests()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE . |
boolean |
isLocked()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE . |
boolean |
isPrivateCopy()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE . |
Event |
set(java.lang.String fieldName,
java.lang.Object value) |
Event |
setAnyoneCanAddSelf(java.lang.Boolean anyoneCanAddSelf)
Whether anyone can invite themselves to the event (currently works for Google+ events only).
|
Event |
setAttachments(java.util.List<EventAttachment> attachments)
File attachments for the event.
|
Event |
setAttendees(java.util.List<EventAttendee> attendees)
The attendees of the event.
|
Event |
setAttendeesOmitted(java.lang.Boolean attendeesOmitted)
Whether attendees may have been omitted from the event's representation.
|
Event |
setColorId(java.lang.String colorId)
The color of the event.
|
Event |
setConferenceData(ConferenceData conferenceData)
The conference-related information, such as details of a Hangouts Meet conference.
|
Event |
setCreated(com.google.api.client.util.DateTime created)
Creation time of the event (as a RFC3339 timestamp).
|
Event |
setCreator(Event.Creator creator)
The creator of the event.
|
Event |
setDescription(java.lang.String description)
Description of the event.
|
Event |
setEnd(EventDateTime end)
The (exclusive) end time of the event.
|
Event |
setEndTimeUnspecified(java.lang.Boolean endTimeUnspecified)
Whether the end time is actually unspecified.
|
Event |
setEtag(java.lang.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(java.lang.Boolean guestsCanInviteOthers)
Whether attendees other than the organizer can invite others to the event.
|
Event |
setGuestsCanModify(java.lang.Boolean guestsCanModify)
Whether attendees other than the organizer can modify the event.
|
Event |
setGuestsCanSeeOtherGuests(java.lang.Boolean guestsCanSeeOtherGuests)
Whether attendees other than the organizer can see who the event's attendees are.
|
Event |
setHangoutLink(java.lang.String hangoutLink)
An absolute link to the Google+ hangout associated with this event.
|
Event |
setHtmlLink(java.lang.String htmlLink)
An absolute link to this event in the Google Calendar Web UI.
|
Event |
setICalUID(java.lang.String iCalUID)
Event unique identifier as defined in RFC5545.
|
Event |
setId(java.lang.String id)
Opaque identifier of the event.
|
Event |
setKind(java.lang.String kind)
Type of the resource ("calendar#event").
|
Event |
setLocation(java.lang.String location)
Geographic location of the event as free-form text.
|
Event |
setLocked(java.lang.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(java.lang.Boolean privateCopy)
If set to True, Event propagation is disabled.
|
Event |
setRecurrence(java.util.List<java.lang.String> recurrence)
List of RRULE, EXRULE, RDATE and EXDATE lines for a recurring event, as specified in RFC5545.
|
Event |
setRecurringEventId(java.lang.String recurringEventId)
For an instance of a recurring event, this is the id of the recurring event to which this
instance belongs.
|
Event |
setReminders(Event.Reminders reminders)
Information about the event's reminders for the authenticated user.
|
Event |
setSequence(java.lang.Integer sequence)
Sequence number as per iCalendar.
|
Event |
setSource(Event.Source source)
Source from which the event was created.
|
Event |
setStart(EventDateTime start)
The (inclusive) start time of the event.
|
Event |
setStatus(java.lang.String status)
Status of the event.
|
Event |
setSummary(java.lang.String summary)
Title of the event.
|
Event |
setTransparency(java.lang.String transparency)
Whether the event blocks time on the calendar.
|
Event |
setUpdated(com.google.api.client.util.DateTime updated)
Last modification time of the event (as a RFC3339 timestamp).
|
Event |
setVisibility(java.lang.String visibility)
Visibility of the event.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.Boolean getAnyoneCanAddSelf()
null
for nonepublic Event setAnyoneCanAddSelf(java.lang.Boolean anyoneCanAddSelf)
anyoneCanAddSelf
- anyoneCanAddSelf or null
for nonepublic boolean isAnyoneCanAddSelf()
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 anyone can invite themselves to the event (currently works for Google+ events only). Optional. The default is False.
public java.util.List<EventAttachment> getAttachments()
null
for nonepublic Event setAttachments(java.util.List<EventAttachment> attachments)
attachments
- attachments or null
for nonepublic java.util.List<EventAttendee> getAttendees()
null
for nonepublic Event setAttendees(java.util.List<EventAttendee> attendees)
attendees
- attendees or null
for nonepublic java.lang.Boolean getAttendeesOmitted()
null
for nonepublic Event setAttendeesOmitted(java.lang.Boolean attendeesOmitted)
attendeesOmitted
- attendeesOmitted or null
for nonepublic boolean isAttendeesOmitted()
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 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.
public java.lang.String getColorId()
null
for nonepublic Event setColorId(java.lang.String colorId)
colorId
- colorId or null
for nonepublic ConferenceData getConferenceData()
null
for nonepublic Event setConferenceData(ConferenceData conferenceData)
conferenceData
- conferenceData or null
for nonepublic com.google.api.client.util.DateTime getCreated()
null
for nonepublic Event setCreated(com.google.api.client.util.DateTime created)
created
- created or null
for nonepublic Event.Creator getCreator()
null
for nonepublic Event setCreator(Event.Creator creator)
creator
- creator or null
for nonepublic java.lang.String getDescription()
null
for nonepublic Event setDescription(java.lang.String description)
description
- description or null
for nonepublic EventDateTime getEnd()
null
for nonepublic Event setEnd(EventDateTime end)
end
- end or null
for nonepublic java.lang.Boolean getEndTimeUnspecified()
null
for nonepublic Event setEndTimeUnspecified(java.lang.Boolean endTimeUnspecified)
endTimeUnspecified
- endTimeUnspecified or null
for nonepublic boolean isEndTimeUnspecified()
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 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.
public java.lang.String getEtag()
null
for nonepublic Event setEtag(java.lang.String etag)
etag
- etag or null
for nonepublic Event.ExtendedProperties getExtendedProperties()
null
for nonepublic Event setExtendedProperties(Event.ExtendedProperties extendedProperties)
extendedProperties
- extendedProperties or null
for nonepublic Event.Gadget getGadget()
null
for nonepublic Event setGadget(Event.Gadget gadget)
gadget
- gadget or null
for nonepublic java.lang.Boolean getGuestsCanInviteOthers()
null
for nonepublic Event setGuestsCanInviteOthers(java.lang.Boolean guestsCanInviteOthers)
guestsCanInviteOthers
- guestsCanInviteOthers or null
for nonepublic boolean isGuestsCanInviteOthers()
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 attendees other than the organizer can invite others to the event. Optional. The default is True.
public java.lang.Boolean getGuestsCanModify()
null
for nonepublic Event setGuestsCanModify(java.lang.Boolean guestsCanModify)
guestsCanModify
- guestsCanModify or null
for nonepublic boolean isGuestsCanModify()
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 attendees other than the organizer can modify the event. Optional. The default is False.
public java.lang.Boolean getGuestsCanSeeOtherGuests()
null
for nonepublic Event setGuestsCanSeeOtherGuests(java.lang.Boolean guestsCanSeeOtherGuests)
guestsCanSeeOtherGuests
- guestsCanSeeOtherGuests or null
for nonepublic boolean isGuestsCanSeeOtherGuests()
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 attendees other than the organizer can see who the event's attendees are. Optional. The default is True.
public java.lang.String getHangoutLink()
null
for nonepublic Event setHangoutLink(java.lang.String hangoutLink)
hangoutLink
- hangoutLink or null
for nonepublic java.lang.String getHtmlLink()
null
for nonepublic Event setHtmlLink(java.lang.String htmlLink)
htmlLink
- htmlLink or null
for nonepublic java.lang.String getICalUID()
null
for nonepublic Event setICalUID(java.lang.String iCalUID)
iCalUID
- iCalUID or null
for nonepublic java.lang.String getId()
null
for nonepublic Event setId(java.lang.String id)
id
- id or null
for nonepublic java.lang.String getKind()
null
for nonepublic Event setKind(java.lang.String kind)
kind
- kind or null
for nonepublic java.lang.String getLocation()
null
for nonepublic Event setLocation(java.lang.String location)
location
- location or null
for nonepublic java.lang.Boolean getLocked()
null
for nonepublic Event setLocked(java.lang.Boolean locked)
locked
- locked or null
for nonepublic boolean isLocked()
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 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.
public Event.Organizer getOrganizer()
null
for nonepublic Event setOrganizer(Event.Organizer organizer)
organizer
- organizer or null
for nonepublic EventDateTime getOriginalStartTime()
null
for nonepublic Event setOriginalStartTime(EventDateTime originalStartTime)
originalStartTime
- originalStartTime or null
for nonepublic java.lang.Boolean getPrivateCopy()
null
for nonepublic Event setPrivateCopy(java.lang.Boolean privateCopy)
privateCopy
- privateCopy or null
for nonepublic boolean isPrivateCopy()
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
.
If set to True, Event propagation is disabled. Note that it is not the same thing as Private event properties. Optional. Immutable. The default is False.
public java.util.List<java.lang.String> getRecurrence()
null
for nonepublic Event setRecurrence(java.util.List<java.lang.String> recurrence)
recurrence
- recurrence or null
for nonepublic java.lang.String getRecurringEventId()
null
for nonepublic Event setRecurringEventId(java.lang.String recurringEventId)
recurringEventId
- recurringEventId or null
for nonepublic Event.Reminders getReminders()
null
for nonepublic Event setReminders(Event.Reminders reminders)
reminders
- reminders or null
for nonepublic java.lang.Integer getSequence()
null
for nonepublic Event setSequence(java.lang.Integer sequence)
sequence
- sequence or null
for nonepublic Event.Source getSource()
null
for nonepublic Event setSource(Event.Source source)
source
- source or null
for nonepublic EventDateTime getStart()
null
for nonepublic Event setStart(EventDateTime start)
start
- start or null
for nonepublic java.lang.String getStatus()
null
for nonepublic Event setStatus(java.lang.String status)
status
- status or null
for nonepublic java.lang.String getSummary()
null
for nonepublic Event setSummary(java.lang.String summary)
summary
- summary or null
for nonepublic java.lang.String getTransparency()
null
for nonepublic Event setTransparency(java.lang.String transparency)
transparency
- transparency or null
for nonepublic com.google.api.client.util.DateTime getUpdated()
null
for nonepublic Event setUpdated(com.google.api.client.util.DateTime updated)
updated
- updated or null
for nonepublic java.lang.String getVisibility()
null
for nonepublic Event setVisibility(java.lang.String visibility)
visibility
- visibility or null
for nonepublic Event set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Event clone()
clone
in class com.google.api.client.json.GenericJson