REST Resource: users.spaces.spaceNotificationSetting
资源:SpaceNotificationSetting
字段 |
name |
string
标识符。聊天室通知设置的资源名称。格式:users/{user}/spaces/{space}/spaceNotificationSetting 。
|
notificationSetting |
enum (NotificationSetting )
通知设置。
|
muteSetting |
enum (MuteSetting )
聊天室通知静音设置。
|
NotificationSetting
枚举 |
NOTIFICATION_SETTING_UNSPECIFIED |
已预订。 |
ALL |
系统会在有人用“@”提及你、所关注话题有新消息,或新话题中有首条消息时发出通知。除非用户手动取消关注,否则系统会自动关注所有新会话。 |
MAIN_CONVERSATIONS |
系统会在有人用“@”提及你、关注的话题有新消息,或新话题中有首条消息时触发通知。不适用于一对一私信。 |
FOR_YOU |
系统会在收到用“@”提及的消息、所关注话题的消息时触发通知。不适用于一对一私信。 |
OFF |
通知已关闭。 |
MuteSetting
枚举 |
MUTE_SETTING_UNSPECIFIED |
已预订。 |
UNMUTED |
用户将根据通知设置收到聊天室通知。 |
MUTED |
无论通知设置如何,用户都不会收到有关该聊天室的任何通知。 |
方法 |
|
获取聊天室通知状态设置。 |
|
更新聊天室通知状态设置。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-02-27。
[null,null,["最后更新时间 (UTC):2025-02-27。"],[[["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"]]