blob: 75a90293cec01e38732caff542913ff212deb862 [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="dialogflow_v2beta1.html">Dialogflow API</a> . <a href="dialogflow_v2beta1.projects.html">projects</a> . <a href="dialogflow_v2beta1.projects.agent.html">agent</a> . <a href="dialogflow_v2beta1.projects.agent.intents.html">intents</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#batchDelete">batchDelete(parent, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070079<p class="firstline">Deletes intents in the specified agent.</p>
80<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#batchUpdate">batchUpdate(parent, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070082<p class="firstline">Updates/Creates multiple intents in the specified agent.</p>
83<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070084 <code><a href="#create">create(parent, body=None, intentView=None, languageCode=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070085<p class="firstline">Creates an intent in the specified agent.</p>
86<p class="toc_element">
87 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
88<p class="firstline">Deletes the specified intent and its direct or indirect followup intents.</p>
89<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070090 <code><a href="#get">get(name, intentView=None, languageCode=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070091<p class="firstline">Retrieves the specified intent.</p>
92<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070093 <code><a href="#list">list(parent, languageCode=None, pageToken=None, pageSize=None, intentView=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070094<p class="firstline">Returns the list of all intents in the specified agent.</p>
95<p class="toc_element">
96 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
97<p class="firstline">Retrieves the next page of results.</p>
98<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070099 <code><a href="#patch">patch(name, body=None, intentView=None, languageCode=None, updateMask=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700100<p class="firstline">Updates the specified intent.</p>
101<h3>Method Details</h3>
102<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700103 <code class="details" id="batchDelete">batchDelete(parent, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700104 <pre>Deletes intents in the specified agent.
105
Dan O'Mearadd494642020-05-01 07:42:23 -0700106Operation &lt;response: google.protobuf.Empty&gt;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700107
108Args:
109 parent: string, Required. The name of the agent to delete all entities types for. Format:
Dan O'Mearadd494642020-05-01 07:42:23 -0700110`projects/&lt;Project ID&gt;/agent`. (required)
111 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700112 The object takes the form of:
113
114{ # The request message for Intents.BatchDeleteIntents.
Bu Sun Kim65020912020-05-20 12:08:20 -0700115 &quot;intents&quot;: [ # Required. The collection of intents to delete. Only intent `name` must be
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700116 # filled in.
117 { # Represents an intent.
118 # Intents convert a number of user expressions or patterns into an action. An
119 # action is an extraction of a user command or sentence semantics.
Bu Sun Kim65020912020-05-20 12:08:20 -0700120 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is
Dan O'Mearadd494642020-05-01 07:42:23 -0700121 # trained on.
122 { # Represents an example that the agent is trained on.
Bu Sun Kim65020912020-05-20 12:08:20 -0700123 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts.
Dan O'Mearadd494642020-05-01 07:42:23 -0700124 # The parts are concatenated in order to form the training phrase.
125 #
126 # Note: The API does not automatically annotate training phrases like the
127 # Dialogflow Console does.
128 #
129 # Note: Do not forget to include whitespace at part boundaries,
130 # so the training phrase is well formatted when the parts are concatenated.
131 #
132 # If the training phrase does not need to be annotated with parameters,
133 # you just need a single part with only the Part.text field set.
134 #
135 # If you want to annotate the training phrase, you must create multiple
136 # parts, where the fields of each part are populated in one of two ways:
137 #
138 # - `Part.text` is set to a part of the phrase that has no parameters.
139 # - `Part.text` is set to a part of the phrase that you want to annotate,
140 # and the `entity_type`, `alias`, and `user_defined` fields are all
141 # set.
142 { # Represents a part of a training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -0700143 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the
Dan O'Mearadd494642020-05-01 07:42:23 -0700144 # annotated part of the example.
145 # This field is required for annotated parts of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -0700146 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated.
Dan O'Mearadd494642020-05-01 07:42:23 -0700147 # This field is set to true when the Dialogflow Console is used to
148 # manually annotate the part. When creating an annotated part with the
149 # API, you must set this to true.
Bu Sun Kim65020912020-05-20 12:08:20 -0700150 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
151 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`.
152 # This field is required for annotated parts of the training phrase.
Dan O'Mearadd494642020-05-01 07:42:23 -0700153 },
154 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700155 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
156 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to
Dan O'Mearadd494642020-05-01 07:42:23 -0700157 # the intent. Each time a developer adds an existing sample by editing an
158 # intent or training, this counter is increased.
Bu Sun Kim65020912020-05-20 12:08:20 -0700159 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
Dan O'Mearadd494642020-05-01 07:42:23 -0700160 },
161 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700162 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current
163 # session when this intent is matched.
164 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
165 { # Represents intent parameters.
166 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
167 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that
168 # describes values of the parameter. If the parameter is
169 # required, this must be provided.
170 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the
171 # user in order to collect a value for the parameter.
172 &quot;A String&quot;,
173 ],
174 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty
175 # result.
176 # Default values can be extracted from contexts by using the following
177 # syntax: `#context_name.parameter_name`.
178 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is,
179 # whether the intent cannot be completed without collecting the parameter
180 # value.
181 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
182 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
183 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be:
184 #
185 # - a constant string,
186 # - a parameter value defined as `$parameter_name`,
187 # - an original parameter value defined as `$parameter_name.original`,
188 # - a parameter value from some context defined as
189 # `#context_name.parameter_name`.
190 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700191 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700192 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent.
193 # If the collection of input contexts is not empty, all of the contexts must
194 # be present in the active user session for an event to trigger this intent.
195 # Event names are limited to 150 characters.
196 &quot;A String&quot;,
197 ],
198 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Optional. The unique identifier of the parent intent in the
199 # chain of followup intents. You can set this field when creating an intent,
200 # for example with CreateIntent or
201 # BatchUpdateIntents, in order to make this
202 # intent a followup intent.
203 #
204 # It identifies the parent followup intent.
205 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
206 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher
Dan O'Mearadd494642020-05-01 07:42:23 -0700207 # priorities.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700208 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700209 # - If the supplied value is unspecified or 0, the service
210 # translates the value to 500,000, which corresponds to the
211 # `Normal` priority in the console.
212 # - If the supplied value is negative, the intent is ignored
213 # in runtime detect intent requests.
Bu Sun Kim65020912020-05-20 12:08:20 -0700214 &quot;endInteraction&quot;: True or False, # Optional. Indicates that this intent ends an interaction. Some integrations
215 # (e.g., Actions on Google or Dialogflow phone gateway) use this information
216 # to close interaction with an end user. Default is false.
217 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent
218 # is matched. Context messages in this collection should not set the
219 # parameters field. Setting the `lifespan_count` to 0 will reset the context
220 # when the intent is matched.
221 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
222 { # Represents a context.
223 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
224 # context expires. The default is `0`. If set to `0`, the context expires
225 # immediately. Contexts expire automatically after 20 minutes if there
226 # are no matching queries.
227 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
228 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
229 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
230 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
231 #
232 # The `Context ID` is always converted to lowercase, may only contain
233 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
234 #
235 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
236 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
237 #
238 # The following context names are reserved for internal use by Dialogflow.
239 # You should not use these contexts or create contexts with these names:
240 #
241 # * `__system_counters__`
242 # * `*_id_dialog_context`
243 # * `*_dialog_params_size`
244 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
245 #
246 # Depending on your protocol or client library language, this is a
247 # map, associative array, symbol table, dictionary, or JSON object
248 # composed of a collection of (MapKey, MapValue) pairs:
249 #
250 # - MapKey type: string
251 # - MapKey value: parameter name
252 # - MapValue type:
253 # - If parameter&#x27;s entity type is a composite entity: map
254 # - Else: string or number, depending on parameter value type
255 # - MapValue value:
256 # - If parameter&#x27;s entity type is a composite entity:
257 # map from composite entity property names to property values
258 # - Else: parameter value
259 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
260 },
261 },
262 ],
263 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be
264 # copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
265 &quot;A String&quot;,
266 ],
267 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the
268 # `Response` field in the Dialogflow console.
269 { # Corresponds to the `Response` field in the Dialogflow console.
270 &quot;text&quot;: { # The text response message. # Returns a text response.
271 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
272 &quot;A String&quot;,
273 ],
274 },
275 &quot;rbmCarouselRichCard&quot;: { # Carousel Rich Business Messaging (RBM) rich card. # Rich Business Messaging (RBM) carousel rich card response.
276 #
277 # Rich cards allow you to respond to users with more vivid content, e.g.
278 # with media and suggestions.
279 #
280 # For more details about RBM rich cards, please see:
281 # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards.
282 # If you want to show a single card with more control over the layout,
283 # please use RbmStandaloneCard instead.
284 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
285 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least
286 # 2 cards and at most 10.
287 { # Rich Business Messaging (RBM) Card content
288 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
289 #
290 # At least one of the title, description or media must be set.
291 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
292 # be set. Media (image, GIF or a video) to include in the card.
293 # The following media-types are currently supported:
294 #
295 # Image Types
296 #
297 # * image/jpeg
298 # * image/jpg&#x27;
299 # * image/gif
300 # * image/png
301 #
302 # Video Types
303 #
304 # * video/h263
305 # * video/m4v
306 # * video/mp4
307 # * video/mpeg
308 # * video/mpeg4
309 # * video/webm
310 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
311 # provide a thumbnail URI, the RBM platform displays a blank
312 # placeholder thumbnail until the user&#x27;s device downloads the file.
313 # Depending on the user&#x27;s setting, the file may not download
314 # automatically and may require the user to tap a download button.
315 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
316 # within a rich card with a vertical layout. (https://goo.gl/NeFCjz).
317 # For a standalone card with horizontal layout, height is not
318 # customizable, and this field is ignored.
319 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
320 # determines the MIME type of the file from the content-type field in
321 # the HTTP headers when the platform fetches the file. The content-type
322 # field must be present and accurate in the HTTP response from the URL.
323 },
324 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
325 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
326 # easily select/click a predefined response or perform an action (like
327 # opening a web uri).
328 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
329 # instead of typing in their own response.
330 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
331 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
332 # when the user taps the suggested reply. This data will be also
333 # forwarded to webhook to allow performing custom business logic.
334 },
335 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
336 # can choose from the card.
337 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
338 # when the user taps the suggested action. This data will be also
339 # forwarded to webhook to allow performing custom business logic.
340 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
341 # to send back to the agent (https://goo.gl/GXotJW).
342 },
343 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
344 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
345 # (https://goo.gl/6GLJD2). If the user has an app installed that is
346 # registered as the default handler for the URL, then this app will be
347 # opened instead, and its icon will be used in the suggested action UI.
348 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
349 },
350 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
351 # but does not dial automatically (https://goo.gl/ergbB2).
352 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
353 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
354 # format. An example of a correctly formatted phone number:
355 # +15556767888.
356 },
357 },
358 },
359 ],
360 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
361 #
362 # At least one of the title, description or media must be set.
363 },
364 ],
365 },
366 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
367 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
368 { # The suggestion chip message that the user can tap to quickly post a reply
369 # to the conversation.
370 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
371 },
372 ],
373 },
374 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
375 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
376 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to
377 # play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single
378 # channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz.
379 #
380 # This object must be readable by the `service-&lt;Project
381 # Number&gt;@gcp-sa-dialogflow.iam.gserviceaccount.com` service account
382 # where &lt;Project Number&gt; is the number of the Telephony Gateway project
383 # (usually the same as the Dialogflow agent project). If the Google Cloud
384 # Storage bucket is in the Telephony Gateway project, this permission is
385 # added by default when enabling the Dialogflow V2 API.
386 #
387 # For audio from other sources, consider using the
388 # `TelephonySynthesizeSpeech` message with SSML.
389 },
390 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
391 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
392 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
393 &quot;items&quot;: [ # Required. List items.
394 { # An item in the list.
395 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
396 # dialog.
397 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
398 # item in dialog.
399 &quot;A String&quot;,
400 ],
401 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
402 # response is given.
403 },
404 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
405 &quot;image&quot;: { # The image response message. # Optional. The image to display.
406 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
407 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
408 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
409 },
410 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
411 },
412 ],
413 },
414 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response.
415 #
416 # RBM allows businesses to send enriched and branded versions of SMS. See
417 # https://jibe.google.com/business-messaging.
418 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
419 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
420 # easily select/click a predefined response or perform an action (like
421 # opening a web uri).
422 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
423 # instead of typing in their own response.
424 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
425 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
426 # when the user taps the suggested reply. This data will be also
427 # forwarded to webhook to allow performing custom business logic.
428 },
429 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
430 # can choose from the card.
431 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
432 # when the user taps the suggested action. This data will be also
433 # forwarded to webhook to allow performing custom business logic.
434 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
435 # to send back to the agent (https://goo.gl/GXotJW).
436 },
437 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
438 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
439 # (https://goo.gl/6GLJD2). If the user has an app installed that is
440 # registered as the default handler for the URL, then this app will be
441 # opened instead, and its icon will be used in the suggested action UI.
442 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
443 },
444 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
445 # but does not dial automatically (https://goo.gl/ergbB2).
446 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
447 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
448 # format. An example of a correctly formatted phone number:
449 # +15556767888.
450 },
451 },
452 },
453 ],
454 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
455 },
456 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
457 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
458 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
459 &quot;A String&quot;,
460 ],
461 },
462 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in # Synthesizes speech in Telephony Gateway.
463 # Telephony Gateway.
464 #
465 # Telephony Gateway takes the synthesizer settings from
466 # `DetectIntentResponse.output_audio_config` which can either be set
467 # at request-level or can come from the agent-level synthesizer config.
468 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
469 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see
470 # [SSML](https://developers.google.com/actions/reference/ssml).
471 },
472 &quot;card&quot;: { # The card response message. # Displays a card.
473 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
474 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
475 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
476 { # Optional. Contains information about a button.
477 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
478 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
479 # open.
480 },
481 ],
482 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
483 },
484 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
485 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
486 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
487 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
488 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
489 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
490 },
491 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
492 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
493 { # The button object that appears at the bottom of a card.
494 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
495 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
496 },
497 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
498 },
499 ],
500 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
501 },
502 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
503 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
504 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
505 { # Column properties for TableCard.
506 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
507 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
508 },
509 ],
510 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
511 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
512 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
513 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
514 },
515 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
516 { # The button object that appears at the bottom of a card.
517 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
518 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
519 },
520 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
521 },
522 ],
523 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
524 &quot;rows&quot;: [ # Optional. Rows in this table of data.
525 { # Row of TableCard.
526 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
527 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
528 { # Cell of TableCardRow.
529 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
530 },
531 ],
532 },
533 ],
534 },
535 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
536 &quot;items&quot;: [ # Required. Carousel items.
537 { # An item in the carousel.
538 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
539 &quot;image&quot;: { # The image response message. # Optional. The image to display.
540 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
541 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
542 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
543 },
544 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
545 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
546 # dialog.
547 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
548 # item in dialog.
549 &quot;A String&quot;,
550 ],
551 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
552 # response is given.
553 },
554 },
555 ],
556 },
557 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app # Displays a link out suggestion chip for Actions on Google.
558 # or website associated with this agent.
559 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
560 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
561 # suggestion chip.
562 },
563 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
564 # https://developers.google.com/actions/assistant/responses#browsing_carousel
565 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
566 # items.
567 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
568 # items, maximum of ten.
569 { # Browsing carousel tile
570 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
571 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
572 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
573 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
574 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
575 },
576 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
577 # text.
578 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
579 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
580 # the URL. Defaults to opening via web browser.
581 &quot;url&quot;: &quot;A String&quot;, # Required. URL
582 },
583 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
584 # Card. Maximum of one line of text.
585 },
586 ],
587 },
588 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # Returns a voice or text-only response for Actions on Google.
589 # This message in `QueryResult.fulfillment_messages` and
590 # `WebhookResponse.fulfillment_messages` should contain only one
591 # `SimpleResponse`.
592 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
593 { # The simple response message containing speech or text.
594 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
595 # speech output. Mutually exclusive with ssml.
596 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
597 # response to the user in the SSML format. Mutually exclusive with
598 # text_to_speech.
599 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
600 },
601 ],
602 },
603 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
604 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to
605 # in [E.164 format](https://en.wikipedia.org/wiki/E.164).
606 #
607 # We currently only allow transferring to US numbers (+1xxxyyyzzzz).
608 },
609 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
610 &quot;mediaObjects&quot;: [ # Required. List of media objects.
611 { # Response media object for media content card.
612 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
613 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
614 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
615 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
616 },
617 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
618 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
619 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
620 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
621 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
622 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
623 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
624 },
625 },
626 ],
627 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
628 },
629 &quot;image&quot;: { # The image response message. # Displays an image.
630 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
631 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
632 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
633 },
634 &quot;payload&quot;: { # A custom platform-specific response.
635 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
636 },
637 &quot;rbmStandaloneRichCard&quot;: { # Standalone Rich Business Messaging (RBM) rich card. # Standalone Rich Business Messaging (RBM) rich card response.
638 #
639 # Rich cards allow you to respond to users with more vivid content, e.g.
640 # with media and suggestions.
641 #
642 # For more details about RBM rich cards, please see:
643 # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards.
644 # You can group multiple rich cards into one using RbmCarouselCard but
645 # carousel cards will give you less control over the card layout.
646 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal.
647 # Image preview alignment for standalone cards with horizontal layout.
648 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
649 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
650 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
651 #
652 # At least one of the title, description or media must be set.
653 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
654 # be set. Media (image, GIF or a video) to include in the card.
655 # The following media-types are currently supported:
656 #
657 # Image Types
658 #
659 # * image/jpeg
660 # * image/jpg&#x27;
661 # * image/gif
662 # * image/png
663 #
664 # Video Types
665 #
666 # * video/h263
667 # * video/m4v
668 # * video/mp4
669 # * video/mpeg
670 # * video/mpeg4
671 # * video/webm
672 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
673 # provide a thumbnail URI, the RBM platform displays a blank
674 # placeholder thumbnail until the user&#x27;s device downloads the file.
675 # Depending on the user&#x27;s setting, the file may not download
676 # automatically and may require the user to tap a download button.
677 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
678 # within a rich card with a vertical layout. (https://goo.gl/NeFCjz).
679 # For a standalone card with horizontal layout, height is not
680 # customizable, and this field is ignored.
681 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
682 # determines the MIME type of the file from the content-type field in
683 # the HTTP headers when the platform fetches the file. The content-type
684 # field must be present and accurate in the HTTP response from the URL.
685 },
686 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
687 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
688 # easily select/click a predefined response or perform an action (like
689 # opening a web uri).
690 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
691 # instead of typing in their own response.
692 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
693 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
694 # when the user taps the suggested reply. This data will be also
695 # forwarded to webhook to allow performing custom business logic.
696 },
697 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
698 # can choose from the card.
699 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
700 # when the user taps the suggested action. This data will be also
701 # forwarded to webhook to allow performing custom business logic.
702 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
703 # to send back to the agent (https://goo.gl/GXotJW).
704 },
705 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
706 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
707 # (https://goo.gl/6GLJD2). If the user has an app installed that is
708 # registered as the default handler for the URL, then this app will be
709 # opened instead, and its icon will be used in the suggested action UI.
710 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
711 },
712 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
713 # but does not dial automatically (https://goo.gl/ergbB2).
714 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
715 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
716 # format. An example of a correctly formatted phone number:
717 # +15556767888.
718 },
719 },
720 },
721 ],
722 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
723 #
724 # At least one of the title, description or media must be set.
725 },
726 },
727 },
728 ],
729 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent.
730 # Note: The action name must not contain whitespaces.
731 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent.
732 # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
733 # methods.
Dan O'Mearadd494642020-05-01 07:42:23 -0700734 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700735 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
736 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700737 # triggered.
Dan O'Mearadd494642020-05-01 07:42:23 -0700738 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700739 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700740 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700741 &quot;followupIntentInfo&quot;: [ # Output only. Information about all followup intents that have this intent as
742 # a direct or indirect parent. We populate this field only in the output.
743 { # Represents a single followup intent in the chain.
744 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent.
745 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
746 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent.
747 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
748 },
749 ],
750 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
751 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Output only. The unique identifier of the root intent in the chain of
752 # followup intents. It identifies the correct followup intents chain for
753 # this intent.
754 #
755 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
756 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
757 # Note: If `ml_disabled` setting is set to true, then this intent is not
758 # taken into account during inference in `ML ONLY` match mode. Also,
759 # auto-markup in the UI is turned off.
760 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
761 &quot;mlEnabled&quot;: True or False, # Optional. Indicates whether Machine Learning is enabled for the intent.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700762 # Note: If `ml_enabled` setting is set to false, then this intent is not
763 # taken into account during inference in `ML ONLY` match mode. Also,
764 # auto-markup in the UI is turned off.
765 # DEPRECATED! Please use `ml_disabled` field instead.
766 # NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false,
767 # then the default value is determined as follows:
768 # - Before April 15th, 2018 the default is:
769 # ml_enabled = false / ml_disabled = true.
770 # - After April 15th, 2018 the default is:
771 # ml_enabled = true / ml_disabled = false.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700772 },
773 ],
774 }
775
776 x__xgafv: string, V1 error format.
777 Allowed values
778 1 - v1 error format
779 2 - v2 error format
780
781Returns:
782 An object of the form:
783
784 { # This resource represents a long-running operation that is the result of a
785 # network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -0700786 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
787 # contains progress information and common metadata such as create time.
788 # Some services might not provide such metadata. Any method that returns a
789 # long-running operation should document the metadata type, if any.
790 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
791 },
792 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
793 # If `true`, the operation is completed, and either `error` or `response` is
794 # available.
795 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Dan O'Mearadd494642020-05-01 07:42:23 -0700796 # method returns no data on success, such as `Delete`, the response is
797 # `google.protobuf.Empty`. If the original method is standard
798 # `Get`/`Create`/`Update`, the response should be the resource. For other
799 # methods, the response should have the type `XxxResponse`, where `Xxx`
800 # is the original method name. For example, if the original method name
801 # is `TakeSnapshot()`, the inferred response type is
802 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700803 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700804 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700805 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
Dan O'Mearadd494642020-05-01 07:42:23 -0700806 # originally returns it. If you use the default HTTP mapping, the
807 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700808 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700809 # different programming environments, including REST APIs and RPC APIs. It is
810 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
811 # three pieces of data: error code, error message, and error details.
812 #
813 # You can find out more about this error model and how to work with it in the
814 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim65020912020-05-20 12:08:20 -0700815 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700816 # message types for APIs to use.
817 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700818 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700819 },
820 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700821 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
822 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
823 # user-facing error message should be localized and sent in the
824 # google.rpc.Status.details field, or localized by the client.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700825 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700826 }</pre>
827</div>
828
829<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700830 <code class="details" id="batchUpdate">batchUpdate(parent, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700831 <pre>Updates/Creates multiple intents in the specified agent.
832
Dan O'Mearadd494642020-05-01 07:42:23 -0700833Operation &lt;response: BatchUpdateIntentsResponse&gt;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700834
835Args:
836 parent: string, Required. The name of the agent to update or create intents in.
Dan O'Mearadd494642020-05-01 07:42:23 -0700837Format: `projects/&lt;Project ID&gt;/agent`. (required)
838 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700839 The object takes the form of:
840
841{ # The request message for Intents.BatchUpdateIntents.
Bu Sun Kim65020912020-05-20 12:08:20 -0700842 &quot;intentBatchInline&quot;: { # This message is a wrapper around a collection of intents. # The collection of intents to update or create.
843 &quot;intents&quot;: [ # A collection of intents.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700844 { # Represents an intent.
845 # Intents convert a number of user expressions or patterns into an action. An
846 # action is an extraction of a user command or sentence semantics.
Bu Sun Kim65020912020-05-20 12:08:20 -0700847 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is
Dan O'Mearadd494642020-05-01 07:42:23 -0700848 # trained on.
849 { # Represents an example that the agent is trained on.
Bu Sun Kim65020912020-05-20 12:08:20 -0700850 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts.
Dan O'Mearadd494642020-05-01 07:42:23 -0700851 # The parts are concatenated in order to form the training phrase.
852 #
853 # Note: The API does not automatically annotate training phrases like the
854 # Dialogflow Console does.
855 #
856 # Note: Do not forget to include whitespace at part boundaries,
857 # so the training phrase is well formatted when the parts are concatenated.
858 #
859 # If the training phrase does not need to be annotated with parameters,
860 # you just need a single part with only the Part.text field set.
861 #
862 # If you want to annotate the training phrase, you must create multiple
863 # parts, where the fields of each part are populated in one of two ways:
864 #
865 # - `Part.text` is set to a part of the phrase that has no parameters.
866 # - `Part.text` is set to a part of the phrase that you want to annotate,
867 # and the `entity_type`, `alias`, and `user_defined` fields are all
868 # set.
869 { # Represents a part of a training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -0700870 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the
Dan O'Mearadd494642020-05-01 07:42:23 -0700871 # annotated part of the example.
872 # This field is required for annotated parts of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -0700873 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated.
Dan O'Mearadd494642020-05-01 07:42:23 -0700874 # This field is set to true when the Dialogflow Console is used to
875 # manually annotate the part. When creating an annotated part with the
876 # API, you must set this to true.
Bu Sun Kim65020912020-05-20 12:08:20 -0700877 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
878 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`.
879 # This field is required for annotated parts of the training phrase.
Dan O'Mearadd494642020-05-01 07:42:23 -0700880 },
881 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700882 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
883 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to
Dan O'Mearadd494642020-05-01 07:42:23 -0700884 # the intent. Each time a developer adds an existing sample by editing an
885 # intent or training, this counter is increased.
Bu Sun Kim65020912020-05-20 12:08:20 -0700886 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
Dan O'Mearadd494642020-05-01 07:42:23 -0700887 },
888 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700889 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current
890 # session when this intent is matched.
891 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
892 { # Represents intent parameters.
893 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
894 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that
895 # describes values of the parameter. If the parameter is
896 # required, this must be provided.
897 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the
898 # user in order to collect a value for the parameter.
899 &quot;A String&quot;,
900 ],
901 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty
902 # result.
903 # Default values can be extracted from contexts by using the following
904 # syntax: `#context_name.parameter_name`.
905 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is,
906 # whether the intent cannot be completed without collecting the parameter
907 # value.
908 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
909 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
910 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be:
911 #
912 # - a constant string,
913 # - a parameter value defined as `$parameter_name`,
914 # - an original parameter value defined as `$parameter_name.original`,
915 # - a parameter value from some context defined as
916 # `#context_name.parameter_name`.
917 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700918 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700919 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent.
920 # If the collection of input contexts is not empty, all of the contexts must
921 # be present in the active user session for an event to trigger this intent.
922 # Event names are limited to 150 characters.
923 &quot;A String&quot;,
924 ],
925 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Optional. The unique identifier of the parent intent in the
926 # chain of followup intents. You can set this field when creating an intent,
927 # for example with CreateIntent or
928 # BatchUpdateIntents, in order to make this
929 # intent a followup intent.
930 #
931 # It identifies the parent followup intent.
932 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
933 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher
Dan O'Mearadd494642020-05-01 07:42:23 -0700934 # priorities.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700935 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700936 # - If the supplied value is unspecified or 0, the service
937 # translates the value to 500,000, which corresponds to the
938 # `Normal` priority in the console.
939 # - If the supplied value is negative, the intent is ignored
940 # in runtime detect intent requests.
Bu Sun Kim65020912020-05-20 12:08:20 -0700941 &quot;endInteraction&quot;: True or False, # Optional. Indicates that this intent ends an interaction. Some integrations
942 # (e.g., Actions on Google or Dialogflow phone gateway) use this information
943 # to close interaction with an end user. Default is false.
944 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent
945 # is matched. Context messages in this collection should not set the
946 # parameters field. Setting the `lifespan_count` to 0 will reset the context
947 # when the intent is matched.
948 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
949 { # Represents a context.
950 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
951 # context expires. The default is `0`. If set to `0`, the context expires
952 # immediately. Contexts expire automatically after 20 minutes if there
953 # are no matching queries.
954 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
955 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
956 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
957 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
958 #
959 # The `Context ID` is always converted to lowercase, may only contain
960 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
961 #
962 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
963 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
964 #
965 # The following context names are reserved for internal use by Dialogflow.
966 # You should not use these contexts or create contexts with these names:
967 #
968 # * `__system_counters__`
969 # * `*_id_dialog_context`
970 # * `*_dialog_params_size`
971 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
972 #
973 # Depending on your protocol or client library language, this is a
974 # map, associative array, symbol table, dictionary, or JSON object
975 # composed of a collection of (MapKey, MapValue) pairs:
976 #
977 # - MapKey type: string
978 # - MapKey value: parameter name
979 # - MapValue type:
980 # - If parameter&#x27;s entity type is a composite entity: map
981 # - Else: string or number, depending on parameter value type
982 # - MapValue value:
983 # - If parameter&#x27;s entity type is a composite entity:
984 # map from composite entity property names to property values
985 # - Else: parameter value
986 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
987 },
988 },
989 ],
990 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be
991 # copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
992 &quot;A String&quot;,
993 ],
994 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the
995 # `Response` field in the Dialogflow console.
996 { # Corresponds to the `Response` field in the Dialogflow console.
997 &quot;text&quot;: { # The text response message. # Returns a text response.
998 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
999 &quot;A String&quot;,
1000 ],
1001 },
1002 &quot;rbmCarouselRichCard&quot;: { # Carousel Rich Business Messaging (RBM) rich card. # Rich Business Messaging (RBM) carousel rich card response.
1003 #
1004 # Rich cards allow you to respond to users with more vivid content, e.g.
1005 # with media and suggestions.
1006 #
1007 # For more details about RBM rich cards, please see:
1008 # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards.
1009 # If you want to show a single card with more control over the layout,
1010 # please use RbmStandaloneCard instead.
1011 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
1012 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least
1013 # 2 cards and at most 10.
1014 { # Rich Business Messaging (RBM) Card content
1015 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
1016 #
1017 # At least one of the title, description or media must be set.
1018 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
1019 # be set. Media (image, GIF or a video) to include in the card.
1020 # The following media-types are currently supported:
1021 #
1022 # Image Types
1023 #
1024 # * image/jpeg
1025 # * image/jpg&#x27;
1026 # * image/gif
1027 # * image/png
1028 #
1029 # Video Types
1030 #
1031 # * video/h263
1032 # * video/m4v
1033 # * video/mp4
1034 # * video/mpeg
1035 # * video/mpeg4
1036 # * video/webm
1037 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
1038 # provide a thumbnail URI, the RBM platform displays a blank
1039 # placeholder thumbnail until the user&#x27;s device downloads the file.
1040 # Depending on the user&#x27;s setting, the file may not download
1041 # automatically and may require the user to tap a download button.
1042 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
1043 # within a rich card with a vertical layout. (https://goo.gl/NeFCjz).
1044 # For a standalone card with horizontal layout, height is not
1045 # customizable, and this field is ignored.
1046 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
1047 # determines the MIME type of the file from the content-type field in
1048 # the HTTP headers when the platform fetches the file. The content-type
1049 # field must be present and accurate in the HTTP response from the URL.
1050 },
1051 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
1052 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
1053 # easily select/click a predefined response or perform an action (like
1054 # opening a web uri).
1055 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
1056 # instead of typing in their own response.
1057 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
1058 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1059 # when the user taps the suggested reply. This data will be also
1060 # forwarded to webhook to allow performing custom business logic.
1061 },
1062 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
1063 # can choose from the card.
1064 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1065 # when the user taps the suggested action. This data will be also
1066 # forwarded to webhook to allow performing custom business logic.
1067 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
1068 # to send back to the agent (https://goo.gl/GXotJW).
1069 },
1070 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1071 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
1072 # (https://goo.gl/6GLJD2). If the user has an app installed that is
1073 # registered as the default handler for the URL, then this app will be
1074 # opened instead, and its icon will be used in the suggested action UI.
1075 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1076 },
1077 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
1078 # but does not dial automatically (https://goo.gl/ergbB2).
1079 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
1080 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
1081 # format. An example of a correctly formatted phone number:
1082 # +15556767888.
1083 },
1084 },
1085 },
1086 ],
1087 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
1088 #
1089 # At least one of the title, description or media must be set.
1090 },
1091 ],
1092 },
1093 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
1094 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
1095 { # The suggestion chip message that the user can tap to quickly post a reply
1096 # to the conversation.
1097 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
1098 },
1099 ],
1100 },
1101 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
1102 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
1103 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to
1104 # play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single
1105 # channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz.
1106 #
1107 # This object must be readable by the `service-&lt;Project
1108 # Number&gt;@gcp-sa-dialogflow.iam.gserviceaccount.com` service account
1109 # where &lt;Project Number&gt; is the number of the Telephony Gateway project
1110 # (usually the same as the Dialogflow agent project). If the Google Cloud
1111 # Storage bucket is in the Telephony Gateway project, this permission is
1112 # added by default when enabling the Dialogflow V2 API.
1113 #
1114 # For audio from other sources, consider using the
1115 # `TelephonySynthesizeSpeech` message with SSML.
1116 },
1117 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
1118 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
1119 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
1120 &quot;items&quot;: [ # Required. List items.
1121 { # An item in the list.
1122 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
1123 # dialog.
1124 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
1125 # item in dialog.
1126 &quot;A String&quot;,
1127 ],
1128 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
1129 # response is given.
1130 },
1131 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
1132 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1133 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1134 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1135 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1136 },
1137 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
1138 },
1139 ],
1140 },
1141 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response.
1142 #
1143 # RBM allows businesses to send enriched and branded versions of SMS. See
1144 # https://jibe.google.com/business-messaging.
1145 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
1146 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
1147 # easily select/click a predefined response or perform an action (like
1148 # opening a web uri).
1149 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
1150 # instead of typing in their own response.
1151 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
1152 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1153 # when the user taps the suggested reply. This data will be also
1154 # forwarded to webhook to allow performing custom business logic.
1155 },
1156 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
1157 # can choose from the card.
1158 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1159 # when the user taps the suggested action. This data will be also
1160 # forwarded to webhook to allow performing custom business logic.
1161 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
1162 # to send back to the agent (https://goo.gl/GXotJW).
1163 },
1164 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1165 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
1166 # (https://goo.gl/6GLJD2). If the user has an app installed that is
1167 # registered as the default handler for the URL, then this app will be
1168 # opened instead, and its icon will be used in the suggested action UI.
1169 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1170 },
1171 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
1172 # but does not dial automatically (https://goo.gl/ergbB2).
1173 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
1174 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
1175 # format. An example of a correctly formatted phone number:
1176 # +15556767888.
1177 },
1178 },
1179 },
1180 ],
1181 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
1182 },
1183 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
1184 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
1185 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
1186 &quot;A String&quot;,
1187 ],
1188 },
1189 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in # Synthesizes speech in Telephony Gateway.
1190 # Telephony Gateway.
1191 #
1192 # Telephony Gateway takes the synthesizer settings from
1193 # `DetectIntentResponse.output_audio_config` which can either be set
1194 # at request-level or can come from the agent-level synthesizer config.
1195 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
1196 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see
1197 # [SSML](https://developers.google.com/actions/reference/ssml).
1198 },
1199 &quot;card&quot;: { # The card response message. # Displays a card.
1200 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
1201 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1202 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1203 { # Optional. Contains information about a button.
1204 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
1205 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
1206 # open.
1207 },
1208 ],
1209 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1210 },
1211 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
1212 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1213 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
1214 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1215 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1216 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1217 },
1218 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
1219 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1220 { # The button object that appears at the bottom of a card.
1221 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1222 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1223 },
1224 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1225 },
1226 ],
1227 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1228 },
1229 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
1230 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
1231 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
1232 { # Column properties for TableCard.
1233 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
1234 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
1235 },
1236 ],
1237 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
1238 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1239 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1240 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1241 },
1242 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
1243 { # The button object that appears at the bottom of a card.
1244 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1245 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1246 },
1247 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1248 },
1249 ],
1250 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
1251 &quot;rows&quot;: [ # Optional. Rows in this table of data.
1252 { # Row of TableCard.
1253 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
1254 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
1255 { # Cell of TableCardRow.
1256 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
1257 },
1258 ],
1259 },
1260 ],
1261 },
1262 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
1263 &quot;items&quot;: [ # Required. Carousel items.
1264 { # An item in the carousel.
1265 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
1266 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1267 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1268 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1269 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1270 },
1271 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
1272 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
1273 # dialog.
1274 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
1275 # item in dialog.
1276 &quot;A String&quot;,
1277 ],
1278 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
1279 # response is given.
1280 },
1281 },
1282 ],
1283 },
1284 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app # Displays a link out suggestion chip for Actions on Google.
1285 # or website associated with this agent.
1286 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
1287 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
1288 # suggestion chip.
1289 },
1290 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
1291 # https://developers.google.com/actions/assistant/responses#browsing_carousel
1292 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
1293 # items.
1294 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
1295 # items, maximum of ten.
1296 { # Browsing carousel tile
1297 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
1298 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
1299 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1300 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1301 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1302 },
1303 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
1304 # text.
1305 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
1306 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
1307 # the URL. Defaults to opening via web browser.
1308 &quot;url&quot;: &quot;A String&quot;, # Required. URL
1309 },
1310 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
1311 # Card. Maximum of one line of text.
1312 },
1313 ],
1314 },
1315 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # Returns a voice or text-only response for Actions on Google.
1316 # This message in `QueryResult.fulfillment_messages` and
1317 # `WebhookResponse.fulfillment_messages` should contain only one
1318 # `SimpleResponse`.
1319 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
1320 { # The simple response message containing speech or text.
1321 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
1322 # speech output. Mutually exclusive with ssml.
1323 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
1324 # response to the user in the SSML format. Mutually exclusive with
1325 # text_to_speech.
1326 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
1327 },
1328 ],
1329 },
1330 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
1331 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to
1332 # in [E.164 format](https://en.wikipedia.org/wiki/E.164).
1333 #
1334 # We currently only allow transferring to US numbers (+1xxxyyyzzzz).
1335 },
1336 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
1337 &quot;mediaObjects&quot;: [ # Required. List of media objects.
1338 { # Response media object for media content card.
1339 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
1340 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1341 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1342 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1343 },
1344 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
1345 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
1346 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
1347 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
1348 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1349 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1350 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1351 },
1352 },
1353 ],
1354 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
1355 },
1356 &quot;image&quot;: { # The image response message. # Displays an image.
1357 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1358 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1359 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1360 },
1361 &quot;payload&quot;: { # A custom platform-specific response.
1362 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1363 },
1364 &quot;rbmStandaloneRichCard&quot;: { # Standalone Rich Business Messaging (RBM) rich card. # Standalone Rich Business Messaging (RBM) rich card response.
1365 #
1366 # Rich cards allow you to respond to users with more vivid content, e.g.
1367 # with media and suggestions.
1368 #
1369 # For more details about RBM rich cards, please see:
1370 # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards.
1371 # You can group multiple rich cards into one using RbmCarouselCard but
1372 # carousel cards will give you less control over the card layout.
1373 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal.
1374 # Image preview alignment for standalone cards with horizontal layout.
1375 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
1376 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
1377 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
1378 #
1379 # At least one of the title, description or media must be set.
1380 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
1381 # be set. Media (image, GIF or a video) to include in the card.
1382 # The following media-types are currently supported:
1383 #
1384 # Image Types
1385 #
1386 # * image/jpeg
1387 # * image/jpg&#x27;
1388 # * image/gif
1389 # * image/png
1390 #
1391 # Video Types
1392 #
1393 # * video/h263
1394 # * video/m4v
1395 # * video/mp4
1396 # * video/mpeg
1397 # * video/mpeg4
1398 # * video/webm
1399 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
1400 # provide a thumbnail URI, the RBM platform displays a blank
1401 # placeholder thumbnail until the user&#x27;s device downloads the file.
1402 # Depending on the user&#x27;s setting, the file may not download
1403 # automatically and may require the user to tap a download button.
1404 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
1405 # within a rich card with a vertical layout. (https://goo.gl/NeFCjz).
1406 # For a standalone card with horizontal layout, height is not
1407 # customizable, and this field is ignored.
1408 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
1409 # determines the MIME type of the file from the content-type field in
1410 # the HTTP headers when the platform fetches the file. The content-type
1411 # field must be present and accurate in the HTTP response from the URL.
1412 },
1413 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
1414 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
1415 # easily select/click a predefined response or perform an action (like
1416 # opening a web uri).
1417 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
1418 # instead of typing in their own response.
1419 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
1420 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1421 # when the user taps the suggested reply. This data will be also
1422 # forwarded to webhook to allow performing custom business logic.
1423 },
1424 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
1425 # can choose from the card.
1426 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1427 # when the user taps the suggested action. This data will be also
1428 # forwarded to webhook to allow performing custom business logic.
1429 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
1430 # to send back to the agent (https://goo.gl/GXotJW).
1431 },
1432 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1433 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
1434 # (https://goo.gl/6GLJD2). If the user has an app installed that is
1435 # registered as the default handler for the URL, then this app will be
1436 # opened instead, and its icon will be used in the suggested action UI.
1437 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1438 },
1439 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
1440 # but does not dial automatically (https://goo.gl/ergbB2).
1441 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
1442 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
1443 # format. An example of a correctly formatted phone number:
1444 # +15556767888.
1445 },
1446 },
1447 },
1448 ],
1449 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
1450 #
1451 # At least one of the title, description or media must be set.
1452 },
1453 },
1454 },
1455 ],
1456 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent.
1457 # Note: The action name must not contain whitespaces.
1458 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent.
1459 # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
1460 # methods.
Dan O'Mearadd494642020-05-01 07:42:23 -07001461 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001462 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
1463 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001464 # triggered.
Dan O'Mearadd494642020-05-01 07:42:23 -07001465 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001466 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001467 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001468 &quot;followupIntentInfo&quot;: [ # Output only. Information about all followup intents that have this intent as
1469 # a direct or indirect parent. We populate this field only in the output.
1470 { # Represents a single followup intent in the chain.
1471 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent.
1472 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
1473 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent.
1474 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
1475 },
1476 ],
1477 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
1478 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Output only. The unique identifier of the root intent in the chain of
1479 # followup intents. It identifies the correct followup intents chain for
1480 # this intent.
1481 #
1482 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
1483 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
1484 # Note: If `ml_disabled` setting is set to true, then this intent is not
1485 # taken into account during inference in `ML ONLY` match mode. Also,
1486 # auto-markup in the UI is turned off.
1487 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
1488 &quot;mlEnabled&quot;: True or False, # Optional. Indicates whether Machine Learning is enabled for the intent.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001489 # Note: If `ml_enabled` setting is set to false, then this intent is not
1490 # taken into account during inference in `ML ONLY` match mode. Also,
1491 # auto-markup in the UI is turned off.
1492 # DEPRECATED! Please use `ml_disabled` field instead.
1493 # NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false,
1494 # then the default value is determined as follows:
1495 # - Before April 15th, 2018 the default is:
1496 # ml_enabled = false / ml_disabled = true.
1497 # - After April 15th, 2018 the default is:
1498 # ml_enabled = true / ml_disabled = false.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001499 },
1500 ],
1501 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001502 &quot;languageCode&quot;: &quot;A String&quot;, # Optional. The language used to access language-specific data.
1503 # If not specified, the agent&#x27;s default language is used.
1504 # For more information, see
1505 # [Multilingual intent and entity
1506 # data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
1507 &quot;updateMask&quot;: &quot;A String&quot;, # Optional. The mask to control which fields get updated.
1508 &quot;intentBatchUri&quot;: &quot;A String&quot;, # The URI to a Google Cloud Storage file containing intents to update or
1509 # create. The file format can either be a serialized proto (of IntentBatch
1510 # type) or JSON object. Note: The URI must start with &quot;gs://&quot;.
1511 &quot;intentView&quot;: &quot;A String&quot;, # Optional. The resource view to apply to the returned intent.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001512 }
1513
1514 x__xgafv: string, V1 error format.
1515 Allowed values
1516 1 - v1 error format
1517 2 - v2 error format
1518
1519Returns:
1520 An object of the form:
1521
1522 { # This resource represents a long-running operation that is the result of a
1523 # network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -07001524 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
1525 # contains progress information and common metadata such as create time.
1526 # Some services might not provide such metadata. Any method that returns a
1527 # long-running operation should document the metadata type, if any.
1528 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1529 },
1530 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
1531 # If `true`, the operation is completed, and either `error` or `response` is
1532 # available.
1533 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Dan O'Mearadd494642020-05-01 07:42:23 -07001534 # method returns no data on success, such as `Delete`, the response is
1535 # `google.protobuf.Empty`. If the original method is standard
1536 # `Get`/`Create`/`Update`, the response should be the resource. For other
1537 # methods, the response should have the type `XxxResponse`, where `Xxx`
1538 # is the original method name. For example, if the original method name
1539 # is `TakeSnapshot()`, the inferred response type is
1540 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001541 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -07001542 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001543 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
Dan O'Mearadd494642020-05-01 07:42:23 -07001544 # originally returns it. If you use the default HTTP mapping, the
1545 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001546 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001547 # different programming environments, including REST APIs and RPC APIs. It is
1548 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1549 # three pieces of data: error code, error message, and error details.
1550 #
1551 # You can find out more about this error model and how to work with it in the
1552 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim65020912020-05-20 12:08:20 -07001553 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001554 # message types for APIs to use.
1555 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001556 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001557 },
1558 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001559 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1560 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1561 # user-facing error message should be localized and sent in the
1562 # google.rpc.Status.details field, or localized by the client.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001563 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001564 }</pre>
1565</div>
1566
1567<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -07001568 <code class="details" id="create">create(parent, body=None, intentView=None, languageCode=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001569 <pre>Creates an intent in the specified agent.
1570
1571Args:
1572 parent: string, Required. The agent to create a intent for.
Dan O'Mearadd494642020-05-01 07:42:23 -07001573Format: `projects/&lt;Project ID&gt;/agent`. (required)
1574 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001575 The object takes the form of:
1576
1577{ # Represents an intent.
1578 # Intents convert a number of user expressions or patterns into an action. An
1579 # action is an extraction of a user command or sentence semantics.
Bu Sun Kim65020912020-05-20 12:08:20 -07001580 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is
Dan O'Mearadd494642020-05-01 07:42:23 -07001581 # trained on.
1582 { # Represents an example that the agent is trained on.
Bu Sun Kim65020912020-05-20 12:08:20 -07001583 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts.
Dan O'Mearadd494642020-05-01 07:42:23 -07001584 # The parts are concatenated in order to form the training phrase.
1585 #
1586 # Note: The API does not automatically annotate training phrases like the
1587 # Dialogflow Console does.
1588 #
1589 # Note: Do not forget to include whitespace at part boundaries,
1590 # so the training phrase is well formatted when the parts are concatenated.
1591 #
1592 # If the training phrase does not need to be annotated with parameters,
1593 # you just need a single part with only the Part.text field set.
1594 #
1595 # If you want to annotate the training phrase, you must create multiple
1596 # parts, where the fields of each part are populated in one of two ways:
1597 #
1598 # - `Part.text` is set to a part of the phrase that has no parameters.
1599 # - `Part.text` is set to a part of the phrase that you want to annotate,
1600 # and the `entity_type`, `alias`, and `user_defined` fields are all
1601 # set.
1602 { # Represents a part of a training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07001603 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the
Dan O'Mearadd494642020-05-01 07:42:23 -07001604 # annotated part of the example.
1605 # This field is required for annotated parts of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07001606 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated.
Dan O'Mearadd494642020-05-01 07:42:23 -07001607 # This field is set to true when the Dialogflow Console is used to
1608 # manually annotate the part. When creating an annotated part with the
1609 # API, you must set this to true.
Bu Sun Kim65020912020-05-20 12:08:20 -07001610 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
1611 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`.
1612 # This field is required for annotated parts of the training phrase.
Dan O'Mearadd494642020-05-01 07:42:23 -07001613 },
1614 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001615 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
1616 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to
Dan O'Mearadd494642020-05-01 07:42:23 -07001617 # the intent. Each time a developer adds an existing sample by editing an
1618 # intent or training, this counter is increased.
Bu Sun Kim65020912020-05-20 12:08:20 -07001619 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
Dan O'Mearadd494642020-05-01 07:42:23 -07001620 },
1621 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001622 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current
1623 # session when this intent is matched.
1624 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
1625 { # Represents intent parameters.
1626 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
1627 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that
1628 # describes values of the parameter. If the parameter is
1629 # required, this must be provided.
1630 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the
1631 # user in order to collect a value for the parameter.
1632 &quot;A String&quot;,
1633 ],
1634 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty
1635 # result.
1636 # Default values can be extracted from contexts by using the following
1637 # syntax: `#context_name.parameter_name`.
1638 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is,
1639 # whether the intent cannot be completed without collecting the parameter
1640 # value.
1641 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
1642 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
1643 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be:
1644 #
1645 # - a constant string,
1646 # - a parameter value defined as `$parameter_name`,
1647 # - an original parameter value defined as `$parameter_name.original`,
1648 # - a parameter value from some context defined as
1649 # `#context_name.parameter_name`.
1650 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001651 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001652 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent.
1653 # If the collection of input contexts is not empty, all of the contexts must
1654 # be present in the active user session for an event to trigger this intent.
1655 # Event names are limited to 150 characters.
1656 &quot;A String&quot;,
1657 ],
1658 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Optional. The unique identifier of the parent intent in the
1659 # chain of followup intents. You can set this field when creating an intent,
1660 # for example with CreateIntent or
1661 # BatchUpdateIntents, in order to make this
1662 # intent a followup intent.
1663 #
1664 # It identifies the parent followup intent.
1665 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
1666 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher
Dan O'Mearadd494642020-05-01 07:42:23 -07001667 # priorities.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001668 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001669 # - If the supplied value is unspecified or 0, the service
1670 # translates the value to 500,000, which corresponds to the
1671 # `Normal` priority in the console.
1672 # - If the supplied value is negative, the intent is ignored
1673 # in runtime detect intent requests.
Bu Sun Kim65020912020-05-20 12:08:20 -07001674 &quot;endInteraction&quot;: True or False, # Optional. Indicates that this intent ends an interaction. Some integrations
1675 # (e.g., Actions on Google or Dialogflow phone gateway) use this information
1676 # to close interaction with an end user. Default is false.
1677 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001678 # is matched. Context messages in this collection should not set the
1679 # parameters field. Setting the `lifespan_count` to 0 will reset the context
1680 # when the intent is matched.
Dan O'Mearadd494642020-05-01 07:42:23 -07001681 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001682 { # Represents a context.
Bu Sun Kim65020912020-05-20 12:08:20 -07001683 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
1684 # context expires. The default is `0`. If set to `0`, the context expires
1685 # immediately. Contexts expire automatically after 20 minutes if there
1686 # are no matching queries.
1687 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
Dan O'Mearadd494642020-05-01 07:42:23 -07001688 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
1689 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
1690 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001691 #
1692 # The `Context ID` is always converted to lowercase, may only contain
1693 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
1694 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001695 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
1696 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
Dan O'Mearadd494642020-05-01 07:42:23 -07001697 #
1698 # The following context names are reserved for internal use by Dialogflow.
1699 # You should not use these contexts or create contexts with these names:
1700 #
1701 # * `__system_counters__`
1702 # * `*_id_dialog_context`
1703 # * `*_dialog_params_size`
Bu Sun Kim65020912020-05-20 12:08:20 -07001704 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
Dan O'Mearadd494642020-05-01 07:42:23 -07001705 #
1706 # Depending on your protocol or client library language, this is a
1707 # map, associative array, symbol table, dictionary, or JSON object
1708 # composed of a collection of (MapKey, MapValue) pairs:
1709 #
1710 # - MapKey type: string
1711 # - MapKey value: parameter name
1712 # - MapValue type:
Bu Sun Kim65020912020-05-20 12:08:20 -07001713 # - If parameter&#x27;s entity type is a composite entity: map
Dan O'Mearadd494642020-05-01 07:42:23 -07001714 # - Else: string or number, depending on parameter value type
1715 # - MapValue value:
Bu Sun Kim65020912020-05-20 12:08:20 -07001716 # - If parameter&#x27;s entity type is a composite entity:
Dan O'Mearadd494642020-05-01 07:42:23 -07001717 # map from composite entity property names to property values
1718 # - Else: parameter value
Bu Sun Kim65020912020-05-20 12:08:20 -07001719 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Dan O'Mearadd494642020-05-01 07:42:23 -07001720 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001721 },
1722 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001723 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be
1724 # copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
1725 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001726 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001727 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the
1728 # `Response` field in the Dialogflow console.
1729 { # Corresponds to the `Response` field in the Dialogflow console.
1730 &quot;text&quot;: { # The text response message. # Returns a text response.
1731 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
1732 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001733 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001734 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001735 &quot;rbmCarouselRichCard&quot;: { # Carousel Rich Business Messaging (RBM) rich card. # Rich Business Messaging (RBM) carousel rich card response.
1736 #
1737 # Rich cards allow you to respond to users with more vivid content, e.g.
1738 # with media and suggestions.
1739 #
1740 # For more details about RBM rich cards, please see:
1741 # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards.
1742 # If you want to show a single card with more control over the layout,
1743 # please use RbmStandaloneCard instead.
1744 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
1745 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least
1746 # 2 cards and at most 10.
1747 { # Rich Business Messaging (RBM) Card content
1748 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
1749 #
1750 # At least one of the title, description or media must be set.
1751 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
Dan O'Mearadd494642020-05-01 07:42:23 -07001752 # be set. Media (image, GIF or a video) to include in the card.
1753 # The following media-types are currently supported:
1754 #
1755 # Image Types
1756 #
1757 # * image/jpeg
Bu Sun Kim65020912020-05-20 12:08:20 -07001758 # * image/jpg&#x27;
Dan O'Mearadd494642020-05-01 07:42:23 -07001759 # * image/gif
1760 # * image/png
1761 #
1762 # Video Types
1763 #
1764 # * video/h263
1765 # * video/m4v
1766 # * video/mp4
1767 # * video/mpeg
1768 # * video/mpeg4
1769 # * video/webm
Bu Sun Kim65020912020-05-20 12:08:20 -07001770 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
Dan O'Mearadd494642020-05-01 07:42:23 -07001771 # provide a thumbnail URI, the RBM platform displays a blank
Bu Sun Kim65020912020-05-20 12:08:20 -07001772 # placeholder thumbnail until the user&#x27;s device downloads the file.
1773 # Depending on the user&#x27;s setting, the file may not download
Dan O'Mearadd494642020-05-01 07:42:23 -07001774 # automatically and may require the user to tap a download button.
Bu Sun Kim65020912020-05-20 12:08:20 -07001775 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
Dan O'Mearadd494642020-05-01 07:42:23 -07001776 # within a rich card with a vertical layout. (https://goo.gl/NeFCjz).
1777 # For a standalone card with horizontal layout, height is not
1778 # customizable, and this field is ignored.
Bu Sun Kim65020912020-05-20 12:08:20 -07001779 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
1780 # determines the MIME type of the file from the content-type field in
1781 # the HTTP headers when the platform fetches the file. The content-type
1782 # field must be present and accurate in the HTTP response from the URL.
Dan O'Mearadd494642020-05-01 07:42:23 -07001783 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001784 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
Dan O'Mearadd494642020-05-01 07:42:23 -07001785 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
1786 # easily select/click a predefined response or perform an action (like
1787 # opening a web uri).
Bu Sun Kim65020912020-05-20 12:08:20 -07001788 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
1789 # instead of typing in their own response.
1790 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
1791 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1792 # when the user taps the suggested reply. This data will be also
1793 # forwarded to webhook to allow performing custom business logic.
1794 },
1795 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
Dan O'Mearadd494642020-05-01 07:42:23 -07001796 # can choose from the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07001797 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1798 # when the user taps the suggested action. This data will be also
1799 # forwarded to webhook to allow performing custom business logic.
1800 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
Dan O'Mearadd494642020-05-01 07:42:23 -07001801 # to send back to the agent (https://goo.gl/GXotJW).
1802 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001803 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1804 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
Dan O'Mearadd494642020-05-01 07:42:23 -07001805 # (https://goo.gl/6GLJD2). If the user has an app installed that is
1806 # registered as the default handler for the URL, then this app will be
1807 # opened instead, and its icon will be used in the suggested action UI.
Bu Sun Kim65020912020-05-20 12:08:20 -07001808 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
Dan O'Mearadd494642020-05-01 07:42:23 -07001809 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001810 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
Dan O'Mearadd494642020-05-01 07:42:23 -07001811 # but does not dial automatically (https://goo.gl/ergbB2).
Bu Sun Kim65020912020-05-20 12:08:20 -07001812 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
Dan O'Mearadd494642020-05-01 07:42:23 -07001813 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
1814 # format. An example of a correctly formatted phone number:
1815 # +15556767888.
1816 },
Dan O'Mearadd494642020-05-01 07:42:23 -07001817 },
1818 },
1819 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001820 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
Dan O'Mearadd494642020-05-01 07:42:23 -07001821 #
1822 # At least one of the title, description or media must be set.
1823 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001824 ],
1825 },
1826 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
1827 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
1828 { # The suggestion chip message that the user can tap to quickly post a reply
1829 # to the conversation.
1830 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001831 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001832 ],
1833 },
1834 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
1835 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
1836 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to
1837 # play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single
1838 # channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz.
1839 #
1840 # This object must be readable by the `service-&lt;Project
1841 # Number&gt;@gcp-sa-dialogflow.iam.gserviceaccount.com` service account
1842 # where &lt;Project Number&gt; is the number of the Telephony Gateway project
1843 # (usually the same as the Dialogflow agent project). If the Google Cloud
1844 # Storage bucket is in the Telephony Gateway project, this permission is
1845 # added by default when enabling the Dialogflow V2 API.
1846 #
1847 # For audio from other sources, consider using the
1848 # `TelephonySynthesizeSpeech` message with SSML.
1849 },
1850 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
1851 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
1852 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
1853 &quot;items&quot;: [ # Required. List items.
1854 { # An item in the list.
1855 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
1856 # dialog.
1857 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
1858 # item in dialog.
1859 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001860 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001861 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
1862 # response is given.
Dan O'Mearadd494642020-05-01 07:42:23 -07001863 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001864 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
1865 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1866 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1867 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1868 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1869 },
1870 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
Dan O'Mearadd494642020-05-01 07:42:23 -07001871 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001872 ],
1873 },
1874 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response.
1875 #
1876 # RBM allows businesses to send enriched and branded versions of SMS. See
1877 # https://jibe.google.com/business-messaging.
1878 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
1879 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
1880 # easily select/click a predefined response or perform an action (like
1881 # opening a web uri).
1882 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
1883 # instead of typing in their own response.
1884 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
1885 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1886 # when the user taps the suggested reply. This data will be also
1887 # forwarded to webhook to allow performing custom business logic.
Dan O'Mearadd494642020-05-01 07:42:23 -07001888 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001889 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
1890 # can choose from the card.
1891 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1892 # when the user taps the suggested action. This data will be also
1893 # forwarded to webhook to allow performing custom business logic.
1894 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
1895 # to send back to the agent (https://goo.gl/GXotJW).
Dan O'Mearadd494642020-05-01 07:42:23 -07001896 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001897 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1898 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
1899 # (https://goo.gl/6GLJD2). If the user has an app installed that is
1900 # registered as the default handler for the URL, then this app will be
1901 # opened instead, and its icon will be used in the suggested action UI.
1902 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1903 },
1904 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
1905 # but does not dial automatically (https://goo.gl/ergbB2).
1906 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
1907 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
1908 # format. An example of a correctly formatted phone number:
1909 # +15556767888.
1910 },
Dan O'Mearadd494642020-05-01 07:42:23 -07001911 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001912 },
1913 ],
1914 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
1915 },
1916 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
1917 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
1918 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
1919 &quot;A String&quot;,
1920 ],
1921 },
1922 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in # Synthesizes speech in Telephony Gateway.
1923 # Telephony Gateway.
1924 #
1925 # Telephony Gateway takes the synthesizer settings from
1926 # `DetectIntentResponse.output_audio_config` which can either be set
1927 # at request-level or can come from the agent-level synthesizer config.
1928 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
1929 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see
1930 # [SSML](https://developers.google.com/actions/reference/ssml).
1931 },
1932 &quot;card&quot;: { # The card response message. # Displays a card.
1933 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
1934 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1935 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1936 { # Optional. Contains information about a button.
1937 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
1938 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
1939 # open.
1940 },
1941 ],
1942 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1943 },
1944 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
1945 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1946 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
1947 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1948 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1949 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
Dan O'Mearadd494642020-05-01 07:42:23 -07001950 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001951 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
1952 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1953 { # The button object that appears at the bottom of a card.
1954 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1955 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001956 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001957 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1958 },
1959 ],
1960 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1961 },
1962 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
1963 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
1964 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
1965 { # Column properties for TableCard.
1966 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
1967 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
1968 },
1969 ],
1970 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
1971 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1972 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1973 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001974 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001975 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
1976 { # The button object that appears at the bottom of a card.
1977 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1978 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001979 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001980 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1981 },
1982 ],
1983 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
1984 &quot;rows&quot;: [ # Optional. Rows in this table of data.
1985 { # Row of TableCard.
1986 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
1987 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
1988 { # Cell of TableCardRow.
1989 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
1990 },
1991 ],
1992 },
1993 ],
1994 },
1995 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
1996 &quot;items&quot;: [ # Required. Carousel items.
1997 { # An item in the carousel.
1998 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
1999 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2000 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2001 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2002 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
Dan O'Mearadd494642020-05-01 07:42:23 -07002003 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002004 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
2005 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
2006 # dialog.
2007 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
2008 # item in dialog.
2009 &quot;A String&quot;,
2010 ],
2011 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
2012 # response is given.
2013 },
2014 },
2015 ],
2016 },
2017 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app # Displays a link out suggestion chip for Actions on Google.
2018 # or website associated with this agent.
2019 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
2020 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
2021 # suggestion chip.
2022 },
2023 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
2024 # https://developers.google.com/actions/assistant/responses#browsing_carousel
2025 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
2026 # items.
2027 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
2028 # items, maximum of ten.
2029 { # Browsing carousel tile
2030 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
2031 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
2032 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2033 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2034 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2035 },
2036 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
2037 # text.
2038 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
2039 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
2040 # the URL. Defaults to opening via web browser.
2041 &quot;url&quot;: &quot;A String&quot;, # Required. URL
2042 },
2043 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
2044 # Card. Maximum of one line of text.
2045 },
2046 ],
2047 },
2048 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # Returns a voice or text-only response for Actions on Google.
2049 # This message in `QueryResult.fulfillment_messages` and
2050 # `WebhookResponse.fulfillment_messages` should contain only one
2051 # `SimpleResponse`.
2052 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
2053 { # The simple response message containing speech or text.
2054 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
2055 # speech output. Mutually exclusive with ssml.
2056 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
2057 # response to the user in the SSML format. Mutually exclusive with
2058 # text_to_speech.
2059 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
2060 },
2061 ],
2062 },
2063 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
2064 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to
2065 # in [E.164 format](https://en.wikipedia.org/wiki/E.164).
2066 #
2067 # We currently only allow transferring to US numbers (+1xxxyyyzzzz).
2068 },
2069 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
2070 &quot;mediaObjects&quot;: [ # Required. List of media objects.
2071 { # Response media object for media content card.
2072 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
2073 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2074 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2075 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2076 },
2077 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
2078 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
2079 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
2080 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
2081 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2082 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2083 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2084 },
2085 },
2086 ],
2087 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
2088 },
2089 &quot;image&quot;: { # The image response message. # Displays an image.
2090 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2091 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2092 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2093 },
2094 &quot;payload&quot;: { # A custom platform-specific response.
2095 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2096 },
2097 &quot;rbmStandaloneRichCard&quot;: { # Standalone Rich Business Messaging (RBM) rich card. # Standalone Rich Business Messaging (RBM) rich card response.
2098 #
2099 # Rich cards allow you to respond to users with more vivid content, e.g.
2100 # with media and suggestions.
2101 #
2102 # For more details about RBM rich cards, please see:
2103 # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards.
2104 # You can group multiple rich cards into one using RbmCarouselCard but
2105 # carousel cards will give you less control over the card layout.
2106 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal.
2107 # Image preview alignment for standalone cards with horizontal layout.
2108 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
2109 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
2110 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002111 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002112 # At least one of the title, description or media must be set.
2113 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
2114 # be set. Media (image, GIF or a video) to include in the card.
2115 # The following media-types are currently supported:
2116 #
2117 # Image Types
2118 #
2119 # * image/jpeg
2120 # * image/jpg&#x27;
2121 # * image/gif
2122 # * image/png
2123 #
2124 # Video Types
2125 #
2126 # * video/h263
2127 # * video/m4v
2128 # * video/mp4
2129 # * video/mpeg
2130 # * video/mpeg4
2131 # * video/webm
2132 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
2133 # provide a thumbnail URI, the RBM platform displays a blank
2134 # placeholder thumbnail until the user&#x27;s device downloads the file.
2135 # Depending on the user&#x27;s setting, the file may not download
2136 # automatically and may require the user to tap a download button.
2137 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
2138 # within a rich card with a vertical layout. (https://goo.gl/NeFCjz).
2139 # For a standalone card with horizontal layout, height is not
2140 # customizable, and this field is ignored.
2141 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
2142 # determines the MIME type of the file from the content-type field in
2143 # the HTTP headers when the platform fetches the file. The content-type
2144 # field must be present and accurate in the HTTP response from the URL.
2145 },
2146 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
2147 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
2148 # easily select/click a predefined response or perform an action (like
2149 # opening a web uri).
2150 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
2151 # instead of typing in their own response.
2152 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
2153 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2154 # when the user taps the suggested reply. This data will be also
2155 # forwarded to webhook to allow performing custom business logic.
2156 },
2157 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
2158 # can choose from the card.
2159 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2160 # when the user taps the suggested action. This data will be also
2161 # forwarded to webhook to allow performing custom business logic.
2162 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
2163 # to send back to the agent (https://goo.gl/GXotJW).
2164 },
2165 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2166 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
2167 # (https://goo.gl/6GLJD2). If the user has an app installed that is
2168 # registered as the default handler for the URL, then this app will be
2169 # opened instead, and its icon will be used in the suggested action UI.
2170 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2171 },
2172 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
2173 # but does not dial automatically (https://goo.gl/ergbB2).
2174 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
2175 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
2176 # format. An example of a correctly formatted phone number:
2177 # +15556767888.
2178 },
2179 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002180 },
2181 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002182 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
2183 #
2184 # At least one of the title, description or media must be set.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002185 },
2186 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002187 },
2188 ],
2189 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent.
2190 # Note: The action name must not contain whitespaces.
2191 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent.
2192 # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
2193 # methods.
2194 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
2195 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
2196 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be
2197 # triggered.
2198 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
2199 &quot;A String&quot;,
2200 ],
2201 &quot;followupIntentInfo&quot;: [ # Output only. Information about all followup intents that have this intent as
2202 # a direct or indirect parent. We populate this field only in the output.
2203 { # Represents a single followup intent in the chain.
2204 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent.
2205 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
2206 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent.
2207 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
2208 },
2209 ],
2210 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
2211 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Output only. The unique identifier of the root intent in the chain of
2212 # followup intents. It identifies the correct followup intents chain for
2213 # this intent.
2214 #
2215 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
2216 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
2217 # Note: If `ml_disabled` setting is set to true, then this intent is not
2218 # taken into account during inference in `ML ONLY` match mode. Also,
2219 # auto-markup in the UI is turned off.
2220 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
2221 &quot;mlEnabled&quot;: True or False, # Optional. Indicates whether Machine Learning is enabled for the intent.
2222 # Note: If `ml_enabled` setting is set to false, then this intent is not
2223 # taken into account during inference in `ML ONLY` match mode. Also,
2224 # auto-markup in the UI is turned off.
2225 # DEPRECATED! Please use `ml_disabled` field instead.
2226 # NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false,
2227 # then the default value is determined as follows:
2228 # - Before April 15th, 2018 the default is:
2229 # ml_enabled = false / ml_disabled = true.
2230 # - After April 15th, 2018 the default is:
2231 # ml_enabled = true / ml_disabled = false.
2232}
2233
2234 intentView: string, Optional. The resource view to apply to the returned intent.
2235 languageCode: string, Optional. The language used to access language-specific data.
2236If not specified, the agent&#x27;s default language is used.
2237For more information, see
2238[Multilingual intent and entity
2239data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
2240 x__xgafv: string, V1 error format.
2241 Allowed values
2242 1 - v1 error format
2243 2 - v2 error format
2244
2245Returns:
2246 An object of the form:
2247
2248 { # Represents an intent.
2249 # Intents convert a number of user expressions or patterns into an action. An
2250 # action is an extraction of a user command or sentence semantics.
2251 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is
Dan O'Mearadd494642020-05-01 07:42:23 -07002252 # trained on.
2253 { # Represents an example that the agent is trained on.
Bu Sun Kim65020912020-05-20 12:08:20 -07002254 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts.
Dan O'Mearadd494642020-05-01 07:42:23 -07002255 # The parts are concatenated in order to form the training phrase.
2256 #
2257 # Note: The API does not automatically annotate training phrases like the
2258 # Dialogflow Console does.
2259 #
2260 # Note: Do not forget to include whitespace at part boundaries,
2261 # so the training phrase is well formatted when the parts are concatenated.
2262 #
2263 # If the training phrase does not need to be annotated with parameters,
2264 # you just need a single part with only the Part.text field set.
2265 #
2266 # If you want to annotate the training phrase, you must create multiple
2267 # parts, where the fields of each part are populated in one of two ways:
2268 #
2269 # - `Part.text` is set to a part of the phrase that has no parameters.
2270 # - `Part.text` is set to a part of the phrase that you want to annotate,
2271 # and the `entity_type`, `alias`, and `user_defined` fields are all
2272 # set.
2273 { # Represents a part of a training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07002274 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the
Dan O'Mearadd494642020-05-01 07:42:23 -07002275 # annotated part of the example.
2276 # This field is required for annotated parts of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07002277 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated.
Dan O'Mearadd494642020-05-01 07:42:23 -07002278 # This field is set to true when the Dialogflow Console is used to
2279 # manually annotate the part. When creating an annotated part with the
2280 # API, you must set this to true.
Bu Sun Kim65020912020-05-20 12:08:20 -07002281 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
2282 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`.
2283 # This field is required for annotated parts of the training phrase.
Dan O'Mearadd494642020-05-01 07:42:23 -07002284 },
2285 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002286 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
2287 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to
Dan O'Mearadd494642020-05-01 07:42:23 -07002288 # the intent. Each time a developer adds an existing sample by editing an
2289 # intent or training, this counter is increased.
Bu Sun Kim65020912020-05-20 12:08:20 -07002290 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
Dan O'Mearadd494642020-05-01 07:42:23 -07002291 },
2292 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002293 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current
2294 # session when this intent is matched.
2295 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
2296 { # Represents intent parameters.
2297 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
2298 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that
2299 # describes values of the parameter. If the parameter is
2300 # required, this must be provided.
2301 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the
2302 # user in order to collect a value for the parameter.
2303 &quot;A String&quot;,
2304 ],
2305 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty
2306 # result.
2307 # Default values can be extracted from contexts by using the following
2308 # syntax: `#context_name.parameter_name`.
2309 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is,
2310 # whether the intent cannot be completed without collecting the parameter
2311 # value.
2312 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
2313 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
2314 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be:
2315 #
2316 # - a constant string,
2317 # - a parameter value defined as `$parameter_name`,
2318 # - an original parameter value defined as `$parameter_name.original`,
2319 # - a parameter value from some context defined as
2320 # `#context_name.parameter_name`.
2321 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002322 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002323 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent.
2324 # If the collection of input contexts is not empty, all of the contexts must
2325 # be present in the active user session for an event to trigger this intent.
2326 # Event names are limited to 150 characters.
2327 &quot;A String&quot;,
2328 ],
2329 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Optional. The unique identifier of the parent intent in the
2330 # chain of followup intents. You can set this field when creating an intent,
2331 # for example with CreateIntent or
2332 # BatchUpdateIntents, in order to make this
2333 # intent a followup intent.
2334 #
2335 # It identifies the parent followup intent.
2336 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
2337 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher
Dan O'Mearadd494642020-05-01 07:42:23 -07002338 # priorities.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002339 #
Dan O'Mearadd494642020-05-01 07:42:23 -07002340 # - If the supplied value is unspecified or 0, the service
2341 # translates the value to 500,000, which corresponds to the
2342 # `Normal` priority in the console.
2343 # - If the supplied value is negative, the intent is ignored
2344 # in runtime detect intent requests.
Bu Sun Kim65020912020-05-20 12:08:20 -07002345 &quot;endInteraction&quot;: True or False, # Optional. Indicates that this intent ends an interaction. Some integrations
2346 # (e.g., Actions on Google or Dialogflow phone gateway) use this information
2347 # to close interaction with an end user. Default is false.
2348 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent
2349 # is matched. Context messages in this collection should not set the
2350 # parameters field. Setting the `lifespan_count` to 0 will reset the context
2351 # when the intent is matched.
2352 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
2353 { # Represents a context.
2354 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
2355 # context expires. The default is `0`. If set to `0`, the context expires
2356 # immediately. Contexts expire automatically after 20 minutes if there
2357 # are no matching queries.
2358 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
2359 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
2360 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
2361 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
2362 #
2363 # The `Context ID` is always converted to lowercase, may only contain
2364 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
2365 #
2366 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
2367 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
2368 #
2369 # The following context names are reserved for internal use by Dialogflow.
2370 # You should not use these contexts or create contexts with these names:
2371 #
2372 # * `__system_counters__`
2373 # * `*_id_dialog_context`
2374 # * `*_dialog_params_size`
2375 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
2376 #
2377 # Depending on your protocol or client library language, this is a
2378 # map, associative array, symbol table, dictionary, or JSON object
2379 # composed of a collection of (MapKey, MapValue) pairs:
2380 #
2381 # - MapKey type: string
2382 # - MapKey value: parameter name
2383 # - MapValue type:
2384 # - If parameter&#x27;s entity type is a composite entity: map
2385 # - Else: string or number, depending on parameter value type
2386 # - MapValue value:
2387 # - If parameter&#x27;s entity type is a composite entity:
2388 # map from composite entity property names to property values
2389 # - Else: parameter value
2390 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2391 },
2392 },
2393 ],
2394 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be
2395 # copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
2396 &quot;A String&quot;,
2397 ],
2398 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the
2399 # `Response` field in the Dialogflow console.
2400 { # Corresponds to the `Response` field in the Dialogflow console.
2401 &quot;text&quot;: { # The text response message. # Returns a text response.
2402 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
2403 &quot;A String&quot;,
2404 ],
2405 },
2406 &quot;rbmCarouselRichCard&quot;: { # Carousel Rich Business Messaging (RBM) rich card. # Rich Business Messaging (RBM) carousel rich card response.
2407 #
2408 # Rich cards allow you to respond to users with more vivid content, e.g.
2409 # with media and suggestions.
2410 #
2411 # For more details about RBM rich cards, please see:
2412 # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards.
2413 # If you want to show a single card with more control over the layout,
2414 # please use RbmStandaloneCard instead.
2415 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
2416 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least
2417 # 2 cards and at most 10.
2418 { # Rich Business Messaging (RBM) Card content
2419 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
2420 #
2421 # At least one of the title, description or media must be set.
2422 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
2423 # be set. Media (image, GIF or a video) to include in the card.
2424 # The following media-types are currently supported:
2425 #
2426 # Image Types
2427 #
2428 # * image/jpeg
2429 # * image/jpg&#x27;
2430 # * image/gif
2431 # * image/png
2432 #
2433 # Video Types
2434 #
2435 # * video/h263
2436 # * video/m4v
2437 # * video/mp4
2438 # * video/mpeg
2439 # * video/mpeg4
2440 # * video/webm
2441 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
2442 # provide a thumbnail URI, the RBM platform displays a blank
2443 # placeholder thumbnail until the user&#x27;s device downloads the file.
2444 # Depending on the user&#x27;s setting, the file may not download
2445 # automatically and may require the user to tap a download button.
2446 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
2447 # within a rich card with a vertical layout. (https://goo.gl/NeFCjz).
2448 # For a standalone card with horizontal layout, height is not
2449 # customizable, and this field is ignored.
2450 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
2451 # determines the MIME type of the file from the content-type field in
2452 # the HTTP headers when the platform fetches the file. The content-type
2453 # field must be present and accurate in the HTTP response from the URL.
2454 },
2455 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
2456 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
2457 # easily select/click a predefined response or perform an action (like
2458 # opening a web uri).
2459 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
2460 # instead of typing in their own response.
2461 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
2462 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2463 # when the user taps the suggested reply. This data will be also
2464 # forwarded to webhook to allow performing custom business logic.
2465 },
2466 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
2467 # can choose from the card.
2468 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2469 # when the user taps the suggested action. This data will be also
2470 # forwarded to webhook to allow performing custom business logic.
2471 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
2472 # to send back to the agent (https://goo.gl/GXotJW).
2473 },
2474 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2475 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
2476 # (https://goo.gl/6GLJD2). If the user has an app installed that is
2477 # registered as the default handler for the URL, then this app will be
2478 # opened instead, and its icon will be used in the suggested action UI.
2479 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2480 },
2481 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
2482 # but does not dial automatically (https://goo.gl/ergbB2).
2483 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
2484 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
2485 # format. An example of a correctly formatted phone number:
2486 # +15556767888.
2487 },
2488 },
2489 },
2490 ],
2491 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
2492 #
2493 # At least one of the title, description or media must be set.
2494 },
2495 ],
2496 },
2497 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
2498 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
2499 { # The suggestion chip message that the user can tap to quickly post a reply
2500 # to the conversation.
2501 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
2502 },
2503 ],
2504 },
2505 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
2506 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
2507 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to
2508 # play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single
2509 # channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz.
2510 #
2511 # This object must be readable by the `service-&lt;Project
2512 # Number&gt;@gcp-sa-dialogflow.iam.gserviceaccount.com` service account
2513 # where &lt;Project Number&gt; is the number of the Telephony Gateway project
2514 # (usually the same as the Dialogflow agent project). If the Google Cloud
2515 # Storage bucket is in the Telephony Gateway project, this permission is
2516 # added by default when enabling the Dialogflow V2 API.
2517 #
2518 # For audio from other sources, consider using the
2519 # `TelephonySynthesizeSpeech` message with SSML.
2520 },
2521 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
2522 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
2523 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
2524 &quot;items&quot;: [ # Required. List items.
2525 { # An item in the list.
2526 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
2527 # dialog.
2528 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
2529 # item in dialog.
2530 &quot;A String&quot;,
2531 ],
2532 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
2533 # response is given.
2534 },
2535 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
2536 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2537 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2538 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2539 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2540 },
2541 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
2542 },
2543 ],
2544 },
2545 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response.
2546 #
2547 # RBM allows businesses to send enriched and branded versions of SMS. See
2548 # https://jibe.google.com/business-messaging.
2549 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
2550 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
2551 # easily select/click a predefined response or perform an action (like
2552 # opening a web uri).
2553 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
2554 # instead of typing in their own response.
2555 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
2556 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2557 # when the user taps the suggested reply. This data will be also
2558 # forwarded to webhook to allow performing custom business logic.
2559 },
2560 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
2561 # can choose from the card.
2562 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2563 # when the user taps the suggested action. This data will be also
2564 # forwarded to webhook to allow performing custom business logic.
2565 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
2566 # to send back to the agent (https://goo.gl/GXotJW).
2567 },
2568 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2569 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
2570 # (https://goo.gl/6GLJD2). If the user has an app installed that is
2571 # registered as the default handler for the URL, then this app will be
2572 # opened instead, and its icon will be used in the suggested action UI.
2573 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2574 },
2575 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
2576 # but does not dial automatically (https://goo.gl/ergbB2).
2577 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
2578 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
2579 # format. An example of a correctly formatted phone number:
2580 # +15556767888.
2581 },
2582 },
2583 },
2584 ],
2585 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
2586 },
2587 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
2588 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
2589 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
2590 &quot;A String&quot;,
2591 ],
2592 },
2593 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in # Synthesizes speech in Telephony Gateway.
2594 # Telephony Gateway.
2595 #
2596 # Telephony Gateway takes the synthesizer settings from
2597 # `DetectIntentResponse.output_audio_config` which can either be set
2598 # at request-level or can come from the agent-level synthesizer config.
2599 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
2600 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see
2601 # [SSML](https://developers.google.com/actions/reference/ssml).
2602 },
2603 &quot;card&quot;: { # The card response message. # Displays a card.
2604 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
2605 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
2606 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2607 { # Optional. Contains information about a button.
2608 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
2609 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
2610 # open.
2611 },
2612 ],
2613 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2614 },
2615 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
2616 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
2617 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
2618 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2619 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2620 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2621 },
2622 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
2623 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2624 { # The button object that appears at the bottom of a card.
2625 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2626 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2627 },
2628 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
2629 },
2630 ],
2631 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2632 },
2633 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
2634 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
2635 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
2636 { # Column properties for TableCard.
2637 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
2638 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
2639 },
2640 ],
2641 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
2642 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2643 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2644 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2645 },
2646 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
2647 { # The button object that appears at the bottom of a card.
2648 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2649 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2650 },
2651 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
2652 },
2653 ],
2654 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
2655 &quot;rows&quot;: [ # Optional. Rows in this table of data.
2656 { # Row of TableCard.
2657 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
2658 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
2659 { # Cell of TableCardRow.
2660 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
2661 },
2662 ],
2663 },
2664 ],
2665 },
2666 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
2667 &quot;items&quot;: [ # Required. Carousel items.
2668 { # An item in the carousel.
2669 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
2670 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2671 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2672 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2673 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2674 },
2675 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
2676 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
2677 # dialog.
2678 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
2679 # item in dialog.
2680 &quot;A String&quot;,
2681 ],
2682 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
2683 # response is given.
2684 },
2685 },
2686 ],
2687 },
2688 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app # Displays a link out suggestion chip for Actions on Google.
2689 # or website associated with this agent.
2690 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
2691 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
2692 # suggestion chip.
2693 },
2694 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
2695 # https://developers.google.com/actions/assistant/responses#browsing_carousel
2696 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
2697 # items.
2698 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
2699 # items, maximum of ten.
2700 { # Browsing carousel tile
2701 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
2702 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
2703 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2704 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2705 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2706 },
2707 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
2708 # text.
2709 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
2710 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
2711 # the URL. Defaults to opening via web browser.
2712 &quot;url&quot;: &quot;A String&quot;, # Required. URL
2713 },
2714 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
2715 # Card. Maximum of one line of text.
2716 },
2717 ],
2718 },
2719 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # Returns a voice or text-only response for Actions on Google.
2720 # This message in `QueryResult.fulfillment_messages` and
2721 # `WebhookResponse.fulfillment_messages` should contain only one
2722 # `SimpleResponse`.
2723 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
2724 { # The simple response message containing speech or text.
2725 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
2726 # speech output. Mutually exclusive with ssml.
2727 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
2728 # response to the user in the SSML format. Mutually exclusive with
2729 # text_to_speech.
2730 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
2731 },
2732 ],
2733 },
2734 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
2735 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to
2736 # in [E.164 format](https://en.wikipedia.org/wiki/E.164).
2737 #
2738 # We currently only allow transferring to US numbers (+1xxxyyyzzzz).
2739 },
2740 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
2741 &quot;mediaObjects&quot;: [ # Required. List of media objects.
2742 { # Response media object for media content card.
2743 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
2744 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2745 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2746 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2747 },
2748 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
2749 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
2750 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
2751 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
2752 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2753 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2754 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2755 },
2756 },
2757 ],
2758 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
2759 },
2760 &quot;image&quot;: { # The image response message. # Displays an image.
2761 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2762 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2763 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2764 },
2765 &quot;payload&quot;: { # A custom platform-specific response.
2766 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2767 },
2768 &quot;rbmStandaloneRichCard&quot;: { # Standalone Rich Business Messaging (RBM) rich card. # Standalone Rich Business Messaging (RBM) rich card response.
2769 #
2770 # Rich cards allow you to respond to users with more vivid content, e.g.
2771 # with media and suggestions.
2772 #
2773 # For more details about RBM rich cards, please see:
2774 # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards.
2775 # You can group multiple rich cards into one using RbmCarouselCard but
2776 # carousel cards will give you less control over the card layout.
2777 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal.
2778 # Image preview alignment for standalone cards with horizontal layout.
2779 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
2780 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
2781 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
2782 #
2783 # At least one of the title, description or media must be set.
2784 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
2785 # be set. Media (image, GIF or a video) to include in the card.
2786 # The following media-types are currently supported:
2787 #
2788 # Image Types
2789 #
2790 # * image/jpeg
2791 # * image/jpg&#x27;
2792 # * image/gif
2793 # * image/png
2794 #
2795 # Video Types
2796 #
2797 # * video/h263
2798 # * video/m4v
2799 # * video/mp4
2800 # * video/mpeg
2801 # * video/mpeg4
2802 # * video/webm
2803 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
2804 # provide a thumbnail URI, the RBM platform displays a blank
2805 # placeholder thumbnail until the user&#x27;s device downloads the file.
2806 # Depending on the user&#x27;s setting, the file may not download
2807 # automatically and may require the user to tap a download button.
2808 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
2809 # within a rich card with a vertical layout. (https://goo.gl/NeFCjz).
2810 # For a standalone card with horizontal layout, height is not
2811 # customizable, and this field is ignored.
2812 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
2813 # determines the MIME type of the file from the content-type field in
2814 # the HTTP headers when the platform fetches the file. The content-type
2815 # field must be present and accurate in the HTTP response from the URL.
2816 },
2817 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
2818 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
2819 # easily select/click a predefined response or perform an action (like
2820 # opening a web uri).
2821 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
2822 # instead of typing in their own response.
2823 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
2824 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2825 # when the user taps the suggested reply. This data will be also
2826 # forwarded to webhook to allow performing custom business logic.
2827 },
2828 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
2829 # can choose from the card.
2830 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2831 # when the user taps the suggested action. This data will be also
2832 # forwarded to webhook to allow performing custom business logic.
2833 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
2834 # to send back to the agent (https://goo.gl/GXotJW).
2835 },
2836 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2837 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
2838 # (https://goo.gl/6GLJD2). If the user has an app installed that is
2839 # registered as the default handler for the URL, then this app will be
2840 # opened instead, and its icon will be used in the suggested action UI.
2841 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2842 },
2843 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
2844 # but does not dial automatically (https://goo.gl/ergbB2).
2845 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
2846 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
2847 # format. An example of a correctly formatted phone number:
2848 # +15556767888.
2849 },
2850 },
2851 },
2852 ],
2853 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
2854 #
2855 # At least one of the title, description or media must be set.
2856 },
2857 },
2858 },
2859 ],
2860 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent.
2861 # Note: The action name must not contain whitespaces.
2862 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent.
2863 # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
2864 # methods.
Dan O'Mearadd494642020-05-01 07:42:23 -07002865 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002866 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
2867 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002868 # triggered.
Dan O'Mearadd494642020-05-01 07:42:23 -07002869 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002870 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002871 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002872 &quot;followupIntentInfo&quot;: [ # Output only. Information about all followup intents that have this intent as
2873 # a direct or indirect parent. We populate this field only in the output.
2874 { # Represents a single followup intent in the chain.
2875 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent.
2876 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
2877 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent.
2878 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
2879 },
2880 ],
2881 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
2882 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Output only. The unique identifier of the root intent in the chain of
2883 # followup intents. It identifies the correct followup intents chain for
2884 # this intent.
2885 #
2886 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
2887 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
2888 # Note: If `ml_disabled` setting is set to true, then this intent is not
2889 # taken into account during inference in `ML ONLY` match mode. Also,
2890 # auto-markup in the UI is turned off.
2891 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
2892 &quot;mlEnabled&quot;: True or False, # Optional. Indicates whether Machine Learning is enabled for the intent.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002893 # Note: If `ml_enabled` setting is set to false, then this intent is not
2894 # taken into account during inference in `ML ONLY` match mode. Also,
2895 # auto-markup in the UI is turned off.
2896 # DEPRECATED! Please use `ml_disabled` field instead.
2897 # NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false,
2898 # then the default value is determined as follows:
2899 # - Before April 15th, 2018 the default is:
2900 # ml_enabled = false / ml_disabled = true.
2901 # - After April 15th, 2018 the default is:
2902 # ml_enabled = true / ml_disabled = false.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002903 }</pre>
2904</div>
2905
2906<div class="method">
2907 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
2908 <pre>Deletes the specified intent and its direct or indirect followup intents.
2909
2910Args:
2911 name: string, Required. The name of the intent to delete. If this intent has direct or
2912indirect followup intents, we also delete them.
2913
Dan O'Mearadd494642020-05-01 07:42:23 -07002914Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002915 x__xgafv: string, V1 error format.
2916 Allowed values
2917 1 - v1 error format
2918 2 - v2 error format
2919
2920Returns:
2921 An object of the form:
2922
2923 { # A generic empty message that you can re-use to avoid defining duplicated
2924 # empty messages in your APIs. A typical example is to use it as the request
2925 # or the response type of an API method. For instance:
2926 #
2927 # service Foo {
2928 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
2929 # }
2930 #
2931 # The JSON representation for `Empty` is empty JSON object `{}`.
2932 }</pre>
2933</div>
2934
2935<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -07002936 <code class="details" id="get">get(name, intentView=None, languageCode=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002937 <pre>Retrieves the specified intent.
2938
2939Args:
2940 name: string, Required. The name of the intent.
Dan O'Mearadd494642020-05-01 07:42:23 -07002941Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`. (required)
Bu Sun Kim65020912020-05-20 12:08:20 -07002942 intentView: string, Optional. The resource view to apply to the returned intent.
Dan O'Mearadd494642020-05-01 07:42:23 -07002943 languageCode: string, Optional. The language used to access language-specific data.
Bu Sun Kim65020912020-05-20 12:08:20 -07002944If not specified, the agent&#x27;s default language is used.
Dan O'Mearadd494642020-05-01 07:42:23 -07002945For more information, see
2946[Multilingual intent and entity
2947data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002948 x__xgafv: string, V1 error format.
2949 Allowed values
2950 1 - v1 error format
2951 2 - v2 error format
2952
2953Returns:
2954 An object of the form:
2955
2956 { # Represents an intent.
2957 # Intents convert a number of user expressions or patterns into an action. An
2958 # action is an extraction of a user command or sentence semantics.
Bu Sun Kim65020912020-05-20 12:08:20 -07002959 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is
Dan O'Mearadd494642020-05-01 07:42:23 -07002960 # trained on.
2961 { # Represents an example that the agent is trained on.
Bu Sun Kim65020912020-05-20 12:08:20 -07002962 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts.
Dan O'Mearadd494642020-05-01 07:42:23 -07002963 # The parts are concatenated in order to form the training phrase.
2964 #
2965 # Note: The API does not automatically annotate training phrases like the
2966 # Dialogflow Console does.
2967 #
2968 # Note: Do not forget to include whitespace at part boundaries,
2969 # so the training phrase is well formatted when the parts are concatenated.
2970 #
2971 # If the training phrase does not need to be annotated with parameters,
2972 # you just need a single part with only the Part.text field set.
2973 #
2974 # If you want to annotate the training phrase, you must create multiple
2975 # parts, where the fields of each part are populated in one of two ways:
2976 #
2977 # - `Part.text` is set to a part of the phrase that has no parameters.
2978 # - `Part.text` is set to a part of the phrase that you want to annotate,
2979 # and the `entity_type`, `alias`, and `user_defined` fields are all
2980 # set.
2981 { # Represents a part of a training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07002982 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the
Dan O'Mearadd494642020-05-01 07:42:23 -07002983 # annotated part of the example.
2984 # This field is required for annotated parts of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07002985 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated.
Dan O'Mearadd494642020-05-01 07:42:23 -07002986 # This field is set to true when the Dialogflow Console is used to
2987 # manually annotate the part. When creating an annotated part with the
2988 # API, you must set this to true.
Bu Sun Kim65020912020-05-20 12:08:20 -07002989 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
2990 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`.
2991 # This field is required for annotated parts of the training phrase.
Dan O'Mearadd494642020-05-01 07:42:23 -07002992 },
2993 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002994 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
2995 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to
Dan O'Mearadd494642020-05-01 07:42:23 -07002996 # the intent. Each time a developer adds an existing sample by editing an
2997 # intent or training, this counter is increased.
Bu Sun Kim65020912020-05-20 12:08:20 -07002998 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
Dan O'Mearadd494642020-05-01 07:42:23 -07002999 },
3000 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003001 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current
3002 # session when this intent is matched.
3003 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
3004 { # Represents intent parameters.
3005 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
3006 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that
3007 # describes values of the parameter. If the parameter is
3008 # required, this must be provided.
3009 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the
3010 # user in order to collect a value for the parameter.
3011 &quot;A String&quot;,
3012 ],
3013 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty
3014 # result.
3015 # Default values can be extracted from contexts by using the following
3016 # syntax: `#context_name.parameter_name`.
3017 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is,
3018 # whether the intent cannot be completed without collecting the parameter
3019 # value.
3020 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
3021 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
3022 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be:
3023 #
3024 # - a constant string,
3025 # - a parameter value defined as `$parameter_name`,
3026 # - an original parameter value defined as `$parameter_name.original`,
3027 # - a parameter value from some context defined as
3028 # `#context_name.parameter_name`.
3029 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003030 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003031 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent.
3032 # If the collection of input contexts is not empty, all of the contexts must
3033 # be present in the active user session for an event to trigger this intent.
3034 # Event names are limited to 150 characters.
3035 &quot;A String&quot;,
3036 ],
3037 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Optional. The unique identifier of the parent intent in the
3038 # chain of followup intents. You can set this field when creating an intent,
3039 # for example with CreateIntent or
3040 # BatchUpdateIntents, in order to make this
3041 # intent a followup intent.
3042 #
3043 # It identifies the parent followup intent.
3044 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
3045 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher
Dan O'Mearadd494642020-05-01 07:42:23 -07003046 # priorities.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003047 #
Dan O'Mearadd494642020-05-01 07:42:23 -07003048 # - If the supplied value is unspecified or 0, the service
3049 # translates the value to 500,000, which corresponds to the
3050 # `Normal` priority in the console.
3051 # - If the supplied value is negative, the intent is ignored
3052 # in runtime detect intent requests.
Bu Sun Kim65020912020-05-20 12:08:20 -07003053 &quot;endInteraction&quot;: True or False, # Optional. Indicates that this intent ends an interaction. Some integrations
3054 # (e.g., Actions on Google or Dialogflow phone gateway) use this information
3055 # to close interaction with an end user. Default is false.
3056 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent
3057 # is matched. Context messages in this collection should not set the
3058 # parameters field. Setting the `lifespan_count` to 0 will reset the context
3059 # when the intent is matched.
3060 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
3061 { # Represents a context.
3062 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
3063 # context expires. The default is `0`. If set to `0`, the context expires
3064 # immediately. Contexts expire automatically after 20 minutes if there
3065 # are no matching queries.
3066 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
3067 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
3068 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
3069 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
3070 #
3071 # The `Context ID` is always converted to lowercase, may only contain
3072 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
3073 #
3074 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
3075 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
3076 #
3077 # The following context names are reserved for internal use by Dialogflow.
3078 # You should not use these contexts or create contexts with these names:
3079 #
3080 # * `__system_counters__`
3081 # * `*_id_dialog_context`
3082 # * `*_dialog_params_size`
3083 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
3084 #
3085 # Depending on your protocol or client library language, this is a
3086 # map, associative array, symbol table, dictionary, or JSON object
3087 # composed of a collection of (MapKey, MapValue) pairs:
3088 #
3089 # - MapKey type: string
3090 # - MapKey value: parameter name
3091 # - MapValue type:
3092 # - If parameter&#x27;s entity type is a composite entity: map
3093 # - Else: string or number, depending on parameter value type
3094 # - MapValue value:
3095 # - If parameter&#x27;s entity type is a composite entity:
3096 # map from composite entity property names to property values
3097 # - Else: parameter value
3098 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3099 },
3100 },
3101 ],
3102 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be
3103 # copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
3104 &quot;A String&quot;,
3105 ],
3106 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the
3107 # `Response` field in the Dialogflow console.
3108 { # Corresponds to the `Response` field in the Dialogflow console.
3109 &quot;text&quot;: { # The text response message. # Returns a text response.
3110 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
3111 &quot;A String&quot;,
3112 ],
3113 },
3114 &quot;rbmCarouselRichCard&quot;: { # Carousel Rich Business Messaging (RBM) rich card. # Rich Business Messaging (RBM) carousel rich card response.
3115 #
3116 # Rich cards allow you to respond to users with more vivid content, e.g.
3117 # with media and suggestions.
3118 #
3119 # For more details about RBM rich cards, please see:
3120 # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards.
3121 # If you want to show a single card with more control over the layout,
3122 # please use RbmStandaloneCard instead.
3123 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
3124 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least
3125 # 2 cards and at most 10.
3126 { # Rich Business Messaging (RBM) Card content
3127 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
3128 #
3129 # At least one of the title, description or media must be set.
3130 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
3131 # be set. Media (image, GIF or a video) to include in the card.
3132 # The following media-types are currently supported:
3133 #
3134 # Image Types
3135 #
3136 # * image/jpeg
3137 # * image/jpg&#x27;
3138 # * image/gif
3139 # * image/png
3140 #
3141 # Video Types
3142 #
3143 # * video/h263
3144 # * video/m4v
3145 # * video/mp4
3146 # * video/mpeg
3147 # * video/mpeg4
3148 # * video/webm
3149 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
3150 # provide a thumbnail URI, the RBM platform displays a blank
3151 # placeholder thumbnail until the user&#x27;s device downloads the file.
3152 # Depending on the user&#x27;s setting, the file may not download
3153 # automatically and may require the user to tap a download button.
3154 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
3155 # within a rich card with a vertical layout. (https://goo.gl/NeFCjz).
3156 # For a standalone card with horizontal layout, height is not
3157 # customizable, and this field is ignored.
3158 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
3159 # determines the MIME type of the file from the content-type field in
3160 # the HTTP headers when the platform fetches the file. The content-type
3161 # field must be present and accurate in the HTTP response from the URL.
3162 },
3163 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
3164 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
3165 # easily select/click a predefined response or perform an action (like
3166 # opening a web uri).
3167 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
3168 # instead of typing in their own response.
3169 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
3170 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
3171 # when the user taps the suggested reply. This data will be also
3172 # forwarded to webhook to allow performing custom business logic.
3173 },
3174 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
3175 # can choose from the card.
3176 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
3177 # when the user taps the suggested action. This data will be also
3178 # forwarded to webhook to allow performing custom business logic.
3179 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
3180 # to send back to the agent (https://goo.gl/GXotJW).
3181 },
3182 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
3183 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
3184 # (https://goo.gl/6GLJD2). If the user has an app installed that is
3185 # registered as the default handler for the URL, then this app will be
3186 # opened instead, and its icon will be used in the suggested action UI.
3187 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
3188 },
3189 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
3190 # but does not dial automatically (https://goo.gl/ergbB2).
3191 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
3192 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
3193 # format. An example of a correctly formatted phone number:
3194 # +15556767888.
3195 },
3196 },
3197 },
3198 ],
3199 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
3200 #
3201 # At least one of the title, description or media must be set.
3202 },
3203 ],
3204 },
3205 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
3206 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
3207 { # The suggestion chip message that the user can tap to quickly post a reply
3208 # to the conversation.
3209 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
3210 },
3211 ],
3212 },
3213 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
3214 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
3215 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to
3216 # play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single
3217 # channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz.
3218 #
3219 # This object must be readable by the `service-&lt;Project
3220 # Number&gt;@gcp-sa-dialogflow.iam.gserviceaccount.com` service account
3221 # where &lt;Project Number&gt; is the number of the Telephony Gateway project
3222 # (usually the same as the Dialogflow agent project). If the Google Cloud
3223 # Storage bucket is in the Telephony Gateway project, this permission is
3224 # added by default when enabling the Dialogflow V2 API.
3225 #
3226 # For audio from other sources, consider using the
3227 # `TelephonySynthesizeSpeech` message with SSML.
3228 },
3229 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
3230 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
3231 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
3232 &quot;items&quot;: [ # Required. List items.
3233 { # An item in the list.
3234 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
3235 # dialog.
3236 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
3237 # item in dialog.
3238 &quot;A String&quot;,
3239 ],
3240 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
3241 # response is given.
3242 },
3243 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
3244 &quot;image&quot;: { # The image response message. # Optional. The image to display.
3245 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3246 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
3247 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
3248 },
3249 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
3250 },
3251 ],
3252 },
3253 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response.
3254 #
3255 # RBM allows businesses to send enriched and branded versions of SMS. See
3256 # https://jibe.google.com/business-messaging.
3257 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
3258 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
3259 # easily select/click a predefined response or perform an action (like
3260 # opening a web uri).
3261 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
3262 # instead of typing in their own response.
3263 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
3264 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
3265 # when the user taps the suggested reply. This data will be also
3266 # forwarded to webhook to allow performing custom business logic.
3267 },
3268 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
3269 # can choose from the card.
3270 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
3271 # when the user taps the suggested action. This data will be also
3272 # forwarded to webhook to allow performing custom business logic.
3273 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
3274 # to send back to the agent (https://goo.gl/GXotJW).
3275 },
3276 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
3277 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
3278 # (https://goo.gl/6GLJD2). If the user has an app installed that is
3279 # registered as the default handler for the URL, then this app will be
3280 # opened instead, and its icon will be used in the suggested action UI.
3281 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
3282 },
3283 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
3284 # but does not dial automatically (https://goo.gl/ergbB2).
3285 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
3286 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
3287 # format. An example of a correctly formatted phone number:
3288 # +15556767888.
3289 },
3290 },
3291 },
3292 ],
3293 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
3294 },
3295 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
3296 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
3297 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
3298 &quot;A String&quot;,
3299 ],
3300 },
3301 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in # Synthesizes speech in Telephony Gateway.
3302 # Telephony Gateway.
3303 #
3304 # Telephony Gateway takes the synthesizer settings from
3305 # `DetectIntentResponse.output_audio_config` which can either be set
3306 # at request-level or can come from the agent-level synthesizer config.
3307 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
3308 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see
3309 # [SSML](https://developers.google.com/actions/reference/ssml).
3310 },
3311 &quot;card&quot;: { # The card response message. # Displays a card.
3312 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
3313 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
3314 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
3315 { # Optional. Contains information about a button.
3316 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
3317 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
3318 # open.
3319 },
3320 ],
3321 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
3322 },
3323 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
3324 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
3325 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
3326 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3327 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
3328 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
3329 },
3330 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
3331 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
3332 { # The button object that appears at the bottom of a card.
3333 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
3334 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
3335 },
3336 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
3337 },
3338 ],
3339 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
3340 },
3341 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
3342 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
3343 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
3344 { # Column properties for TableCard.
3345 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
3346 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
3347 },
3348 ],
3349 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
3350 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3351 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
3352 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
3353 },
3354 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
3355 { # The button object that appears at the bottom of a card.
3356 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
3357 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
3358 },
3359 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
3360 },
3361 ],
3362 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
3363 &quot;rows&quot;: [ # Optional. Rows in this table of data.
3364 { # Row of TableCard.
3365 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
3366 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
3367 { # Cell of TableCardRow.
3368 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
3369 },
3370 ],
3371 },
3372 ],
3373 },
3374 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
3375 &quot;items&quot;: [ # Required. Carousel items.
3376 { # An item in the carousel.
3377 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
3378 &quot;image&quot;: { # The image response message. # Optional. The image to display.
3379 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3380 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
3381 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
3382 },
3383 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
3384 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
3385 # dialog.
3386 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
3387 # item in dialog.
3388 &quot;A String&quot;,
3389 ],
3390 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
3391 # response is given.
3392 },
3393 },
3394 ],
3395 },
3396 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app # Displays a link out suggestion chip for Actions on Google.
3397 # or website associated with this agent.
3398 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
3399 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
3400 # suggestion chip.
3401 },
3402 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
3403 # https://developers.google.com/actions/assistant/responses#browsing_carousel
3404 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
3405 # items.
3406 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
3407 # items, maximum of ten.
3408 { # Browsing carousel tile
3409 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
3410 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
3411 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3412 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
3413 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
3414 },
3415 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
3416 # text.
3417 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
3418 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
3419 # the URL. Defaults to opening via web browser.
3420 &quot;url&quot;: &quot;A String&quot;, # Required. URL
3421 },
3422 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
3423 # Card. Maximum of one line of text.
3424 },
3425 ],
3426 },
3427 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # Returns a voice or text-only response for Actions on Google.
3428 # This message in `QueryResult.fulfillment_messages` and
3429 # `WebhookResponse.fulfillment_messages` should contain only one
3430 # `SimpleResponse`.
3431 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
3432 { # The simple response message containing speech or text.
3433 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
3434 # speech output. Mutually exclusive with ssml.
3435 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
3436 # response to the user in the SSML format. Mutually exclusive with
3437 # text_to_speech.
3438 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
3439 },
3440 ],
3441 },
3442 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
3443 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to
3444 # in [E.164 format](https://en.wikipedia.org/wiki/E.164).
3445 #
3446 # We currently only allow transferring to US numbers (+1xxxyyyzzzz).
3447 },
3448 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
3449 &quot;mediaObjects&quot;: [ # Required. List of media objects.
3450 { # Response media object for media content card.
3451 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
3452 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3453 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
3454 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
3455 },
3456 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
3457 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
3458 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
3459 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
3460 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3461 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
3462 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
3463 },
3464 },
3465 ],
3466 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
3467 },
3468 &quot;image&quot;: { # The image response message. # Displays an image.
3469 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3470 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
3471 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
3472 },
3473 &quot;payload&quot;: { # A custom platform-specific response.
3474 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3475 },
3476 &quot;rbmStandaloneRichCard&quot;: { # Standalone Rich Business Messaging (RBM) rich card. # Standalone Rich Business Messaging (RBM) rich card response.
3477 #
3478 # Rich cards allow you to respond to users with more vivid content, e.g.
3479 # with media and suggestions.
3480 #
3481 # For more details about RBM rich cards, please see:
3482 # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards.
3483 # You can group multiple rich cards into one using RbmCarouselCard but
3484 # carousel cards will give you less control over the card layout.
3485 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal.
3486 # Image preview alignment for standalone cards with horizontal layout.
3487 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
3488 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
3489 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
3490 #
3491 # At least one of the title, description or media must be set.
3492 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
3493 # be set. Media (image, GIF or a video) to include in the card.
3494 # The following media-types are currently supported:
3495 #
3496 # Image Types
3497 #
3498 # * image/jpeg
3499 # * image/jpg&#x27;
3500 # * image/gif
3501 # * image/png
3502 #
3503 # Video Types
3504 #
3505 # * video/h263
3506 # * video/m4v
3507 # * video/mp4
3508 # * video/mpeg
3509 # * video/mpeg4
3510 # * video/webm
3511 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
3512 # provide a thumbnail URI, the RBM platform displays a blank
3513 # placeholder thumbnail until the user&#x27;s device downloads the file.
3514 # Depending on the user&#x27;s setting, the file may not download
3515 # automatically and may require the user to tap a download button.
3516 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
3517 # within a rich card with a vertical layout. (https://goo.gl/NeFCjz).
3518 # For a standalone card with horizontal layout, height is not
3519 # customizable, and this field is ignored.
3520 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
3521 # determines the MIME type of the file from the content-type field in
3522 # the HTTP headers when the platform fetches the file. The content-type
3523 # field must be present and accurate in the HTTP response from the URL.
3524 },
3525 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
3526 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
3527 # easily select/click a predefined response or perform an action (like
3528 # opening a web uri).
3529 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
3530 # instead of typing in their own response.
3531 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
3532 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
3533 # when the user taps the suggested reply. This data will be also
3534 # forwarded to webhook to allow performing custom business logic.
3535 },
3536 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
3537 # can choose from the card.
3538 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
3539 # when the user taps the suggested action. This data will be also
3540 # forwarded to webhook to allow performing custom business logic.
3541 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
3542 # to send back to the agent (https://goo.gl/GXotJW).
3543 },
3544 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
3545 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
3546 # (https://goo.gl/6GLJD2). If the user has an app installed that is
3547 # registered as the default handler for the URL, then this app will be
3548 # opened instead, and its icon will be used in the suggested action UI.
3549 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
3550 },
3551 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
3552 # but does not dial automatically (https://goo.gl/ergbB2).
3553 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
3554 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
3555 # format. An example of a correctly formatted phone number:
3556 # +15556767888.
3557 },
3558 },
3559 },
3560 ],
3561 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
3562 #
3563 # At least one of the title, description or media must be set.
3564 },
3565 },
3566 },
3567 ],
3568 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent.
3569 # Note: The action name must not contain whitespaces.
3570 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent.
3571 # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
3572 # methods.
Dan O'Mearadd494642020-05-01 07:42:23 -07003573 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003574 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
3575 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003576 # triggered.
Dan O'Mearadd494642020-05-01 07:42:23 -07003577 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003578 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003579 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003580 &quot;followupIntentInfo&quot;: [ # Output only. Information about all followup intents that have this intent as
3581 # a direct or indirect parent. We populate this field only in the output.
3582 { # Represents a single followup intent in the chain.
3583 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent.
3584 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
3585 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent.
3586 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
3587 },
3588 ],
3589 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
3590 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Output only. The unique identifier of the root intent in the chain of
3591 # followup intents. It identifies the correct followup intents chain for
3592 # this intent.
3593 #
3594 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
3595 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
3596 # Note: If `ml_disabled` setting is set to true, then this intent is not
3597 # taken into account during inference in `ML ONLY` match mode. Also,
3598 # auto-markup in the UI is turned off.
3599 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
3600 &quot;mlEnabled&quot;: True or False, # Optional. Indicates whether Machine Learning is enabled for the intent.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003601 # Note: If `ml_enabled` setting is set to false, then this intent is not
3602 # taken into account during inference in `ML ONLY` match mode. Also,
3603 # auto-markup in the UI is turned off.
3604 # DEPRECATED! Please use `ml_disabled` field instead.
3605 # NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false,
3606 # then the default value is determined as follows:
3607 # - Before April 15th, 2018 the default is:
3608 # ml_enabled = false / ml_disabled = true.
3609 # - After April 15th, 2018 the default is:
3610 # ml_enabled = true / ml_disabled = false.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003611 }</pre>
3612</div>
3613
3614<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -07003615 <code class="details" id="list">list(parent, languageCode=None, pageToken=None, pageSize=None, intentView=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003616 <pre>Returns the list of all intents in the specified agent.
3617
3618Args:
3619 parent: string, Required. The agent to list all intents from.
Dan O'Mearadd494642020-05-01 07:42:23 -07003620Format: `projects/&lt;Project ID&gt;/agent`. (required)
3621 languageCode: string, Optional. The language used to access language-specific data.
Bu Sun Kim65020912020-05-20 12:08:20 -07003622If not specified, the agent&#x27;s default language is used.
Dan O'Mearadd494642020-05-01 07:42:23 -07003623For more information, see
3624[Multilingual intent and entity
3625data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
Bu Sun Kim65020912020-05-20 12:08:20 -07003626 pageToken: string, Optional. The next_page_token value returned from a previous list request.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003627 pageSize: integer, Optional. The maximum number of items to return in a single page. By
3628default 100 and at most 1000.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003629 intentView: string, Optional. The resource view to apply to the returned intent.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003630 x__xgafv: string, V1 error format.
3631 Allowed values
3632 1 - v1 error format
3633 2 - v2 error format
3634
3635Returns:
3636 An object of the form:
3637
3638 { # The response message for Intents.ListIntents.
Bu Sun Kim65020912020-05-20 12:08:20 -07003639 &quot;intents&quot;: [ # The list of agent intents. There will be a maximum number of items
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003640 # returned based on the page_size field in the request.
3641 { # Represents an intent.
3642 # Intents convert a number of user expressions or patterns into an action. An
3643 # action is an extraction of a user command or sentence semantics.
Bu Sun Kim65020912020-05-20 12:08:20 -07003644 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is
Dan O'Mearadd494642020-05-01 07:42:23 -07003645 # trained on.
3646 { # Represents an example that the agent is trained on.
Bu Sun Kim65020912020-05-20 12:08:20 -07003647 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts.
Dan O'Mearadd494642020-05-01 07:42:23 -07003648 # The parts are concatenated in order to form the training phrase.
3649 #
3650 # Note: The API does not automatically annotate training phrases like the
3651 # Dialogflow Console does.
3652 #
3653 # Note: Do not forget to include whitespace at part boundaries,
3654 # so the training phrase is well formatted when the parts are concatenated.
3655 #
3656 # If the training phrase does not need to be annotated with parameters,
3657 # you just need a single part with only the Part.text field set.
3658 #
3659 # If you want to annotate the training phrase, you must create multiple
3660 # parts, where the fields of each part are populated in one of two ways:
3661 #
3662 # - `Part.text` is set to a part of the phrase that has no parameters.
3663 # - `Part.text` is set to a part of the phrase that you want to annotate,
3664 # and the `entity_type`, `alias`, and `user_defined` fields are all
3665 # set.
3666 { # Represents a part of a training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07003667 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the
Dan O'Mearadd494642020-05-01 07:42:23 -07003668 # annotated part of the example.
3669 # This field is required for annotated parts of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07003670 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated.
Dan O'Mearadd494642020-05-01 07:42:23 -07003671 # This field is set to true when the Dialogflow Console is used to
3672 # manually annotate the part. When creating an annotated part with the
3673 # API, you must set this to true.
Bu Sun Kim65020912020-05-20 12:08:20 -07003674 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
3675 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`.
3676 # This field is required for annotated parts of the training phrase.
Dan O'Mearadd494642020-05-01 07:42:23 -07003677 },
3678 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003679 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
3680 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to
Dan O'Mearadd494642020-05-01 07:42:23 -07003681 # the intent. Each time a developer adds an existing sample by editing an
3682 # intent or training, this counter is increased.
Bu Sun Kim65020912020-05-20 12:08:20 -07003683 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
Dan O'Mearadd494642020-05-01 07:42:23 -07003684 },
3685 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003686 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current
3687 # session when this intent is matched.
3688 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
3689 { # Represents intent parameters.
3690 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
3691 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that
3692 # describes values of the parameter. If the parameter is
3693 # required, this must be provided.
3694 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the
3695 # user in order to collect a value for the parameter.
3696 &quot;A String&quot;,
3697 ],
3698 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty
3699 # result.
3700 # Default values can be extracted from contexts by using the following
3701 # syntax: `#context_name.parameter_name`.
3702 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is,
3703 # whether the intent cannot be completed without collecting the parameter
3704 # value.
3705 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
3706 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
3707 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be:
3708 #
3709 # - a constant string,
3710 # - a parameter value defined as `$parameter_name`,
3711 # - an original parameter value defined as `$parameter_name.original`,
3712 # - a parameter value from some context defined as
3713 # `#context_name.parameter_name`.
3714 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003715 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003716 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent.
3717 # If the collection of input contexts is not empty, all of the contexts must
3718 # be present in the active user session for an event to trigger this intent.
3719 # Event names are limited to 150 characters.
3720 &quot;A String&quot;,
3721 ],
3722 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Optional. The unique identifier of the parent intent in the
3723 # chain of followup intents. You can set this field when creating an intent,
3724 # for example with CreateIntent or
3725 # BatchUpdateIntents, in order to make this
3726 # intent a followup intent.
3727 #
3728 # It identifies the parent followup intent.
3729 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
3730 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher
Dan O'Mearadd494642020-05-01 07:42:23 -07003731 # priorities.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003732 #
Dan O'Mearadd494642020-05-01 07:42:23 -07003733 # - If the supplied value is unspecified or 0, the service
3734 # translates the value to 500,000, which corresponds to the
3735 # `Normal` priority in the console.
3736 # - If the supplied value is negative, the intent is ignored
3737 # in runtime detect intent requests.
Bu Sun Kim65020912020-05-20 12:08:20 -07003738 &quot;endInteraction&quot;: True or False, # Optional. Indicates that this intent ends an interaction. Some integrations
3739 # (e.g., Actions on Google or Dialogflow phone gateway) use this information
3740 # to close interaction with an end user. Default is false.
3741 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent
3742 # is matched. Context messages in this collection should not set the
3743 # parameters field. Setting the `lifespan_count` to 0 will reset the context
3744 # when the intent is matched.
3745 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
3746 { # Represents a context.
3747 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
3748 # context expires. The default is `0`. If set to `0`, the context expires
3749 # immediately. Contexts expire automatically after 20 minutes if there
3750 # are no matching queries.
3751 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
3752 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
3753 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
3754 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
3755 #
3756 # The `Context ID` is always converted to lowercase, may only contain
3757 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
3758 #
3759 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
3760 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
3761 #
3762 # The following context names are reserved for internal use by Dialogflow.
3763 # You should not use these contexts or create contexts with these names:
3764 #
3765 # * `__system_counters__`
3766 # * `*_id_dialog_context`
3767 # * `*_dialog_params_size`
3768 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
3769 #
3770 # Depending on your protocol or client library language, this is a
3771 # map, associative array, symbol table, dictionary, or JSON object
3772 # composed of a collection of (MapKey, MapValue) pairs:
3773 #
3774 # - MapKey type: string
3775 # - MapKey value: parameter name
3776 # - MapValue type:
3777 # - If parameter&#x27;s entity type is a composite entity: map
3778 # - Else: string or number, depending on parameter value type
3779 # - MapValue value:
3780 # - If parameter&#x27;s entity type is a composite entity:
3781 # map from composite entity property names to property values
3782 # - Else: parameter value
3783 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3784 },
3785 },
3786 ],
3787 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be
3788 # copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
3789 &quot;A String&quot;,
3790 ],
3791 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the
3792 # `Response` field in the Dialogflow console.
3793 { # Corresponds to the `Response` field in the Dialogflow console.
3794 &quot;text&quot;: { # The text response message. # Returns a text response.
3795 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
3796 &quot;A String&quot;,
3797 ],
3798 },
3799 &quot;rbmCarouselRichCard&quot;: { # Carousel Rich Business Messaging (RBM) rich card. # Rich Business Messaging (RBM) carousel rich card response.
3800 #
3801 # Rich cards allow you to respond to users with more vivid content, e.g.
3802 # with media and suggestions.
3803 #
3804 # For more details about RBM rich cards, please see:
3805 # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards.
3806 # If you want to show a single card with more control over the layout,
3807 # please use RbmStandaloneCard instead.
3808 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
3809 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least
3810 # 2 cards and at most 10.
3811 { # Rich Business Messaging (RBM) Card content
3812 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
3813 #
3814 # At least one of the title, description or media must be set.
3815 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
3816 # be set. Media (image, GIF or a video) to include in the card.
3817 # The following media-types are currently supported:
3818 #
3819 # Image Types
3820 #
3821 # * image/jpeg
3822 # * image/jpg&#x27;
3823 # * image/gif
3824 # * image/png
3825 #
3826 # Video Types
3827 #
3828 # * video/h263
3829 # * video/m4v
3830 # * video/mp4
3831 # * video/mpeg
3832 # * video/mpeg4
3833 # * video/webm
3834 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
3835 # provide a thumbnail URI, the RBM platform displays a blank
3836 # placeholder thumbnail until the user&#x27;s device downloads the file.
3837 # Depending on the user&#x27;s setting, the file may not download
3838 # automatically and may require the user to tap a download button.
3839 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
3840 # within a rich card with a vertical layout. (https://goo.gl/NeFCjz).
3841 # For a standalone card with horizontal layout, height is not
3842 # customizable, and this field is ignored.
3843 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
3844 # determines the MIME type of the file from the content-type field in
3845 # the HTTP headers when the platform fetches the file. The content-type
3846 # field must be present and accurate in the HTTP response from the URL.
3847 },
3848 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
3849 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
3850 # easily select/click a predefined response or perform an action (like
3851 # opening a web uri).
3852 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
3853 # instead of typing in their own response.
3854 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
3855 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
3856 # when the user taps the suggested reply. This data will be also
3857 # forwarded to webhook to allow performing custom business logic.
3858 },
3859 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
3860 # can choose from the card.
3861 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
3862 # when the user taps the suggested action. This data will be also
3863 # forwarded to webhook to allow performing custom business logic.
3864 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
3865 # to send back to the agent (https://goo.gl/GXotJW).
3866 },
3867 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
3868 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
3869 # (https://goo.gl/6GLJD2). If the user has an app installed that is
3870 # registered as the default handler for the URL, then this app will be
3871 # opened instead, and its icon will be used in the suggested action UI.
3872 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
3873 },
3874 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
3875 # but does not dial automatically (https://goo.gl/ergbB2).
3876 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
3877 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
3878 # format. An example of a correctly formatted phone number:
3879 # +15556767888.
3880 },
3881 },
3882 },
3883 ],
3884 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
3885 #
3886 # At least one of the title, description or media must be set.
3887 },
3888 ],
3889 },
3890 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
3891 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
3892 { # The suggestion chip message that the user can tap to quickly post a reply
3893 # to the conversation.
3894 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
3895 },
3896 ],
3897 },
3898 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
3899 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
3900 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to
3901 # play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single
3902 # channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz.
3903 #
3904 # This object must be readable by the `service-&lt;Project
3905 # Number&gt;@gcp-sa-dialogflow.iam.gserviceaccount.com` service account
3906 # where &lt;Project Number&gt; is the number of the Telephony Gateway project
3907 # (usually the same as the Dialogflow agent project). If the Google Cloud
3908 # Storage bucket is in the Telephony Gateway project, this permission is
3909 # added by default when enabling the Dialogflow V2 API.
3910 #
3911 # For audio from other sources, consider using the
3912 # `TelephonySynthesizeSpeech` message with SSML.
3913 },
3914 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
3915 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
3916 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
3917 &quot;items&quot;: [ # Required. List items.
3918 { # An item in the list.
3919 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
3920 # dialog.
3921 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
3922 # item in dialog.
3923 &quot;A String&quot;,
3924 ],
3925 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
3926 # response is given.
3927 },
3928 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
3929 &quot;image&quot;: { # The image response message. # Optional. The image to display.
3930 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3931 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
3932 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
3933 },
3934 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
3935 },
3936 ],
3937 },
3938 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response.
3939 #
3940 # RBM allows businesses to send enriched and branded versions of SMS. See
3941 # https://jibe.google.com/business-messaging.
3942 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
3943 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
3944 # easily select/click a predefined response or perform an action (like
3945 # opening a web uri).
3946 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
3947 # instead of typing in their own response.
3948 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
3949 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
3950 # when the user taps the suggested reply. This data will be also
3951 # forwarded to webhook to allow performing custom business logic.
3952 },
3953 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
3954 # can choose from the card.
3955 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
3956 # when the user taps the suggested action. This data will be also
3957 # forwarded to webhook to allow performing custom business logic.
3958 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
3959 # to send back to the agent (https://goo.gl/GXotJW).
3960 },
3961 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
3962 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
3963 # (https://goo.gl/6GLJD2). If the user has an app installed that is
3964 # registered as the default handler for the URL, then this app will be
3965 # opened instead, and its icon will be used in the suggested action UI.
3966 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
3967 },
3968 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
3969 # but does not dial automatically (https://goo.gl/ergbB2).
3970 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
3971 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
3972 # format. An example of a correctly formatted phone number:
3973 # +15556767888.
3974 },
3975 },
3976 },
3977 ],
3978 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
3979 },
3980 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
3981 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
3982 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
3983 &quot;A String&quot;,
3984 ],
3985 },
3986 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in # Synthesizes speech in Telephony Gateway.
3987 # Telephony Gateway.
3988 #
3989 # Telephony Gateway takes the synthesizer settings from
3990 # `DetectIntentResponse.output_audio_config` which can either be set
3991 # at request-level or can come from the agent-level synthesizer config.
3992 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
3993 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see
3994 # [SSML](https://developers.google.com/actions/reference/ssml).
3995 },
3996 &quot;card&quot;: { # The card response message. # Displays a card.
3997 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
3998 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
3999 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
4000 { # Optional. Contains information about a button.
4001 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
4002 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
4003 # open.
4004 },
4005 ],
4006 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
4007 },
4008 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
4009 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
4010 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
4011 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
4012 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
4013 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
4014 },
4015 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
4016 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
4017 { # The button object that appears at the bottom of a card.
4018 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
4019 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
4020 },
4021 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
4022 },
4023 ],
4024 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
4025 },
4026 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
4027 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
4028 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
4029 { # Column properties for TableCard.
4030 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
4031 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
4032 },
4033 ],
4034 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
4035 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
4036 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
4037 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
4038 },
4039 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
4040 { # The button object that appears at the bottom of a card.
4041 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
4042 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
4043 },
4044 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
4045 },
4046 ],
4047 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
4048 &quot;rows&quot;: [ # Optional. Rows in this table of data.
4049 { # Row of TableCard.
4050 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
4051 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
4052 { # Cell of TableCardRow.
4053 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
4054 },
4055 ],
4056 },
4057 ],
4058 },
4059 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
4060 &quot;items&quot;: [ # Required. Carousel items.
4061 { # An item in the carousel.
4062 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
4063 &quot;image&quot;: { # The image response message. # Optional. The image to display.
4064 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
4065 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
4066 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
4067 },
4068 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
4069 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
4070 # dialog.
4071 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
4072 # item in dialog.
4073 &quot;A String&quot;,
4074 ],
4075 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
4076 # response is given.
4077 },
4078 },
4079 ],
4080 },
4081 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app # Displays a link out suggestion chip for Actions on Google.
4082 # or website associated with this agent.
4083 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
4084 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
4085 # suggestion chip.
4086 },
4087 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
4088 # https://developers.google.com/actions/assistant/responses#browsing_carousel
4089 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
4090 # items.
4091 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
4092 # items, maximum of ten.
4093 { # Browsing carousel tile
4094 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
4095 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
4096 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
4097 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
4098 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
4099 },
4100 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
4101 # text.
4102 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
4103 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
4104 # the URL. Defaults to opening via web browser.
4105 &quot;url&quot;: &quot;A String&quot;, # Required. URL
4106 },
4107 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
4108 # Card. Maximum of one line of text.
4109 },
4110 ],
4111 },
4112 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # Returns a voice or text-only response for Actions on Google.
4113 # This message in `QueryResult.fulfillment_messages` and
4114 # `WebhookResponse.fulfillment_messages` should contain only one
4115 # `SimpleResponse`.
4116 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
4117 { # The simple response message containing speech or text.
4118 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
4119 # speech output. Mutually exclusive with ssml.
4120 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
4121 # response to the user in the SSML format. Mutually exclusive with
4122 # text_to_speech.
4123 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
4124 },
4125 ],
4126 },
4127 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
4128 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to
4129 # in [E.164 format](https://en.wikipedia.org/wiki/E.164).
4130 #
4131 # We currently only allow transferring to US numbers (+1xxxyyyzzzz).
4132 },
4133 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
4134 &quot;mediaObjects&quot;: [ # Required. List of media objects.
4135 { # Response media object for media content card.
4136 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
4137 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
4138 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
4139 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
4140 },
4141 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
4142 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
4143 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
4144 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
4145 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
4146 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
4147 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
4148 },
4149 },
4150 ],
4151 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
4152 },
4153 &quot;image&quot;: { # The image response message. # Displays an image.
4154 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
4155 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
4156 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
4157 },
4158 &quot;payload&quot;: { # A custom platform-specific response.
4159 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4160 },
4161 &quot;rbmStandaloneRichCard&quot;: { # Standalone Rich Business Messaging (RBM) rich card. # Standalone Rich Business Messaging (RBM) rich card response.
4162 #
4163 # Rich cards allow you to respond to users with more vivid content, e.g.
4164 # with media and suggestions.
4165 #
4166 # For more details about RBM rich cards, please see:
4167 # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards.
4168 # You can group multiple rich cards into one using RbmCarouselCard but
4169 # carousel cards will give you less control over the card layout.
4170 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal.
4171 # Image preview alignment for standalone cards with horizontal layout.
4172 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
4173 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
4174 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
4175 #
4176 # At least one of the title, description or media must be set.
4177 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
4178 # be set. Media (image, GIF or a video) to include in the card.
4179 # The following media-types are currently supported:
4180 #
4181 # Image Types
4182 #
4183 # * image/jpeg
4184 # * image/jpg&#x27;
4185 # * image/gif
4186 # * image/png
4187 #
4188 # Video Types
4189 #
4190 # * video/h263
4191 # * video/m4v
4192 # * video/mp4
4193 # * video/mpeg
4194 # * video/mpeg4
4195 # * video/webm
4196 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
4197 # provide a thumbnail URI, the RBM platform displays a blank
4198 # placeholder thumbnail until the user&#x27;s device downloads the file.
4199 # Depending on the user&#x27;s setting, the file may not download
4200 # automatically and may require the user to tap a download button.
4201 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
4202 # within a rich card with a vertical layout. (https://goo.gl/NeFCjz).
4203 # For a standalone card with horizontal layout, height is not
4204 # customizable, and this field is ignored.
4205 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
4206 # determines the MIME type of the file from the content-type field in
4207 # the HTTP headers when the platform fetches the file. The content-type
4208 # field must be present and accurate in the HTTP response from the URL.
4209 },
4210 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
4211 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
4212 # easily select/click a predefined response or perform an action (like
4213 # opening a web uri).
4214 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
4215 # instead of typing in their own response.
4216 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
4217 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
4218 # when the user taps the suggested reply. This data will be also
4219 # forwarded to webhook to allow performing custom business logic.
4220 },
4221 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
4222 # can choose from the card.
4223 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
4224 # when the user taps the suggested action. This data will be also
4225 # forwarded to webhook to allow performing custom business logic.
4226 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
4227 # to send back to the agent (https://goo.gl/GXotJW).
4228 },
4229 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
4230 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
4231 # (https://goo.gl/6GLJD2). If the user has an app installed that is
4232 # registered as the default handler for the URL, then this app will be
4233 # opened instead, and its icon will be used in the suggested action UI.
4234 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
4235 },
4236 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
4237 # but does not dial automatically (https://goo.gl/ergbB2).
4238 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
4239 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
4240 # format. An example of a correctly formatted phone number:
4241 # +15556767888.
4242 },
4243 },
4244 },
4245 ],
4246 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
4247 #
4248 # At least one of the title, description or media must be set.
4249 },
4250 },
4251 },
4252 ],
4253 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent.
4254 # Note: The action name must not contain whitespaces.
4255 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent.
4256 # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
4257 # methods.
Dan O'Mearadd494642020-05-01 07:42:23 -07004258 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kim65020912020-05-20 12:08:20 -07004259 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
4260 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004261 # triggered.
Dan O'Mearadd494642020-05-01 07:42:23 -07004262 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
Bu Sun Kim65020912020-05-20 12:08:20 -07004263 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004264 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004265 &quot;followupIntentInfo&quot;: [ # Output only. Information about all followup intents that have this intent as
4266 # a direct or indirect parent. We populate this field only in the output.
4267 { # Represents a single followup intent in the chain.
4268 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent.
4269 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
4270 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent.
4271 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
4272 },
4273 ],
4274 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
4275 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Output only. The unique identifier of the root intent in the chain of
4276 # followup intents. It identifies the correct followup intents chain for
4277 # this intent.
4278 #
4279 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
4280 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
4281 # Note: If `ml_disabled` setting is set to true, then this intent is not
4282 # taken into account during inference in `ML ONLY` match mode. Also,
4283 # auto-markup in the UI is turned off.
4284 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
4285 &quot;mlEnabled&quot;: True or False, # Optional. Indicates whether Machine Learning is enabled for the intent.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004286 # Note: If `ml_enabled` setting is set to false, then this intent is not
4287 # taken into account during inference in `ML ONLY` match mode. Also,
4288 # auto-markup in the UI is turned off.
4289 # DEPRECATED! Please use `ml_disabled` field instead.
4290 # NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false,
4291 # then the default value is determined as follows:
4292 # - Before April 15th, 2018 the default is:
4293 # ml_enabled = false / ml_disabled = true.
4294 # - After April 15th, 2018 the default is:
4295 # ml_enabled = true / ml_disabled = false.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004296 },
4297 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004298 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no
4299 # more results in the list.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004300 }</pre>
4301</div>
4302
4303<div class="method">
4304 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
4305 <pre>Retrieves the next page of results.
4306
4307Args:
4308 previous_request: The request for the previous page. (required)
4309 previous_response: The response from the request for the previous page. (required)
4310
4311Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07004312 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004313 page. Returns None if there are no more items in the collection.
4314 </pre>
4315</div>
4316
4317<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -07004318 <code class="details" id="patch">patch(name, body=None, intentView=None, languageCode=None, updateMask=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004319 <pre>Updates the specified intent.
4320
4321Args:
Bu Sun Kim65020912020-05-20 12:08:20 -07004322 name: string, Optional. The unique identifier of this intent.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004323Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
4324methods.
Dan O'Mearadd494642020-05-01 07:42:23 -07004325Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`. (required)
4326 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004327 The object takes the form of:
4328
4329{ # Represents an intent.
4330 # Intents convert a number of user expressions or patterns into an action. An
4331 # action is an extraction of a user command or sentence semantics.
Bu Sun Kim65020912020-05-20 12:08:20 -07004332 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is
Dan O'Mearadd494642020-05-01 07:42:23 -07004333 # trained on.
4334 { # Represents an example that the agent is trained on.
Bu Sun Kim65020912020-05-20 12:08:20 -07004335 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts.
Dan O'Mearadd494642020-05-01 07:42:23 -07004336 # The parts are concatenated in order to form the training phrase.
4337 #
4338 # Note: The API does not automatically annotate training phrases like the
4339 # Dialogflow Console does.
4340 #
4341 # Note: Do not forget to include whitespace at part boundaries,
4342 # so the training phrase is well formatted when the parts are concatenated.
4343 #
4344 # If the training phrase does not need to be annotated with parameters,
4345 # you just need a single part with only the Part.text field set.
4346 #
4347 # If you want to annotate the training phrase, you must create multiple
4348 # parts, where the fields of each part are populated in one of two ways:
4349 #
4350 # - `Part.text` is set to a part of the phrase that has no parameters.
4351 # - `Part.text` is set to a part of the phrase that you want to annotate,
4352 # and the `entity_type`, `alias`, and `user_defined` fields are all
4353 # set.
4354 { # Represents a part of a training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07004355 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the
Dan O'Mearadd494642020-05-01 07:42:23 -07004356 # annotated part of the example.
4357 # This field is required for annotated parts of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07004358 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated.
Dan O'Mearadd494642020-05-01 07:42:23 -07004359 # This field is set to true when the Dialogflow Console is used to
4360 # manually annotate the part. When creating an annotated part with the
4361 # API, you must set this to true.
Bu Sun Kim65020912020-05-20 12:08:20 -07004362 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
4363 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`.
4364 # This field is required for annotated parts of the training phrase.
Dan O'Mearadd494642020-05-01 07:42:23 -07004365 },
4366 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004367 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
4368 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to
Dan O'Mearadd494642020-05-01 07:42:23 -07004369 # the intent. Each time a developer adds an existing sample by editing an
4370 # intent or training, this counter is increased.
Bu Sun Kim65020912020-05-20 12:08:20 -07004371 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
Dan O'Mearadd494642020-05-01 07:42:23 -07004372 },
4373 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004374 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current
4375 # session when this intent is matched.
4376 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
4377 { # Represents intent parameters.
4378 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
4379 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that
4380 # describes values of the parameter. If the parameter is
4381 # required, this must be provided.
4382 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the
4383 # user in order to collect a value for the parameter.
4384 &quot;A String&quot;,
4385 ],
4386 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty
4387 # result.
4388 # Default values can be extracted from contexts by using the following
4389 # syntax: `#context_name.parameter_name`.
4390 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is,
4391 # whether the intent cannot be completed without collecting the parameter
4392 # value.
4393 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
4394 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
4395 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be:
4396 #
4397 # - a constant string,
4398 # - a parameter value defined as `$parameter_name`,
4399 # - an original parameter value defined as `$parameter_name.original`,
4400 # - a parameter value from some context defined as
4401 # `#context_name.parameter_name`.
4402 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004403 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004404 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent.
4405 # If the collection of input contexts is not empty, all of the contexts must
4406 # be present in the active user session for an event to trigger this intent.
4407 # Event names are limited to 150 characters.
4408 &quot;A String&quot;,
4409 ],
4410 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Optional. The unique identifier of the parent intent in the
4411 # chain of followup intents. You can set this field when creating an intent,
4412 # for example with CreateIntent or
4413 # BatchUpdateIntents, in order to make this
4414 # intent a followup intent.
4415 #
4416 # It identifies the parent followup intent.
4417 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
4418 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher
Dan O'Mearadd494642020-05-01 07:42:23 -07004419 # priorities.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004420 #
Dan O'Mearadd494642020-05-01 07:42:23 -07004421 # - If the supplied value is unspecified or 0, the service
4422 # translates the value to 500,000, which corresponds to the
4423 # `Normal` priority in the console.
4424 # - If the supplied value is negative, the intent is ignored
4425 # in runtime detect intent requests.
Bu Sun Kim65020912020-05-20 12:08:20 -07004426 &quot;endInteraction&quot;: True or False, # Optional. Indicates that this intent ends an interaction. Some integrations
4427 # (e.g., Actions on Google or Dialogflow phone gateway) use this information
4428 # to close interaction with an end user. Default is false.
4429 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent
4430 # is matched. Context messages in this collection should not set the
4431 # parameters field. Setting the `lifespan_count` to 0 will reset the context
4432 # when the intent is matched.
4433 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
4434 { # Represents a context.
4435 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
4436 # context expires. The default is `0`. If set to `0`, the context expires
4437 # immediately. Contexts expire automatically after 20 minutes if there
4438 # are no matching queries.
4439 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
4440 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
4441 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
4442 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
4443 #
4444 # The `Context ID` is always converted to lowercase, may only contain
4445 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
4446 #
4447 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
4448 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
4449 #
4450 # The following context names are reserved for internal use by Dialogflow.
4451 # You should not use these contexts or create contexts with these names:
4452 #
4453 # * `__system_counters__`
4454 # * `*_id_dialog_context`
4455 # * `*_dialog_params_size`
4456 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
4457 #
4458 # Depending on your protocol or client library language, this is a
4459 # map, associative array, symbol table, dictionary, or JSON object
4460 # composed of a collection of (MapKey, MapValue) pairs:
4461 #
4462 # - MapKey type: string
4463 # - MapKey value: parameter name
4464 # - MapValue type:
4465 # - If parameter&#x27;s entity type is a composite entity: map
4466 # - Else: string or number, depending on parameter value type
4467 # - MapValue value:
4468 # - If parameter&#x27;s entity type is a composite entity:
4469 # map from composite entity property names to property values
4470 # - Else: parameter value
4471 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4472 },
4473 },
4474 ],
4475 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be
4476 # copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
4477 &quot;A String&quot;,
4478 ],
4479 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the
4480 # `Response` field in the Dialogflow console.
4481 { # Corresponds to the `Response` field in the Dialogflow console.
4482 &quot;text&quot;: { # The text response message. # Returns a text response.
4483 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
4484 &quot;A String&quot;,
4485 ],
4486 },
4487 &quot;rbmCarouselRichCard&quot;: { # Carousel Rich Business Messaging (RBM) rich card. # Rich Business Messaging (RBM) carousel rich card response.
4488 #
4489 # Rich cards allow you to respond to users with more vivid content, e.g.
4490 # with media and suggestions.
4491 #
4492 # For more details about RBM rich cards, please see:
4493 # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards.
4494 # If you want to show a single card with more control over the layout,
4495 # please use RbmStandaloneCard instead.
4496 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
4497 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least
4498 # 2 cards and at most 10.
4499 { # Rich Business Messaging (RBM) Card content
4500 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
4501 #
4502 # At least one of the title, description or media must be set.
4503 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
4504 # be set. Media (image, GIF or a video) to include in the card.
4505 # The following media-types are currently supported:
4506 #
4507 # Image Types
4508 #
4509 # * image/jpeg
4510 # * image/jpg&#x27;
4511 # * image/gif
4512 # * image/png
4513 #
4514 # Video Types
4515 #
4516 # * video/h263
4517 # * video/m4v
4518 # * video/mp4
4519 # * video/mpeg
4520 # * video/mpeg4
4521 # * video/webm
4522 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
4523 # provide a thumbnail URI, the RBM platform displays a blank
4524 # placeholder thumbnail until the user&#x27;s device downloads the file.
4525 # Depending on the user&#x27;s setting, the file may not download
4526 # automatically and may require the user to tap a download button.
4527 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
4528 # within a rich card with a vertical layout. (https://goo.gl/NeFCjz).
4529 # For a standalone card with horizontal layout, height is not
4530 # customizable, and this field is ignored.
4531 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
4532 # determines the MIME type of the file from the content-type field in
4533 # the HTTP headers when the platform fetches the file. The content-type
4534 # field must be present and accurate in the HTTP response from the URL.
4535 },
4536 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
4537 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
4538 # easily select/click a predefined response or perform an action (like
4539 # opening a web uri).
4540 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
4541 # instead of typing in their own response.
4542 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
4543 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
4544 # when the user taps the suggested reply. This data will be also
4545 # forwarded to webhook to allow performing custom business logic.
4546 },
4547 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
4548 # can choose from the card.
4549 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
4550 # when the user taps the suggested action. This data will be also
4551 # forwarded to webhook to allow performing custom business logic.
4552 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
4553 # to send back to the agent (https://goo.gl/GXotJW).
4554 },
4555 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
4556 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
4557 # (https://goo.gl/6GLJD2). If the user has an app installed that is
4558 # registered as the default handler for the URL, then this app will be
4559 # opened instead, and its icon will be used in the suggested action UI.
4560 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
4561 },
4562 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
4563 # but does not dial automatically (https://goo.gl/ergbB2).
4564 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
4565 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
4566 # format. An example of a correctly formatted phone number:
4567 # +15556767888.
4568 },
4569 },
4570 },
4571 ],
4572 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
4573 #
4574 # At least one of the title, description or media must be set.
4575 },
4576 ],
4577 },
4578 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
4579 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
4580 { # The suggestion chip message that the user can tap to quickly post a reply
4581 # to the conversation.
4582 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
4583 },
4584 ],
4585 },
4586 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
4587 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
4588 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to
4589 # play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single
4590 # channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz.
4591 #
4592 # This object must be readable by the `service-&lt;Project
4593 # Number&gt;@gcp-sa-dialogflow.iam.gserviceaccount.com` service account
4594 # where &lt;Project Number&gt; is the number of the Telephony Gateway project
4595 # (usually the same as the Dialogflow agent project). If the Google Cloud
4596 # Storage bucket is in the Telephony Gateway project, this permission is
4597 # added by default when enabling the Dialogflow V2 API.
4598 #
4599 # For audio from other sources, consider using the
4600 # `TelephonySynthesizeSpeech` message with SSML.
4601 },
4602 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
4603 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
4604 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
4605 &quot;items&quot;: [ # Required. List items.
4606 { # An item in the list.
4607 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
4608 # dialog.
4609 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
4610 # item in dialog.
4611 &quot;A String&quot;,
4612 ],
4613 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
4614 # response is given.
4615 },
4616 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
4617 &quot;image&quot;: { # The image response message. # Optional. The image to display.
4618 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
4619 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
4620 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
4621 },
4622 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
4623 },
4624 ],
4625 },
4626 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response.
4627 #
4628 # RBM allows businesses to send enriched and branded versions of SMS. See
4629 # https://jibe.google.com/business-messaging.
4630 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
4631 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
4632 # easily select/click a predefined response or perform an action (like
4633 # opening a web uri).
4634 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
4635 # instead of typing in their own response.
4636 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
4637 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
4638 # when the user taps the suggested reply. This data will be also
4639 # forwarded to webhook to allow performing custom business logic.
4640 },
4641 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
4642 # can choose from the card.
4643 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
4644 # when the user taps the suggested action. This data will be also
4645 # forwarded to webhook to allow performing custom business logic.
4646 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
4647 # to send back to the agent (https://goo.gl/GXotJW).
4648 },
4649 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
4650 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
4651 # (https://goo.gl/6GLJD2). If the user has an app installed that is
4652 # registered as the default handler for the URL, then this app will be
4653 # opened instead, and its icon will be used in the suggested action UI.
4654 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
4655 },
4656 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
4657 # but does not dial automatically (https://goo.gl/ergbB2).
4658 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
4659 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
4660 # format. An example of a correctly formatted phone number:
4661 # +15556767888.
4662 },
4663 },
4664 },
4665 ],
4666 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
4667 },
4668 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
4669 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
4670 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
4671 &quot;A String&quot;,
4672 ],
4673 },
4674 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in # Synthesizes speech in Telephony Gateway.
4675 # Telephony Gateway.
4676 #
4677 # Telephony Gateway takes the synthesizer settings from
4678 # `DetectIntentResponse.output_audio_config` which can either be set
4679 # at request-level or can come from the agent-level synthesizer config.
4680 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
4681 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see
4682 # [SSML](https://developers.google.com/actions/reference/ssml).
4683 },
4684 &quot;card&quot;: { # The card response message. # Displays a card.
4685 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
4686 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
4687 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
4688 { # Optional. Contains information about a button.
4689 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
4690 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
4691 # open.
4692 },
4693 ],
4694 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
4695 },
4696 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
4697 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
4698 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
4699 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
4700 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
4701 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
4702 },
4703 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
4704 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
4705 { # The button object that appears at the bottom of a card.
4706 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
4707 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
4708 },
4709 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
4710 },
4711 ],
4712 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
4713 },
4714 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
4715 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
4716 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
4717 { # Column properties for TableCard.
4718 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
4719 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
4720 },
4721 ],
4722 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
4723 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
4724 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
4725 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
4726 },
4727 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
4728 { # The button object that appears at the bottom of a card.
4729 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
4730 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
4731 },
4732 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
4733 },
4734 ],
4735 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
4736 &quot;rows&quot;: [ # Optional. Rows in this table of data.
4737 { # Row of TableCard.
4738 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
4739 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
4740 { # Cell of TableCardRow.
4741 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
4742 },
4743 ],
4744 },
4745 ],
4746 },
4747 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
4748 &quot;items&quot;: [ # Required. Carousel items.
4749 { # An item in the carousel.
4750 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
4751 &quot;image&quot;: { # The image response message. # Optional. The image to display.
4752 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
4753 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
4754 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
4755 },
4756 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
4757 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
4758 # dialog.
4759 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
4760 # item in dialog.
4761 &quot;A String&quot;,
4762 ],
4763 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
4764 # response is given.
4765 },
4766 },
4767 ],
4768 },
4769 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app # Displays a link out suggestion chip for Actions on Google.
4770 # or website associated with this agent.
4771 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
4772 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
4773 # suggestion chip.
4774 },
4775 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
4776 # https://developers.google.com/actions/assistant/responses#browsing_carousel
4777 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
4778 # items.
4779 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
4780 # items, maximum of ten.
4781 { # Browsing carousel tile
4782 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
4783 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
4784 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
4785 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
4786 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
4787 },
4788 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
4789 # text.
4790 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
4791 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
4792 # the URL. Defaults to opening via web browser.
4793 &quot;url&quot;: &quot;A String&quot;, # Required. URL
4794 },
4795 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
4796 # Card. Maximum of one line of text.
4797 },
4798 ],
4799 },
4800 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # Returns a voice or text-only response for Actions on Google.
4801 # This message in `QueryResult.fulfillment_messages` and
4802 # `WebhookResponse.fulfillment_messages` should contain only one
4803 # `SimpleResponse`.
4804 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
4805 { # The simple response message containing speech or text.
4806 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
4807 # speech output. Mutually exclusive with ssml.
4808 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
4809 # response to the user in the SSML format. Mutually exclusive with
4810 # text_to_speech.
4811 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
4812 },
4813 ],
4814 },
4815 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
4816 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to
4817 # in [E.164 format](https://en.wikipedia.org/wiki/E.164).
4818 #
4819 # We currently only allow transferring to US numbers (+1xxxyyyzzzz).
4820 },
4821 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
4822 &quot;mediaObjects&quot;: [ # Required. List of media objects.
4823 { # Response media object for media content card.
4824 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
4825 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
4826 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
4827 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
4828 },
4829 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
4830 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
4831 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
4832 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
4833 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
4834 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
4835 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
4836 },
4837 },
4838 ],
4839 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
4840 },
4841 &quot;image&quot;: { # The image response message. # Displays an image.
4842 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
4843 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
4844 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
4845 },
4846 &quot;payload&quot;: { # A custom platform-specific response.
4847 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4848 },
4849 &quot;rbmStandaloneRichCard&quot;: { # Standalone Rich Business Messaging (RBM) rich card. # Standalone Rich Business Messaging (RBM) rich card response.
4850 #
4851 # Rich cards allow you to respond to users with more vivid content, e.g.
4852 # with media and suggestions.
4853 #
4854 # For more details about RBM rich cards, please see:
4855 # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards.
4856 # You can group multiple rich cards into one using RbmCarouselCard but
4857 # carousel cards will give you less control over the card layout.
4858 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal.
4859 # Image preview alignment for standalone cards with horizontal layout.
4860 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
4861 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
4862 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
4863 #
4864 # At least one of the title, description or media must be set.
4865 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
4866 # be set. Media (image, GIF or a video) to include in the card.
4867 # The following media-types are currently supported:
4868 #
4869 # Image Types
4870 #
4871 # * image/jpeg
4872 # * image/jpg&#x27;
4873 # * image/gif
4874 # * image/png
4875 #
4876 # Video Types
4877 #
4878 # * video/h263
4879 # * video/m4v
4880 # * video/mp4
4881 # * video/mpeg
4882 # * video/mpeg4
4883 # * video/webm
4884 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
4885 # provide a thumbnail URI, the RBM platform displays a blank
4886 # placeholder thumbnail until the user&#x27;s device downloads the file.
4887 # Depending on the user&#x27;s setting, the file may not download
4888 # automatically and may require the user to tap a download button.
4889 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
4890 # within a rich card with a vertical layout. (https://goo.gl/NeFCjz).
4891 # For a standalone card with horizontal layout, height is not
4892 # customizable, and this field is ignored.
4893 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
4894 # determines the MIME type of the file from the content-type field in
4895 # the HTTP headers when the platform fetches the file. The content-type
4896 # field must be present and accurate in the HTTP response from the URL.
4897 },
4898 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
4899 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
4900 # easily select/click a predefined response or perform an action (like
4901 # opening a web uri).
4902 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
4903 # instead of typing in their own response.
4904 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
4905 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
4906 # when the user taps the suggested reply. This data will be also
4907 # forwarded to webhook to allow performing custom business logic.
4908 },
4909 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
4910 # can choose from the card.
4911 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
4912 # when the user taps the suggested action. This data will be also
4913 # forwarded to webhook to allow performing custom business logic.
4914 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
4915 # to send back to the agent (https://goo.gl/GXotJW).
4916 },
4917 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
4918 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
4919 # (https://goo.gl/6GLJD2). If the user has an app installed that is
4920 # registered as the default handler for the URL, then this app will be
4921 # opened instead, and its icon will be used in the suggested action UI.
4922 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
4923 },
4924 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
4925 # but does not dial automatically (https://goo.gl/ergbB2).
4926 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
4927 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
4928 # format. An example of a correctly formatted phone number:
4929 # +15556767888.
4930 },
4931 },
4932 },
4933 ],
4934 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
4935 #
4936 # At least one of the title, description or media must be set.
4937 },
4938 },
4939 },
4940 ],
4941 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent.
4942 # Note: The action name must not contain whitespaces.
4943 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent.
4944 # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
4945 # methods.
Dan O'Mearadd494642020-05-01 07:42:23 -07004946 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kim65020912020-05-20 12:08:20 -07004947 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
4948 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004949 # triggered.
Dan O'Mearadd494642020-05-01 07:42:23 -07004950 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
Bu Sun Kim65020912020-05-20 12:08:20 -07004951 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004952 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004953 &quot;followupIntentInfo&quot;: [ # Output only. Information about all followup intents that have this intent as
4954 # a direct or indirect parent. We populate this field only in the output.
4955 { # Represents a single followup intent in the chain.
4956 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent.
4957 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
4958 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent.
4959 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
4960 },
4961 ],
4962 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
4963 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Output only. The unique identifier of the root intent in the chain of
4964 # followup intents. It identifies the correct followup intents chain for
4965 # this intent.
4966 #
4967 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
4968 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
4969 # Note: If `ml_disabled` setting is set to true, then this intent is not
4970 # taken into account during inference in `ML ONLY` match mode. Also,
4971 # auto-markup in the UI is turned off.
4972 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
4973 &quot;mlEnabled&quot;: True or False, # Optional. Indicates whether Machine Learning is enabled for the intent.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004974 # Note: If `ml_enabled` setting is set to false, then this intent is not
4975 # taken into account during inference in `ML ONLY` match mode. Also,
4976 # auto-markup in the UI is turned off.
4977 # DEPRECATED! Please use `ml_disabled` field instead.
4978 # NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false,
4979 # then the default value is determined as follows:
4980 # - Before April 15th, 2018 the default is:
4981 # ml_enabled = false / ml_disabled = true.
4982 # - After April 15th, 2018 the default is:
4983 # ml_enabled = true / ml_disabled = false.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004984}
4985
Bu Sun Kim65020912020-05-20 12:08:20 -07004986 intentView: string, Optional. The resource view to apply to the returned intent.
Dan O'Mearadd494642020-05-01 07:42:23 -07004987 languageCode: string, Optional. The language used to access language-specific data.
Bu Sun Kim65020912020-05-20 12:08:20 -07004988If not specified, the agent&#x27;s default language is used.
Dan O'Mearadd494642020-05-01 07:42:23 -07004989For more information, see
4990[Multilingual intent and entity
4991data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004992 updateMask: string, Optional. The mask to control which fields get updated.
4993 x__xgafv: string, V1 error format.
4994 Allowed values
4995 1 - v1 error format
4996 2 - v2 error format
4997
4998Returns:
4999 An object of the form:
5000
5001 { # Represents an intent.
5002 # Intents convert a number of user expressions or patterns into an action. An
5003 # action is an extraction of a user command or sentence semantics.
Bu Sun Kim65020912020-05-20 12:08:20 -07005004 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is
Dan O'Mearadd494642020-05-01 07:42:23 -07005005 # trained on.
5006 { # Represents an example that the agent is trained on.
Bu Sun Kim65020912020-05-20 12:08:20 -07005007 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts.
Dan O'Mearadd494642020-05-01 07:42:23 -07005008 # The parts are concatenated in order to form the training phrase.
5009 #
5010 # Note: The API does not automatically annotate training phrases like the
5011 # Dialogflow Console does.
5012 #
5013 # Note: Do not forget to include whitespace at part boundaries,
5014 # so the training phrase is well formatted when the parts are concatenated.
5015 #
5016 # If the training phrase does not need to be annotated with parameters,
5017 # you just need a single part with only the Part.text field set.
5018 #
5019 # If you want to annotate the training phrase, you must create multiple
5020 # parts, where the fields of each part are populated in one of two ways:
5021 #
5022 # - `Part.text` is set to a part of the phrase that has no parameters.
5023 # - `Part.text` is set to a part of the phrase that you want to annotate,
5024 # and the `entity_type`, `alias`, and `user_defined` fields are all
5025 # set.
5026 { # Represents a part of a training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07005027 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the
Dan O'Mearadd494642020-05-01 07:42:23 -07005028 # annotated part of the example.
5029 # This field is required for annotated parts of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07005030 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated.
Dan O'Mearadd494642020-05-01 07:42:23 -07005031 # This field is set to true when the Dialogflow Console is used to
5032 # manually annotate the part. When creating an annotated part with the
5033 # API, you must set this to true.
Bu Sun Kim65020912020-05-20 12:08:20 -07005034 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
5035 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`.
5036 # This field is required for annotated parts of the training phrase.
Dan O'Mearadd494642020-05-01 07:42:23 -07005037 },
5038 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07005039 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
5040 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to
Dan O'Mearadd494642020-05-01 07:42:23 -07005041 # the intent. Each time a developer adds an existing sample by editing an
5042 # intent or training, this counter is increased.
Bu Sun Kim65020912020-05-20 12:08:20 -07005043 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
Dan O'Mearadd494642020-05-01 07:42:23 -07005044 },
5045 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07005046 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current
5047 # session when this intent is matched.
5048 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
5049 { # Represents intent parameters.
5050 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
5051 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that
5052 # describes values of the parameter. If the parameter is
5053 # required, this must be provided.
5054 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the
5055 # user in order to collect a value for the parameter.
5056 &quot;A String&quot;,
5057 ],
5058 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty
5059 # result.
5060 # Default values can be extracted from contexts by using the following
5061 # syntax: `#context_name.parameter_name`.
5062 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is,
5063 # whether the intent cannot be completed without collecting the parameter
5064 # value.
5065 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
5066 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
5067 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be:
5068 #
5069 # - a constant string,
5070 # - a parameter value defined as `$parameter_name`,
5071 # - an original parameter value defined as `$parameter_name.original`,
5072 # - a parameter value from some context defined as
5073 # `#context_name.parameter_name`.
5074 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005075 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07005076 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent.
5077 # If the collection of input contexts is not empty, all of the contexts must
5078 # be present in the active user session for an event to trigger this intent.
5079 # Event names are limited to 150 characters.
5080 &quot;A String&quot;,
5081 ],
5082 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Optional. The unique identifier of the parent intent in the
5083 # chain of followup intents. You can set this field when creating an intent,
5084 # for example with CreateIntent or
5085 # BatchUpdateIntents, in order to make this
5086 # intent a followup intent.
5087 #
5088 # It identifies the parent followup intent.
5089 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
5090 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher
Dan O'Mearadd494642020-05-01 07:42:23 -07005091 # priorities.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005092 #
Dan O'Mearadd494642020-05-01 07:42:23 -07005093 # - If the supplied value is unspecified or 0, the service
5094 # translates the value to 500,000, which corresponds to the
5095 # `Normal` priority in the console.
5096 # - If the supplied value is negative, the intent is ignored
5097 # in runtime detect intent requests.
Bu Sun Kim65020912020-05-20 12:08:20 -07005098 &quot;endInteraction&quot;: True or False, # Optional. Indicates that this intent ends an interaction. Some integrations
5099 # (e.g., Actions on Google or Dialogflow phone gateway) use this information
5100 # to close interaction with an end user. Default is false.
5101 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent
5102 # is matched. Context messages in this collection should not set the
5103 # parameters field. Setting the `lifespan_count` to 0 will reset the context
5104 # when the intent is matched.
5105 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
5106 { # Represents a context.
5107 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
5108 # context expires. The default is `0`. If set to `0`, the context expires
5109 # immediately. Contexts expire automatically after 20 minutes if there
5110 # are no matching queries.
5111 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
5112 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
5113 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
5114 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
5115 #
5116 # The `Context ID` is always converted to lowercase, may only contain
5117 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
5118 #
5119 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
5120 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
5121 #
5122 # The following context names are reserved for internal use by Dialogflow.
5123 # You should not use these contexts or create contexts with these names:
5124 #
5125 # * `__system_counters__`
5126 # * `*_id_dialog_context`
5127 # * `*_dialog_params_size`
5128 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
5129 #
5130 # Depending on your protocol or client library language, this is a
5131 # map, associative array, symbol table, dictionary, or JSON object
5132 # composed of a collection of (MapKey, MapValue) pairs:
5133 #
5134 # - MapKey type: string
5135 # - MapKey value: parameter name
5136 # - MapValue type:
5137 # - If parameter&#x27;s entity type is a composite entity: map
5138 # - Else: string or number, depending on parameter value type
5139 # - MapValue value:
5140 # - If parameter&#x27;s entity type is a composite entity:
5141 # map from composite entity property names to property values
5142 # - Else: parameter value
5143 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5144 },
5145 },
5146 ],
5147 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be
5148 # copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
5149 &quot;A String&quot;,
5150 ],
5151 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the
5152 # `Response` field in the Dialogflow console.
5153 { # Corresponds to the `Response` field in the Dialogflow console.
5154 &quot;text&quot;: { # The text response message. # Returns a text response.
5155 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
5156 &quot;A String&quot;,
5157 ],
5158 },
5159 &quot;rbmCarouselRichCard&quot;: { # Carousel Rich Business Messaging (RBM) rich card. # Rich Business Messaging (RBM) carousel rich card response.
5160 #
5161 # Rich cards allow you to respond to users with more vivid content, e.g.
5162 # with media and suggestions.
5163 #
5164 # For more details about RBM rich cards, please see:
5165 # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards.
5166 # If you want to show a single card with more control over the layout,
5167 # please use RbmStandaloneCard instead.
5168 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
5169 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least
5170 # 2 cards and at most 10.
5171 { # Rich Business Messaging (RBM) Card content
5172 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
5173 #
5174 # At least one of the title, description or media must be set.
5175 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
5176 # be set. Media (image, GIF or a video) to include in the card.
5177 # The following media-types are currently supported:
5178 #
5179 # Image Types
5180 #
5181 # * image/jpeg
5182 # * image/jpg&#x27;
5183 # * image/gif
5184 # * image/png
5185 #
5186 # Video Types
5187 #
5188 # * video/h263
5189 # * video/m4v
5190 # * video/mp4
5191 # * video/mpeg
5192 # * video/mpeg4
5193 # * video/webm
5194 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
5195 # provide a thumbnail URI, the RBM platform displays a blank
5196 # placeholder thumbnail until the user&#x27;s device downloads the file.
5197 # Depending on the user&#x27;s setting, the file may not download
5198 # automatically and may require the user to tap a download button.
5199 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
5200 # within a rich card with a vertical layout. (https://goo.gl/NeFCjz).
5201 # For a standalone card with horizontal layout, height is not
5202 # customizable, and this field is ignored.
5203 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
5204 # determines the MIME type of the file from the content-type field in
5205 # the HTTP headers when the platform fetches the file. The content-type
5206 # field must be present and accurate in the HTTP response from the URL.
5207 },
5208 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
5209 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
5210 # easily select/click a predefined response or perform an action (like
5211 # opening a web uri).
5212 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
5213 # instead of typing in their own response.
5214 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
5215 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
5216 # when the user taps the suggested reply. This data will be also
5217 # forwarded to webhook to allow performing custom business logic.
5218 },
5219 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
5220 # can choose from the card.
5221 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
5222 # when the user taps the suggested action. This data will be also
5223 # forwarded to webhook to allow performing custom business logic.
5224 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
5225 # to send back to the agent (https://goo.gl/GXotJW).
5226 },
5227 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
5228 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
5229 # (https://goo.gl/6GLJD2). If the user has an app installed that is
5230 # registered as the default handler for the URL, then this app will be
5231 # opened instead, and its icon will be used in the suggested action UI.
5232 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
5233 },
5234 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
5235 # but does not dial automatically (https://goo.gl/ergbB2).
5236 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
5237 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
5238 # format. An example of a correctly formatted phone number:
5239 # +15556767888.
5240 },
5241 },
5242 },
5243 ],
5244 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
5245 #
5246 # At least one of the title, description or media must be set.
5247 },
5248 ],
5249 },
5250 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
5251 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
5252 { # The suggestion chip message that the user can tap to quickly post a reply
5253 # to the conversation.
5254 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
5255 },
5256 ],
5257 },
5258 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
5259 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
5260 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to
5261 # play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single
5262 # channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz.
5263 #
5264 # This object must be readable by the `service-&lt;Project
5265 # Number&gt;@gcp-sa-dialogflow.iam.gserviceaccount.com` service account
5266 # where &lt;Project Number&gt; is the number of the Telephony Gateway project
5267 # (usually the same as the Dialogflow agent project). If the Google Cloud
5268 # Storage bucket is in the Telephony Gateway project, this permission is
5269 # added by default when enabling the Dialogflow V2 API.
5270 #
5271 # For audio from other sources, consider using the
5272 # `TelephonySynthesizeSpeech` message with SSML.
5273 },
5274 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
5275 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
5276 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
5277 &quot;items&quot;: [ # Required. List items.
5278 { # An item in the list.
5279 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
5280 # dialog.
5281 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
5282 # item in dialog.
5283 &quot;A String&quot;,
5284 ],
5285 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
5286 # response is given.
5287 },
5288 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
5289 &quot;image&quot;: { # The image response message. # Optional. The image to display.
5290 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
5291 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
5292 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
5293 },
5294 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
5295 },
5296 ],
5297 },
5298 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response.
5299 #
5300 # RBM allows businesses to send enriched and branded versions of SMS. See
5301 # https://jibe.google.com/business-messaging.
5302 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
5303 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
5304 # easily select/click a predefined response or perform an action (like
5305 # opening a web uri).
5306 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
5307 # instead of typing in their own response.
5308 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
5309 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
5310 # when the user taps the suggested reply. This data will be also
5311 # forwarded to webhook to allow performing custom business logic.
5312 },
5313 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
5314 # can choose from the card.
5315 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
5316 # when the user taps the suggested action. This data will be also
5317 # forwarded to webhook to allow performing custom business logic.
5318 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
5319 # to send back to the agent (https://goo.gl/GXotJW).
5320 },
5321 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
5322 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
5323 # (https://goo.gl/6GLJD2). If the user has an app installed that is
5324 # registered as the default handler for the URL, then this app will be
5325 # opened instead, and its icon will be used in the suggested action UI.
5326 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
5327 },
5328 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
5329 # but does not dial automatically (https://goo.gl/ergbB2).
5330 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
5331 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
5332 # format. An example of a correctly formatted phone number:
5333 # +15556767888.
5334 },
5335 },
5336 },
5337 ],
5338 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
5339 },
5340 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
5341 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
5342 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
5343 &quot;A String&quot;,
5344 ],
5345 },
5346 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in # Synthesizes speech in Telephony Gateway.
5347 # Telephony Gateway.
5348 #
5349 # Telephony Gateway takes the synthesizer settings from
5350 # `DetectIntentResponse.output_audio_config` which can either be set
5351 # at request-level or can come from the agent-level synthesizer config.
5352 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
5353 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see
5354 # [SSML](https://developers.google.com/actions/reference/ssml).
5355 },
5356 &quot;card&quot;: { # The card response message. # Displays a card.
5357 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
5358 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
5359 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
5360 { # Optional. Contains information about a button.
5361 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
5362 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
5363 # open.
5364 },
5365 ],
5366 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
5367 },
5368 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
5369 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
5370 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
5371 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
5372 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
5373 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
5374 },
5375 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
5376 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
5377 { # The button object that appears at the bottom of a card.
5378 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
5379 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
5380 },
5381 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
5382 },
5383 ],
5384 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
5385 },
5386 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
5387 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
5388 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
5389 { # Column properties for TableCard.
5390 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
5391 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
5392 },
5393 ],
5394 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
5395 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
5396 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
5397 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
5398 },
5399 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
5400 { # The button object that appears at the bottom of a card.
5401 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
5402 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
5403 },
5404 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
5405 },
5406 ],
5407 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
5408 &quot;rows&quot;: [ # Optional. Rows in this table of data.
5409 { # Row of TableCard.
5410 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
5411 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
5412 { # Cell of TableCardRow.
5413 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
5414 },
5415 ],
5416 },
5417 ],
5418 },
5419 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
5420 &quot;items&quot;: [ # Required. Carousel items.
5421 { # An item in the carousel.
5422 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
5423 &quot;image&quot;: { # The image response message. # Optional. The image to display.
5424 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
5425 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
5426 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
5427 },
5428 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
5429 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
5430 # dialog.
5431 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
5432 # item in dialog.
5433 &quot;A String&quot;,
5434 ],
5435 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
5436 # response is given.
5437 },
5438 },
5439 ],
5440 },
5441 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app # Displays a link out suggestion chip for Actions on Google.
5442 # or website associated with this agent.
5443 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
5444 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
5445 # suggestion chip.
5446 },
5447 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
5448 # https://developers.google.com/actions/assistant/responses#browsing_carousel
5449 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
5450 # items.
5451 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
5452 # items, maximum of ten.
5453 { # Browsing carousel tile
5454 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
5455 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
5456 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
5457 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
5458 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
5459 },
5460 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
5461 # text.
5462 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
5463 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
5464 # the URL. Defaults to opening via web browser.
5465 &quot;url&quot;: &quot;A String&quot;, # Required. URL
5466 },
5467 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
5468 # Card. Maximum of one line of text.
5469 },
5470 ],
5471 },
5472 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # Returns a voice or text-only response for Actions on Google.
5473 # This message in `QueryResult.fulfillment_messages` and
5474 # `WebhookResponse.fulfillment_messages` should contain only one
5475 # `SimpleResponse`.
5476 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
5477 { # The simple response message containing speech or text.
5478 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
5479 # speech output. Mutually exclusive with ssml.
5480 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
5481 # response to the user in the SSML format. Mutually exclusive with
5482 # text_to_speech.
5483 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
5484 },
5485 ],
5486 },
5487 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
5488 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to
5489 # in [E.164 format](https://en.wikipedia.org/wiki/E.164).
5490 #
5491 # We currently only allow transferring to US numbers (+1xxxyyyzzzz).
5492 },
5493 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
5494 &quot;mediaObjects&quot;: [ # Required. List of media objects.
5495 { # Response media object for media content card.
5496 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
5497 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
5498 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
5499 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
5500 },
5501 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
5502 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
5503 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
5504 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
5505 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
5506 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
5507 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
5508 },
5509 },
5510 ],
5511 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
5512 },
5513 &quot;image&quot;: { # The image response message. # Displays an image.
5514 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
5515 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
5516 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
5517 },
5518 &quot;payload&quot;: { # A custom platform-specific response.
5519 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5520 },
5521 &quot;rbmStandaloneRichCard&quot;: { # Standalone Rich Business Messaging (RBM) rich card. # Standalone Rich Business Messaging (RBM) rich card response.
5522 #
5523 # Rich cards allow you to respond to users with more vivid content, e.g.
5524 # with media and suggestions.
5525 #
5526 # For more details about RBM rich cards, please see:
5527 # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards.
5528 # You can group multiple rich cards into one using RbmCarouselCard but
5529 # carousel cards will give you less control over the card layout.
5530 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal.
5531 # Image preview alignment for standalone cards with horizontal layout.
5532 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
5533 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
5534 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
5535 #
5536 # At least one of the title, description or media must be set.
5537 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
5538 # be set. Media (image, GIF or a video) to include in the card.
5539 # The following media-types are currently supported:
5540 #
5541 # Image Types
5542 #
5543 # * image/jpeg
5544 # * image/jpg&#x27;
5545 # * image/gif
5546 # * image/png
5547 #
5548 # Video Types
5549 #
5550 # * video/h263
5551 # * video/m4v
5552 # * video/mp4
5553 # * video/mpeg
5554 # * video/mpeg4
5555 # * video/webm
5556 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
5557 # provide a thumbnail URI, the RBM platform displays a blank
5558 # placeholder thumbnail until the user&#x27;s device downloads the file.
5559 # Depending on the user&#x27;s setting, the file may not download
5560 # automatically and may require the user to tap a download button.
5561 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
5562 # within a rich card with a vertical layout. (https://goo.gl/NeFCjz).
5563 # For a standalone card with horizontal layout, height is not
5564 # customizable, and this field is ignored.
5565 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
5566 # determines the MIME type of the file from the content-type field in
5567 # the HTTP headers when the platform fetches the file. The content-type
5568 # field must be present and accurate in the HTTP response from the URL.
5569 },
5570 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
5571 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
5572 # easily select/click a predefined response or perform an action (like
5573 # opening a web uri).
5574 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
5575 # instead of typing in their own response.
5576 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
5577 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
5578 # when the user taps the suggested reply. This data will be also
5579 # forwarded to webhook to allow performing custom business logic.
5580 },
5581 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
5582 # can choose from the card.
5583 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
5584 # when the user taps the suggested action. This data will be also
5585 # forwarded to webhook to allow performing custom business logic.
5586 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
5587 # to send back to the agent (https://goo.gl/GXotJW).
5588 },
5589 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
5590 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
5591 # (https://goo.gl/6GLJD2). If the user has an app installed that is
5592 # registered as the default handler for the URL, then this app will be
5593 # opened instead, and its icon will be used in the suggested action UI.
5594 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
5595 },
5596 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
5597 # but does not dial automatically (https://goo.gl/ergbB2).
5598 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
5599 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
5600 # format. An example of a correctly formatted phone number:
5601 # +15556767888.
5602 },
5603 },
5604 },
5605 ],
5606 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
5607 #
5608 # At least one of the title, description or media must be set.
5609 },
5610 },
5611 },
5612 ],
5613 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent.
5614 # Note: The action name must not contain whitespaces.
5615 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent.
5616 # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
5617 # methods.
Dan O'Mearadd494642020-05-01 07:42:23 -07005618 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kim65020912020-05-20 12:08:20 -07005619 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
5620 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005621 # triggered.
Dan O'Mearadd494642020-05-01 07:42:23 -07005622 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
Bu Sun Kim65020912020-05-20 12:08:20 -07005623 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005624 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07005625 &quot;followupIntentInfo&quot;: [ # Output only. Information about all followup intents that have this intent as
5626 # a direct or indirect parent. We populate this field only in the output.
5627 { # Represents a single followup intent in the chain.
5628 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent.
5629 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
5630 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent.
5631 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
5632 },
5633 ],
5634 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
5635 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Output only. The unique identifier of the root intent in the chain of
5636 # followup intents. It identifies the correct followup intents chain for
5637 # this intent.
5638 #
5639 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
5640 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
5641 # Note: If `ml_disabled` setting is set to true, then this intent is not
5642 # taken into account during inference in `ML ONLY` match mode. Also,
5643 # auto-markup in the UI is turned off.
5644 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
5645 &quot;mlEnabled&quot;: True or False, # Optional. Indicates whether Machine Learning is enabled for the intent.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005646 # Note: If `ml_enabled` setting is set to false, then this intent is not
5647 # taken into account during inference in `ML ONLY` match mode. Also,
5648 # auto-markup in the UI is turned off.
5649 # DEPRECATED! Please use `ml_disabled` field instead.
5650 # NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false,
5651 # then the default value is determined as follows:
5652 # - Before April 15th, 2018 the default is:
5653 # ml_enabled = false / ml_disabled = true.
5654 # - After April 15th, 2018 the default is:
5655 # ml_enabled = true / ml_disabled = false.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005656 }</pre>
5657</div>
5658
5659</body></html>