You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<pre>Legacy path for creating message. Calling these will result in a BadRequest response.
92
92
93
93
Args:
@@ -1372,26 +1372,34 @@ <h3>Method Details</h3>
1372
1372
"slashCommand": { # A [slash command](https://developers.google.com/chat/how-tos/slash-commands) in Google Chat. # Output only. Slash command information, if applicable.
1373
1373
"commandId": "A String", # The id of the slash command invoked.
1374
1374
},
1375
-
"space": { # A space in Google Chat. Spaces are conversations between two or more users or 1:1 messages between a user and a Chat app. # The space the message belongs to.
1375
+
"space": { # A space in Google Chat. Spaces are conversations between two or more users or 1:1 messages between a user and a Chat app. # The space the message belongs to. When accessed with [user authentication](https://developers.google.com/chat/api/guides/auth/users), only the name of the Space is populated.
1376
1376
"displayName": "A String", # The space's display name. For direct messages between humans, this field might be empty.
1377
1377
"name": "A String", # Resource name of the space. Format: spaces/{space}
1378
1378
"singleUserBotDm": True or False, # Optional. Whether the space is a DM between a Chat app and a single human.
1379
1379
"spaceDetails": { # Details about the space including description and rules. # Details about the space including description and rules.
1380
1380
"description": "A String", # Optional. A description of the space. It could describe the space's discussion topic, functional purpose, or participants.
1381
1381
"guidelines": "A String", # Optional. The space's rules, expectations, and etiquette.
1382
1382
},
1383
-
"threaded": True or False, # Output only. Whether messages are threaded in this space.
1383
+
"spaceThreadingState": "A String", # Output only. The threading state in the Chat space.
1384
+
"threaded": True or False, # Output only. Deprecated: Use `spaceThreadingState` instead. Whether messages are threaded in this space.
1384
1385
"type": "A String", # Output only. Deprecated: Use `singleUserBotDm` or `spaceType` (developer preview) instead. The type of a space.
1385
1386
},
1386
1387
"text": "A String", # Plain-text body of the message. The first link to an image, video, web page, or other preview-able item generates a preview chip.
1387
-
"thread": { # A thread in Google Chat. # The thread the message belongs to.
1388
-
"name": "A String", # Resource name, in the form "spaces/*/threads/*". Example: spaces/AAAAAAAAAAA/threads/TTTTTTTTTTT
1388
+
"thread": { # A thread in Google Chat. # The thread the message belongs to. For example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
1389
+
"name": "A String", # Resource name of the thread. Example: spaces/{space}/threads/{thread}
1390
+
"threadKey": "A String", # Optional. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread). For other requests, this is an output only field.
1389
1391
},
1392
+
"threadReply": True or False, # Output only. When `true`, the message is a response in a reply thread. When `false`, the message is visible in the space's top-level conversation as either the first message of a thread or a message with no threaded replies. If the space doesn't support reply in threads, this field is always `false`.
1390
1393
}
1391
1394
1392
1395
messageId: string, Optional. A custom name for a Chat message assigned at creation. Must start with `client-` and contain only lowercase letters, numbers, and hyphens up to 63 characters in length. Specify this field to get, update, or delete the message with the specified value. For example usage, see [Name a created message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).
1396
+
messageReplyOption: string, Optional. Specifies whether a message starts a thread or replies to one. Only supported in named spaces.
1397
+
Allowed values
1398
+
MESSAGE_REPLY_OPTION_UNSPECIFIED - Default. Starts a thread.
1399
+
REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD - Creates the message as a reply to the thread specified by thread ID or thread_key. If it fails, the message starts a new thread instead.
1400
+
REPLY_MESSAGE_OR_FAIL - Creates the message as a reply to the thread specified by thread ID or thread_key. If it fails, a NOT_FOUND error is returned instead.
1393
1401
requestId: string, Optional. A unique request ID for this message. Specifying an existing request ID returns the message created with that ID instead of creating a new message.
1394
-
threadKey: string, Optional. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` instead of thread.name. (Setting thread.name has no effect.) The first message with a given `threadKey` starts a new thread. Subsequent messages with the same `threadKey` post into the same thread.
1402
+
threadKey: string, Optional. Deprecated: Use thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
1395
1403
x__xgafv: string, V1 error format.
1396
1404
Allowed values
1397
1405
1 - v1 error format
@@ -2677,21 +2685,24 @@ <h3>Method Details</h3>
2677
2685
"slashCommand": { # A [slash command](https://developers.google.com/chat/how-tos/slash-commands) in Google Chat. # Output only. Slash command information, if applicable.
2678
2686
"commandId": "A String", # The id of the slash command invoked.
2679
2687
},
2680
-
"space": { # A space in Google Chat. Spaces are conversations between two or more users or 1:1 messages between a user and a Chat app. # The space the message belongs to.
2688
+
"space": { # A space in Google Chat. Spaces are conversations between two or more users or 1:1 messages between a user and a Chat app. # The space the message belongs to. When accessed with [user authentication](https://developers.google.com/chat/api/guides/auth/users), only the name of the Space is populated.
2681
2689
"displayName": "A String", # The space's display name. For direct messages between humans, this field might be empty.
2682
2690
"name": "A String", # Resource name of the space. Format: spaces/{space}
2683
2691
"singleUserBotDm": True or False, # Optional. Whether the space is a DM between a Chat app and a single human.
2684
2692
"spaceDetails": { # Details about the space including description and rules. # Details about the space including description and rules.
2685
2693
"description": "A String", # Optional. A description of the space. It could describe the space's discussion topic, functional purpose, or participants.
2686
2694
"guidelines": "A String", # Optional. The space's rules, expectations, and etiquette.
2687
2695
},
2688
-
"threaded": True or False, # Output only. Whether messages are threaded in this space.
2696
+
"spaceThreadingState": "A String", # Output only. The threading state in the Chat space.
2697
+
"threaded": True or False, # Output only. Deprecated: Use `spaceThreadingState` instead. Whether messages are threaded in this space.
2689
2698
"type": "A String", # Output only. Deprecated: Use `singleUserBotDm` or `spaceType` (developer preview) instead. The type of a space.
2690
2699
},
2691
2700
"text": "A String", # Plain-text body of the message. The first link to an image, video, web page, or other preview-able item generates a preview chip.
2692
-
"thread": { # A thread in Google Chat. # The thread the message belongs to.
2693
-
"name": "A String", # Resource name, in the form "spaces/*/threads/*". Example: spaces/AAAAAAAAAAA/threads/TTTTTTTTTTT
2701
+
"thread": { # A thread in Google Chat. # The thread the message belongs to. For example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
2702
+
"name": "A String", # Resource name of the thread. Example: spaces/{space}/threads/{thread}
2703
+
"threadKey": "A String", # Optional. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread). For other requests, this is an output only field.
2694
2704
},
2705
+
"threadReply": True or False, # Output only. When `true`, the message is a response in a reply thread. When `false`, the message is visible in the space's top-level conversation as either the first message of a thread or a message with no threaded replies. If the space doesn't support reply in threads, this field is always `false`.
0 commit comments