@@ -42,20 +42,23 @@ public final class SearchMessagesRequest extends com.google.api.client.json.Gene
4242 * `space.display_name`: Supports the operator `:` (has) and filters spaces based on a partial
4343 * match of their display name. Results are limited to the top five space matches. For example,
4444 * `space.display_name:Project` searches for messages in the top five spaces that contain the word
45- * "Project" in their display names. - `attachment`: Supports the operator `:*` (has any) to check
46- * for the presence of attachments. If `attachment:*` is specified, only messages that have at
47- * least one attachment are returned. - `annotations.user_mentions.user.name`: The resource name
48- * of the mentioned user (`users/{user}`). Only supports `:` (has). For example:
45+ * "Project" in their display names. - `space.space_type`: The type of the space. Only supports
46+ * `=`. For example, `space.space_type="DIRECT_MESSAGE"` returns only messages from direct
47+ * messages. The possible values are `DIRECT_MESSAGE`, `GROUP_CHAT`, and `SPACE`. - `attachment`:
48+ * Supports the operator `:*` (has any) to check for the presence of attachments. If
49+ * `attachment:*` is specified, only messages that have at least one attachment are returned. -
50+ * `annotations.user_mentions.user.name`: The resource name of the mentioned user
51+ * (`users/{user}`). Only supports `:` (has). For example:
4952 * `annotations.user_mentions.user.name:"users/1234567890"` returns only messages that contain a
5053 * mention to the specified user. Alternatively, the alias `me` can be used to filter for messages
5154 * that mention the caller user, for example: `annotations.user_mentions.user.name:users/me`. You
5255 * can also use the e-mail as an alias for `{user}`, for example, `users/example@gmail.com`. For
5356 * advanced filtering, the following functions are also available: - `has_link()`: Returns only
5457 * messages that have at least one hyperlink in the message text. - `is_unread()`: Filters out
55- * messages that have been read by the calling user. Using the `space.display_name` filter
56- * requires that the calling credentials include one of the following [authorization
57- * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): -
58- * `https://www.googleapis.com/auth/chat.spaces.readonly` -
58+ * messages that have been read by the calling user. Using the `space.display_name` or the
59+ * `space.space_type` filters requires that the calling credentials include one of the following
60+ * [authorization scopes](https://developers.google.com/workspace/chat/authenticate-
61+ * authorize#chat-api-scopes): - `https://www.googleapis.com/auth/chat.spaces.readonly` -
5962 * `https://www.googleapis.com/auth/chat.spaces` Using the `is_unread()` filter requires that the
6063 * calling credentials include one of the following [authorization
6164 * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): -
@@ -74,9 +77,11 @@ public final class SearchMessagesRequest extends com.google.api.client.json.Gene
7477 * but not a mix of both. For example: `space.display_name:Project AND space.display_name:Tasks`
7578 * returns messages that are in spaces with display names containing both `Project` and `Tasks`,
7679 * whereas `space.display_name:Project OR space.display_name:Tasks` returns messages that are in
77- * spaces with display names containing either `Project` or `Tasks` or both. -
78- * `annotations.user_mentions.user.name` supports the operators `AND` and `OR`, but not a mix of
79- * both. For example: `annotations.user_mentions.user.name:"users/1234567890" AND
80+ * spaces with display names containing either `Project` or `Tasks` or both. - `space.space_type`
81+ * supports only the `OR` operator, for example: `space.space_type = "DIRECT_MESSAGE" OR
82+ * space.space_type = "GROUP_CHAT"`. - `annotations.user_mentions.user.name` supports the
83+ * operators `AND` and `OR`, but not a mix of both. For example:
84+ * `annotations.user_mentions.user.name:"users/1234567890" AND
8085 * annotations.user_mentions.user.name:"users/0987654321"` returns only messages that mentions
8186 * both users, whereas `annotations.user_mentions.user.name:"users/1234567890" OR
8287 * annotations.user_mentions.user.name:"users/0987654321"` returns messages that mention either
@@ -155,20 +160,23 @@ public final class SearchMessagesRequest extends com.google.api.client.json.Gene
155160 * `space.display_name`: Supports the operator `:` (has) and filters spaces based on a partial
156161 * match of their display name. Results are limited to the top five space matches. For example,
157162 * `space.display_name:Project` searches for messages in the top five spaces that contain the word
158- * "Project" in their display names. - `attachment`: Supports the operator `:*` (has any) to check
159- * for the presence of attachments. If `attachment:*` is specified, only messages that have at
160- * least one attachment are returned. - `annotations.user_mentions.user.name`: The resource name
161- * of the mentioned user (`users/{user}`). Only supports `:` (has). For example:
163+ * "Project" in their display names. - `space.space_type`: The type of the space. Only supports
164+ * `=`. For example, `space.space_type="DIRECT_MESSAGE"` returns only messages from direct
165+ * messages. The possible values are `DIRECT_MESSAGE`, `GROUP_CHAT`, and `SPACE`. - `attachment`:
166+ * Supports the operator `:*` (has any) to check for the presence of attachments. If
167+ * `attachment:*` is specified, only messages that have at least one attachment are returned. -
168+ * `annotations.user_mentions.user.name`: The resource name of the mentioned user
169+ * (`users/{user}`). Only supports `:` (has). For example:
162170 * `annotations.user_mentions.user.name:"users/1234567890"` returns only messages that contain a
163171 * mention to the specified user. Alternatively, the alias `me` can be used to filter for messages
164172 * that mention the caller user, for example: `annotations.user_mentions.user.name:users/me`. You
165173 * can also use the e-mail as an alias for `{user}`, for example, `users/example@gmail.com`. For
166174 * advanced filtering, the following functions are also available: - `has_link()`: Returns only
167175 * messages that have at least one hyperlink in the message text. - `is_unread()`: Filters out
168- * messages that have been read by the calling user. Using the `space.display_name` filter
169- * requires that the calling credentials include one of the following [authorization
170- * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): -
171- * `https://www.googleapis.com/auth/chat.spaces.readonly` -
176+ * messages that have been read by the calling user. Using the `space.display_name` or the
177+ * `space.space_type` filters requires that the calling credentials include one of the following
178+ * [authorization scopes](https://developers.google.com/workspace/chat/authenticate-
179+ * authorize#chat-api-scopes): - `https://www.googleapis.com/auth/chat.spaces.readonly` -
172180 * `https://www.googleapis.com/auth/chat.spaces` Using the `is_unread()` filter requires that the
173181 * calling credentials include one of the following [authorization
174182 * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): -
@@ -187,9 +195,11 @@ public final class SearchMessagesRequest extends com.google.api.client.json.Gene
187195 * but not a mix of both. For example: `space.display_name:Project AND space.display_name:Tasks`
188196 * returns messages that are in spaces with display names containing both `Project` and `Tasks`,
189197 * whereas `space.display_name:Project OR space.display_name:Tasks` returns messages that are in
190- * spaces with display names containing either `Project` or `Tasks` or both. -
191- * `annotations.user_mentions.user.name` supports the operators `AND` and `OR`, but not a mix of
192- * both. For example: `annotations.user_mentions.user.name:"users/1234567890" AND
198+ * spaces with display names containing either `Project` or `Tasks` or both. - `space.space_type`
199+ * supports only the `OR` operator, for example: `space.space_type = "DIRECT_MESSAGE" OR
200+ * space.space_type = "GROUP_CHAT"`. - `annotations.user_mentions.user.name` supports the
201+ * operators `AND` and `OR`, but not a mix of both. For example:
202+ * `annotations.user_mentions.user.name:"users/1234567890" AND
193203 * annotations.user_mentions.user.name:"users/0987654321"` returns only messages that mentions
194204 * both users, whereas `annotations.user_mentions.user.name:"users/1234567890" OR
195205 * annotations.user_mentions.user.name:"users/0987654321"` returns messages that mention either
@@ -223,20 +233,23 @@ public java.lang.String getFilter() {
223233 * `space.display_name`: Supports the operator `:` (has) and filters spaces based on a partial
224234 * match of their display name. Results are limited to the top five space matches. For example,
225235 * `space.display_name:Project` searches for messages in the top five spaces that contain the word
226- * "Project" in their display names. - `attachment`: Supports the operator `:*` (has any) to check
227- * for the presence of attachments. If `attachment:*` is specified, only messages that have at
228- * least one attachment are returned. - `annotations.user_mentions.user.name`: The resource name
229- * of the mentioned user (`users/{user}`). Only supports `:` (has). For example:
236+ * "Project" in their display names. - `space.space_type`: The type of the space. Only supports
237+ * `=`. For example, `space.space_type="DIRECT_MESSAGE"` returns only messages from direct
238+ * messages. The possible values are `DIRECT_MESSAGE`, `GROUP_CHAT`, and `SPACE`. - `attachment`:
239+ * Supports the operator `:*` (has any) to check for the presence of attachments. If
240+ * `attachment:*` is specified, only messages that have at least one attachment are returned. -
241+ * `annotations.user_mentions.user.name`: The resource name of the mentioned user
242+ * (`users/{user}`). Only supports `:` (has). For example:
230243 * `annotations.user_mentions.user.name:"users/1234567890"` returns only messages that contain a
231244 * mention to the specified user. Alternatively, the alias `me` can be used to filter for messages
232245 * that mention the caller user, for example: `annotations.user_mentions.user.name:users/me`. You
233246 * can also use the e-mail as an alias for `{user}`, for example, `users/example@gmail.com`. For
234247 * advanced filtering, the following functions are also available: - `has_link()`: Returns only
235248 * messages that have at least one hyperlink in the message text. - `is_unread()`: Filters out
236- * messages that have been read by the calling user. Using the `space.display_name` filter
237- * requires that the calling credentials include one of the following [authorization
238- * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): -
239- * `https://www.googleapis.com/auth/chat.spaces.readonly` -
249+ * messages that have been read by the calling user. Using the `space.display_name` or the
250+ * `space.space_type` filters requires that the calling credentials include one of the following
251+ * [authorization scopes](https://developers.google.com/workspace/chat/authenticate-
252+ * authorize#chat-api-scopes): - `https://www.googleapis.com/auth/chat.spaces.readonly` -
240253 * `https://www.googleapis.com/auth/chat.spaces` Using the `is_unread()` filter requires that the
241254 * calling credentials include one of the following [authorization
242255 * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): -
@@ -255,9 +268,11 @@ public java.lang.String getFilter() {
255268 * but not a mix of both. For example: `space.display_name:Project AND space.display_name:Tasks`
256269 * returns messages that are in spaces with display names containing both `Project` and `Tasks`,
257270 * whereas `space.display_name:Project OR space.display_name:Tasks` returns messages that are in
258- * spaces with display names containing either `Project` or `Tasks` or both. -
259- * `annotations.user_mentions.user.name` supports the operators `AND` and `OR`, but not a mix of
260- * both. For example: `annotations.user_mentions.user.name:"users/1234567890" AND
271+ * spaces with display names containing either `Project` or `Tasks` or both. - `space.space_type`
272+ * supports only the `OR` operator, for example: `space.space_type = "DIRECT_MESSAGE" OR
273+ * space.space_type = "GROUP_CHAT"`. - `annotations.user_mentions.user.name` supports the
274+ * operators `AND` and `OR`, but not a mix of both. For example:
275+ * `annotations.user_mentions.user.name:"users/1234567890" AND
261276 * annotations.user_mentions.user.name:"users/0987654321"` returns only messages that mentions
262277 * both users, whereas `annotations.user_mentions.user.name:"users/1234567890" OR
263278 * annotations.user_mentions.user.name:"users/0987654321"` returns messages that mention either
0 commit comments