Reference documentation and code samples for the Google Apps Chat V1 Client class GetThreadReadStateRequest.
Request message for GetThreadReadStateRequest API.
Generated from protobuf message google.chat.v1.GetThreadReadStateRequest
Namespace
Google \ Apps \ Chat \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Required. Resource name of the thread read state to retrieve. Only supports getting read state for the calling user. To refer to the calling user, set one of the following: - The me alias. For example, users/me/spaces/{space}/threads/{thread}/threadReadState. - Their Workspace email address. For example, users/user@example.com/spaces/{space}/threads/{thread}/threadReadState. - Their user id. For example, users/123456789/spaces/{space}/threads/{thread}/threadReadState. Format: users/{user}/spaces/{space}/threads/{thread}/threadReadState
getName
Required. Resource name of the thread read state to retrieve.
Only supports getting read state for the calling user.
To refer to the calling user, set one of the following:
The me alias. For example,
users/me/spaces/{space}/threads/{thread}/threadReadState.
Their Workspace email address. For example,
users/user@example.com/spaces/{space}/threads/{thread}/threadReadState.
Their user id. For example,
users/123456789/spaces/{space}/threads/{thread}/threadReadState.
Format: users/{user}/spaces/{space}/threads/{thread}/threadReadState
Returns
Type
Description
string
setName
Required. Resource name of the thread read state to retrieve.
Only supports getting read state for the calling user.
To refer to the calling user, set one of the following:
The me alias. For example,
users/me/spaces/{space}/threads/{thread}/threadReadState.
Their Workspace email address. For example,
users/user@example.com/spaces/{space}/threads/{thread}/threadReadState.
Their user id. For example,
users/123456789/spaces/{space}/threads/{thread}/threadReadState.
Format: users/{user}/spaces/{space}/threads/{thread}/threadReadState
Parameter
Name
Description
var
string
Returns
Type
Description
$this
static::build
Parameter
Name
Description
name
string
Required. Resource name of the thread read state to retrieve.
Only supports getting read state for the calling user.
To refer to the calling user, set one of the following:
The me alias. For example,
users/me/spaces/{space}/threads/{thread}/threadReadState.
Their Workspace email address. For example,
users/user@example.com/spaces/{space}/threads/{thread}/threadReadState.
Their user id. For example,
users/123456789/spaces/{space}/threads/{thread}/threadReadState.
Format: users/{user}/spaces/{space}/threads/{thread}/threadReadState
Please see ChatServiceClient::threadReadStateName() for help formatting this field.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Apps Chat V1 Client - Class GetThreadReadStateRequest (0.12.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.12.0 (latest)](/php/docs/reference/apps-chat/latest/Chat.V1.GetThreadReadStateRequest)\n- [0.11.2](/php/docs/reference/apps-chat/0.11.2/Chat.V1.GetThreadReadStateRequest)\n- [0.10.0](/php/docs/reference/apps-chat/0.10.0/Chat.V1.GetThreadReadStateRequest)\n- [0.9.0](/php/docs/reference/apps-chat/0.9.0/Chat.V1.GetThreadReadStateRequest)\n- [0.8.1](/php/docs/reference/apps-chat/0.8.1/Chat.V1.GetThreadReadStateRequest)\n- [0.7.2](/php/docs/reference/apps-chat/0.7.2/Chat.V1.GetThreadReadStateRequest)\n- [0.6.1](/php/docs/reference/apps-chat/0.6.1/Chat.V1.GetThreadReadStateRequest)\n- [0.5.0](/php/docs/reference/apps-chat/0.5.0/Chat.V1.GetThreadReadStateRequest)\n- [0.4.0](/php/docs/reference/apps-chat/0.4.0/Chat.V1.GetThreadReadStateRequest)\n- [0.3.0](/php/docs/reference/apps-chat/0.3.0/Chat.V1.GetThreadReadStateRequest)\n- [0.2.0](/php/docs/reference/apps-chat/0.2.0/Chat.V1.GetThreadReadStateRequest)\n- [0.1.4](/php/docs/reference/apps-chat/0.1.4/Chat.V1.GetThreadReadStateRequest) \nReference documentation and code samples for the Google Apps Chat V1 Client class GetThreadReadStateRequest.\n\nRequest message for GetThreadReadStateRequest API.\n\nGenerated from protobuf message `google.chat.v1.GetThreadReadStateRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Apps \\\\ Chat \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nRequired. Resource name of the thread read state to retrieve.\n\nOnly supports getting read state for the calling user.\nTo refer to the calling user, set one of the following:\n\n- The `me` alias. For example, `users/me/spaces/{space}/threads/{thread}/threadReadState`.\n- Their Workspace email address. For example, `users/user@example.com/spaces/{space}/threads/{thread}/threadReadState`.\n- Their user id. For example, `users/123456789/spaces/{space}/threads/{thread}/threadReadState`. Format: users/{user}/spaces/{space}/threads/{thread}/threadReadState\n\n### setName\n\nRequired. Resource name of the thread read state to retrieve.\n\nOnly supports getting read state for the calling user.\nTo refer to the calling user, set one of the following:\n\n- The `me` alias. For example, `users/me/spaces/{space}/threads/{thread}/threadReadState`.\n- Their Workspace email address. For example, `users/user@example.com/spaces/{space}/threads/{thread}/threadReadState`.\n- Their user id. For example, `users/123456789/spaces/{space}/threads/{thread}/threadReadState`. Format: users/{user}/spaces/{space}/threads/{thread}/threadReadState\n\n### static::build"]]