NotificationSettingsForUpdates
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
這個類別的欄位更新是否應觸發通知。設為 NOTIFY 時,我們會嘗試向使用者觸發欄位更新通知。只有在欄位屬於許可清單的一部分時,系統才會傳送這些通知給使用者。如未指定,系統就不會觸發任何通知。這項設定是暫時性的,需要在每次 PATCH 或 UPDATE 要求中設定,否則系統不會觸發通知。
列舉 |
NOTIFICATION_SETTINGS_FOR_UPDATES_UNSPECIFIED |
預設行為是不會傳送通知。 |
NOTIFY_ON_UPDATE |
如果更新的欄位屬於許可清單的一部分,系統就會傳送這個值。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[[["\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. |"]]