REST Resource: users.spaces.spaceNotificationSetting
資源:SpaceNotificationSetting
欄位 |
name |
string
ID。聊天室通知設定的資源名稱。格式:users/{user}/spaces/{space}/spaceNotificationSetting 。
|
notificationSetting |
enum (NotificationSetting )
通知設定。
|
muteSetting |
enum (MuteSetting )
聊天室通知靜音設定。
|
NotificationSetting
列舉 |
NOTIFICATION_SETTING_UNSPECIFIED |
保留。 |
ALL |
系統會在收到使用 @號提及的訊息、你追蹤的討論串,以及新討論串的第一則訊息時發出通知。除非使用者手動取消追蹤,否則系統會自動追蹤所有新討論串。 |
MAIN_CONVERSATIONS |
系統會在收到使用 @號提及的訊息、你追蹤的討論串,或是新討論串的第一則訊息時觸發通知。不適用於 1:1 即時訊息。 |
FOR_YOU |
系統會在收到使用 @號提及你的訊息,或是你追蹤的討論串時觸發通知。不適用於 1:1 即時訊息。 |
OFF |
通知已關閉。 |
MuteSetting
列舉 |
MUTE_SETTING_UNSPECIFIED |
保留。 |
UNMUTED |
使用者會根據通知設定收到聊天室通知。 |
MUTED |
無論通知設定為何,使用者都不會收到任何聊天室通知。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-03-06 (世界標準時間)。
[null,null,["上次更新時間:2025-03-06 (世界標準時間)。"],[[["SpaceNotificationSetting allows you to manage a user's notification settings within a Google Chat space."],["You can configure notification triggers for various events like @mentions, new threads, and followed threads using NotificationSetting."],["MuteSetting enables you to mute or unmute all notifications for a space, overriding the NotificationSetting."],["This feature is currently in Developer Preview and accessible through the Google Workspace Developer Preview Program."],["Use the `get` and `patch` methods to retrieve and update space notification settings respectively."]]],["SpaceNotificationSetting defines a user's notification preferences within a space, encompassing `notificationSetting` and `muteSetting`. Notification settings include `ALL`, `MAIN_CONVERSATIONS`, `FOR_YOU`, or `OFF`, controlling when notifications are triggered. Mute settings are `UNMUTED` or `MUTED`, determining if the user gets any notifications, regardless of the notification type. Methods include `get` to retrieve the settings and `patch` to update them, available in the Google Workspace Developer Preview Program.\n"]]