public class GCalendar
GCalendar is a wrapper around Google's CalendarListEntry and represents a single calendar. All filter fields for the getEvents() method default to null. If a field has been set, but the value of the filter is no longer desired, the field can be set to null() and the filter will no longer be applied.
Modifier and Type | Field and Description |
---|---|
Boolean | AlwaysIncludeEmail!=null() Filter for getEvents() method: Whether to always include a value in the email field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. If null(), value defaults to False. (boolean) |
BBjString | ICalUID!=null() Filter for getEvents() method: Specifies event ID in the iCalendar format to be included in the response. Optional. (string) |
BBjNumber | MaxAttendees!=null() Filter for getEvents() method: The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional. (integer, 1+) |
BBjNumber | MaxResults!=null() Filter for getEvents() method: Maximum number of events returned on one result page. By default the value is 250 events. The page size can never be larger than 2500 events. Optional. (integer, 1+) |
BBjString | OrderBy!=null() Filter for getEvents() method: The order of the events returned in the result. Optional. The default is an unspecified, stable order. (string) Valid values are "startTime" and "updated" |
BBjString | PageToken!=null() Filter for getEvents() method: Token specifying which result page to return. Optional. (string) |
BBjVector | PrivateExtendedProperty!=null() Extended properties constraint specified as propertyName=value. Matches only private properties. This parameter might be repeated multiple times to return events that match all given constraints. (string) |
BBjString | Q!=null() Filter for getEvents() method: Free text search terms to find events that match these terms in any field, except for extended properties. Optional. (string) |
BBjVector | SharedExtendedProperty!=null() Extended properties constraint specified as propertyName=value. Matches only shared properties. This parameter might be repeated multiple times to return events that match all given constraints. |
Boolean | ShowDeleted!=null() Whether to include deleted events (with status equals "cancelled") in the result. Cancelled instances of recurring events (but not the underlying recurring event) will still be included if showDeleted and singleEvents are both False. If showDeleted and singleEvents are both True, only single instances of deleted events (but not the underlying recurring events) are returned. Optional. The default is False. (boolean) |
Boolean | ShowHiddenInvitations!=null() Whether to include hidden invitations in the result. Optional. The default is False. (boolean) |
BBjNumber | SingleEvents!=null() Whether to expand recurring events into instances and only return single one-off events and instances of recurring events, but not the underlying recurring events themselves. Optional. The default is False. (boolean) |
BBjString | SyncToken!=null() Token obtained from the nextSyncToken field returned on the last page of results from the previous list request. It makes the result of this list request contain only entries that have changed since then. All events deleted since the previous list request will always be in the result set and it is not allowed to set showDeleted to False. There are several query parameters that cannot be specified together with nextSyncToken to ensure consistency of the client state. These are: ICalUID OrderBy PrivateExtendedProperty Q SharedExtendedProperty TimeMin TimeMax UpdatedMin If the syncToken expires, the server will respond with a 410 GONE response code and the client should clear its storage and perform a full synchronization without any syncToken. Optional. The default is to return all entries. (string) |
Date | TimeMax!=null() Filter for getEvents() method: Upper bound (exclusive) for an event's start time to filter by. Optional. The default is not to filter by start time. (string) |
Date | TimeMin!=null() Lower bound (inclusive) for an event's end time to filter by. Optional. The default is not to filter by end time. (string) |
BBjString | TimeZone!=null() Filter for getEvents() method: Time zone used in the response. Optional. The default is the time zone of the calendar. (string) |
Date | UpdatedMin!=null() Lower bound for an event's last modification time (as a RFC 3339 timestamp) to filter by. When specified, entries deleted since this time will always be included regardless of showDeleted. Optional. The default is not to filter by last modification time. (string) |
Constructor and Description |
---|
GCalendar(GCalendarAPI api!, com.google.api.services.calendar.model.CalendarListEntry wrappedCalendar!) Constructor |
Modifier and Type | Method and Description |
---|---|
Gcom.google.api.services.calendar.model.Event | addEvent(GEvent event!) Add an event to the calendar. |
void | deleteEvent(GEvent event!) Delete an event in the calendar. |
BBjString | getAccessRole() Get access role. |
BBjString | getBackgroundColor() Get background color. |
BBjVector | getBusyTimes(java.util.Date startDate!, java.util.Date endDate!) |
BBjString | getColorId() Get color id. |
Gcom.google.api.services.calendar.model.com.google.api.services.calendar.model.Events | getDeletedEvents() Gets deleted events |
BBjString | getDescription() Description of the calendar. |
BBjString | getEtag() ETag for the calendar. ETags are used in caching to determine whether a resource has changed. |
Gcom.google.api.services.calendar.model.com.google.api.services.calendar.model.Events | getEvents() Get all events (like scheduled appointments) associated with this calendar. |
Gcom.google.api.services.calendar.model.com.google.api.services.calendar.model.Events | getEvents(com.google.api.client.util.DateTime timeMin!, com.google.api.client.util.DateTime timeMax!) Get all events (like scheduled appointments) associated with this calendar that fall in between the specified date range. |
Gcom.google.api.services.calendar.model.com.google.api.services.calendar.model.Events | getEvents(java.util.Date timeMin!, java.util.Date timeMax!) Get all events (like scheduled appointments) associated with this calendar that fall in between the specified date range. |
Gcom.google.api.services.calendar.model.com.google.api.services.calendar.model.Events | getEvents(BBjString retrieveToken!) Get all events (like scheduled appointments) associated with this calendar using a token that represents a datetime when events were last retrieved. |
BBjString | getForegroundColor() Get foreground color. |
BBjNumber | getHidden() Returns whether calendar is suppressed from displaying. User can have several calendars, but only show the desired calendars at any time. |
BBjString | getId() Returns the calendar's Id string. Can be used to reference the calendar later. The special ID String "primary" refers to the Google account's default calendar. |
BBjString | getKind() Specifies the type of Google resource. |
BBjString | getLocation() Get Calendar's location. |
static Date | getRelativeDate(BBjNumber field, BBjNumber amount) |
BBjString | getSummary() Retrieves the calendar's summary. |
BBjString | getSummaryOverride() Retrieves the calendar's summary override. |
BBjString | getTimeZone() Retrieves the calendar's timezone. |
BBjNumber | isDeleted() Indicates whether this calendar has been deleted. |
BBjNumber | isPrimary() Specifies whether this is the user's default calendar. There is one primary calendar per Google Account. |
BBjNumber | isSelected() Indicates whether the calendar is selected. |
Gcom.google.api.services.calendar.Calendar | set(BBjString fieldName!, Object value!) Can be used to set JSON properties in the calendar. |
Gcom.google.api.services.calendar.Calendar | setAccessRole(BBjString accessRole!) Set access role. |
Gcom.google.api.services.calendar.Calendar | setBackgroundColor(BBjString backgroundColor!) Set the background color of the calendar. param backgroundColor! String representing the color to set the calendar's background to. |
Gcom.google.api.services.calendar.Calendar | setColorId(BBjString colorId!) Set color id |
Gcom.google.api.services.calendar.Calendar | setDeleted(BBjNumber deleted!) Set calendar's "deleted" attribute |
Gcom.google.api.services.calendar.Calendar | setDescription(BBjString description!) Set calendar's description |
Gcom.google.api.services.calendar.Calendar | setEtag(BBjString etag!) Set calendar's "deleted" attribute |
Gcom.google.api.services.calendar.model.Event | updateEvent(GEvent event!) Update an event in the calendar. |
public Boolean AlwaysIncludeEmail!=null()
Filter for getEvents() method: Whether to always include a value in the email field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. If null(), value defaults to False. (boolean)
https://developers.google.com/google-apps/calendar/v3/reference/events/list
public BBjString ICalUID!=null()
Filter for getEvents() method: Specifies event ID in the iCalendar format to be included in the response. Optional. (string)
https://developers.google.com/google-apps/calendar/v3/reference/events/list
public BBjNumber MaxAttendees!=null()
Filter for getEvents() method: The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional. (integer, 1+)
https://developers.google.com/google-apps/calendar/v3/reference/events/list
public BBjNumber MaxResults!=null()
Filter for getEvents() method: Maximum number of events returned on one result page. By default the value is 250 events. The page size can never be larger than 2500 events. Optional. (integer, 1+)
https://developers.google.com/google-apps/calendar/v3/reference/events/list
public BBjString OrderBy!=null()
Filter for getEvents() method: The order of the events returned in the result. Optional. The default is an unspecified, stable order. (string) Valid values are "startTime" and "updated"
https://developers.google.com/google-apps/calendar/v3/reference/events/list
public BBjString PageToken!=null()
Filter for getEvents() method: Token specifying which result page to return. Optional. (string)
https://developers.google.com/google-apps/calendar/v3/reference/events/list
public BBjVector PrivateExtendedProperty!=null()
Extended properties constraint specified as propertyName=value. Matches only private properties. This parameter might be repeated multiple times to return events that match all given constraints. (string)
https://developers.google.com/google-apps/calendar/v3/reference/events/list
public BBjString Q!=null()
Filter for getEvents() method: Free text search terms to find events that match these terms in any field, except for extended properties. Optional. (string)
https://developers.google.com/google-apps/calendar/v3/reference/events/list
public BBjVector SharedExtendedProperty!=null()
Extended properties constraint specified as propertyName=value. Matches only shared properties. This parameter might be repeated multiple times to return events that match all given constraints.
https://developers.google.com/google-apps/calendar/v3/reference/events/list
public Boolean ShowDeleted!=null()
Whether to include deleted events (with status equals "cancelled") in the result. Cancelled instances of recurring events (but not the underlying recurring event) will still be included if showDeleted and singleEvents are both False. If showDeleted and singleEvents are both True, only single instances of deleted events (but not the underlying recurring events) are returned. Optional. The default is False. (boolean)
https://developers.google.com/google-apps/calendar/v3/reference/events/list
public Boolean ShowHiddenInvitations!=null()
Whether to include hidden invitations in the result. Optional. The default is False. (boolean)
https://developers.google.com/google-apps/calendar/v3/reference/events/list
public BBjNumber SingleEvents!=null()
Whether to expand recurring events into instances and only return single one-off events and instances of recurring events, but not the underlying recurring events themselves. Optional. The default is False. (boolean)
https://developers.google.com/google-apps/calendar/v3/reference/events/list
public BBjString SyncToken!=null()
Token obtained from the nextSyncToken field returned on the last page of results from the previous list request. It makes the result of this list request contain only entries that have changed since then. All events deleted since the previous list request will always be in the result set and it is not allowed to set showDeleted to False. There are several query parameters that cannot be specified together with nextSyncToken to ensure consistency of the client state. These are: ICalUID OrderBy PrivateExtendedProperty Q SharedExtendedProperty TimeMin TimeMax UpdatedMin If the syncToken expires, the server will respond with a 410 GONE response code and the client should clear its storage and perform a full synchronization without any syncToken. Optional. The default is to return all entries. (string)
https://developers.google.com/google-apps/calendar/v3/reference/events/list
public Date TimeMax!=null()
Filter for getEvents() method: Upper bound (exclusive) for an event's start time to filter by. Optional. The default is not to filter by start time. (string)
https://developers.google.com/google-apps/calendar/v3/reference/events/list
public Date TimeMin!=null()
Lower bound (inclusive) for an event's end time to filter by. Optional. The default is not to filter by end time. (string)
https://developers.google.com/google-apps/calendar/v3/reference/events/list
public BBjString TimeZone!=null()
Filter for getEvents() method: Time zone used in the response. Optional. The default is the time zone of the calendar. (string)
https://developers.google.com/google-apps/calendar/v3/reference/events/list
public Date UpdatedMin!=null()
Lower bound for an event's last modification time (as a RFC 3339 timestamp) to filter by. When specified, entries deleted since this time will always be included regardless of showDeleted. Optional. The default is not to filter by last modification time. (string)
https://developers.google.com/google-apps/calendar/v3/reference/events/list
public GCalendar(GCalendarAPI api!, com.google.api.services.calendar.model.CalendarListEntry wrappedCalendar!)
Constructor
wrappedCalendar!
CalendarListEntry that will be wrapped by this class. Can not be null.public Gcom.google.api.services.calendar.model.Event addEvent(GEvent event!)
Add an event to the calendar.
event!
Event to be added to the calendar. !ERROR=300 A Google Calendar API Error has occurred
public void deleteEvent(GEvent event!)
Delete an event in the calendar.
event!
Event to be deleted in the calendar. Event must already exist in the calendar. !ERROR=300 A Google Calendar API Error has occurred
public BBjString getAccessRole()
Get access role.
public BBjString getBackgroundColor()
Get background color.
public BBjString getColorId()
Get color id.
public Gcom.google.api.services.calendar.model.com.google.api.services.calendar.model.Events getDeletedEvents()
Gets deleted events
public BBjString getDescription()
Description of the calendar.
public BBjString getEtag()
ETag for the calendar. ETags are used in caching to determine whether a resource has changed.
http://en.wikipedia.org/wiki/HTTP_ETag
public Gcom.google.api.services.calendar.model.com.google.api.services.calendar.model.Events getEvents()
Get all events (like scheduled appointments) associated with this calendar.
public Gcom.google.api.services.calendar.model.com.google.api.services.calendar.model.Events getEvents(com.google.api.client.util.DateTime timeMin!, com.google.api.client.util.DateTime timeMax!)
Get all events (like scheduled appointments) associated with this calendar that fall in between the specified date range.
timeMin!
DateTime that specifies the lower data range.timeMax!
DateTime that specifies the higher data range.public Gcom.google.api.services.calendar.model.com.google.api.services.calendar.model.Events getEvents(java.util.Date timeMin!, java.util.Date timeMax!)
Get all events (like scheduled appointments) associated with this calendar that fall in between the specified date range.
timeMin!
java.util.Date that specifies the lower data range.timeMax!
java.util.Date specifies the higher data range.public Gcom.google.api.services.calendar.model.com.google.api.services.calendar.model.Events getEvents(BBjString retrieveToken!)
Get all events (like scheduled appointments) associated with this calendar using a token that represents a datetime when events were last retrieved.
retrieveToken!
token that represents a datetime when events were last retrieved.public BBjString getForegroundColor()
Get foreground color.
public BBjNumber getHidden()
Returns whether calendar is suppressed from displaying. User can have several calendars, but only show the desired calendars at any time.
public BBjString getId()
Returns the calendar's Id string. Can be used to reference the calendar later. The special ID String "primary" refers to the Google account's default calendar.
public BBjString getKind()
Specifies the type of Google resource.
public BBjString getLocation()
Get Calendar's location.
public static Date getRelativeDate(BBjNumber field, BBjNumber amount)
public BBjString getSummary()
Retrieves the calendar's summary.
public BBjString getSummaryOverride()
Retrieves the calendar's summary override.
public BBjString getTimeZone()
Retrieves the calendar's timezone.
public BBjNumber isDeleted()
Indicates whether this calendar has been deleted.
public BBjNumber isPrimary()
Specifies whether this is the user's default calendar. There is one primary calendar per Google Account.
public BBjNumber isSelected()
Indicates whether the calendar is selected.
public Gcom.google.api.services.calendar.Calendar set(BBjString fieldName!, Object value!)
Can be used to set JSON properties in the calendar.
fieldName!
Name of the property/variable/field to setvalue!
What value to set the property to. https://developers.google.com/google-apps/calendar/v3/reference/calendarList#resource. See the structure under the heading "Resource Representations"
public Gcom.google.api.services.calendar.Calendar setAccessRole(BBjString accessRole!)
Set access role.
accessRole!
String representing access role.public Gcom.google.api.services.calendar.Calendar setBackgroundColor(BBjString backgroundColor!)
Set the background color of the calendar. param backgroundColor! String representing the color to set the calendar's background to.
public Gcom.google.api.services.calendar.Calendar setColorId(BBjString colorId!)
Set color id
colorId!
String representing the color ID.public Gcom.google.api.services.calendar.Calendar setDeleted(BBjNumber deleted!)
Set calendar's "deleted" attribute
deleted!
Can be 0 or non-zero:public Gcom.google.api.services.calendar.Calendar setDescription(BBjString description!)
Set calendar's description
description!
A string containing the text of the calendar's description.public Gcom.google.api.services.calendar.Calendar setEtag(BBjString etag!)
Set calendar's "deleted" attribute
deleted!
Can be 0 or non-zero:public Gcom.google.api.services.calendar.model.Event updateEvent(GEvent event!)
Update an event in the calendar.
event!
Event to be updated in the calendar. Event must already exist in the calendar. REM * !ERROR=300 A Google Calendar API Error has occurred