NotificationSettingsForUpdates
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
是否应针对此类触发字段更新通知。设置为 NOTIFY 时,我们会尝试向用户触发字段更新通知。只有当该字段已列入许可名单时,系统才会向用户发送此类通知。如果未指定,则不会触发任何通知。此设置是暂时性的,需要在每次 PATCH 或 UPDATE 请求中进行设置,否则系统不会触发通知。
枚举 |
NOTIFICATION_SETTINGS_FOR_UPDATES_UNSPECIFIED |
默认行为是不会发送通知。 |
NOTIFY_ON_UPDATE |
如果更新的字段属于许可名单,系统会发送通知。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):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. |"]]