Class CalendarEventActionResponse
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
日历事件操作响应
表示对用户当前正在修改的日历活动所做的更改的响应,以响应在界面中执行的操作(例如按钮点击)。
// A CalendarEventActionResponse that adds two attendees to an event.
const calendarEventActionResponse =
CardService.newCalendarEventActionResponseBuilder()
.addAttendees(['user1@example.com', 'user2@example.com'])
.build();
详细文档
printJson()
输出此对象的 JSON 表示法。这仅用于调试。
返回
String
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003e\u003ccode\u003eCalendarEventActionResponse\u003c/code\u003e enables modifications to a calendar event based on user actions within the UI.\u003c/p\u003e\n"],["\u003cp\u003eIt facilitates actions like adding attendees or potentially other modifications (not explicitly stated) to the event being edited.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can utilize the \u003ccode\u003eprintJson()\u003c/code\u003e method for debugging purposes to examine the JSON structure of the response.\u003c/p\u003e\n"]]],["The `CalendarEventActionResponse` modifies a calendar event being edited in the UI, based on user actions. Key actions include adding attendees, demonstrated by the `addAttendees()` method, which accepts an array of email addresses. The class also provides the `printJson()` method for debugging, returning a string containing the JSON representation of the current state. The response is built using `CardService.newCalendarEventActionResponseBuilder()` and finalized with `build()`.\n"],null,["# Class CalendarEventActionResponse\n\nCalendarEventActionResponse\n\nRepresents a response that makes changes to the calendar event that the user is currently editing\nin reaction to an action taken in the UI, such as a button click.\n\n```javascript\n// A CalendarEventActionResponse that adds two attendees to an event.\nconst calendarEventActionResponse =\n CardService.newCalendarEventActionResponseBuilder()\n .addAttendees(['user1@example.com', 'user2@example.com'])\n .build();\n``` \n\n### Methods\n\n| Method | Return type | Brief description |\n|-----------------------------|-------------|------------------------------------------------|\n| [printJson()](#printJson()) | `String` | Prints the JSON representation of this object. |\n\nDetailed documentation\n----------------------\n\n### `print``Json()`\n\nPrints the JSON representation of this object. This is for debugging only.\n\n#### Return\n\n\n`String`"]]