Class CalendarEventActionResponseBuilder

  • CalendarEventActionResponseBuilder is a builder for CalendarEventActionResponse objects.

  • Methods like addAttachments, addAttendees, and setConferenceData specify actions to take on a Calendar event when a UI action is triggered.

  • The build method validates and creates the CalendarEventActionResponse object.

CalendarEventActionResponseBuilder

A builder for CalendarEventActionResponse objects.

Methods

MethodReturn typeBrief description
addAttachments(attachments) CalendarEventActionResponseBuilder Specifies that the response should add the attachments to the Calendar event when the associated UI action is taken.
addAttendees(emails) CalendarEventActionResponseBuilder Specifies that the response should add the indicated attendees to the Calendar event when the associated UI action is taken.
build() CalendarEventActionResponse Builds the current Calendar event action response and validates it.
setConferenceData(conferenceData) CalendarEventActionResponseBuilder Specifies that the response should set the indicated conference data to the Calendar event when the associated UI action is taken.

Detailed documentation

addAttachments(attachments)

Specifies that the response should add the attachments to the Calendar event when the associated UI action is taken.

Parameters

NameTypeDescription
attachmentsAttachment[] An array of Attachment s to add.

Return

CalendarEventActionResponseBuilder — This object, for chaining.


addAttendees(emails)

Specifies that the response should add the indicated attendees to the Calendar event when the associated UI action is taken.

Parameters

NameTypeDescription
emailsString[]An array of email addresses to add to the event.

Return

CalendarEventActionResponseBuilder — This object, for chaining.

Throws

Error — If too many attendees have been added.


build()

Builds the current Calendar event action response and validates it.

Return

CalendarEventActionResponse — A validated CalendarEventActionResponse .

Throws

Error — If the constructed Calendar event action response isn't valid.


setConferenceData(conferenceData)

Specifies that the response should set the indicated conference data to the Calendar event when the associated UI action is taken.

Parameters

NameTypeDescription
conferenceDataConferenceData Conference data to set to the event, created by an add on.

Return

CalendarEventActionResponseBuilder — This object, for chaining.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024年12月02日 UTC.