Reference documentation and code samples for the Google Apps Chat V1 Client class ListReactionsRequest.
Lists reactions to a message.
Generated from protobuf message google.chat.v1.ListReactionsRequest
Namespace
Google \ Apps \ Chat \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ parent
string
Required. The message users reacted to. Format: spaces/{space}/messages/{message}
↳ page_size
int
Optional. The maximum number of reactions returned. The service can return fewer reactions than this value. If unspecified, the default value is 25. The maximum value is 200; values above 200 are changed to 200.
↳ page_token
string
Optional. (If resuming from a previous query.) A page token received from a previous list reactions call. Provide this to retrieve the subsequent page. When paginating, the filter value should match the call that provided the page token. Passing a different value might lead to unexpected results.
↳ filter
string
Optional. A query filter. You can filter reactions by emoji (either emoji.unicode or emoji.custom_emoji.uid) and user (user.name). To filter reactions for multiple emojis or users, join similar fields with the OR operator, such as emoji.unicode = "🙂" OR emoji.unicode = "👍" and user.name = "users/AAAAAA" OR user.name = "users/BBBBBB". To filter reactions by emoji and user, use the AND operator, such as emoji.unicode = "🙂" AND user.name = "users/AAAAAA". If your query uses both AND and OR, group them with parentheses. For example, the following queries are valid: user.name = "users/{user}" emoji.unicode = "🙂" emoji.custom_emoji.uid = "{uid}" emoji.unicode = "🙂" OR emoji.unicode = "👍" emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}" emoji.unicode = "🙂" AND user.name = "users/{user}" (emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}") AND user.name = "users/{user}" The following queries are invalid: emoji.unicode = "🙂" AND emoji.unicode = "👍" emoji.unicode = "🙂" AND emoji.custom_emoji.uid = "{uid}" emoji.unicode = "🙂" OR user.name = "users/{user}" emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}" OR user.name = "users/{user}" emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}" AND user.name = "users/{user}" Invalid queries are rejected with an INVALID_ARGUMENT error.
getParent
Required. The message users reacted to.
Format: spaces/{space}/messages/{message}
Returns
Type
Description
string
setParent
Required. The message users reacted to.
Format: spaces/{space}/messages/{message}
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getPageSize
Optional. The maximum number of reactions returned. The service can return
fewer reactions than this value. If unspecified, the default value is 25.
The maximum value is 200; values above 200 are changed to 200.
Returns
Type
Description
int
setPageSize
Optional. The maximum number of reactions returned. The service can return
fewer reactions than this value. If unspecified, the default value is 25.
The maximum value is 200; values above 200 are changed to 200.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getPageToken
Optional. (If resuming from a previous query.)
A page token received from a previous list reactions call. Provide this
to retrieve the subsequent page.
When paginating, the filter value should match the call that provided the
page token. Passing a different value might lead to unexpected results.
Returns
Type
Description
string
setPageToken
Optional. (If resuming from a previous query.)
A page token received from a previous list reactions call. Provide this
to retrieve the subsequent page.
When paginating, the filter value should match the call that provided the
page token. Passing a different value might lead to unexpected results.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getFilter
Optional. A query filter.
You can filter reactions by
emoji
(either emoji.unicode or emoji.custom_emoji.uid) and
user
(user.name).
To filter reactions for multiple emojis or users, join similar fields
with the OR operator, such as emoji.unicode = "🙂" OR emoji.unicode =
"👍" and user.name = "users/AAAAAA" OR user.name = "users/BBBBBB".
To filter reactions by emoji and user, use the AND operator, such as
emoji.unicode = "🙂" AND user.name = "users/AAAAAA".
If your query uses both AND and OR, group them with parentheses.
For example, the following queries are valid:
user.name = "users/{user}"
emoji.unicode = "🙂"
emoji.custom_emoji.uid = "{uid}"
emoji.unicode = "🙂" OR emoji.unicode = "👍"
emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}"
emoji.unicode = "🙂" AND user.name = "users/{user}"
(emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}")
AND user.name = "users/{user}"
The following queries are invalid:
emoji.unicode = "🙂" AND emoji.unicode = "👍"
emoji.unicode = "🙂" AND emoji.custom_emoji.uid = "{uid}"
emoji.unicode = "🙂" OR user.name = "users/{user}"
emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}" OR
user.name = "users/{user}"
emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}"
AND user.name = "users/{user}"
Invalid queries are rejected with an INVALID_ARGUMENT error.
Returns
Type
Description
string
setFilter
Optional. A query filter.
You can filter reactions by
emoji
(either emoji.unicode or emoji.custom_emoji.uid) and
user
(user.name).
To filter reactions for multiple emojis or users, join similar fields
with the OR operator, such as emoji.unicode = "🙂" OR emoji.unicode =
"👍" and user.name = "users/AAAAAA" OR user.name = "users/BBBBBB".
To filter reactions by emoji and user, use the AND operator, such as
emoji.unicode = "🙂" AND user.name = "users/AAAAAA".
If your query uses both AND and OR, group them with parentheses.
For example, the following queries are valid:
user.name = "users/{user}"
emoji.unicode = "🙂"
emoji.custom_emoji.uid = "{uid}"
emoji.unicode = "🙂" OR emoji.unicode = "👍"
emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}"
emoji.unicode = "🙂" AND user.name = "users/{user}"
(emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}")
AND user.name = "users/{user}"
The following queries are invalid:
emoji.unicode = "🙂" AND emoji.unicode = "👍"
emoji.unicode = "🙂" AND emoji.custom_emoji.uid = "{uid}"
emoji.unicode = "🙂" OR user.name = "users/{user}"
emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}" OR
user.name = "users/{user}"
emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}"
AND user.name = "users/{user}"
Invalid queries are rejected with an INVALID_ARGUMENT error.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
static::build
Parameter
Name
Description
parent
string
Required. The message users reacted to.
Format: spaces/{space}/messages/{message}
Please see ChatServiceClient::messageName() 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 ListReactionsRequest (0.12.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.12.0 (latest)](/php/docs/reference/apps-chat/latest/Chat.V1.ListReactionsRequest)\n- [0.11.2](/php/docs/reference/apps-chat/0.11.2/Chat.V1.ListReactionsRequest)\n- [0.10.0](/php/docs/reference/apps-chat/0.10.0/Chat.V1.ListReactionsRequest)\n- [0.9.0](/php/docs/reference/apps-chat/0.9.0/Chat.V1.ListReactionsRequest)\n- [0.8.1](/php/docs/reference/apps-chat/0.8.1/Chat.V1.ListReactionsRequest)\n- [0.7.2](/php/docs/reference/apps-chat/0.7.2/Chat.V1.ListReactionsRequest)\n- [0.6.1](/php/docs/reference/apps-chat/0.6.1/Chat.V1.ListReactionsRequest)\n- [0.5.0](/php/docs/reference/apps-chat/0.5.0/Chat.V1.ListReactionsRequest)\n- [0.4.0](/php/docs/reference/apps-chat/0.4.0/Chat.V1.ListReactionsRequest)\n- [0.3.0](/php/docs/reference/apps-chat/0.3.0/Chat.V1.ListReactionsRequest)\n- [0.2.0](/php/docs/reference/apps-chat/0.2.0/Chat.V1.ListReactionsRequest)\n- [0.1.4](/php/docs/reference/apps-chat/0.1.4/Chat.V1.ListReactionsRequest) \nReference documentation and code samples for the Google Apps Chat V1 Client class ListReactionsRequest.\n\nLists reactions to a message.\n\nGenerated from protobuf message `google.chat.v1.ListReactionsRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Apps \\\\ Chat \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getParent\n\nRequired. The message users reacted to.\n\nFormat: `spaces/{space}/messages/{message}`\n\n### setParent\n\nRequired. The message users reacted to.\n\nFormat: `spaces/{space}/messages/{message}`\n\n### getPageSize\n\nOptional. The maximum number of reactions returned. The service can return\nfewer reactions than this value. If unspecified, the default value is 25.\n\nThe maximum value is 200; values above 200 are changed to 200.\n\n### setPageSize\n\nOptional. The maximum number of reactions returned. The service can return\nfewer reactions than this value. If unspecified, the default value is 25.\n\nThe maximum value is 200; values above 200 are changed to 200.\n\n### getPageToken\n\nOptional. (If resuming from a previous query.)\nA page token received from a previous list reactions call. Provide this\nto retrieve the subsequent page.\n\nWhen paginating, the filter value should match the call that provided the\npage token. Passing a different value might lead to unexpected results.\n\n### setPageToken\n\nOptional. (If resuming from a previous query.)\nA page token received from a previous list reactions call. Provide this\nto retrieve the subsequent page.\n\nWhen paginating, the filter value should match the call that provided the\npage token. Passing a different value might lead to unexpected results.\n\n### getFilter\n\nOptional. A query filter.\n\nYou can filter reactions by\n[emoji](https://developers.google.com/workspace/chat/api/reference/rest/v1/Emoji)\n(either `emoji.unicode` or `emoji.custom_emoji.uid`) and\n[user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User)\n(`user.name`).\nTo filter reactions for multiple emojis or users, join similar fields\nwith the `OR` operator, such as `emoji.unicode = \"🙂\" OR emoji.unicode =\n\"👍\"` and `user.name = \"users/AAAAAA\" OR user.name = \"users/BBBBBB\"`.\nTo filter reactions by emoji and user, use the `AND` operator, such as\n`emoji.unicode = \"🙂\" AND user.name = \"users/AAAAAA\"`.\nIf your query uses both `AND` and `OR`, group them with parentheses.\nFor example, the following queries are valid: \n\n user.name = \"users/{user}\"\n emoji.unicode = \"🙂\"\n emoji.custom_emoji.uid = \"{uid}\"\n emoji.unicode = \"🙂\" OR emoji.unicode = \"👍\"\n emoji.unicode = \"🙂\" OR emoji.custom_emoji.uid = \"{uid}\"\n emoji.unicode = \"🙂\" AND user.name = \"users/{user}\"\n (emoji.unicode = \"🙂\" OR emoji.custom_emoji.uid = \"{uid}\")\n AND user.name = \"users/{user}\"\n\nThe following queries are invalid: \n\n emoji.unicode = \"🙂\" AND emoji.unicode = \"👍\"\n emoji.unicode = \"🙂\" AND emoji.custom_emoji.uid = \"{uid}\"\n emoji.unicode = \"🙂\" OR user.name = \"users/{user}\"\n emoji.unicode = \"🙂\" OR emoji.custom_emoji.uid = \"{uid}\" OR\n user.name = \"users/{user}\"\n emoji.unicode = \"🙂\" OR emoji.custom_emoji.uid = \"{uid}\"\n AND user.name = \"users/{user}\"\n\nInvalid queries are rejected with an `INVALID_ARGUMENT` error.\n\n### setFilter\n\nOptional. A query filter.\n\nYou can filter reactions by\n[emoji](https://developers.google.com/workspace/chat/api/reference/rest/v1/Emoji)\n(either `emoji.unicode` or `emoji.custom_emoji.uid`) and\n[user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User)\n(`user.name`).\nTo filter reactions for multiple emojis or users, join similar fields\nwith the `OR` operator, such as `emoji.unicode = \"🙂\" OR emoji.unicode =\n\"👍\"` and `user.name = \"users/AAAAAA\" OR user.name = \"users/BBBBBB\"`.\nTo filter reactions by emoji and user, use the `AND` operator, such as\n`emoji.unicode = \"🙂\" AND user.name = \"users/AAAAAA\"`.\nIf your query uses both `AND` and `OR`, group them with parentheses.\nFor example, the following queries are valid: \n\n user.name = \"users/{user}\"\n emoji.unicode = \"🙂\"\n emoji.custom_emoji.uid = \"{uid}\"\n emoji.unicode = \"🙂\" OR emoji.unicode = \"👍\"\n emoji.unicode = \"🙂\" OR emoji.custom_emoji.uid = \"{uid}\"\n emoji.unicode = \"🙂\" AND user.name = \"users/{user}\"\n (emoji.unicode = \"🙂\" OR emoji.custom_emoji.uid = \"{uid}\")\n AND user.name = \"users/{user}\"\n\nThe following queries are invalid: \n\n emoji.unicode = \"🙂\" AND emoji.unicode = \"👍\"\n emoji.unicode = \"🙂\" AND emoji.custom_emoji.uid = \"{uid}\"\n emoji.unicode = \"🙂\" OR user.name = \"users/{user}\"\n emoji.unicode = \"🙂\" OR emoji.custom_emoji.uid = \"{uid}\" OR\n user.name = \"users/{user}\"\n emoji.unicode = \"🙂\" OR emoji.custom_emoji.uid = \"{uid}\"\n AND user.name = \"users/{user}\"\n\nInvalid queries are rejected with an `INVALID_ARGUMENT` error.\n\n### static::build"]]