NotificationSettingsForUpdates
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Indica se gli aggiornamenti dei campi per questa classe devono attivare le notifiche. Se impostato su NOTIFY, tenteremo di attivare una notifica di aggiornamento del campo per gli utenti. Queste notifiche verranno inviate agli utenti solo se il campo fa parte di una lista consentita. Se non viene specificato, non verrà attivata alcuna notifica. Questa impostazione è temporanea e deve essere impostata con ogni richiesta PATCH o UPDATE, altrimenti non verrà attivata una notifica.
Enum |
NOTIFICATION_SETTINGS_FOR_UPDATES_UNSPECIFIED |
Il comportamento predefinito è che non vengono inviate notifiche. |
NOTIFY_ON_UPDATE |
Questo valore comporterà l'invio di una notifica se i campi aggiornati fanno parte di una lista consentita. |
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-25 UTC.
[null,null,["Ultimo aggiornamento 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. |"]]