REST Resource: users.spaces
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
资源:SpaceReadState
用户在聊天室中的读取状态,用于标识已读和未读消息。
JSON 表示法 |
{
"name": string,
"lastReadTime": string
} |
字段 |
name |
string
聊天室读取状态的资源名称。 格式:users/{user}/spaces/{space}/spaceReadState
|
lastReadTime |
string (Timestamp format)
可选。用户空间读取状态的更新时间。通常,此字段对应于上次阅读消息的时间戳,或用户指定用于标记上次阅读位置在空格中的时间戳。
|
方法 |
|
返回有关用户在聊天室中的阅读状态的详细信息,用于标识已读和未读消息。 |
|
更新用户在聊天室中的读取状态,用于标识已读和未读消息。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003e\u003ccode\u003eSpaceReadState\u003c/code\u003e tracks a user's read progress within a Google Chat space, indicating which messages are read and unread.\u003c/p\u003e\n"],["\u003cp\u003eIt's represented in JSON format with a \u003ccode\u003ename\u003c/code\u003e field (identifying the user and space) and an optional \u003ccode\u003elastReadTime\u003c/code\u003e field (indicating the last read message or user-defined position).\u003c/p\u003e\n"],["\u003cp\u003eYou can retrieve and update a user's \u003ccode\u003eSpaceReadState\u003c/code\u003e using the \u003ccode\u003egetSpaceReadState\u003c/code\u003e and \u003ccode\u003eupdateSpaceReadState\u003c/code\u003e methods, respectively, allowing developers to manage read receipts and user progress within Chat spaces.\u003c/p\u003e\n"]]],["The `SpaceReadState` resource tracks a user's read status within a space. It's represented in JSON with a `name` string and an optional `lastReadTime` timestamp. The `name` specifies the resource path, while `lastReadTime` indicates the user's last read position. Key actions include retrieving read state details via `getSpaceReadState` and updating it through `updateSpaceReadState`, both helping to identify read and unread messages.\n"],null,["# REST Resource: users.spaces\n\n- [Resource: SpaceReadState](#SpaceReadState)\n - [JSON representation](#SpaceReadState.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: SpaceReadState\n------------------------\n\nA user's read state within a space, used to identify read and unread messages.\n\n| JSON representation |\n|----------------------------------------------------|\n| ``` { \"name\": string, \"lastReadTime\": string } ``` |\n\n| Fields ||\n|----------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Resource name of the space read state. Format: `users/{user}/spaces/{space}/spaceReadState` |\n| `lastReadTime` | `string (`[Timestamp](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp)` format)` Optional. The time when the user's space read state was updated. Usually this corresponds with either the timestamp of the last read message, or a timestamp specified by the user to mark the last read position in a space. |\n\n| Methods ------- ||\n|-----------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------|\n| ### [getSpaceReadState](/workspace/chat/api/reference/rest/v1/users.spaces/getSpaceReadState) | Returns details about a user's read state within a space, used to identify read and unread messages. |\n| ### [updateSpaceReadState](/workspace/chat/api/reference/rest/v1/users.spaces/updateSpaceReadState) | Updates a user's read state within a space, used to identify read and unread messages. |"]]