blob: 4ab60ccedd11f0493a3ce959270563ad951f5870 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="chat_v1.html">Hangouts Chat API</a> . <a href="chat_v1.spaces.html">spaces</a> . <a href="chat_v1.spaces.messages.html">messages</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#create">create(parent, body=None, threadKey=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070079<p class="firstline">Creates a message.</p>
80<p class="toc_element">
81 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
82<p class="firstline">Deletes a message.</p>
83<p class="toc_element">
84 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
85<p class="firstline">Returns a message.</p>
86<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070087 <code><a href="#update">update(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070088<p class="firstline">Updates a message.</p>
89<h3>Method Details</h3>
90<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -070091 <code class="details" id="create">create(parent, body=None, threadKey=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070092 <pre>Creates a message.
93
94Args:
Bu Sun Kim65020912020-05-20 12:08:20 -070095 parent: string, Required. Space resource name, in the form &quot;spaces/*&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070096Example: spaces/AAAAMpdlehY (required)
Dan O'Mearadd494642020-05-01 07:42:23 -070097 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070098 The object takes the form of:
99
100{ # A message in Hangouts Chat.
Bu Sun Kim65020912020-05-20 12:08:20 -0700101 &quot;cards&quot;: [ # Rich, formatted and interactive cards that can be used to display UI
102 # elements such as: formatted texts, buttons, clickable images. Cards are
103 # normally displayed below the plain-text body of the message.
104 { # A card is a UI element that can contain UI widgets such as texts, images.
105 &quot;sections&quot;: [ # Sections are separated by a line divider.
106 { # A section contains a collection of widgets that are rendered
107 # (vertically) in the order that they are specified. Across all platforms,
108 # cards have a narrow fixed width, so
109 # there is currently no need for layout properties (e.g. float).
110 &quot;header&quot;: &quot;A String&quot;, # The header of the section, text formatted supported.
111 &quot;widgets&quot;: [ # A section must contain at least 1 widget.
112 { # A widget is a UI element that presents texts, images, etc.
113 &quot;textParagraph&quot;: { # A paragraph of text. Formatted text supported. # Display a text paragraph in this widget.
114 &quot;text&quot;: &quot;A String&quot;,
115 },
116 &quot;keyValue&quot;: { # A UI element contains a key (label) and a value (content). And this # Display a key value item in this widget.
117 # element may also contain some actions such as onclick button.
118 &quot;topLabel&quot;: &quot;A String&quot;, # The text of the top label. Formatted text supported.
119 &quot;iconUrl&quot;: &quot;A String&quot;, # The icon specified by a URL.
120 &quot;content&quot;: &quot;A String&quot;, # The text of the content. Formatted text supported and always required.
121 &quot;button&quot;: { # A button. Can be a text button or an image button. # A button that can be clicked to trigger an action.
122 &quot;textButton&quot;: { # A button with text and onclick action. # A button with text and onclick action.
123 &quot;text&quot;: &quot;A String&quot;, # The text of the button.
124 &quot;onClick&quot;: { # An onclick action (e.g. open a link). # The onclick action of the button.
125 &quot;openLink&quot;: { # A link that opens a new window. # This onclick triggers an open link action if specified.
126 &quot;url&quot;: &quot;A String&quot;, # The URL to open.
127 },
128 &quot;action&quot;: { # A form action describes the behavior when the form is submitted. # A form action will be trigger by this onclick if specified.
129 # For example, an Apps Script can be invoked to handle the form.
130 &quot;actionMethodName&quot;: &quot;A String&quot;, # The method name is used to identify which part of the form triggered the
131 # form submission. This information is echoed back to the bot as part of
132 # the card click event. The same method name can be used for several
133 # elements that trigger a common behavior if desired.
134 &quot;parameters&quot;: [ # List of action parameters.
135 { # List of string parameters to supply when the action method is invoked.
136 # For example, consider three snooze buttons: snooze now, snooze 1 day,
137 # snooze next week. You might use action method = snooze(), passing the
138 # snooze type and snooze time in the list of string parameters.
139 &quot;key&quot;: &quot;A String&quot;, # The name of the parameter for the action script.
140 &quot;value&quot;: &quot;A String&quot;, # The value of the parameter.
141 },
142 ],
143 },
144 },
Dan O'Mearadd494642020-05-01 07:42:23 -0700145 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700146 &quot;imageButton&quot;: { # An image button with an onclick action. # A button with image and onclick action.
147 &quot;icon&quot;: &quot;A String&quot;, # The icon specified by an enum that indices to an icon provided by Chat
148 # API.
149 &quot;onClick&quot;: { # An onclick action (e.g. open a link). # The onclick action.
150 &quot;openLink&quot;: { # A link that opens a new window. # This onclick triggers an open link action if specified.
151 &quot;url&quot;: &quot;A String&quot;, # The URL to open.
152 },
153 &quot;action&quot;: { # A form action describes the behavior when the form is submitted. # A form action will be trigger by this onclick if specified.
154 # For example, an Apps Script can be invoked to handle the form.
155 &quot;actionMethodName&quot;: &quot;A String&quot;, # The method name is used to identify which part of the form triggered the
156 # form submission. This information is echoed back to the bot as part of
157 # the card click event. The same method name can be used for several
158 # elements that trigger a common behavior if desired.
159 &quot;parameters&quot;: [ # List of action parameters.
160 { # List of string parameters to supply when the action method is invoked.
161 # For example, consider three snooze buttons: snooze now, snooze 1 day,
162 # snooze next week. You might use action method = snooze(), passing the
163 # snooze type and snooze time in the list of string parameters.
164 &quot;key&quot;: &quot;A String&quot;, # The name of the parameter for the action script.
165 &quot;value&quot;: &quot;A String&quot;, # The value of the parameter.
166 },
167 ],
168 },
169 },
170 &quot;iconUrl&quot;: &quot;A String&quot;, # The icon specified by a URL.
171 &quot;name&quot;: &quot;A String&quot;, # The name of this image_button which will be used for accessibility.
172 # Default value will be provided if developers don&#x27;t specify.
173 },
174 },
175 &quot;bottomLabel&quot;: &quot;A String&quot;, # The text of the bottom label. Formatted text supported.
176 &quot;icon&quot;: &quot;A String&quot;, # An enum value that will be replaced by the Chat API with the
177 # corresponding icon image.
178 &quot;onClick&quot;: { # An onclick action (e.g. open a link). # The onclick action. Only the top label, bottom label and content region
179 # are clickable.
180 &quot;openLink&quot;: { # A link that opens a new window. # This onclick triggers an open link action if specified.
181 &quot;url&quot;: &quot;A String&quot;, # The URL to open.
182 },
183 &quot;action&quot;: { # A form action describes the behavior when the form is submitted. # A form action will be trigger by this onclick if specified.
184 # For example, an Apps Script can be invoked to handle the form.
185 &quot;actionMethodName&quot;: &quot;A String&quot;, # The method name is used to identify which part of the form triggered the
186 # form submission. This information is echoed back to the bot as part of
187 # the card click event. The same method name can be used for several
188 # elements that trigger a common behavior if desired.
189 &quot;parameters&quot;: [ # List of action parameters.
190 { # List of string parameters to supply when the action method is invoked.
191 # For example, consider three snooze buttons: snooze now, snooze 1 day,
192 # snooze next week. You might use action method = snooze(), passing the
193 # snooze type and snooze time in the list of string parameters.
194 &quot;key&quot;: &quot;A String&quot;, # The name of the parameter for the action script.
195 &quot;value&quot;: &quot;A String&quot;, # The value of the parameter.
196 },
197 ],
198 },
199 },
200 &quot;contentMultiline&quot;: True or False, # If the content should be multiline.
Dan O'Mearadd494642020-05-01 07:42:23 -0700201 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700202 &quot;image&quot;: { # An image that is specified by a URL and can have an onclick action. # Display an image in this widget.
203 &quot;aspectRatio&quot;: 3.14, # The aspect ratio of this image (width/height). This field allows clients
204 # to reserve the right height for the image while waiting for it to load.
205 # It&#x27;s not meant to override the native aspect ratio of the image.
206 # If unset, the server fills it by prefetching the image.
207 &quot;imageUrl&quot;: &quot;A String&quot;, # The URL of the image.
208 &quot;onClick&quot;: { # An onclick action (e.g. open a link). # The onclick action.
209 &quot;openLink&quot;: { # A link that opens a new window. # This onclick triggers an open link action if specified.
210 &quot;url&quot;: &quot;A String&quot;, # The URL to open.
211 },
212 &quot;action&quot;: { # A form action describes the behavior when the form is submitted. # A form action will be trigger by this onclick if specified.
213 # For example, an Apps Script can be invoked to handle the form.
214 &quot;actionMethodName&quot;: &quot;A String&quot;, # The method name is used to identify which part of the form triggered the
215 # form submission. This information is echoed back to the bot as part of
216 # the card click event. The same method name can be used for several
217 # elements that trigger a common behavior if desired.
218 &quot;parameters&quot;: [ # List of action parameters.
219 { # List of string parameters to supply when the action method is invoked.
220 # For example, consider three snooze buttons: snooze now, snooze 1 day,
221 # snooze next week. You might use action method = snooze(), passing the
222 # snooze type and snooze time in the list of string parameters.
223 &quot;key&quot;: &quot;A String&quot;, # The name of the parameter for the action script.
224 &quot;value&quot;: &quot;A String&quot;, # The value of the parameter.
225 },
226 ],
227 },
228 },
Dan O'Mearadd494642020-05-01 07:42:23 -0700229 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700230 &quot;buttons&quot;: [ # A list of buttons. Buttons is also oneof data and only one of these
231 # fields should be set.
232 { # A button. Can be a text button or an image button.
233 &quot;textButton&quot;: { # A button with text and onclick action. # A button with text and onclick action.
234 &quot;text&quot;: &quot;A String&quot;, # The text of the button.
235 &quot;onClick&quot;: { # An onclick action (e.g. open a link). # The onclick action of the button.
236 &quot;openLink&quot;: { # A link that opens a new window. # This onclick triggers an open link action if specified.
237 &quot;url&quot;: &quot;A String&quot;, # The URL to open.
238 },
239 &quot;action&quot;: { # A form action describes the behavior when the form is submitted. # A form action will be trigger by this onclick if specified.
240 # For example, an Apps Script can be invoked to handle the form.
241 &quot;actionMethodName&quot;: &quot;A String&quot;, # The method name is used to identify which part of the form triggered the
242 # form submission. This information is echoed back to the bot as part of
243 # the card click event. The same method name can be used for several
244 # elements that trigger a common behavior if desired.
245 &quot;parameters&quot;: [ # List of action parameters.
246 { # List of string parameters to supply when the action method is invoked.
247 # For example, consider three snooze buttons: snooze now, snooze 1 day,
248 # snooze next week. You might use action method = snooze(), passing the
249 # snooze type and snooze time in the list of string parameters.
250 &quot;key&quot;: &quot;A String&quot;, # The name of the parameter for the action script.
251 &quot;value&quot;: &quot;A String&quot;, # The value of the parameter.
252 },
253 ],
254 },
255 },
256 },
257 &quot;imageButton&quot;: { # An image button with an onclick action. # A button with image and onclick action.
258 &quot;icon&quot;: &quot;A String&quot;, # The icon specified by an enum that indices to an icon provided by Chat
259 # API.
260 &quot;onClick&quot;: { # An onclick action (e.g. open a link). # The onclick action.
261 &quot;openLink&quot;: { # A link that opens a new window. # This onclick triggers an open link action if specified.
262 &quot;url&quot;: &quot;A String&quot;, # The URL to open.
263 },
264 &quot;action&quot;: { # A form action describes the behavior when the form is submitted. # A form action will be trigger by this onclick if specified.
265 # For example, an Apps Script can be invoked to handle the form.
266 &quot;actionMethodName&quot;: &quot;A String&quot;, # The method name is used to identify which part of the form triggered the
267 # form submission. This information is echoed back to the bot as part of
268 # the card click event. The same method name can be used for several
269 # elements that trigger a common behavior if desired.
270 &quot;parameters&quot;: [ # List of action parameters.
271 { # List of string parameters to supply when the action method is invoked.
272 # For example, consider three snooze buttons: snooze now, snooze 1 day,
273 # snooze next week. You might use action method = snooze(), passing the
274 # snooze type and snooze time in the list of string parameters.
275 &quot;key&quot;: &quot;A String&quot;, # The name of the parameter for the action script.
276 &quot;value&quot;: &quot;A String&quot;, # The value of the parameter.
277 },
278 ],
279 },
280 },
281 &quot;iconUrl&quot;: &quot;A String&quot;, # The icon specified by a URL.
282 &quot;name&quot;: &quot;A String&quot;, # The name of this image_button which will be used for accessibility.
283 # Default value will be provided if developers don&#x27;t specify.
284 },
285 },
286 ],
287 },
288 ],
289 },
290 ],
291 &quot;cardActions&quot;: [ # The actions of this card.
292 { # A card action is
293 # the action associated with the card. For an invoice card, a
294 # typical action would be: delete invoice, email invoice or open the
295 # invoice in browser.
296 &quot;actionLabel&quot;: &quot;A String&quot;, # The label used to be displayed in the action menu item.
297 &quot;onClick&quot;: { # An onclick action (e.g. open a link). # The onclick action for this action item.
298 &quot;openLink&quot;: { # A link that opens a new window. # This onclick triggers an open link action if specified.
299 &quot;url&quot;: &quot;A String&quot;, # The URL to open.
300 },
301 &quot;action&quot;: { # A form action describes the behavior when the form is submitted. # A form action will be trigger by this onclick if specified.
302 # For example, an Apps Script can be invoked to handle the form.
303 &quot;actionMethodName&quot;: &quot;A String&quot;, # The method name is used to identify which part of the form triggered the
304 # form submission. This information is echoed back to the bot as part of
305 # the card click event. The same method name can be used for several
306 # elements that trigger a common behavior if desired.
307 &quot;parameters&quot;: [ # List of action parameters.
308 { # List of string parameters to supply when the action method is invoked.
309 # For example, consider three snooze buttons: snooze now, snooze 1 day,
310 # snooze next week. You might use action method = snooze(), passing the
311 # snooze type and snooze time in the list of string parameters.
312 &quot;key&quot;: &quot;A String&quot;, # The name of the parameter for the action script.
313 &quot;value&quot;: &quot;A String&quot;, # The value of the parameter.
314 },
315 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700316 },
317 },
Dan O'Mearadd494642020-05-01 07:42:23 -0700318 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700319 ],
320 &quot;header&quot;: { # The header of the card. A header usually contains a title and an image.
321 &quot;subtitle&quot;: &quot;A String&quot;, # The subtitle of the card header.
322 &quot;imageUrl&quot;: &quot;A String&quot;, # The URL of the image in the card header.
323 &quot;imageStyle&quot;: &quot;A String&quot;, # The image&#x27;s type (e.g. square border or circular border).
324 &quot;title&quot;: &quot;A String&quot;, # The title must be specified. The header has a fixed height: if both a
325 # title and subtitle is specified, each will take up 1 line. If only the
326 # title is specified, it will take up both lines.
Dan O'Mearadd494642020-05-01 07:42:23 -0700327 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700328 &quot;name&quot;: &quot;A String&quot;, # Name of the card.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700329 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700330 ],
331 &quot;sender&quot;: { # A user in Hangouts Chat. # The user who created the message.
332 &quot;type&quot;: &quot;A String&quot;, # User type.
333 &quot;domainId&quot;: &quot;A String&quot;, # Obfuscated domain information.
334 &quot;name&quot;: &quot;A String&quot;, # Resource name, in the format &quot;users/*&quot;.
335 &quot;displayName&quot;: &quot;A String&quot;, # The user&#x27;s display name.
336 },
337 &quot;thread&quot;: { # A thread in Hangouts Chat. # The thread the message belongs to.
338 &quot;name&quot;: &quot;A String&quot;, # Resource name, in the form &quot;spaces/*/threads/*&quot;.
339 #
340 # Example: spaces/AAAAMpdlehY/threads/UMxbHmzDlr4
341 },
342 &quot;annotations&quot;: [ # Output only. Annotations associated with the text in this message.
343 { # Annotations associated with the plain-text body of the message.
344 #
345 # Example plain-text message body:
346 # ```
347 # Hello @FooBot how are you!&quot;
348 # ```
349 #
350 # The corresponding annotations metadata:
351 # ```
352 # &quot;annotations&quot;:[{
353 # &quot;type&quot;:&quot;USER_MENTION&quot;,
354 # &quot;startIndex&quot;:6,
355 # &quot;length&quot;:7,
356 # &quot;userMention&quot;: {
357 # &quot;user&quot;: {
358 # &quot;name&quot;:&quot;users/107946847022116401880&quot;,
359 # &quot;displayName&quot;:&quot;FooBot&quot;,
360 # &quot;avatarUrl&quot;:&quot;https://goo.gl/aeDtrS&quot;,
361 # &quot;type&quot;:&quot;BOT&quot;
362 # },
363 # &quot;type&quot;:&quot;MENTION&quot;
364 # }
365 # }]
366 # ```
367 &quot;type&quot;: &quot;A String&quot;, # The type of this annotation.
368 &quot;length&quot;: 42, # Length of the substring in the plain-text message body this annotation
369 # corresponds to.
370 &quot;startIndex&quot;: 42, # Start index (0-based, inclusive) in the plain-text message body this
371 # annotation corresponds to.
372 &quot;userMention&quot;: { # Annotation metadata for user mentions (@). # The metadata of user mention.
373 &quot;type&quot;: &quot;A String&quot;, # The type of user mention.
374 &quot;user&quot;: { # A user in Hangouts Chat. # The user mentioned.
375 &quot;type&quot;: &quot;A String&quot;, # User type.
376 &quot;domainId&quot;: &quot;A String&quot;, # Obfuscated domain information.
377 &quot;name&quot;: &quot;A String&quot;, # Resource name, in the format &quot;users/*&quot;.
378 &quot;displayName&quot;: &quot;A String&quot;, # The user&#x27;s display name.
379 },
380 },
381 },
382 ],
383 &quot;name&quot;: &quot;A String&quot;, # Resource name, in the form &quot;spaces/*/messages/*&quot;.
384 #
385 # Example: spaces/AAAAMpdlehY/messages/UMxbHmzDlr4.UMxbHmzDlr4
386 &quot;previewText&quot;: &quot;A String&quot;, # Text for generating preview chips. This text will not be displayed to the
387 # user, but any links to images, web pages, videos, etc. included here will
388 # generate preview chips.
389 &quot;space&quot;: { # A room or DM in Hangouts Chat. # The space the message belongs to.
390 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of a space.
391 # This is deprecated. Use `single_user_bot_dm` instead.
392 &quot;singleUserBotDm&quot;: True or False, # Whether the space is a DM between a bot and a single human.
393 &quot;name&quot;: &quot;A String&quot;, # Resource name of the space, in the form &quot;spaces/*&quot;.
394 #
395 # Example: spaces/AAAAMpdlehYs
396 &quot;threaded&quot;: True or False, # Whether the messages are threaded in this space.
397 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name (only if the space is a room).
398 },
399 &quot;text&quot;: &quot;A String&quot;, # Plain-text body of the message.
400 &quot;argumentText&quot;: &quot;A String&quot;, # Plain-text body of the message with all bot mentions stripped out.
401 &quot;fallbackText&quot;: &quot;A String&quot;, # A plain-text description of the message&#x27;s cards, used when the actual cards
402 # cannot be displayed (e.g. mobile notifications).
403 &quot;actionResponse&quot;: { # Parameters that a bot can use to configure how it&#x27;s response is posted. # Input only. Parameters that a bot can use to configure how its response is
404 # posted.
405 &quot;type&quot;: &quot;A String&quot;, # The type of bot response.
406 &quot;url&quot;: &quot;A String&quot;, # URL for users to auth or config. (Only for REQUEST_CONFIG response types.)
407 },
408 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the message was created in Hangouts Chat
409 # server.
410}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700411
412 threadKey: string, Opaque thread identifier string that can be specified to group messages
413into a single thread. If this is the first message with a given thread
414identifier, a new thread is created. Subsequent messages with the same
415thread identifier will be posted into the same thread. This relieves bots
416and webhooks from having to store the Hangouts Chat thread ID of a thread (created earlier by them) to post
417further updates to it.
418
419Has no effect if thread field,
420corresponding to an existing thread, is set in message.
421 x__xgafv: string, V1 error format.
422 Allowed values
423 1 - v1 error format
424 2 - v2 error format
425
426Returns:
427 An object of the form:
428
429 { # A message in Hangouts Chat.
Bu Sun Kim65020912020-05-20 12:08:20 -0700430 &quot;cards&quot;: [ # Rich, formatted and interactive cards that can be used to display UI
431 # elements such as: formatted texts, buttons, clickable images. Cards are
432 # normally displayed below the plain-text body of the message.
433 { # A card is a UI element that can contain UI widgets such as texts, images.
434 &quot;sections&quot;: [ # Sections are separated by a line divider.
435 { # A section contains a collection of widgets that are rendered
436 # (vertically) in the order that they are specified. Across all platforms,
437 # cards have a narrow fixed width, so
438 # there is currently no need for layout properties (e.g. float).
439 &quot;header&quot;: &quot;A String&quot;, # The header of the section, text formatted supported.
440 &quot;widgets&quot;: [ # A section must contain at least 1 widget.
441 { # A widget is a UI element that presents texts, images, etc.
442 &quot;textParagraph&quot;: { # A paragraph of text. Formatted text supported. # Display a text paragraph in this widget.
443 &quot;text&quot;: &quot;A String&quot;,
444 },
445 &quot;keyValue&quot;: { # A UI element contains a key (label) and a value (content). And this # Display a key value item in this widget.
446 # element may also contain some actions such as onclick button.
447 &quot;topLabel&quot;: &quot;A String&quot;, # The text of the top label. Formatted text supported.
448 &quot;iconUrl&quot;: &quot;A String&quot;, # The icon specified by a URL.
449 &quot;content&quot;: &quot;A String&quot;, # The text of the content. Formatted text supported and always required.
450 &quot;button&quot;: { # A button. Can be a text button or an image button. # A button that can be clicked to trigger an action.
451 &quot;textButton&quot;: { # A button with text and onclick action. # A button with text and onclick action.
452 &quot;text&quot;: &quot;A String&quot;, # The text of the button.
453 &quot;onClick&quot;: { # An onclick action (e.g. open a link). # The onclick action of the button.
454 &quot;openLink&quot;: { # A link that opens a new window. # This onclick triggers an open link action if specified.
455 &quot;url&quot;: &quot;A String&quot;, # The URL to open.
456 },
457 &quot;action&quot;: { # A form action describes the behavior when the form is submitted. # A form action will be trigger by this onclick if specified.
458 # For example, an Apps Script can be invoked to handle the form.
459 &quot;actionMethodName&quot;: &quot;A String&quot;, # The method name is used to identify which part of the form triggered the
460 # form submission. This information is echoed back to the bot as part of
461 # the card click event. The same method name can be used for several
462 # elements that trigger a common behavior if desired.
463 &quot;parameters&quot;: [ # List of action parameters.
464 { # List of string parameters to supply when the action method is invoked.
465 # For example, consider three snooze buttons: snooze now, snooze 1 day,
466 # snooze next week. You might use action method = snooze(), passing the
467 # snooze type and snooze time in the list of string parameters.
468 &quot;key&quot;: &quot;A String&quot;, # The name of the parameter for the action script.
469 &quot;value&quot;: &quot;A String&quot;, # The value of the parameter.
470 },
471 ],
472 },
473 },
Dan O'Mearadd494642020-05-01 07:42:23 -0700474 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700475 &quot;imageButton&quot;: { # An image button with an onclick action. # A button with image and onclick action.
476 &quot;icon&quot;: &quot;A String&quot;, # The icon specified by an enum that indices to an icon provided by Chat
477 # API.
478 &quot;onClick&quot;: { # An onclick action (e.g. open a link). # The onclick action.
479 &quot;openLink&quot;: { # A link that opens a new window. # This onclick triggers an open link action if specified.
480 &quot;url&quot;: &quot;A String&quot;, # The URL to open.
481 },
482 &quot;action&quot;: { # A form action describes the behavior when the form is submitted. # A form action will be trigger by this onclick if specified.
483 # For example, an Apps Script can be invoked to handle the form.
484 &quot;actionMethodName&quot;: &quot;A String&quot;, # The method name is used to identify which part of the form triggered the
485 # form submission. This information is echoed back to the bot as part of
486 # the card click event. The same method name can be used for several
487 # elements that trigger a common behavior if desired.
488 &quot;parameters&quot;: [ # List of action parameters.
489 { # List of string parameters to supply when the action method is invoked.
490 # For example, consider three snooze buttons: snooze now, snooze 1 day,
491 # snooze next week. You might use action method = snooze(), passing the
492 # snooze type and snooze time in the list of string parameters.
493 &quot;key&quot;: &quot;A String&quot;, # The name of the parameter for the action script.
494 &quot;value&quot;: &quot;A String&quot;, # The value of the parameter.
495 },
496 ],
497 },
498 },
499 &quot;iconUrl&quot;: &quot;A String&quot;, # The icon specified by a URL.
500 &quot;name&quot;: &quot;A String&quot;, # The name of this image_button which will be used for accessibility.
501 # Default value will be provided if developers don&#x27;t specify.
502 },
503 },
504 &quot;bottomLabel&quot;: &quot;A String&quot;, # The text of the bottom label. Formatted text supported.
505 &quot;icon&quot;: &quot;A String&quot;, # An enum value that will be replaced by the Chat API with the
506 # corresponding icon image.
507 &quot;onClick&quot;: { # An onclick action (e.g. open a link). # The onclick action. Only the top label, bottom label and content region
508 # are clickable.
509 &quot;openLink&quot;: { # A link that opens a new window. # This onclick triggers an open link action if specified.
510 &quot;url&quot;: &quot;A String&quot;, # The URL to open.
511 },
512 &quot;action&quot;: { # A form action describes the behavior when the form is submitted. # A form action will be trigger by this onclick if specified.
513 # For example, an Apps Script can be invoked to handle the form.
514 &quot;actionMethodName&quot;: &quot;A String&quot;, # The method name is used to identify which part of the form triggered the
515 # form submission. This information is echoed back to the bot as part of
516 # the card click event. The same method name can be used for several
517 # elements that trigger a common behavior if desired.
518 &quot;parameters&quot;: [ # List of action parameters.
519 { # List of string parameters to supply when the action method is invoked.
520 # For example, consider three snooze buttons: snooze now, snooze 1 day,
521 # snooze next week. You might use action method = snooze(), passing the
522 # snooze type and snooze time in the list of string parameters.
523 &quot;key&quot;: &quot;A String&quot;, # The name of the parameter for the action script.
524 &quot;value&quot;: &quot;A String&quot;, # The value of the parameter.
525 },
526 ],
527 },
528 },
529 &quot;contentMultiline&quot;: True or False, # If the content should be multiline.
Dan O'Mearadd494642020-05-01 07:42:23 -0700530 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700531 &quot;image&quot;: { # An image that is specified by a URL and can have an onclick action. # Display an image in this widget.
532 &quot;aspectRatio&quot;: 3.14, # The aspect ratio of this image (width/height). This field allows clients
533 # to reserve the right height for the image while waiting for it to load.
534 # It&#x27;s not meant to override the native aspect ratio of the image.
535 # If unset, the server fills it by prefetching the image.
536 &quot;imageUrl&quot;: &quot;A String&quot;, # The URL of the image.
537 &quot;onClick&quot;: { # An onclick action (e.g. open a link). # The onclick action.
538 &quot;openLink&quot;: { # A link that opens a new window. # This onclick triggers an open link action if specified.
539 &quot;url&quot;: &quot;A String&quot;, # The URL to open.
540 },
541 &quot;action&quot;: { # A form action describes the behavior when the form is submitted. # A form action will be trigger by this onclick if specified.
542 # For example, an Apps Script can be invoked to handle the form.
543 &quot;actionMethodName&quot;: &quot;A String&quot;, # The method name is used to identify which part of the form triggered the
544 # form submission. This information is echoed back to the bot as part of
545 # the card click event. The same method name can be used for several
546 # elements that trigger a common behavior if desired.
547 &quot;parameters&quot;: [ # List of action parameters.
548 { # List of string parameters to supply when the action method is invoked.
549 # For example, consider three snooze buttons: snooze now, snooze 1 day,
550 # snooze next week. You might use action method = snooze(), passing the
551 # snooze type and snooze time in the list of string parameters.
552 &quot;key&quot;: &quot;A String&quot;, # The name of the parameter for the action script.
553 &quot;value&quot;: &quot;A String&quot;, # The value of the parameter.
554 },
555 ],
556 },
557 },
Dan O'Mearadd494642020-05-01 07:42:23 -0700558 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700559 &quot;buttons&quot;: [ # A list of buttons. Buttons is also oneof data and only one of these
560 # fields should be set.
561 { # A button. Can be a text button or an image button.
562 &quot;textButton&quot;: { # A button with text and onclick action. # A button with text and onclick action.
563 &quot;text&quot;: &quot;A String&quot;, # The text of the button.
564 &quot;onClick&quot;: { # An onclick action (e.g. open a link). # The onclick action of the button.
565 &quot;openLink&quot;: { # A link that opens a new window. # This onclick triggers an open link action if specified.
566 &quot;url&quot;: &quot;A String&quot;, # The URL to open.
567 },
568 &quot;action&quot;: { # A form action describes the behavior when the form is submitted. # A form action will be trigger by this onclick if specified.
569 # For example, an Apps Script can be invoked to handle the form.
570 &quot;actionMethodName&quot;: &quot;A String&quot;, # The method name is used to identify which part of the form triggered the
571 # form submission. This information is echoed back to the bot as part of
572 # the card click event. The same method name can be used for several
573 # elements that trigger a common behavior if desired.
574 &quot;parameters&quot;: [ # List of action parameters.
575 { # List of string parameters to supply when the action method is invoked.
576 # For example, consider three snooze buttons: snooze now, snooze 1 day,
577 # snooze next week. You might use action method = snooze(), passing the
578 # snooze type and snooze time in the list of string parameters.
579 &quot;key&quot;: &quot;A String&quot;, # The name of the parameter for the action script.
580 &quot;value&quot;: &quot;A String&quot;, # The value of the parameter.
581 },
582 ],
583 },
584 },
585 },
586 &quot;imageButton&quot;: { # An image button with an onclick action. # A button with image and onclick action.
587 &quot;icon&quot;: &quot;A String&quot;, # The icon specified by an enum that indices to an icon provided by Chat
588 # API.
589 &quot;onClick&quot;: { # An onclick action (e.g. open a link). # The onclick action.
590 &quot;openLink&quot;: { # A link that opens a new window. # This onclick triggers an open link action if specified.
591 &quot;url&quot;: &quot;A String&quot;, # The URL to open.
592 },
593 &quot;action&quot;: { # A form action describes the behavior when the form is submitted. # A form action will be trigger by this onclick if specified.
594 # For example, an Apps Script can be invoked to handle the form.
595 &quot;actionMethodName&quot;: &quot;A String&quot;, # The method name is used to identify which part of the form triggered the
596 # form submission. This information is echoed back to the bot as part of
597 # the card click event. The same method name can be used for several
598 # elements that trigger a common behavior if desired.
599 &quot;parameters&quot;: [ # List of action parameters.
600 { # List of string parameters to supply when the action method is invoked.
601 # For example, consider three snooze buttons: snooze now, snooze 1 day,
602 # snooze next week. You might use action method = snooze(), passing the
603 # snooze type and snooze time in the list of string parameters.
604 &quot;key&quot;: &quot;A String&quot;, # The name of the parameter for the action script.
605 &quot;value&quot;: &quot;A String&quot;, # The value of the parameter.
606 },
607 ],
608 },
609 },
610 &quot;iconUrl&quot;: &quot;A String&quot;, # The icon specified by a URL.
611 &quot;name&quot;: &quot;A String&quot;, # The name of this image_button which will be used for accessibility.
612 # Default value will be provided if developers don&#x27;t specify.
613 },
614 },
615 ],
616 },
617 ],
618 },
619 ],
620 &quot;cardActions&quot;: [ # The actions of this card.
621 { # A card action is
622 # the action associated with the card. For an invoice card, a
623 # typical action would be: delete invoice, email invoice or open the
624 # invoice in browser.
625 &quot;actionLabel&quot;: &quot;A String&quot;, # The label used to be displayed in the action menu item.
626 &quot;onClick&quot;: { # An onclick action (e.g. open a link). # The onclick action for this action item.
627 &quot;openLink&quot;: { # A link that opens a new window. # This onclick triggers an open link action if specified.
628 &quot;url&quot;: &quot;A String&quot;, # The URL to open.
629 },
630 &quot;action&quot;: { # A form action describes the behavior when the form is submitted. # A form action will be trigger by this onclick if specified.
631 # For example, an Apps Script can be invoked to handle the form.
632 &quot;actionMethodName&quot;: &quot;A String&quot;, # The method name is used to identify which part of the form triggered the
633 # form submission. This information is echoed back to the bot as part of
634 # the card click event. The same method name can be used for several
635 # elements that trigger a common behavior if desired.
636 &quot;parameters&quot;: [ # List of action parameters.
637 { # List of string parameters to supply when the action method is invoked.
638 # For example, consider three snooze buttons: snooze now, snooze 1 day,
639 # snooze next week. You might use action method = snooze(), passing the
640 # snooze type and snooze time in the list of string parameters.
641 &quot;key&quot;: &quot;A String&quot;, # The name of the parameter for the action script.
642 &quot;value&quot;: &quot;A String&quot;, # The value of the parameter.
643 },
644 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700645 },
646 },
Dan O'Mearadd494642020-05-01 07:42:23 -0700647 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700648 ],
649 &quot;header&quot;: { # The header of the card. A header usually contains a title and an image.
650 &quot;subtitle&quot;: &quot;A String&quot;, # The subtitle of the card header.
651 &quot;imageUrl&quot;: &quot;A String&quot;, # The URL of the image in the card header.
652 &quot;imageStyle&quot;: &quot;A String&quot;, # The image&#x27;s type (e.g. square border or circular border).
653 &quot;title&quot;: &quot;A String&quot;, # The title must be specified. The header has a fixed height: if both a
654 # title and subtitle is specified, each will take up 1 line. If only the
655 # title is specified, it will take up both lines.
Dan O'Mearadd494642020-05-01 07:42:23 -0700656 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700657 &quot;name&quot;: &quot;A String&quot;, # Name of the card.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700658 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700659 ],
660 &quot;sender&quot;: { # A user in Hangouts Chat. # The user who created the message.
661 &quot;type&quot;: &quot;A String&quot;, # User type.
662 &quot;domainId&quot;: &quot;A String&quot;, # Obfuscated domain information.
663 &quot;name&quot;: &quot;A String&quot;, # Resource name, in the format &quot;users/*&quot;.
664 &quot;displayName&quot;: &quot;A String&quot;, # The user&#x27;s display name.
665 },
666 &quot;thread&quot;: { # A thread in Hangouts Chat. # The thread the message belongs to.
667 &quot;name&quot;: &quot;A String&quot;, # Resource name, in the form &quot;spaces/*/threads/*&quot;.
668 #
669 # Example: spaces/AAAAMpdlehY/threads/UMxbHmzDlr4
670 },
671 &quot;annotations&quot;: [ # Output only. Annotations associated with the text in this message.
672 { # Annotations associated with the plain-text body of the message.
673 #
674 # Example plain-text message body:
675 # ```
676 # Hello @FooBot how are you!&quot;
677 # ```
678 #
679 # The corresponding annotations metadata:
680 # ```
681 # &quot;annotations&quot;:[{
682 # &quot;type&quot;:&quot;USER_MENTION&quot;,
683 # &quot;startIndex&quot;:6,
684 # &quot;length&quot;:7,
685 # &quot;userMention&quot;: {
686 # &quot;user&quot;: {
687 # &quot;name&quot;:&quot;users/107946847022116401880&quot;,
688 # &quot;displayName&quot;:&quot;FooBot&quot;,
689 # &quot;avatarUrl&quot;:&quot;https://goo.gl/aeDtrS&quot;,
690 # &quot;type&quot;:&quot;BOT&quot;
691 # },
692 # &quot;type&quot;:&quot;MENTION&quot;
693 # }
694 # }]
695 # ```
696 &quot;type&quot;: &quot;A String&quot;, # The type of this annotation.
697 &quot;length&quot;: 42, # Length of the substring in the plain-text message body this annotation
698 # corresponds to.
699 &quot;startIndex&quot;: 42, # Start index (0-based, inclusive) in the plain-text message body this
700 # annotation corresponds to.
701 &quot;userMention&quot;: { # Annotation metadata for user mentions (@). # The metadata of user mention.
702 &quot;type&quot;: &quot;A String&quot;, # The type of user mention.
703 &quot;user&quot;: { # A user in Hangouts Chat. # The user mentioned.
704 &quot;type&quot;: &quot;A String&quot;, # User type.
705 &quot;domainId&quot;: &quot;A String&quot;, # Obfuscated domain information.
706 &quot;name&quot;: &quot;A String&quot;, # Resource name, in the format &quot;users/*&quot;.
707 &quot;displayName&quot;: &quot;A String&quot;, # The user&#x27;s display name.
708 },
709 },
710 },
711 ],
712 &quot;name&quot;: &quot;A String&quot;, # Resource name, in the form &quot;spaces/*/messages/*&quot;.
713 #
714 # Example: spaces/AAAAMpdlehY/messages/UMxbHmzDlr4.UMxbHmzDlr4
715 &quot;previewText&quot;: &quot;A String&quot;, # Text for generating preview chips. This text will not be displayed to the
716 # user, but any links to images, web pages, videos, etc. included here will
717 # generate preview chips.
718 &quot;space&quot;: { # A room or DM in Hangouts Chat. # The space the message belongs to.
719 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of a space.
720 # This is deprecated. Use `single_user_bot_dm` instead.
721 &quot;singleUserBotDm&quot;: True or False, # Whether the space is a DM between a bot and a single human.
722 &quot;name&quot;: &quot;A String&quot;, # Resource name of the space, in the form &quot;spaces/*&quot;.
723 #
724 # Example: spaces/AAAAMpdlehYs
725 &quot;threaded&quot;: True or False, # Whether the messages are threaded in this space.
726 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name (only if the space is a room).
727 },
728 &quot;text&quot;: &quot;A String&quot;, # Plain-text body of the message.
729 &quot;argumentText&quot;: &quot;A String&quot;, # Plain-text body of the message with all bot mentions stripped out.
730 &quot;fallbackText&quot;: &quot;A String&quot;, # A plain-text description of the message&#x27;s cards, used when the actual cards
731 # cannot be displayed (e.g. mobile notifications).
732 &quot;actionResponse&quot;: { # Parameters that a bot can use to configure how it&#x27;s response is posted. # Input only. Parameters that a bot can use to configure how its response is
733 # posted.
734 &quot;type&quot;: &quot;A String&quot;, # The type of bot response.
735 &quot;url&quot;: &quot;A String&quot;, # URL for users to auth or config. (Only for REQUEST_CONFIG response types.)
736 },
737 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the message was created in Hangouts Chat
738 # server.
739 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700740</div>
741
742<div class="method">
743 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
744 <pre>Deletes a message.
745
746Args:
747 name: string, Required. Resource name of the message to be deleted, in the form
Bu Sun Kim65020912020-05-20 12:08:20 -0700748&quot;spaces/*/messages/*&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700749
750Example: spaces/AAAAMpdlehY/messages/UMxbHmzDlr4.UMxbHmzDlr4 (required)
751 x__xgafv: string, V1 error format.
752 Allowed values
753 1 - v1 error format
754 2 - v2 error format
755
756Returns:
757 An object of the form:
758
759 { # A generic empty message that you can re-use to avoid defining duplicated
760 # empty messages in your APIs. A typical example is to use it as the request
761 # or the response type of an API method. For instance:
762 #
763 # service Foo {
764 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
765 # }
766 #
767 # The JSON representation for `Empty` is empty JSON object `{}`.
768 }</pre>
769</div>
770
771<div class="method">
772 <code class="details" id="get">get(name, x__xgafv=None)</code>
773 <pre>Returns a message.
774
775Args:
776 name: string, Required. Resource name of the message to be retrieved, in the form
Bu Sun Kim65020912020-05-20 12:08:20 -0700777&quot;spaces/*/messages/*&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700778
779Example: spaces/AAAAMpdlehY/messages/UMxbHmzDlr4.UMxbHmzDlr4 (required)
780 x__xgafv: string, V1 error format.
781 Allowed values
782 1 - v1 error format
783 2 - v2 error format
784
785Returns:
786 An object of the form:
787
788 { # A message in Hangouts Chat.
Bu Sun Kim65020912020-05-20 12:08:20 -0700789 &quot;cards&quot;: [ # Rich, formatted and interactive cards that can be used to display UI
790 # elements such as: formatted texts, buttons, clickable images. Cards are
791 # normally displayed below the plain-text body of the message.
792 { # A card is a UI element that can contain UI widgets such as texts, images.
793 &quot;sections&quot;: [ # Sections are separated by a line divider.
794 { # A section contains a collection of widgets that are rendered
795 # (vertically) in the order that they are specified. Across all platforms,
796 # cards have a narrow fixed width, so
797 # there is currently no need for layout properties (e.g. float).
798 &quot;header&quot;: &quot;A String&quot;, # The header of the section, text formatted supported.
799 &quot;widgets&quot;: [ # A section must contain at least 1 widget.
800 { # A widget is a UI element that presents texts, images, etc.
801 &quot;textParagraph&quot;: { # A paragraph of text. Formatted text supported. # Display a text paragraph in this widget.
802 &quot;text&quot;: &quot;A String&quot;,
803 },
804 &quot;keyValue&quot;: { # A UI element contains a key (label) and a value (content). And this # Display a key value item in this widget.
805 # element may also contain some actions such as onclick button.
806 &quot;topLabel&quot;: &quot;A String&quot;, # The text of the top label. Formatted text supported.
807 &quot;iconUrl&quot;: &quot;A String&quot;, # The icon specified by a URL.
808 &quot;content&quot;: &quot;A String&quot;, # The text of the content. Formatted text supported and always required.
809 &quot;button&quot;: { # A button. Can be a text button or an image button. # A button that can be clicked to trigger an action.
810 &quot;textButton&quot;: { # A button with text and onclick action. # A button with text and onclick action.
811 &quot;text&quot;: &quot;A String&quot;, # The text of the button.
812 &quot;onClick&quot;: { # An onclick action (e.g. open a link). # The onclick action of the button.
813 &quot;openLink&quot;: { # A link that opens a new window. # This onclick triggers an open link action if specified.
814 &quot;url&quot;: &quot;A String&quot;, # The URL to open.
815 },
816 &quot;action&quot;: { # A form action describes the behavior when the form is submitted. # A form action will be trigger by this onclick if specified.
817 # For example, an Apps Script can be invoked to handle the form.
818 &quot;actionMethodName&quot;: &quot;A String&quot;, # The method name is used to identify which part of the form triggered the
819 # form submission. This information is echoed back to the bot as part of
820 # the card click event. The same method name can be used for several
821 # elements that trigger a common behavior if desired.
822 &quot;parameters&quot;: [ # List of action parameters.
823 { # List of string parameters to supply when the action method is invoked.
824 # For example, consider three snooze buttons: snooze now, snooze 1 day,
825 # snooze next week. You might use action method = snooze(), passing the
826 # snooze type and snooze time in the list of string parameters.
827 &quot;key&quot;: &quot;A String&quot;, # The name of the parameter for the action script.
828 &quot;value&quot;: &quot;A String&quot;, # The value of the parameter.
829 },
830 ],
831 },
832 },
Dan O'Mearadd494642020-05-01 07:42:23 -0700833 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700834 &quot;imageButton&quot;: { # An image button with an onclick action. # A button with image and onclick action.
835 &quot;icon&quot;: &quot;A String&quot;, # The icon specified by an enum that indices to an icon provided by Chat
836 # API.
837 &quot;onClick&quot;: { # An onclick action (e.g. open a link). # The onclick action.
838 &quot;openLink&quot;: { # A link that opens a new window. # This onclick triggers an open link action if specified.
839 &quot;url&quot;: &quot;A String&quot;, # The URL to open.
840 },
841 &quot;action&quot;: { # A form action describes the behavior when the form is submitted. # A form action will be trigger by this onclick if specified.
842 # For example, an Apps Script can be invoked to handle the form.
843 &quot;actionMethodName&quot;: &quot;A String&quot;, # The method name is used to identify which part of the form triggered the
844 # form submission. This information is echoed back to the bot as part of
845 # the card click event. The same method name can be used for several
846 # elements that trigger a common behavior if desired.
847 &quot;parameters&quot;: [ # List of action parameters.
848 { # List of string parameters to supply when the action method is invoked.
849 # For example, consider three snooze buttons: snooze now, snooze 1 day,
850 # snooze next week. You might use action method = snooze(), passing the
851 # snooze type and snooze time in the list of string parameters.
852 &quot;key&quot;: &quot;A String&quot;, # The name of the parameter for the action script.
853 &quot;value&quot;: &quot;A String&quot;, # The value of the parameter.
854 },
855 ],
856 },
857 },
858 &quot;iconUrl&quot;: &quot;A String&quot;, # The icon specified by a URL.
859 &quot;name&quot;: &quot;A String&quot;, # The name of this image_button which will be used for accessibility.
860 # Default value will be provided if developers don&#x27;t specify.
861 },
862 },
863 &quot;bottomLabel&quot;: &quot;A String&quot;, # The text of the bottom label. Formatted text supported.
864 &quot;icon&quot;: &quot;A String&quot;, # An enum value that will be replaced by the Chat API with the
865 # corresponding icon image.
866 &quot;onClick&quot;: { # An onclick action (e.g. open a link). # The onclick action. Only the top label, bottom label and content region
867 # are clickable.
868 &quot;openLink&quot;: { # A link that opens a new window. # This onclick triggers an open link action if specified.
869 &quot;url&quot;: &quot;A String&quot;, # The URL to open.
870 },
871 &quot;action&quot;: { # A form action describes the behavior when the form is submitted. # A form action will be trigger by this onclick if specified.
872 # For example, an Apps Script can be invoked to handle the form.
873 &quot;actionMethodName&quot;: &quot;A String&quot;, # The method name is used to identify which part of the form triggered the
874 # form submission. This information is echoed back to the bot as part of
875 # the card click event. The same method name can be used for several
876 # elements that trigger a common behavior if desired.
877 &quot;parameters&quot;: [ # List of action parameters.
878 { # List of string parameters to supply when the action method is invoked.
879 # For example, consider three snooze buttons: snooze now, snooze 1 day,
880 # snooze next week. You might use action method = snooze(), passing the
881 # snooze type and snooze time in the list of string parameters.
882 &quot;key&quot;: &quot;A String&quot;, # The name of the parameter for the action script.
883 &quot;value&quot;: &quot;A String&quot;, # The value of the parameter.
884 },
885 ],
886 },
887 },
888 &quot;contentMultiline&quot;: True or False, # If the content should be multiline.
Dan O'Mearadd494642020-05-01 07:42:23 -0700889 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700890 &quot;image&quot;: { # An image that is specified by a URL and can have an onclick action. # Display an image in this widget.
891 &quot;aspectRatio&quot;: 3.14, # The aspect ratio of this image (width/height). This field allows clients
892 # to reserve the right height for the image while waiting for it to load.
893 # It&#x27;s not meant to override the native aspect ratio of the image.
894 # If unset, the server fills it by prefetching the image.
895 &quot;imageUrl&quot;: &quot;A String&quot;, # The URL of the image.
896 &quot;onClick&quot;: { # An onclick action (e.g. open a link). # The onclick action.
897 &quot;openLink&quot;: { # A link that opens a new window. # This onclick triggers an open link action if specified.
898 &quot;url&quot;: &quot;A String&quot;, # The URL to open.
899 },
900 &quot;action&quot;: { # A form action describes the behavior when the form is submitted. # A form action will be trigger by this onclick if specified.
901 # For example, an Apps Script can be invoked to handle the form.
902 &quot;actionMethodName&quot;: &quot;A String&quot;, # The method name is used to identify which part of the form triggered the
903 # form submission. This information is echoed back to the bot as part of
904 # the card click event. The same method name can be used for several
905 # elements that trigger a common behavior if desired.
906 &quot;parameters&quot;: [ # List of action parameters.
907 { # List of string parameters to supply when the action method is invoked.
908 # For example, consider three snooze buttons: snooze now, snooze 1 day,
909 # snooze next week. You might use action method = snooze(), passing the
910 # snooze type and snooze time in the list of string parameters.
911 &quot;key&quot;: &quot;A String&quot;, # The name of the parameter for the action script.
912 &quot;value&quot;: &quot;A String&quot;, # The value of the parameter.
913 },
914 ],
915 },
916 },
Dan O'Mearadd494642020-05-01 07:42:23 -0700917 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700918 &quot;buttons&quot;: [ # A list of buttons. Buttons is also oneof data and only one of these
919 # fields should be set.
920 { # A button. Can be a text button or an image button.
921 &quot;textButton&quot;: { # A button with text and onclick action. # A button with text and onclick action.
922 &quot;text&quot;: &quot;A String&quot;, # The text of the button.
923 &quot;onClick&quot;: { # An onclick action (e.g. open a link). # The onclick action of the button.
924 &quot;openLink&quot;: { # A link that opens a new window. # This onclick triggers an open link action if specified.
925 &quot;url&quot;: &quot;A String&quot;, # The URL to open.
926 },
927 &quot;action&quot;: { # A form action describes the behavior when the form is submitted. # A form action will be trigger by this onclick if specified.
928 # For example, an Apps Script can be invoked to handle the form.
929 &quot;actionMethodName&quot;: &quot;A String&quot;, # The method name is used to identify which part of the form triggered the
930 # form submission. This information is echoed back to the bot as part of
931 # the card click event. The same method name can be used for several
932 # elements that trigger a common behavior if desired.
933 &quot;parameters&quot;: [ # List of action parameters.
934 { # List of string parameters to supply when the action method is invoked.
935 # For example, consider three snooze buttons: snooze now, snooze 1 day,
936 # snooze next week. You might use action method = snooze(), passing the
937 # snooze type and snooze time in the list of string parameters.
938 &quot;key&quot;: &quot;A String&quot;, # The name of the parameter for the action script.
939 &quot;value&quot;: &quot;A String&quot;, # The value of the parameter.
940 },
941 ],
942 },
943 },
944 },
945 &quot;imageButton&quot;: { # An image button with an onclick action. # A button with image and onclick action.
946 &quot;icon&quot;: &quot;A String&quot;, # The icon specified by an enum that indices to an icon provided by Chat
947 # API.
948 &quot;onClick&quot;: { # An onclick action (e.g. open a link). # The onclick action.
949 &quot;openLink&quot;: { # A link that opens a new window. # This onclick triggers an open link action if specified.
950 &quot;url&quot;: &quot;A String&quot;, # The URL to open.
951 },
952 &quot;action&quot;: { # A form action describes the behavior when the form is submitted. # A form action will be trigger by this onclick if specified.
953 # For example, an Apps Script can be invoked to handle the form.
954 &quot;actionMethodName&quot;: &quot;A String&quot;, # The method name is used to identify which part of the form triggered the
955 # form submission. This information is echoed back to the bot as part of
956 # the card click event. The same method name can be used for several
957 # elements that trigger a common behavior if desired.
958 &quot;parameters&quot;: [ # List of action parameters.
959 { # List of string parameters to supply when the action method is invoked.
960 # For example, consider three snooze buttons: snooze now, snooze 1 day,
961 # snooze next week. You might use action method = snooze(), passing the
962 # snooze type and snooze time in the list of string parameters.
963 &quot;key&quot;: &quot;A String&quot;, # The name of the parameter for the action script.
964 &quot;value&quot;: &quot;A String&quot;, # The value of the parameter.
965 },
966 ],
967 },
968 },
969 &quot;iconUrl&quot;: &quot;A String&quot;, # The icon specified by a URL.
970 &quot;name&quot;: &quot;A String&quot;, # The name of this image_button which will be used for accessibility.
971 # Default value will be provided if developers don&#x27;t specify.
972 },
973 },
974 ],
975 },
976 ],
977 },
978 ],
979 &quot;cardActions&quot;: [ # The actions of this card.
980 { # A card action is
981 # the action associated with the card. For an invoice card, a
982 # typical action would be: delete invoice, email invoice or open the
983 # invoice in browser.
984 &quot;actionLabel&quot;: &quot;A String&quot;, # The label used to be displayed in the action menu item.
985 &quot;onClick&quot;: { # An onclick action (e.g. open a link). # The onclick action for this action item.
986 &quot;openLink&quot;: { # A link that opens a new window. # This onclick triggers an open link action if specified.
987 &quot;url&quot;: &quot;A String&quot;, # The URL to open.
988 },
989 &quot;action&quot;: { # A form action describes the behavior when the form is submitted. # A form action will be trigger by this onclick if specified.
990 # For example, an Apps Script can be invoked to handle the form.
991 &quot;actionMethodName&quot;: &quot;A String&quot;, # The method name is used to identify which part of the form triggered the
992 # form submission. This information is echoed back to the bot as part of
993 # the card click event. The same method name can be used for several
994 # elements that trigger a common behavior if desired.
995 &quot;parameters&quot;: [ # List of action parameters.
996 { # List of string parameters to supply when the action method is invoked.
997 # For example, consider three snooze buttons: snooze now, snooze 1 day,
998 # snooze next week. You might use action method = snooze(), passing the
999 # snooze type and snooze time in the list of string parameters.
1000 &quot;key&quot;: &quot;A String&quot;, # The name of the parameter for the action script.
1001 &quot;value&quot;: &quot;A String&quot;, # The value of the parameter.
1002 },
1003 ],
Dan O'Mearadd494642020-05-01 07:42:23 -07001004 },
1005 },
Dan O'Mearadd494642020-05-01 07:42:23 -07001006 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001007 ],
1008 &quot;header&quot;: { # The header of the card. A header usually contains a title and an image.
1009 &quot;subtitle&quot;: &quot;A String&quot;, # The subtitle of the card header.
1010 &quot;imageUrl&quot;: &quot;A String&quot;, # The URL of the image in the card header.
1011 &quot;imageStyle&quot;: &quot;A String&quot;, # The image&#x27;s type (e.g. square border or circular border).
1012 &quot;title&quot;: &quot;A String&quot;, # The title must be specified. The header has a fixed height: if both a
1013 # title and subtitle is specified, each will take up 1 line. If only the
1014 # title is specified, it will take up both lines.
Dan O'Mearadd494642020-05-01 07:42:23 -07001015 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001016 &quot;name&quot;: &quot;A String&quot;, # Name of the card.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001017 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001018 ],
1019 &quot;sender&quot;: { # A user in Hangouts Chat. # The user who created the message.
1020 &quot;type&quot;: &quot;A String&quot;, # User type.
1021 &quot;domainId&quot;: &quot;A String&quot;, # Obfuscated domain information.
1022 &quot;name&quot;: &quot;A String&quot;, # Resource name, in the format &quot;users/*&quot;.
1023 &quot;displayName&quot;: &quot;A String&quot;, # The user&#x27;s display name.
1024 },
1025 &quot;thread&quot;: { # A thread in Hangouts Chat. # The thread the message belongs to.
1026 &quot;name&quot;: &quot;A String&quot;, # Resource name, in the form &quot;spaces/*/threads/*&quot;.
1027 #
1028 # Example: spaces/AAAAMpdlehY/threads/UMxbHmzDlr4
1029 },
1030 &quot;annotations&quot;: [ # Output only. Annotations associated with the text in this message.
1031 { # Annotations associated with the plain-text body of the message.
1032 #
1033 # Example plain-text message body:
1034 # ```
1035 # Hello @FooBot how are you!&quot;
1036 # ```
1037 #
1038 # The corresponding annotations metadata:
1039 # ```
1040 # &quot;annotations&quot;:[{
1041 # &quot;type&quot;:&quot;USER_MENTION&quot;,
1042 # &quot;startIndex&quot;:6,
1043 # &quot;length&quot;:7,
1044 # &quot;userMention&quot;: {
1045 # &quot;user&quot;: {
1046 # &quot;name&quot;:&quot;users/107946847022116401880&quot;,
1047 # &quot;displayName&quot;:&quot;FooBot&quot;,
1048 # &quot;avatarUrl&quot;:&quot;https://goo.gl/aeDtrS&quot;,
1049 # &quot;type&quot;:&quot;BOT&quot;
1050 # },
1051 # &quot;type&quot;:&quot;MENTION&quot;
1052 # }
1053 # }]
1054 # ```
1055 &quot;type&quot;: &quot;A String&quot;, # The type of this annotation.
1056 &quot;length&quot;: 42, # Length of the substring in the plain-text message body this annotation
1057 # corresponds to.
1058 &quot;startIndex&quot;: 42, # Start index (0-based, inclusive) in the plain-text message body this
1059 # annotation corresponds to.
1060 &quot;userMention&quot;: { # Annotation metadata for user mentions (@). # The metadata of user mention.
1061 &quot;type&quot;: &quot;A String&quot;, # The type of user mention.
1062 &quot;user&quot;: { # A user in Hangouts Chat. # The user mentioned.
1063 &quot;type&quot;: &quot;A String&quot;, # User type.
1064 &quot;domainId&quot;: &quot;A String&quot;, # Obfuscated domain information.
1065 &quot;name&quot;: &quot;A String&quot;, # Resource name, in the format &quot;users/*&quot;.
1066 &quot;displayName&quot;: &quot;A String&quot;, # The user&#x27;s display name.
1067 },
1068 },
1069 },
1070 ],
1071 &quot;name&quot;: &quot;A String&quot;, # Resource name, in the form &quot;spaces/*/messages/*&quot;.
1072 #
1073 # Example: spaces/AAAAMpdlehY/messages/UMxbHmzDlr4.UMxbHmzDlr4
1074 &quot;previewText&quot;: &quot;A String&quot;, # Text for generating preview chips. This text will not be displayed to the
1075 # user, but any links to images, web pages, videos, etc. included here will
1076 # generate preview chips.
1077 &quot;space&quot;: { # A room or DM in Hangouts Chat. # The space the message belongs to.
1078 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of a space.
1079 # This is deprecated. Use `single_user_bot_dm` instead.
1080 &quot;singleUserBotDm&quot;: True or False, # Whether the space is a DM between a bot and a single human.
1081 &quot;name&quot;: &quot;A String&quot;, # Resource name of the space, in the form &quot;spaces/*&quot;.
1082 #
1083 # Example: spaces/AAAAMpdlehYs
1084 &quot;threaded&quot;: True or False, # Whether the messages are threaded in this space.
1085 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name (only if the space is a room).
1086 },
1087 &quot;text&quot;: &quot;A String&quot;, # Plain-text body of the message.
1088 &quot;argumentText&quot;: &quot;A String&quot;, # Plain-text body of the message with all bot mentions stripped out.
1089 &quot;fallbackText&quot;: &quot;A String&quot;, # A plain-text description of the message&#x27;s cards, used when the actual cards
1090 # cannot be displayed (e.g. mobile notifications).
1091 &quot;actionResponse&quot;: { # Parameters that a bot can use to configure how it&#x27;s response is posted. # Input only. Parameters that a bot can use to configure how its response is
1092 # posted.
1093 &quot;type&quot;: &quot;A String&quot;, # The type of bot response.
1094 &quot;url&quot;: &quot;A String&quot;, # URL for users to auth or config. (Only for REQUEST_CONFIG response types.)
1095 },
1096 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the message was created in Hangouts Chat
1097 # server.
1098 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001099</div>
1100
1101<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001102 <code class="details" id="update">update(name, body=None, updateMask=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001103 <pre>Updates a message.
1104
1105Args:
Bu Sun Kim65020912020-05-20 12:08:20 -07001106 name: string, Resource name, in the form &quot;spaces/*/messages/*&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001107
1108Example: spaces/AAAAMpdlehY/messages/UMxbHmzDlr4.UMxbHmzDlr4 (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001109 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001110 The object takes the form of:
1111
1112{ # A message in Hangouts Chat.
Bu Sun Kim65020912020-05-20 12:08:20 -07001113 &quot;cards&quot;: [ # Rich, formatted and interactive cards that can be used to display UI
1114 # elements such as: formatted texts, buttons, clickable images. Cards are
1115 # normally displayed below the plain-text body of the message.
1116 { # A card is a UI element that can contain UI widgets such as texts, images.
1117 &quot;sections&quot;: [ # Sections are separated by a line divider.
1118 { # A section contains a collection of widgets that are rendered
1119 # (vertically) in the order that they are specified. Across all platforms,
1120 # cards have a narrow fixed width, so
1121 # there is currently no need for layout properties (e.g. float).
1122 &quot;header&quot;: &quot;A String&quot;, # The header of the section, text formatted supported.
1123 &quot;widgets&quot;: [ # A section must contain at least 1 widget.
1124 { # A widget is a UI element that presents texts, images, etc.
1125 &quot;textParagraph&quot;: { # A paragraph of text. Formatted text supported. # Display a text paragraph in this widget.
1126 &quot;text&quot;: &quot;A String&quot;,
1127 },
1128 &quot;keyValue&quot;: { # A UI element contains a key (label) and a value (content). And this # Display a key value item in this widget.
1129 # element may also contain some actions such as onclick button.
1130 &quot;topLabel&quot;: &quot;A String&quot;, # The text of the top label. Formatted text supported.
1131 &quot;iconUrl&quot;: &quot;A String&quot;, # The icon specified by a URL.
1132 &quot;content&quot;: &quot;A String&quot;, # The text of the content. Formatted text supported and always required.
1133 &quot;button&quot;: { # A button. Can be a text button or an image button. # A button that can be clicked to trigger an action.
1134 &quot;textButton&quot;: { # A button with text and onclick action. # A button with text and onclick action.
1135 &quot;text&quot;: &quot;A String&quot;, # The text of the button.
1136 &quot;onClick&quot;: { # An onclick action (e.g. open a link). # The onclick action of the button.
1137 &quot;openLink&quot;: { # A link that opens a new window. # This onclick triggers an open link action if specified.
1138 &quot;url&quot;: &quot;A String&quot;, # The URL to open.
1139 },
1140 &quot;action&quot;: { # A form action describes the behavior when the form is submitted. # A form action will be trigger by this onclick if specified.
1141 # For example, an Apps Script can be invoked to handle the form.
1142 &quot;actionMethodName&quot;: &quot;A String&quot;, # The method name is used to identify which part of the form triggered the
1143 # form submission. This information is echoed back to the bot as part of
1144 # the card click event. The same method name can be used for several
1145 # elements that trigger a common behavior if desired.
1146 &quot;parameters&quot;: [ # List of action parameters.
1147 { # List of string parameters to supply when the action method is invoked.
1148 # For example, consider three snooze buttons: snooze now, snooze 1 day,
1149 # snooze next week. You might use action method = snooze(), passing the
1150 # snooze type and snooze time in the list of string parameters.
1151 &quot;key&quot;: &quot;A String&quot;, # The name of the parameter for the action script.
1152 &quot;value&quot;: &quot;A String&quot;, # The value of the parameter.
1153 },
1154 ],
1155 },
1156 },
Dan O'Mearadd494642020-05-01 07:42:23 -07001157 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001158 &quot;imageButton&quot;: { # An image button with an onclick action. # A button with image and onclick action.
1159 &quot;icon&quot;: &quot;A String&quot;, # The icon specified by an enum that indices to an icon provided by Chat
1160 # API.
1161 &quot;onClick&quot;: { # An onclick action (e.g. open a link). # The onclick action.
1162 &quot;openLink&quot;: { # A link that opens a new window. # This onclick triggers an open link action if specified.
1163 &quot;url&quot;: &quot;A String&quot;, # The URL to open.
1164 },
1165 &quot;action&quot;: { # A form action describes the behavior when the form is submitted. # A form action will be trigger by this onclick if specified.
1166 # For example, an Apps Script can be invoked to handle the form.
1167 &quot;actionMethodName&quot;: &quot;A String&quot;, # The method name is used to identify which part of the form triggered the
1168 # form submission. This information is echoed back to the bot as part of
1169 # the card click event. The same method name can be used for several
1170 # elements that trigger a common behavior if desired.
1171 &quot;parameters&quot;: [ # List of action parameters.
1172 { # List of string parameters to supply when the action method is invoked.
1173 # For example, consider three snooze buttons: snooze now, snooze 1 day,
1174 # snooze next week. You might use action method = snooze(), passing the
1175 # snooze type and snooze time in the list of string parameters.
1176 &quot;key&quot;: &quot;A String&quot;, # The name of the parameter for the action script.
1177 &quot;value&quot;: &quot;A String&quot;, # The value of the parameter.
1178 },
1179 ],
1180 },
1181 },
1182 &quot;iconUrl&quot;: &quot;A String&quot;, # The icon specified by a URL.
1183 &quot;name&quot;: &quot;A String&quot;, # The name of this image_button which will be used for accessibility.
1184 # Default value will be provided if developers don&#x27;t specify.
1185 },
1186 },
1187 &quot;bottomLabel&quot;: &quot;A String&quot;, # The text of the bottom label. Formatted text supported.
1188 &quot;icon&quot;: &quot;A String&quot;, # An enum value that will be replaced by the Chat API with the
1189 # corresponding icon image.
1190 &quot;onClick&quot;: { # An onclick action (e.g. open a link). # The onclick action. Only the top label, bottom label and content region
1191 # are clickable.
1192 &quot;openLink&quot;: { # A link that opens a new window. # This onclick triggers an open link action if specified.
1193 &quot;url&quot;: &quot;A String&quot;, # The URL to open.
1194 },
1195 &quot;action&quot;: { # A form action describes the behavior when the form is submitted. # A form action will be trigger by this onclick if specified.
1196 # For example, an Apps Script can be invoked to handle the form.
1197 &quot;actionMethodName&quot;: &quot;A String&quot;, # The method name is used to identify which part of the form triggered the
1198 # form submission. This information is echoed back to the bot as part of
1199 # the card click event. The same method name can be used for several
1200 # elements that trigger a common behavior if desired.
1201 &quot;parameters&quot;: [ # List of action parameters.
1202 { # List of string parameters to supply when the action method is invoked.
1203 # For example, consider three snooze buttons: snooze now, snooze 1 day,
1204 # snooze next week. You might use action method = snooze(), passing the
1205 # snooze type and snooze time in the list of string parameters.
1206 &quot;key&quot;: &quot;A String&quot;, # The name of the parameter for the action script.
1207 &quot;value&quot;: &quot;A String&quot;, # The value of the parameter.
1208 },
1209 ],
1210 },
1211 },
1212 &quot;contentMultiline&quot;: True or False, # If the content should be multiline.
Dan O'Mearadd494642020-05-01 07:42:23 -07001213 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001214 &quot;image&quot;: { # An image that is specified by a URL and can have an onclick action. # Display an image in this widget.
1215 &quot;aspectRatio&quot;: 3.14, # The aspect ratio of this image (width/height). This field allows clients
1216 # to reserve the right height for the image while waiting for it to load.
1217 # It&#x27;s not meant to override the native aspect ratio of the image.
1218 # If unset, the server fills it by prefetching the image.
1219 &quot;imageUrl&quot;: &quot;A String&quot;, # The URL of the image.
1220 &quot;onClick&quot;: { # An onclick action (e.g. open a link). # The onclick action.
1221 &quot;openLink&quot;: { # A link that opens a new window. # This onclick triggers an open link action if specified.
1222 &quot;url&quot;: &quot;A String&quot;, # The URL to open.
1223 },
1224 &quot;action&quot;: { # A form action describes the behavior when the form is submitted. # A form action will be trigger by this onclick if specified.
1225 # For example, an Apps Script can be invoked to handle the form.
1226 &quot;actionMethodName&quot;: &quot;A String&quot;, # The method name is used to identify which part of the form triggered the
1227 # form submission. This information is echoed back to the bot as part of
1228 # the card click event. The same method name can be used for several
1229 # elements that trigger a common behavior if desired.
1230 &quot;parameters&quot;: [ # List of action parameters.
1231 { # List of string parameters to supply when the action method is invoked.
1232 # For example, consider three snooze buttons: snooze now, snooze 1 day,
1233 # snooze next week. You might use action method = snooze(), passing the
1234 # snooze type and snooze time in the list of string parameters.
1235 &quot;key&quot;: &quot;A String&quot;, # The name of the parameter for the action script.
1236 &quot;value&quot;: &quot;A String&quot;, # The value of the parameter.
1237 },
1238 ],
1239 },
1240 },
Dan O'Mearadd494642020-05-01 07:42:23 -07001241 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001242 &quot;buttons&quot;: [ # A list of buttons. Buttons is also oneof data and only one of these
1243 # fields should be set.
1244 { # A button. Can be a text button or an image button.
1245 &quot;textButton&quot;: { # A button with text and onclick action. # A button with text and onclick action.
1246 &quot;text&quot;: &quot;A String&quot;, # The text of the button.
1247 &quot;onClick&quot;: { # An onclick action (e.g. open a link). # The onclick action of the button.
1248 &quot;openLink&quot;: { # A link that opens a new window. # This onclick triggers an open link action if specified.
1249 &quot;url&quot;: &quot;A String&quot;, # The URL to open.
1250 },
1251 &quot;action&quot;: { # A form action describes the behavior when the form is submitted. # A form action will be trigger by this onclick if specified.
1252 # For example, an Apps Script can be invoked to handle the form.
1253 &quot;actionMethodName&quot;: &quot;A String&quot;, # The method name is used to identify which part of the form triggered the
1254 # form submission. This information is echoed back to the bot as part of
1255 # the card click event. The same method name can be used for several
1256 # elements that trigger a common behavior if desired.
1257 &quot;parameters&quot;: [ # List of action parameters.
1258 { # List of string parameters to supply when the action method is invoked.
1259 # For example, consider three snooze buttons: snooze now, snooze 1 day,
1260 # snooze next week. You might use action method = snooze(), passing the
1261 # snooze type and snooze time in the list of string parameters.
1262 &quot;key&quot;: &quot;A String&quot;, # The name of the parameter for the action script.
1263 &quot;value&quot;: &quot;A String&quot;, # The value of the parameter.
1264 },
1265 ],
1266 },
1267 },
1268 },
1269 &quot;imageButton&quot;: { # An image button with an onclick action. # A button with image and onclick action.
1270 &quot;icon&quot;: &quot;A String&quot;, # The icon specified by an enum that indices to an icon provided by Chat
1271 # API.
1272 &quot;onClick&quot;: { # An onclick action (e.g. open a link). # The onclick action.
1273 &quot;openLink&quot;: { # A link that opens a new window. # This onclick triggers an open link action if specified.
1274 &quot;url&quot;: &quot;A String&quot;, # The URL to open.
1275 },
1276 &quot;action&quot;: { # A form action describes the behavior when the form is submitted. # A form action will be trigger by this onclick if specified.
1277 # For example, an Apps Script can be invoked to handle the form.
1278 &quot;actionMethodName&quot;: &quot;A String&quot;, # The method name is used to identify which part of the form triggered the
1279 # form submission. This information is echoed back to the bot as part of
1280 # the card click event. The same method name can be used for several
1281 # elements that trigger a common behavior if desired.
1282 &quot;parameters&quot;: [ # List of action parameters.
1283 { # List of string parameters to supply when the action method is invoked.
1284 # For example, consider three snooze buttons: snooze now, snooze 1 day,
1285 # snooze next week. You might use action method = snooze(), passing the
1286 # snooze type and snooze time in the list of string parameters.
1287 &quot;key&quot;: &quot;A String&quot;, # The name of the parameter for the action script.
1288 &quot;value&quot;: &quot;A String&quot;, # The value of the parameter.
1289 },
1290 ],
1291 },
1292 },
1293 &quot;iconUrl&quot;: &quot;A String&quot;, # The icon specified by a URL.
1294 &quot;name&quot;: &quot;A String&quot;, # The name of this image_button which will be used for accessibility.
1295 # Default value will be provided if developers don&#x27;t specify.
1296 },
1297 },
1298 ],
1299 },
1300 ],
1301 },
1302 ],
1303 &quot;cardActions&quot;: [ # The actions of this card.
1304 { # A card action is
1305 # the action associated with the card. For an invoice card, a
1306 # typical action would be: delete invoice, email invoice or open the
1307 # invoice in browser.
1308 &quot;actionLabel&quot;: &quot;A String&quot;, # The label used to be displayed in the action menu item.
1309 &quot;onClick&quot;: { # An onclick action (e.g. open a link). # The onclick action for this action item.
1310 &quot;openLink&quot;: { # A link that opens a new window. # This onclick triggers an open link action if specified.
1311 &quot;url&quot;: &quot;A String&quot;, # The URL to open.
1312 },
1313 &quot;action&quot;: { # A form action describes the behavior when the form is submitted. # A form action will be trigger by this onclick if specified.
1314 # For example, an Apps Script can be invoked to handle the form.
1315 &quot;actionMethodName&quot;: &quot;A String&quot;, # The method name is used to identify which part of the form triggered the
1316 # form submission. This information is echoed back to the bot as part of
1317 # the card click event. The same method name can be used for several
1318 # elements that trigger a common behavior if desired.
1319 &quot;parameters&quot;: [ # List of action parameters.
1320 { # List of string parameters to supply when the action method is invoked.
1321 # For example, consider three snooze buttons: snooze now, snooze 1 day,
1322 # snooze next week. You might use action method = snooze(), passing the
1323 # snooze type and snooze time in the list of string parameters.
1324 &quot;key&quot;: &quot;A String&quot;, # The name of the parameter for the action script.
1325 &quot;value&quot;: &quot;A String&quot;, # The value of the parameter.
1326 },
1327 ],
Dan O'Mearadd494642020-05-01 07:42:23 -07001328 },
1329 },
Dan O'Mearadd494642020-05-01 07:42:23 -07001330 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001331 ],
1332 &quot;header&quot;: { # The header of the card. A header usually contains a title and an image.
1333 &quot;subtitle&quot;: &quot;A String&quot;, # The subtitle of the card header.
1334 &quot;imageUrl&quot;: &quot;A String&quot;, # The URL of the image in the card header.
1335 &quot;imageStyle&quot;: &quot;A String&quot;, # The image&#x27;s type (e.g. square border or circular border).
1336 &quot;title&quot;: &quot;A String&quot;, # The title must be specified. The header has a fixed height: if both a
1337 # title and subtitle is specified, each will take up 1 line. If only the
1338 # title is specified, it will take up both lines.
Dan O'Mearadd494642020-05-01 07:42:23 -07001339 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001340 &quot;name&quot;: &quot;A String&quot;, # Name of the card.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001341 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001342 ],
1343 &quot;sender&quot;: { # A user in Hangouts Chat. # The user who created the message.
1344 &quot;type&quot;: &quot;A String&quot;, # User type.
1345 &quot;domainId&quot;: &quot;A String&quot;, # Obfuscated domain information.
1346 &quot;name&quot;: &quot;A String&quot;, # Resource name, in the format &quot;users/*&quot;.
1347 &quot;displayName&quot;: &quot;A String&quot;, # The user&#x27;s display name.
1348 },
1349 &quot;thread&quot;: { # A thread in Hangouts Chat. # The thread the message belongs to.
1350 &quot;name&quot;: &quot;A String&quot;, # Resource name, in the form &quot;spaces/*/threads/*&quot;.
1351 #
1352 # Example: spaces/AAAAMpdlehY/threads/UMxbHmzDlr4
1353 },
1354 &quot;annotations&quot;: [ # Output only. Annotations associated with the text in this message.
1355 { # Annotations associated with the plain-text body of the message.
1356 #
1357 # Example plain-text message body:
1358 # ```
1359 # Hello @FooBot how are you!&quot;
1360 # ```
1361 #
1362 # The corresponding annotations metadata:
1363 # ```
1364 # &quot;annotations&quot;:[{
1365 # &quot;type&quot;:&quot;USER_MENTION&quot;,
1366 # &quot;startIndex&quot;:6,
1367 # &quot;length&quot;:7,
1368 # &quot;userMention&quot;: {
1369 # &quot;user&quot;: {
1370 # &quot;name&quot;:&quot;users/107946847022116401880&quot;,
1371 # &quot;displayName&quot;:&quot;FooBot&quot;,
1372 # &quot;avatarUrl&quot;:&quot;https://goo.gl/aeDtrS&quot;,
1373 # &quot;type&quot;:&quot;BOT&quot;
1374 # },
1375 # &quot;type&quot;:&quot;MENTION&quot;
1376 # }
1377 # }]
1378 # ```
1379 &quot;type&quot;: &quot;A String&quot;, # The type of this annotation.
1380 &quot;length&quot;: 42, # Length of the substring in the plain-text message body this annotation
1381 # corresponds to.
1382 &quot;startIndex&quot;: 42, # Start index (0-based, inclusive) in the plain-text message body this
1383 # annotation corresponds to.
1384 &quot;userMention&quot;: { # Annotation metadata for user mentions (@). # The metadata of user mention.
1385 &quot;type&quot;: &quot;A String&quot;, # The type of user mention.
1386 &quot;user&quot;: { # A user in Hangouts Chat. # The user mentioned.
1387 &quot;type&quot;: &quot;A String&quot;, # User type.
1388 &quot;domainId&quot;: &quot;A String&quot;, # Obfuscated domain information.
1389 &quot;name&quot;: &quot;A String&quot;, # Resource name, in the format &quot;users/*&quot;.
1390 &quot;displayName&quot;: &quot;A String&quot;, # The user&#x27;s display name.
1391 },
1392 },
1393 },
1394 ],
1395 &quot;name&quot;: &quot;A String&quot;, # Resource name, in the form &quot;spaces/*/messages/*&quot;.
1396 #
1397 # Example: spaces/AAAAMpdlehY/messages/UMxbHmzDlr4.UMxbHmzDlr4
1398 &quot;previewText&quot;: &quot;A String&quot;, # Text for generating preview chips. This text will not be displayed to the
1399 # user, but any links to images, web pages, videos, etc. included here will
1400 # generate preview chips.
1401 &quot;space&quot;: { # A room or DM in Hangouts Chat. # The space the message belongs to.
1402 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of a space.
1403 # This is deprecated. Use `single_user_bot_dm` instead.
1404 &quot;singleUserBotDm&quot;: True or False, # Whether the space is a DM between a bot and a single human.
1405 &quot;name&quot;: &quot;A String&quot;, # Resource name of the space, in the form &quot;spaces/*&quot;.
1406 #
1407 # Example: spaces/AAAAMpdlehYs
1408 &quot;threaded&quot;: True or False, # Whether the messages are threaded in this space.
1409 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name (only if the space is a room).
1410 },
1411 &quot;text&quot;: &quot;A String&quot;, # Plain-text body of the message.
1412 &quot;argumentText&quot;: &quot;A String&quot;, # Plain-text body of the message with all bot mentions stripped out.
1413 &quot;fallbackText&quot;: &quot;A String&quot;, # A plain-text description of the message&#x27;s cards, used when the actual cards
1414 # cannot be displayed (e.g. mobile notifications).
1415 &quot;actionResponse&quot;: { # Parameters that a bot can use to configure how it&#x27;s response is posted. # Input only. Parameters that a bot can use to configure how its response is
1416 # posted.
1417 &quot;type&quot;: &quot;A String&quot;, # The type of bot response.
1418 &quot;url&quot;: &quot;A String&quot;, # URL for users to auth or config. (Only for REQUEST_CONFIG response types.)
1419 },
1420 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the message was created in Hangouts Chat
1421 # server.
1422}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001423
Dan O'Mearadd494642020-05-01 07:42:23 -07001424 updateMask: string, Required. The field paths to be updated, comma separated if there are
1425multiple.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001426
Dan O'Mearadd494642020-05-01 07:42:23 -07001427Currently supported field paths:
1428* text
1429* cards
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001430 x__xgafv: string, V1 error format.
1431 Allowed values
1432 1 - v1 error format
1433 2 - v2 error format
1434
1435Returns:
1436 An object of the form:
1437
1438 { # A message in Hangouts Chat.
Bu Sun Kim65020912020-05-20 12:08:20 -07001439 &quot;cards&quot;: [ # Rich, formatted and interactive cards that can be used to display UI
1440 # elements such as: formatted texts, buttons, clickable images. Cards are
1441 # normally displayed below the plain-text body of the message.
1442 { # A card is a UI element that can contain UI widgets such as texts, images.
1443 &quot;sections&quot;: [ # Sections are separated by a line divider.
1444 { # A section contains a collection of widgets that are rendered
1445 # (vertically) in the order that they are specified. Across all platforms,
1446 # cards have a narrow fixed width, so
1447 # there is currently no need for layout properties (e.g. float).
1448 &quot;header&quot;: &quot;A String&quot;, # The header of the section, text formatted supported.
1449 &quot;widgets&quot;: [ # A section must contain at least 1 widget.
1450 { # A widget is a UI element that presents texts, images, etc.
1451 &quot;textParagraph&quot;: { # A paragraph of text. Formatted text supported. # Display a text paragraph in this widget.
1452 &quot;text&quot;: &quot;A String&quot;,
1453 },
1454 &quot;keyValue&quot;: { # A UI element contains a key (label) and a value (content). And this # Display a key value item in this widget.
1455 # element may also contain some actions such as onclick button.
1456 &quot;topLabel&quot;: &quot;A String&quot;, # The text of the top label. Formatted text supported.
1457 &quot;iconUrl&quot;: &quot;A String&quot;, # The icon specified by a URL.
1458 &quot;content&quot;: &quot;A String&quot;, # The text of the content. Formatted text supported and always required.
1459 &quot;button&quot;: { # A button. Can be a text button or an image button. # A button that can be clicked to trigger an action.
1460 &quot;textButton&quot;: { # A button with text and onclick action. # A button with text and onclick action.
1461 &quot;text&quot;: &quot;A String&quot;, # The text of the button.
1462 &quot;onClick&quot;: { # An onclick action (e.g. open a link). # The onclick action of the button.
1463 &quot;openLink&quot;: { # A link that opens a new window. # This onclick triggers an open link action if specified.
1464 &quot;url&quot;: &quot;A String&quot;, # The URL to open.
1465 },
1466 &quot;action&quot;: { # A form action describes the behavior when the form is submitted. # A form action will be trigger by this onclick if specified.
1467 # For example, an Apps Script can be invoked to handle the form.
1468 &quot;actionMethodName&quot;: &quot;A String&quot;, # The method name is used to identify which part of the form triggered the
1469 # form submission. This information is echoed back to the bot as part of
1470 # the card click event. The same method name can be used for several
1471 # elements that trigger a common behavior if desired.
1472 &quot;parameters&quot;: [ # List of action parameters.
1473 { # List of string parameters to supply when the action method is invoked.
1474 # For example, consider three snooze buttons: snooze now, snooze 1 day,
1475 # snooze next week. You might use action method = snooze(), passing the
1476 # snooze type and snooze time in the list of string parameters.
1477 &quot;key&quot;: &quot;A String&quot;, # The name of the parameter for the action script.
1478 &quot;value&quot;: &quot;A String&quot;, # The value of the parameter.
1479 },
1480 ],
1481 },
1482 },
Dan O'Mearadd494642020-05-01 07:42:23 -07001483 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001484 &quot;imageButton&quot;: { # An image button with an onclick action. # A button with image and onclick action.
1485 &quot;icon&quot;: &quot;A String&quot;, # The icon specified by an enum that indices to an icon provided by Chat
1486 # API.
1487 &quot;onClick&quot;: { # An onclick action (e.g. open a link). # The onclick action.
1488 &quot;openLink&quot;: { # A link that opens a new window. # This onclick triggers an open link action if specified.
1489 &quot;url&quot;: &quot;A String&quot;, # The URL to open.
1490 },
1491 &quot;action&quot;: { # A form action describes the behavior when the form is submitted. # A form action will be trigger by this onclick if specified.
1492 # For example, an Apps Script can be invoked to handle the form.
1493 &quot;actionMethodName&quot;: &quot;A String&quot;, # The method name is used to identify which part of the form triggered the
1494 # form submission. This information is echoed back to the bot as part of
1495 # the card click event. The same method name can be used for several
1496 # elements that trigger a common behavior if desired.
1497 &quot;parameters&quot;: [ # List of action parameters.
1498 { # List of string parameters to supply when the action method is invoked.
1499 # For example, consider three snooze buttons: snooze now, snooze 1 day,
1500 # snooze next week. You might use action method = snooze(), passing the
1501 # snooze type and snooze time in the list of string parameters.
1502 &quot;key&quot;: &quot;A String&quot;, # The name of the parameter for the action script.
1503 &quot;value&quot;: &quot;A String&quot;, # The value of the parameter.
1504 },
1505 ],
1506 },
1507 },
1508 &quot;iconUrl&quot;: &quot;A String&quot;, # The icon specified by a URL.
1509 &quot;name&quot;: &quot;A String&quot;, # The name of this image_button which will be used for accessibility.
1510 # Default value will be provided if developers don&#x27;t specify.
1511 },
1512 },
1513 &quot;bottomLabel&quot;: &quot;A String&quot;, # The text of the bottom label. Formatted text supported.
1514 &quot;icon&quot;: &quot;A String&quot;, # An enum value that will be replaced by the Chat API with the
1515 # corresponding icon image.
1516 &quot;onClick&quot;: { # An onclick action (e.g. open a link). # The onclick action. Only the top label, bottom label and content region
1517 # are clickable.
1518 &quot;openLink&quot;: { # A link that opens a new window. # This onclick triggers an open link action if specified.
1519 &quot;url&quot;: &quot;A String&quot;, # The URL to open.
1520 },
1521 &quot;action&quot;: { # A form action describes the behavior when the form is submitted. # A form action will be trigger by this onclick if specified.
1522 # For example, an Apps Script can be invoked to handle the form.
1523 &quot;actionMethodName&quot;: &quot;A String&quot;, # The method name is used to identify which part of the form triggered the
1524 # form submission. This information is echoed back to the bot as part of
1525 # the card click event. The same method name can be used for several
1526 # elements that trigger a common behavior if desired.
1527 &quot;parameters&quot;: [ # List of action parameters.
1528 { # List of string parameters to supply when the action method is invoked.
1529 # For example, consider three snooze buttons: snooze now, snooze 1 day,
1530 # snooze next week. You might use action method = snooze(), passing the
1531 # snooze type and snooze time in the list of string parameters.
1532 &quot;key&quot;: &quot;A String&quot;, # The name of the parameter for the action script.
1533 &quot;value&quot;: &quot;A String&quot;, # The value of the parameter.
1534 },
1535 ],
1536 },
1537 },
1538 &quot;contentMultiline&quot;: True or False, # If the content should be multiline.
Dan O'Mearadd494642020-05-01 07:42:23 -07001539 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001540 &quot;image&quot;: { # An image that is specified by a URL and can have an onclick action. # Display an image in this widget.
1541 &quot;aspectRatio&quot;: 3.14, # The aspect ratio of this image (width/height). This field allows clients
1542 # to reserve the right height for the image while waiting for it to load.
1543 # It&#x27;s not meant to override the native aspect ratio of the image.
1544 # If unset, the server fills it by prefetching the image.
1545 &quot;imageUrl&quot;: &quot;A String&quot;, # The URL of the image.
1546 &quot;onClick&quot;: { # An onclick action (e.g. open a link). # The onclick action.
1547 &quot;openLink&quot;: { # A link that opens a new window. # This onclick triggers an open link action if specified.
1548 &quot;url&quot;: &quot;A String&quot;, # The URL to open.
1549 },
1550 &quot;action&quot;: { # A form action describes the behavior when the form is submitted. # A form action will be trigger by this onclick if specified.
1551 # For example, an Apps Script can be invoked to handle the form.
1552 &quot;actionMethodName&quot;: &quot;A String&quot;, # The method name is used to identify which part of the form triggered the
1553 # form submission. This information is echoed back to the bot as part of
1554 # the card click event. The same method name can be used for several
1555 # elements that trigger a common behavior if desired.
1556 &quot;parameters&quot;: [ # List of action parameters.
1557 { # List of string parameters to supply when the action method is invoked.
1558 # For example, consider three snooze buttons: snooze now, snooze 1 day,
1559 # snooze next week. You might use action method = snooze(), passing the
1560 # snooze type and snooze time in the list of string parameters.
1561 &quot;key&quot;: &quot;A String&quot;, # The name of the parameter for the action script.
1562 &quot;value&quot;: &quot;A String&quot;, # The value of the parameter.
1563 },
1564 ],
1565 },
1566 },
Dan O'Mearadd494642020-05-01 07:42:23 -07001567 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001568 &quot;buttons&quot;: [ # A list of buttons. Buttons is also oneof data and only one of these
1569 # fields should be set.
1570 { # A button. Can be a text button or an image button.
1571 &quot;textButton&quot;: { # A button with text and onclick action. # A button with text and onclick action.
1572 &quot;text&quot;: &quot;A String&quot;, # The text of the button.
1573 &quot;onClick&quot;: { # An onclick action (e.g. open a link). # The onclick action of the button.
1574 &quot;openLink&quot;: { # A link that opens a new window. # This onclick triggers an open link action if specified.
1575 &quot;url&quot;: &quot;A String&quot;, # The URL to open.
1576 },
1577 &quot;action&quot;: { # A form action describes the behavior when the form is submitted. # A form action will be trigger by this onclick if specified.
1578 # For example, an Apps Script can be invoked to handle the form.
1579 &quot;actionMethodName&quot;: &quot;A String&quot;, # The method name is used to identify which part of the form triggered the
1580 # form submission. This information is echoed back to the bot as part of
1581 # the card click event. The same method name can be used for several
1582 # elements that trigger a common behavior if desired.
1583 &quot;parameters&quot;: [ # List of action parameters.
1584 { # List of string parameters to supply when the action method is invoked.
1585 # For example, consider three snooze buttons: snooze now, snooze 1 day,
1586 # snooze next week. You might use action method = snooze(), passing the
1587 # snooze type and snooze time in the list of string parameters.
1588 &quot;key&quot;: &quot;A String&quot;, # The name of the parameter for the action script.
1589 &quot;value&quot;: &quot;A String&quot;, # The value of the parameter.
1590 },
1591 ],
1592 },
1593 },
1594 },
1595 &quot;imageButton&quot;: { # An image button with an onclick action. # A button with image and onclick action.
1596 &quot;icon&quot;: &quot;A String&quot;, # The icon specified by an enum that indices to an icon provided by Chat
1597 # API.
1598 &quot;onClick&quot;: { # An onclick action (e.g. open a link). # The onclick action.
1599 &quot;openLink&quot;: { # A link that opens a new window. # This onclick triggers an open link action if specified.
1600 &quot;url&quot;: &quot;A String&quot;, # The URL to open.
1601 },
1602 &quot;action&quot;: { # A form action describes the behavior when the form is submitted. # A form action will be trigger by this onclick if specified.
1603 # For example, an Apps Script can be invoked to handle the form.
1604 &quot;actionMethodName&quot;: &quot;A String&quot;, # The method name is used to identify which part of the form triggered the
1605 # form submission. This information is echoed back to the bot as part of
1606 # the card click event. The same method name can be used for several
1607 # elements that trigger a common behavior if desired.
1608 &quot;parameters&quot;: [ # List of action parameters.
1609 { # List of string parameters to supply when the action method is invoked.
1610 # For example, consider three snooze buttons: snooze now, snooze 1 day,
1611 # snooze next week. You might use action method = snooze(), passing the
1612 # snooze type and snooze time in the list of string parameters.
1613 &quot;key&quot;: &quot;A String&quot;, # The name of the parameter for the action script.
1614 &quot;value&quot;: &quot;A String&quot;, # The value of the parameter.
1615 },
1616 ],
1617 },
1618 },
1619 &quot;iconUrl&quot;: &quot;A String&quot;, # The icon specified by a URL.
1620 &quot;name&quot;: &quot;A String&quot;, # The name of this image_button which will be used for accessibility.
1621 # Default value will be provided if developers don&#x27;t specify.
1622 },
1623 },
1624 ],
1625 },
1626 ],
1627 },
1628 ],
1629 &quot;cardActions&quot;: [ # The actions of this card.
1630 { # A card action is
1631 # the action associated with the card. For an invoice card, a
1632 # typical action would be: delete invoice, email invoice or open the
1633 # invoice in browser.
1634 &quot;actionLabel&quot;: &quot;A String&quot;, # The label used to be displayed in the action menu item.
1635 &quot;onClick&quot;: { # An onclick action (e.g. open a link). # The onclick action for this action item.
1636 &quot;openLink&quot;: { # A link that opens a new window. # This onclick triggers an open link action if specified.
1637 &quot;url&quot;: &quot;A String&quot;, # The URL to open.
1638 },
1639 &quot;action&quot;: { # A form action describes the behavior when the form is submitted. # A form action will be trigger by this onclick if specified.
1640 # For example, an Apps Script can be invoked to handle the form.
1641 &quot;actionMethodName&quot;: &quot;A String&quot;, # The method name is used to identify which part of the form triggered the
1642 # form submission. This information is echoed back to the bot as part of
1643 # the card click event. The same method name can be used for several
1644 # elements that trigger a common behavior if desired.
1645 &quot;parameters&quot;: [ # List of action parameters.
1646 { # List of string parameters to supply when the action method is invoked.
1647 # For example, consider three snooze buttons: snooze now, snooze 1 day,
1648 # snooze next week. You might use action method = snooze(), passing the
1649 # snooze type and snooze time in the list of string parameters.
1650 &quot;key&quot;: &quot;A String&quot;, # The name of the parameter for the action script.
1651 &quot;value&quot;: &quot;A String&quot;, # The value of the parameter.
1652 },
1653 ],
Dan O'Mearadd494642020-05-01 07:42:23 -07001654 },
1655 },
Dan O'Mearadd494642020-05-01 07:42:23 -07001656 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001657 ],
1658 &quot;header&quot;: { # The header of the card. A header usually contains a title and an image.
1659 &quot;subtitle&quot;: &quot;A String&quot;, # The subtitle of the card header.
1660 &quot;imageUrl&quot;: &quot;A String&quot;, # The URL of the image in the card header.
1661 &quot;imageStyle&quot;: &quot;A String&quot;, # The image&#x27;s type (e.g. square border or circular border).
1662 &quot;title&quot;: &quot;A String&quot;, # The title must be specified. The header has a fixed height: if both a
1663 # title and subtitle is specified, each will take up 1 line. If only the
1664 # title is specified, it will take up both lines.
Dan O'Mearadd494642020-05-01 07:42:23 -07001665 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001666 &quot;name&quot;: &quot;A String&quot;, # Name of the card.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001667 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001668 ],
1669 &quot;sender&quot;: { # A user in Hangouts Chat. # The user who created the message.
1670 &quot;type&quot;: &quot;A String&quot;, # User type.
1671 &quot;domainId&quot;: &quot;A String&quot;, # Obfuscated domain information.
1672 &quot;name&quot;: &quot;A String&quot;, # Resource name, in the format &quot;users/*&quot;.
1673 &quot;displayName&quot;: &quot;A String&quot;, # The user&#x27;s display name.
1674 },
1675 &quot;thread&quot;: { # A thread in Hangouts Chat. # The thread the message belongs to.
1676 &quot;name&quot;: &quot;A String&quot;, # Resource name, in the form &quot;spaces/*/threads/*&quot;.
1677 #
1678 # Example: spaces/AAAAMpdlehY/threads/UMxbHmzDlr4
1679 },
1680 &quot;annotations&quot;: [ # Output only. Annotations associated with the text in this message.
1681 { # Annotations associated with the plain-text body of the message.
1682 #
1683 # Example plain-text message body:
1684 # ```
1685 # Hello @FooBot how are you!&quot;
1686 # ```
1687 #
1688 # The corresponding annotations metadata:
1689 # ```
1690 # &quot;annotations&quot;:[{
1691 # &quot;type&quot;:&quot;USER_MENTION&quot;,
1692 # &quot;startIndex&quot;:6,
1693 # &quot;length&quot;:7,
1694 # &quot;userMention&quot;: {
1695 # &quot;user&quot;: {
1696 # &quot;name&quot;:&quot;users/107946847022116401880&quot;,
1697 # &quot;displayName&quot;:&quot;FooBot&quot;,
1698 # &quot;avatarUrl&quot;:&quot;https://goo.gl/aeDtrS&quot;,
1699 # &quot;type&quot;:&quot;BOT&quot;
1700 # },
1701 # &quot;type&quot;:&quot;MENTION&quot;
1702 # }
1703 # }]
1704 # ```
1705 &quot;type&quot;: &quot;A String&quot;, # The type of this annotation.
1706 &quot;length&quot;: 42, # Length of the substring in the plain-text message body this annotation
1707 # corresponds to.
1708 &quot;startIndex&quot;: 42, # Start index (0-based, inclusive) in the plain-text message body this
1709 # annotation corresponds to.
1710 &quot;userMention&quot;: { # Annotation metadata for user mentions (@). # The metadata of user mention.
1711 &quot;type&quot;: &quot;A String&quot;, # The type of user mention.
1712 &quot;user&quot;: { # A user in Hangouts Chat. # The user mentioned.
1713 &quot;type&quot;: &quot;A String&quot;, # User type.
1714 &quot;domainId&quot;: &quot;A String&quot;, # Obfuscated domain information.
1715 &quot;name&quot;: &quot;A String&quot;, # Resource name, in the format &quot;users/*&quot;.
1716 &quot;displayName&quot;: &quot;A String&quot;, # The user&#x27;s display name.
1717 },
1718 },
1719 },
1720 ],
1721 &quot;name&quot;: &quot;A String&quot;, # Resource name, in the form &quot;spaces/*/messages/*&quot;.
1722 #
1723 # Example: spaces/AAAAMpdlehY/messages/UMxbHmzDlr4.UMxbHmzDlr4
1724 &quot;previewText&quot;: &quot;A String&quot;, # Text for generating preview chips. This text will not be displayed to the
1725 # user, but any links to images, web pages, videos, etc. included here will
1726 # generate preview chips.
1727 &quot;space&quot;: { # A room or DM in Hangouts Chat. # The space the message belongs to.
1728 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of a space.
1729 # This is deprecated. Use `single_user_bot_dm` instead.
1730 &quot;singleUserBotDm&quot;: True or False, # Whether the space is a DM between a bot and a single human.
1731 &quot;name&quot;: &quot;A String&quot;, # Resource name of the space, in the form &quot;spaces/*&quot;.
1732 #
1733 # Example: spaces/AAAAMpdlehYs
1734 &quot;threaded&quot;: True or False, # Whether the messages are threaded in this space.
1735 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name (only if the space is a room).
1736 },
1737 &quot;text&quot;: &quot;A String&quot;, # Plain-text body of the message.
1738 &quot;argumentText&quot;: &quot;A String&quot;, # Plain-text body of the message with all bot mentions stripped out.
1739 &quot;fallbackText&quot;: &quot;A String&quot;, # A plain-text description of the message&#x27;s cards, used when the actual cards
1740 # cannot be displayed (e.g. mobile notifications).
1741 &quot;actionResponse&quot;: { # Parameters that a bot can use to configure how it&#x27;s response is posted. # Input only. Parameters that a bot can use to configure how its response is
1742 # posted.
1743 &quot;type&quot;: &quot;A String&quot;, # The type of bot response.
1744 &quot;url&quot;: &quot;A String&quot;, # URL for users to auth or config. (Only for REQUEST_CONFIG response types.)
1745 },
1746 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the message was created in Hangouts Chat
1747 # server.
1748 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001749</div>
1750
1751</body></html>