REST Resource: users.spaces.spaceNotificationSetting
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ทรัพยากร: SpaceNotificationSetting
การตั้งค่าการแจ้งเตือนของผู้ใช้ในพื้นที่ทำงาน
ช่อง |
name |
string
ตัวระบุ ชื่อทรัพยากรของการตั้งค่าการแจ้งเตือนของพื้นที่ทำงาน รูปแบบ: users/{user}/spaces/{space}/spaceNotificationSetting
|
notificationSetting |
enum (NotificationSetting )
การตั้งค่าการแจ้งเตือน
|
muteSetting |
enum (MuteSetting )
การตั้งค่าปิดการแจ้งเตือนพื้นที่ทำงาน
|
NotificationSetting
ประเภทการตั้งค่าการแจ้งเตือน แต่อาจรองรับประเภทอื่นๆ ในอนาคต
Enum |
NOTIFICATION_SETTING_UNSPECIFIED |
สงวนไว้ |
ALL |
การแจ้งเตือนจะทริกเกอร์โดย @การพูดถึง ชุดข้อความที่ติดตาม ข้อความแรกของชุดข้อความใหม่ ระบบจะติดตามชุดข้อความใหม่ทั้งหมดโดยอัตโนมัติ เว้นแต่ผู้ใช้จะเลิกติดตามด้วยตนเอง |
MAIN_CONVERSATIONS |
การแจ้งเตือนจะทริกเกอร์โดย @การพูดถึง ชุดข้อความที่ติดตาม ข้อความแรกของชุดข้อความใหม่ ใช้งานกับข้อความส่วนตัวแบบ 1:1 ไม่ได้ |
FOR_YOU |
การแจ้งเตือนจะทริกเกอร์เมื่อมีการ @พูดถึง ชุดข้อความที่ติดตาม ใช้งานกับข้อความส่วนตัวแบบ 1:1 ไม่ได้ |
OFF |
การแจ้งเตือนปิดอยู่ |
MuteSetting
ประเภทการตั้งค่าการปิดเสียงการแจ้งเตือนของพื้นที่ทำงาน
Enum |
MUTE_SETTING_UNSPECIFIED |
สงวนไว้ |
UNMUTED |
ผู้ใช้จะได้รับการแจ้งเตือนสำหรับพื้นที่ทำงานตามการตั้งค่าการแจ้งเตือน |
MUTED |
ผู้ใช้จะไม่ได้รับการแจ้งเตือนใดๆ สำหรับพื้นที่ทำงานนั้น ไม่ว่าจะตั้งค่าการแจ้งเตือนไว้อย่างไรก็ตาม |
เมธอด |
|
รับการตั้งค่าการแจ้งเตือนพื้นที่ทำงาน |
|
อัปเดตการตั้งค่าการแจ้งเตือนของพื้นที่ทำงาน |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 UTC"],[[["\u003cp\u003eSpaceNotificationSetting allows you to manage a user's notification settings within a Google Chat space.\u003c/p\u003e\n"],["\u003cp\u003eYou can configure notification triggers for various events like @mentions, new threads, and followed threads using NotificationSetting.\u003c/p\u003e\n"],["\u003cp\u003eMuteSetting enables you to mute or unmute all notifications for a space, overriding the NotificationSetting.\u003c/p\u003e\n"],["\u003cp\u003eThis feature is currently in Developer Preview and accessible through the Google Workspace Developer Preview Program.\u003c/p\u003e\n"],["\u003cp\u003eUse the \u003ccode\u003eget\u003c/code\u003e and \u003ccode\u003epatch\u003c/code\u003e methods to retrieve and update space notification settings respectively.\u003c/p\u003e\n"]]],["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"],null,["# REST Resource: users.spaces.spaceNotificationSetting\n\n- [Resource: SpaceNotificationSetting](#SpaceNotificationSetting)\n - [JSON representation](#SpaceNotificationSetting.SCHEMA_REPRESENTATION)\n- [NotificationSetting](#NotificationSetting)\n- [MuteSetting](#MuteSetting)\n- [Methods](#METHODS_SUMMARY)\n\nResource: SpaceNotificationSetting\n----------------------------------\n\nThe notification setting of a user in a space.\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"notificationSetting\": enum (/workspace/chat/api/reference/rest/v1/users.spaces.spaceNotificationSetting#NotificationSetting), \"muteSetting\": enum (/workspace/chat/api/reference/rest/v1/users.spaces.spaceNotificationSetting#MuteSetting) } ``` |\n\n| Fields ||\n|-----------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Identifier. The resource name of the space notification setting. Format: `users/{user}/spaces/{space}/spaceNotificationSetting`. |\n| `notificationSetting` | `enum (`[NotificationSetting](/workspace/chat/api/reference/rest/v1/users.spaces.spaceNotificationSetting#NotificationSetting)`)` The notification setting. |\n| `muteSetting` | `enum (`[MuteSetting](/workspace/chat/api/reference/rest/v1/users.spaces.spaceNotificationSetting#MuteSetting)`)` The space notification mute setting. |\n\nNotificationSetting\n-------------------\n\nThe notification setting types. Other types might be supported in the future.\n\n| Enums ||\n|------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `NOTIFICATION_SETTING_UNSPECIFIED` | Reserved. |\n| `ALL` | Notifications are triggered by @mentions, followed threads, first message of new threads. All new threads are automatically followed, unless manually unfollowed by the user. |\n| `MAIN_CONVERSATIONS` | The notification is triggered by @mentions, followed threads, first message of new threads. Not available for 1:1 direct messages. |\n| `FOR_YOU` | The notification is triggered by @mentions, followed threads. Not available for 1:1 direct messages. |\n| `OFF` | Notification is off. |\n\nMuteSetting\n-----------\n\nThe space notification mute setting types.\n\n| Enums ||\n|----------------------------|----------------------------------------------------------------------------------------------------|\n| `MUTE_SETTING_UNSPECIFIED` | Reserved. |\n| `UNMUTED` | The user will receive notifications for the space based on the notification setting. |\n| `MUTED` | The user will not receive any notifications for the space, regardless of the notification setting. |\n\n| Methods ------- ||\n|------------------------------------------------------------------------------------------------|-----------------------------------------|\n| ### [get](/workspace/chat/api/reference/rest/v1/users.spaces.spaceNotificationSetting/get) | Gets the space notification setting. |\n| ### [patch](/workspace/chat/api/reference/rest/v1/users.spaces.spaceNotificationSetting/patch) | Updates the space notification setting. |"]]