NotificationSettingsForUpdates
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
การอัปเดตช่องเป็นคลาสนี้ควรทริกเกอร์การแจ้งเตือนหรือไม่ เมื่อตั้งค่าเป็น "แจ้งเตือน" เราจะพยายามเรียกให้ระบบแจ้งเตือนการอัปเดตช่องแก่ผู้ใช้ ระบบจะส่งการแจ้งเตือนเหล่านี้ไปยังผู้ใช้ก็ต่อเมื่อช่องเป็นส่วนหนึ่งของรายการที่อนุญาตเท่านั้น หากไม่ได้ระบุ ระบบจะไม่ทริกเกอร์การแจ้งเตือน การตั้งค่านี้มีอายุไม่นานและจะต้องตั้งค่าพร้อมกับคำขอ PATCH หรือ UPDATE แต่ละรายการ มิฉะนั้นการแจ้งเตือนจะไม่ทริกเกอร์
Enum |
NOTIFICATION_SETTINGS_FOR_UPDATES_UNSPECIFIED |
ลักษณะการทำงานเริ่มต้นคือไม่มีการส่งการแจ้งเตือน |
NOTIFY_ON_UPDATE |
ค่านี้จะส่งผลให้ระบบส่งการแจ้งเตือนหากช่องที่อัปเดตเป็นส่วนหนึ่งของรายการที่อนุญาต |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 UTC"],[[["\u003cp\u003eField updates to this class can trigger notifications to users if explicitly set to \u003ccode\u003eNOTIFY_ON_UPDATE\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eNotifications are only sent for fields on an allowlist and require the notification setting to be included with each update request.\u003c/p\u003e\n"],["\u003cp\u003eBy default, or if the setting is unspecified, no notifications for field updates will be triggered.\u003c/p\u003e\n"]]],["Field updates can trigger notifications if set to `NOTIFY_ON_UPDATE`. Notifications are only sent if the updated fields are on an allowlist. The default, `NOTIFICATION_SETTINGS_FOR_UPDATES_UNSPECIFIED`, sends no notifications. This setting is temporary and must be specified with each `PATCH` or `UPDATE` request; otherwise, no notification occurs. Specifying `NOTIFY_ON_UPDATE` will ensure a notification is sent out.\n"],null,["# NotificationSettingsForUpdates\n\nWhether or not field updates to this class should trigger notifications. When set to NOTIFY, we will attempt to trigger a field update notification to users. These notifications will only be sent to users if the field is part of an allowlist. If not specified, no notification will be triggered. This setting is ephemeral and needs to be set with each PATCH or UPDATE request, otherwise a notification will not be triggered.\n\n| Enums ||\n|-------------------------------------------------|------------------------------------------------------------------------------------------------------|\n| `NOTIFICATION_SETTINGS_FOR_UPDATES_UNSPECIFIED` | Default behavior is no notifications sent. |\n| `NOTIFY_ON_UPDATE` | This value will result in a notification being sent, if the updated fields are part of an allowlist. |"]]