Class CalendarEventActionResponse
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
LịchSự kiệnThao tácPhản hồi
Biểu thị một phản hồi thực hiện thay đổi đối với sự kiện trên lịch mà người dùng hiện đang chỉnh sửa để phản hồi một hành động được thực hiện trong giao diện người dùng, chẳng hạn như một lượt nhấp vào nút.
// A CalendarEventActionResponse that adds two attendees to an event.
const calendarEventActionResponse =
CardService.newCalendarEventActionResponseBuilder()
.addAttendees(['user1@example.com', 'user2@example.com'])
.build();
Phương thức
Phương thức | Loại dữ liệu trả về | Mô tả ngắn |
printJson() | String | In nội dung đại diện JSON của đối tượng này. |
Tài liệu chi tiết
printJson()
In nội dung đại diện JSON của đối tượng này. Lựa chọn này chỉ dùng để gỡ lỗi.
Cầu thủ trả bóng
String
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[[["\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`"]]