blob: f9d6c81ebb751b75df01cb34fb498f7b8db92897 [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_v2.html">Dialogflow API</a> . <a href="dialogflow_v2.projects.html">projects</a> . <a href="dialogflow_v2.projects.agent.html">agent</a> . <a href="dialogflow_v2.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 Kimd059ad82020-07-22 17:02:09 -070084 <code><a href="#create">create(parent, body=None, languageCode=None, intentView=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, pageToken=None, pageSize=None, intentView=None, languageCode=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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700117 { # An intent categorizes an end-user&#x27;s intention for one conversation turn. For
118 # each agent, you define many intents, where your combined intents can handle a
119 # complete conversation. When an end-user writes or says something, referred to
120 # as an end-user expression or end-user input, Dialogflow matches the end-user
121 # input to the best intent in your agent. Matching an intent is also known as
122 # intent classification.
123 #
124 # For more information, see the [intent
125 # guide](https://cloud.google.com/dialogflow/docs/intents-overview).
126 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent.
127 # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
128 # methods.
129 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
130 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
131 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
132 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
133 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the
134 # `Response` field in the Dialogflow console.
135 { # A rich response message.
136 # Corresponds to the intent `Response` field in the Dialogflow console.
137 # For more information, see
138 # [Rich response
139 # messages](https://cloud.google.com/dialogflow/docs/intents-rich-messages).
140 &quot;card&quot;: { # The card response message. # The card response.
141 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
142 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
143 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
144 { # Contains information about a button.
145 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
146 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
147 # open.
148 },
149 ],
150 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
151 },
152 &quot;text&quot;: { # The text response message. # The text response.
153 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
154 &quot;A String&quot;,
155 ],
156 },
157 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
158 &quot;items&quot;: [ # Required. Carousel items.
159 { # An item in the carousel.
160 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
161 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
162 &quot;image&quot;: { # The image response message. # Optional. The image to display.
163 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
164 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
165 # e.g., screen readers.
166 },
167 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
168 # dialog.
169 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
170 # item in dialog.
171 &quot;A String&quot;,
172 ],
173 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
174 # response is given.
175 },
176 },
177 ],
178 },
179 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # The voice and text-only responses for Actions on Google.
180 # This message in `QueryResult.fulfillment_messages` and
181 # `WebhookResponse.fulfillment_messages` should contain only one
182 # `SimpleResponse`.
183 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
184 { # The simple response message containing speech or text.
185 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
186 # speech output. Mutually exclusive with ssml.
187 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
188 # response to the user in the SSML format. Mutually exclusive with
189 # text_to_speech.
190 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
191 },
192 ],
193 },
194 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
195 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
196 # https://developers.google.com/actions/assistant/responses#browsing_carousel
197 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
198 # items, maximum of ten.
199 { # Browsing carousel tile
200 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
201 # Card. Maximum of one line of text.
202 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
203 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
204 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
205 # e.g., screen readers.
206 },
207 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
208 # text.
209 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
210 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
211 &quot;url&quot;: &quot;A String&quot;, # Required. URL
212 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
213 # the URL. Defaults to opening via web browser.
214 },
215 },
216 ],
217 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
218 # items.
219 },
220 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app # The link out suggestion chip for Actions on Google.
221 # or website associated with this agent.
222 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
223 # suggestion chip.
224 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
225 },
226 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
227 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
228 { # The button object that appears at the bottom of a card.
229 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
230 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
231 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
232 },
233 },
234 ],
235 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
236 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
237 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
238 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
239 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
240 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
241 # e.g., screen readers.
242 },
243 },
244 &quot;suggestions&quot;: { # The collection of suggestions. # The suggestion chips for Actions on Google.
245 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
246 { # The suggestion chip message that the user can tap to quickly post a reply
247 # to the conversation.
248 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
249 },
250 ],
251 },
252 &quot;quickReplies&quot;: { # The quick replies response message. # The quick replies response.
253 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
254 &quot;A String&quot;,
255 ],
256 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
257 },
258 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
259 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
260 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
261 { # Column properties for TableCard.
262 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
263 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
264 },
265 ],
266 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
267 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
268 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
269 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
270 # e.g., screen readers.
271 },
272 &quot;rows&quot;: [ # Optional. Rows in this table of data.
273 { # Row of TableCard.
274 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
275 { # Cell of TableCardRow.
276 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
277 },
278 ],
279 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
280 },
281 ],
282 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
283 { # The button object that appears at the bottom of a card.
284 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
285 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
286 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
287 },
288 },
289 ],
290 },
291 &quot;image&quot;: { # The image response message. # The image response.
292 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
293 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
294 # e.g., screen readers.
295 },
296 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
297 &quot;mediaObjects&quot;: [ # Required. List of media objects.
298 { # Response media object for media content card.
299 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
300 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
301 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
302 # e.g., screen readers.
303 },
304 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
305 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
306 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
307 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
308 # e.g., screen readers.
309 },
310 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
311 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
312 },
313 ],
314 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
315 },
316 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
317 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
318 &quot;items&quot;: [ # Required. List items.
319 { # An item in the list.
320 &quot;image&quot;: { # The image response message. # Optional. The image to display.
321 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
322 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
323 # e.g., screen readers.
324 },
325 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
326 # dialog.
327 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
328 # item in dialog.
329 &quot;A String&quot;,
330 ],
331 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
332 # response is given.
333 },
334 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
335 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
336 },
337 ],
338 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
339 },
340 &quot;payload&quot;: { # A custom platform-specific response.
341 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
342 },
343 },
344 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700345 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent.
346 # If the collection of input contexts is not empty, all of the contexts must
347 # be present in the active user session for an event to trigger this intent.
348 # Event names are limited to 150 characters.
349 &quot;A String&quot;,
350 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700351 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent
352 # is matched. Context messages in this collection should not set the
353 # parameters field. Setting the `lifespan_count` to 0 will reset the context
354 # when the intent is matched.
355 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700356 { # Dialogflow contexts are similar to natural language context. If a person says
357 # to you &quot;they are orange&quot;, you need context in order to understand what &quot;they&quot;
358 # is referring to. Similarly, for Dialogflow to handle an end-user expression
359 # like that, it needs to be provided with context in order to correctly match
360 # an intent.
361 #
362 # Using contexts, you can control the flow of a conversation. You can configure
363 # contexts for an intent by setting input and output contexts, which are
364 # identified by string names. When an intent is matched, any configured output
365 # contexts for that intent become active. While any contexts are active,
366 # Dialogflow is more likely to match intents that are configured with input
367 # contexts that correspond to the currently active contexts.
368 #
369 # For more information about context, see the
370 # [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview).
Bu Sun Kim65020912020-05-20 12:08:20 -0700371 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
372 #
373 # Depending on your protocol or client library language, this is a
374 # map, associative array, symbol table, dictionary, or JSON object
375 # composed of a collection of (MapKey, MapValue) pairs:
376 #
377 # - MapKey type: string
378 # - MapKey value: parameter name
379 # - MapValue type:
380 # - If parameter&#x27;s entity type is a composite entity: map
381 # - Else: string or number, depending on parameter value type
382 # - MapValue value:
383 # - If parameter&#x27;s entity type is a composite entity:
384 # map from composite entity property names to property values
385 # - Else: parameter value
386 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
387 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700388 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
389 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
390 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
391 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
392 #
393 # The `Context ID` is always converted to lowercase, may only contain
394 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
395 #
396 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
397 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
398 #
399 # The following context names are reserved for internal use by Dialogflow.
400 # You should not use these contexts or create contexts with these names:
401 #
402 # * `__system_counters__`
403 # * `*_id_dialog_context`
404 # * `*_dialog_params_size`
405 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
406 # context expires. The default is `0`. If set to `0`, the context expires
407 # immediately. Contexts expire automatically after 20 minutes if there
408 # are no matching queries.
Bu Sun Kim65020912020-05-20 12:08:20 -0700409 },
410 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700411 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent.
412 # Note: The action name must not contain whitespaces.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700413 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher
414 # priorities.
415 #
416 # - If the supplied value is unspecified or 0, the service
417 # translates the value to 500,000, which corresponds to the
418 # `Normal` priority in the console.
419 # - If the supplied value is negative, the intent is ignored
420 # in runtime detect intent requests.
Bu Sun Kim65020912020-05-20 12:08:20 -0700421 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Read-only. The unique identifier of the root intent in the chain of
422 # followup intents. It identifies the correct followup intents chain for
423 # this intent. We populate this field only in the output.
424 #
425 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700426 &quot;followupIntentInfo&quot;: [ # Read-only. Information about all followup intents that have this intent as
427 # a direct or indirect parent. We populate this field only in the output.
428 { # Represents a single followup intent in the chain.
429 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent.
430 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
431 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent.
432 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
433 },
434 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700435 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700436 # trained on.
437 { # Represents an example that the agent is trained on.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700438 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
439 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to
440 # the intent. Each time a developer adds an existing sample by editing an
441 # intent or training, this counter is increased.
Bu Sun Kim65020912020-05-20 12:08:20 -0700442 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700443 # The parts are concatenated in order to form the training phrase.
444 #
445 # Note: The API does not automatically annotate training phrases like the
446 # Dialogflow Console does.
447 #
448 # Note: Do not forget to include whitespace at part boundaries,
449 # so the training phrase is well formatted when the parts are concatenated.
450 #
451 # If the training phrase does not need to be annotated with parameters,
452 # you just need a single part with only the Part.text field set.
453 #
454 # If you want to annotate the training phrase, you must create multiple
455 # parts, where the fields of each part are populated in one of two ways:
456 #
457 # - `Part.text` is set to a part of the phrase that has no parameters.
458 # - `Part.text` is set to a part of the phrase that you want to annotate,
459 # and the `entity_type`, `alias`, and `user_defined` fields are all
460 # set.
461 { # Represents a part of a training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -0700462 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700463 # annotated part of the example.
464 # This field is required for annotated parts of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -0700465 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700466 # This field is set to true when the Dialogflow Console is used to
467 # manually annotate the part. When creating an annotated part with the
468 # API, you must set this to true.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700469 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
470 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`.
471 # This field is required for annotated parts of the training phrase.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700472 },
473 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700474 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700475 },
476 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700477 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be
478 # triggered.
479 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
480 &quot;A String&quot;,
481 ],
482 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
483 # Note: If `ml_disabled` setting is set to true, then this intent is not
484 # taken into account during inference in `ML ONLY` match mode. Also,
485 # auto-markup in the UI is turned off.
Bu Sun Kim65020912020-05-20 12:08:20 -0700486 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current
Dan O'Mearadd494642020-05-01 07:42:23 -0700487 # session when this intent is matched.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700488 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Read-only after creation. The unique identifier of the parent intent in the
489 # chain of followup intents. You can set this field when creating an intent,
490 # for example with CreateIntent or
491 # BatchUpdateIntents, in order to make this
492 # intent a followup intent.
493 #
494 # It identifies the parent followup intent.
495 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
496 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be
497 # copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
498 &quot;A String&quot;,
499 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700500 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
501 { # Represents intent parameters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700502 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700503 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700504 # - a constant string,
505 # - a parameter value defined as `$parameter_name`,
506 # - an original parameter value defined as `$parameter_name.original`,
507 # - a parameter value from some context defined as
508 # `#context_name.parameter_name`.
509 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700510 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is,
511 # whether the intent cannot be completed without collecting the parameter
512 # value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700513 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
514 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that
515 # describes values of the parameter. If the parameter is
516 # required, this must be provided.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700517 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty
518 # result.
519 # Default values can be extracted from contexts by using the following
520 # syntax: `#context_name.parameter_name`.
521 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700522 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the
523 # user in order to collect a value for the parameter.
524 &quot;A String&quot;,
525 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700526 },
527 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700528 },
529 ],
530 }
531
532 x__xgafv: string, V1 error format.
533 Allowed values
534 1 - v1 error format
535 2 - v2 error format
536
537Returns:
538 An object of the form:
539
540 { # This resource represents a long-running operation that is the result of a
541 # network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -0700542 &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 -0700543 # originally returns it. If you use the default HTTP mapping, the
544 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700545 &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 -0700546 # different programming environments, including REST APIs and RPC APIs. It is
547 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
548 # three pieces of data: error code, error message, and error details.
549 #
550 # You can find out more about this error model and how to work with it in the
551 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700552 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
553 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
554 # user-facing error message should be localized and sent in the
555 # google.rpc.Status.details field, or localized by the client.
Bu Sun Kim65020912020-05-20 12:08:20 -0700556 &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 -0700557 # message types for APIs to use.
558 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700559 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700560 },
561 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700562 },
563 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
564 # method returns no data on success, such as `Delete`, the response is
565 # `google.protobuf.Empty`. If the original method is standard
566 # `Get`/`Create`/`Update`, the response should be the resource. For other
567 # methods, the response should have the type `XxxResponse`, where `Xxx`
568 # is the original method name. For example, if the original method name
569 # is `TakeSnapshot()`, the inferred response type is
570 # `TakeSnapshotResponse`.
571 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700572 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700573 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
574 # contains progress information and common metadata such as create time.
575 # Some services might not provide such metadata. Any method that returns a
576 # long-running operation should document the metadata type, if any.
577 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
578 },
579 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
580 # If `true`, the operation is completed, and either `error` or `response` is
581 # available.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700582 }</pre>
583</div>
584
585<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700586 <code class="details" id="batchUpdate">batchUpdate(parent, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700587 <pre>Updates/Creates multiple intents in the specified agent.
588
Dan O'Mearadd494642020-05-01 07:42:23 -0700589Operation &lt;response: BatchUpdateIntentsResponse&gt;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700590
591Args:
592 parent: string, Required. The name of the agent to update or create intents in.
Dan O'Mearadd494642020-05-01 07:42:23 -0700593Format: `projects/&lt;Project ID&gt;/agent`. (required)
594 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700595 The object takes the form of:
596
Dan O'Mearadd494642020-05-01 07:42:23 -0700597{
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700598 &quot;languageCode&quot;: &quot;A String&quot;, # Optional. The language used to access language-specific data.
599 # If not specified, the agent&#x27;s default language is used.
600 # For more information, see
601 # [Multilingual intent and entity
602 # data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
Bu Sun Kim65020912020-05-20 12:08:20 -0700603 &quot;intentBatchInline&quot;: { # This message is a wrapper around a collection of intents. # The collection of intents to update or create.
604 &quot;intents&quot;: [ # A collection of intents.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700605 { # An intent categorizes an end-user&#x27;s intention for one conversation turn. For
606 # each agent, you define many intents, where your combined intents can handle a
607 # complete conversation. When an end-user writes or says something, referred to
608 # as an end-user expression or end-user input, Dialogflow matches the end-user
609 # input to the best intent in your agent. Matching an intent is also known as
610 # intent classification.
611 #
612 # For more information, see the [intent
613 # guide](https://cloud.google.com/dialogflow/docs/intents-overview).
614 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent.
615 # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
616 # methods.
617 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
618 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
619 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
620 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
621 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the
622 # `Response` field in the Dialogflow console.
623 { # A rich response message.
624 # Corresponds to the intent `Response` field in the Dialogflow console.
625 # For more information, see
626 # [Rich response
627 # messages](https://cloud.google.com/dialogflow/docs/intents-rich-messages).
628 &quot;card&quot;: { # The card response message. # The card response.
629 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
630 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
631 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
632 { # Contains information about a button.
633 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
634 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
635 # open.
636 },
637 ],
638 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
639 },
640 &quot;text&quot;: { # The text response message. # The text response.
641 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
642 &quot;A String&quot;,
643 ],
644 },
645 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
646 &quot;items&quot;: [ # Required. Carousel items.
647 { # An item in the carousel.
648 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
649 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
650 &quot;image&quot;: { # The image response message. # Optional. The image to display.
651 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
652 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
653 # e.g., screen readers.
654 },
655 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
656 # dialog.
657 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
658 # item in dialog.
659 &quot;A String&quot;,
660 ],
661 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
662 # response is given.
663 },
664 },
665 ],
666 },
667 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # The voice and text-only responses for Actions on Google.
668 # This message in `QueryResult.fulfillment_messages` and
669 # `WebhookResponse.fulfillment_messages` should contain only one
670 # `SimpleResponse`.
671 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
672 { # The simple response message containing speech or text.
673 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
674 # speech output. Mutually exclusive with ssml.
675 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
676 # response to the user in the SSML format. Mutually exclusive with
677 # text_to_speech.
678 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
679 },
680 ],
681 },
682 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
683 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
684 # https://developers.google.com/actions/assistant/responses#browsing_carousel
685 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
686 # items, maximum of ten.
687 { # Browsing carousel tile
688 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
689 # Card. Maximum of one line of text.
690 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
691 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
692 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
693 # e.g., screen readers.
694 },
695 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
696 # text.
697 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
698 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
699 &quot;url&quot;: &quot;A String&quot;, # Required. URL
700 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
701 # the URL. Defaults to opening via web browser.
702 },
703 },
704 ],
705 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
706 # items.
707 },
708 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app # The link out suggestion chip for Actions on Google.
709 # or website associated with this agent.
710 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
711 # suggestion chip.
712 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
713 },
714 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
715 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
716 { # The button object that appears at the bottom of a card.
717 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
718 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
719 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
720 },
721 },
722 ],
723 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
724 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
725 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
726 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
727 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
728 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
729 # e.g., screen readers.
730 },
731 },
732 &quot;suggestions&quot;: { # The collection of suggestions. # The suggestion chips for Actions on Google.
733 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
734 { # The suggestion chip message that the user can tap to quickly post a reply
735 # to the conversation.
736 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
737 },
738 ],
739 },
740 &quot;quickReplies&quot;: { # The quick replies response message. # The quick replies response.
741 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
742 &quot;A String&quot;,
743 ],
744 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
745 },
746 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
747 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
748 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
749 { # Column properties for TableCard.
750 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
751 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
752 },
753 ],
754 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
755 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
756 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
757 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
758 # e.g., screen readers.
759 },
760 &quot;rows&quot;: [ # Optional. Rows in this table of data.
761 { # Row of TableCard.
762 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
763 { # Cell of TableCardRow.
764 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
765 },
766 ],
767 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
768 },
769 ],
770 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
771 { # The button object that appears at the bottom of a card.
772 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
773 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
774 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
775 },
776 },
777 ],
778 },
779 &quot;image&quot;: { # The image response message. # The image response.
780 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
781 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
782 # e.g., screen readers.
783 },
784 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
785 &quot;mediaObjects&quot;: [ # Required. List of media objects.
786 { # Response media object for media content card.
787 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
788 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
789 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
790 # e.g., screen readers.
791 },
792 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
793 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
794 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
795 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
796 # e.g., screen readers.
797 },
798 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
799 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
800 },
801 ],
802 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
803 },
804 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
805 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
806 &quot;items&quot;: [ # Required. List items.
807 { # An item in the list.
808 &quot;image&quot;: { # The image response message. # Optional. The image to display.
809 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
810 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
811 # e.g., screen readers.
812 },
813 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
814 # dialog.
815 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
816 # item in dialog.
817 &quot;A String&quot;,
818 ],
819 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
820 # response is given.
821 },
822 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
823 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
824 },
825 ],
826 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
827 },
828 &quot;payload&quot;: { # A custom platform-specific response.
829 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
830 },
831 },
832 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700833 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent.
834 # If the collection of input contexts is not empty, all of the contexts must
835 # be present in the active user session for an event to trigger this intent.
836 # Event names are limited to 150 characters.
837 &quot;A String&quot;,
838 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700839 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent
840 # is matched. Context messages in this collection should not set the
841 # parameters field. Setting the `lifespan_count` to 0 will reset the context
842 # when the intent is matched.
843 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700844 { # Dialogflow contexts are similar to natural language context. If a person says
845 # to you &quot;they are orange&quot;, you need context in order to understand what &quot;they&quot;
846 # is referring to. Similarly, for Dialogflow to handle an end-user expression
847 # like that, it needs to be provided with context in order to correctly match
848 # an intent.
849 #
850 # Using contexts, you can control the flow of a conversation. You can configure
851 # contexts for an intent by setting input and output contexts, which are
852 # identified by string names. When an intent is matched, any configured output
853 # contexts for that intent become active. While any contexts are active,
854 # Dialogflow is more likely to match intents that are configured with input
855 # contexts that correspond to the currently active contexts.
856 #
857 # For more information about context, see the
858 # [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview).
Bu Sun Kim65020912020-05-20 12:08:20 -0700859 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
860 #
861 # Depending on your protocol or client library language, this is a
862 # map, associative array, symbol table, dictionary, or JSON object
863 # composed of a collection of (MapKey, MapValue) pairs:
864 #
865 # - MapKey type: string
866 # - MapKey value: parameter name
867 # - MapValue type:
868 # - If parameter&#x27;s entity type is a composite entity: map
869 # - Else: string or number, depending on parameter value type
870 # - MapValue value:
871 # - If parameter&#x27;s entity type is a composite entity:
872 # map from composite entity property names to property values
873 # - Else: parameter value
874 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
875 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700876 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
877 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
878 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
879 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
880 #
881 # The `Context ID` is always converted to lowercase, may only contain
882 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
883 #
884 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
885 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
886 #
887 # The following context names are reserved for internal use by Dialogflow.
888 # You should not use these contexts or create contexts with these names:
889 #
890 # * `__system_counters__`
891 # * `*_id_dialog_context`
892 # * `*_dialog_params_size`
893 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
894 # context expires. The default is `0`. If set to `0`, the context expires
895 # immediately. Contexts expire automatically after 20 minutes if there
896 # are no matching queries.
Bu Sun Kim65020912020-05-20 12:08:20 -0700897 },
898 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700899 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent.
900 # Note: The action name must not contain whitespaces.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700901 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher
902 # priorities.
903 #
904 # - If the supplied value is unspecified or 0, the service
905 # translates the value to 500,000, which corresponds to the
906 # `Normal` priority in the console.
907 # - If the supplied value is negative, the intent is ignored
908 # in runtime detect intent requests.
Bu Sun Kim65020912020-05-20 12:08:20 -0700909 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Read-only. The unique identifier of the root intent in the chain of
910 # followup intents. It identifies the correct followup intents chain for
911 # this intent. We populate this field only in the output.
912 #
913 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700914 &quot;followupIntentInfo&quot;: [ # Read-only. Information about all followup intents that have this intent as
915 # a direct or indirect parent. We populate this field only in the output.
916 { # Represents a single followup intent in the chain.
917 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent.
918 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
919 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent.
920 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
921 },
922 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700923 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700924 # trained on.
925 { # Represents an example that the agent is trained on.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700926 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
927 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to
928 # the intent. Each time a developer adds an existing sample by editing an
929 # intent or training, this counter is increased.
Bu Sun Kim65020912020-05-20 12:08:20 -0700930 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700931 # The parts are concatenated in order to form the training phrase.
932 #
933 # Note: The API does not automatically annotate training phrases like the
934 # Dialogflow Console does.
935 #
936 # Note: Do not forget to include whitespace at part boundaries,
937 # so the training phrase is well formatted when the parts are concatenated.
938 #
939 # If the training phrase does not need to be annotated with parameters,
940 # you just need a single part with only the Part.text field set.
941 #
942 # If you want to annotate the training phrase, you must create multiple
943 # parts, where the fields of each part are populated in one of two ways:
944 #
945 # - `Part.text` is set to a part of the phrase that has no parameters.
946 # - `Part.text` is set to a part of the phrase that you want to annotate,
947 # and the `entity_type`, `alias`, and `user_defined` fields are all
948 # set.
949 { # Represents a part of a training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -0700950 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700951 # annotated part of the example.
952 # This field is required for annotated parts of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -0700953 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700954 # This field is set to true when the Dialogflow Console is used to
955 # manually annotate the part. When creating an annotated part with the
956 # API, you must set this to true.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700957 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
958 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`.
959 # This field is required for annotated parts of the training phrase.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700960 },
961 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700962 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700963 },
964 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700965 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be
966 # triggered.
967 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
968 &quot;A String&quot;,
969 ],
970 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
971 # Note: If `ml_disabled` setting is set to true, then this intent is not
972 # taken into account during inference in `ML ONLY` match mode. Also,
973 # auto-markup in the UI is turned off.
Bu Sun Kim65020912020-05-20 12:08:20 -0700974 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current
Dan O'Mearadd494642020-05-01 07:42:23 -0700975 # session when this intent is matched.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700976 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Read-only after creation. The unique identifier of the parent intent in the
977 # chain of followup intents. You can set this field when creating an intent,
978 # for example with CreateIntent or
979 # BatchUpdateIntents, in order to make this
980 # intent a followup intent.
981 #
982 # It identifies the parent followup intent.
983 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
984 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be
985 # copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
986 &quot;A String&quot;,
987 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700988 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
989 { # Represents intent parameters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700990 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700991 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700992 # - a constant string,
993 # - a parameter value defined as `$parameter_name`,
994 # - an original parameter value defined as `$parameter_name.original`,
995 # - a parameter value from some context defined as
996 # `#context_name.parameter_name`.
997 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700998 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is,
999 # whether the intent cannot be completed without collecting the parameter
1000 # value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001001 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
1002 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that
1003 # describes values of the parameter. If the parameter is
1004 # required, this must be provided.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001005 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty
1006 # result.
1007 # Default values can be extracted from contexts by using the following
1008 # syntax: `#context_name.parameter_name`.
1009 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001010 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the
1011 # user in order to collect a value for the parameter.
1012 &quot;A String&quot;,
1013 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001014 },
1015 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001016 },
1017 ],
1018 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001019 &quot;intentBatchUri&quot;: &quot;A String&quot;, # The URI to a Google Cloud Storage file containing intents to update or
1020 # create. The file format can either be a serialized proto (of IntentBatch
1021 # type) or JSON object. Note: The URI must start with &quot;gs://&quot;.
Bu Sun Kim65020912020-05-20 12:08:20 -07001022 &quot;updateMask&quot;: &quot;A String&quot;, # Optional. The mask to control which fields get updated.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001023 &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 -07001024 }
1025
1026 x__xgafv: string, V1 error format.
1027 Allowed values
1028 1 - v1 error format
1029 2 - v2 error format
1030
1031Returns:
1032 An object of the form:
1033
1034 { # This resource represents a long-running operation that is the result of a
1035 # network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -07001036 &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 -07001037 # originally returns it. If you use the default HTTP mapping, the
1038 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001039 &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 -07001040 # different programming environments, including REST APIs and RPC APIs. It is
1041 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1042 # three pieces of data: error code, error message, and error details.
1043 #
1044 # You can find out more about this error model and how to work with it in the
1045 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001046 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1047 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1048 # user-facing error message should be localized and sent in the
1049 # google.rpc.Status.details field, or localized by the client.
Bu Sun Kim65020912020-05-20 12:08:20 -07001050 &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 -07001051 # message types for APIs to use.
1052 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001053 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001054 },
1055 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001056 },
1057 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
1058 # method returns no data on success, such as `Delete`, the response is
1059 # `google.protobuf.Empty`. If the original method is standard
1060 # `Get`/`Create`/`Update`, the response should be the resource. For other
1061 # methods, the response should have the type `XxxResponse`, where `Xxx`
1062 # is the original method name. For example, if the original method name
1063 # is `TakeSnapshot()`, the inferred response type is
1064 # `TakeSnapshotResponse`.
1065 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001066 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001067 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
1068 # contains progress information and common metadata such as create time.
1069 # Some services might not provide such metadata. Any method that returns a
1070 # long-running operation should document the metadata type, if any.
1071 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1072 },
1073 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
1074 # If `true`, the operation is completed, and either `error` or `response` is
1075 # available.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001076 }</pre>
1077</div>
1078
1079<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001080 <code class="details" id="create">create(parent, body=None, languageCode=None, intentView=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001081 <pre>Creates an intent in the specified agent.
1082
1083Args:
1084 parent: string, Required. The agent to create a intent for.
Dan O'Mearadd494642020-05-01 07:42:23 -07001085Format: `projects/&lt;Project ID&gt;/agent`. (required)
1086 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001087 The object takes the form of:
1088
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001089{ # An intent categorizes an end-user&#x27;s intention for one conversation turn. For
1090 # each agent, you define many intents, where your combined intents can handle a
1091 # complete conversation. When an end-user writes or says something, referred to
1092 # as an end-user expression or end-user input, Dialogflow matches the end-user
1093 # input to the best intent in your agent. Matching an intent is also known as
1094 # intent classification.
1095 #
1096 # For more information, see the [intent
1097 # guide](https://cloud.google.com/dialogflow/docs/intents-overview).
1098 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent.
1099 # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
1100 # methods.
1101 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
1102 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
1103 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
1104 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
1105 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the
1106 # `Response` field in the Dialogflow console.
1107 { # A rich response message.
1108 # Corresponds to the intent `Response` field in the Dialogflow console.
1109 # For more information, see
1110 # [Rich response
1111 # messages](https://cloud.google.com/dialogflow/docs/intents-rich-messages).
1112 &quot;card&quot;: { # The card response message. # The card response.
1113 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1114 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1115 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1116 { # Contains information about a button.
1117 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
1118 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
1119 # open.
1120 },
1121 ],
1122 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
1123 },
1124 &quot;text&quot;: { # The text response message. # The text response.
1125 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
1126 &quot;A String&quot;,
1127 ],
1128 },
1129 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
1130 &quot;items&quot;: [ # Required. Carousel items.
1131 { # An item in the carousel.
1132 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
1133 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
1134 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1135 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1136 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
1137 # e.g., screen readers.
1138 },
1139 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
1140 # dialog.
1141 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
1142 # item in dialog.
1143 &quot;A String&quot;,
1144 ],
1145 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
1146 # response is given.
1147 },
1148 },
1149 ],
1150 },
1151 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # The voice and text-only responses for Actions on Google.
1152 # This message in `QueryResult.fulfillment_messages` and
1153 # `WebhookResponse.fulfillment_messages` should contain only one
1154 # `SimpleResponse`.
1155 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
1156 { # The simple response message containing speech or text.
1157 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
1158 # speech output. Mutually exclusive with ssml.
1159 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
1160 # response to the user in the SSML format. Mutually exclusive with
1161 # text_to_speech.
1162 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
1163 },
1164 ],
1165 },
1166 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
1167 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
1168 # https://developers.google.com/actions/assistant/responses#browsing_carousel
1169 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
1170 # items, maximum of ten.
1171 { # Browsing carousel tile
1172 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
1173 # Card. Maximum of one line of text.
1174 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
1175 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1176 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
1177 # e.g., screen readers.
1178 },
1179 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
1180 # text.
1181 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
1182 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
1183 &quot;url&quot;: &quot;A String&quot;, # Required. URL
1184 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
1185 # the URL. Defaults to opening via web browser.
1186 },
1187 },
1188 ],
1189 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
1190 # items.
1191 },
1192 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app # The link out suggestion chip for Actions on Google.
1193 # or website associated with this agent.
1194 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
1195 # suggestion chip.
1196 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
1197 },
1198 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
1199 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1200 { # The button object that appears at the bottom of a card.
1201 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1202 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1203 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1204 },
1205 },
1206 ],
1207 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1208 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
1209 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1210 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
1211 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1212 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
1213 # e.g., screen readers.
1214 },
1215 },
1216 &quot;suggestions&quot;: { # The collection of suggestions. # The suggestion chips for Actions on Google.
1217 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
1218 { # The suggestion chip message that the user can tap to quickly post a reply
1219 # to the conversation.
1220 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
1221 },
1222 ],
1223 },
1224 &quot;quickReplies&quot;: { # The quick replies response message. # The quick replies response.
1225 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
1226 &quot;A String&quot;,
1227 ],
1228 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
1229 },
1230 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
1231 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
1232 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
1233 { # Column properties for TableCard.
1234 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
1235 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
1236 },
1237 ],
1238 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
1239 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
1240 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1241 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
1242 # e.g., screen readers.
1243 },
1244 &quot;rows&quot;: [ # Optional. Rows in this table of data.
1245 { # Row of TableCard.
1246 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
1247 { # Cell of TableCardRow.
1248 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
1249 },
1250 ],
1251 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
1252 },
1253 ],
1254 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
1255 { # The button object that appears at the bottom of a card.
1256 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1257 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1258 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1259 },
1260 },
1261 ],
1262 },
1263 &quot;image&quot;: { # The image response message. # The image response.
1264 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1265 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
1266 # e.g., screen readers.
1267 },
1268 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
1269 &quot;mediaObjects&quot;: [ # Required. List of media objects.
1270 { # Response media object for media content card.
1271 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
1272 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1273 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
1274 # e.g., screen readers.
1275 },
1276 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
1277 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
1278 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1279 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
1280 # e.g., screen readers.
1281 },
1282 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
1283 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
1284 },
1285 ],
1286 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
1287 },
1288 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
1289 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
1290 &quot;items&quot;: [ # Required. List items.
1291 { # An item in the list.
1292 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1293 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1294 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
1295 # e.g., screen readers.
1296 },
1297 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
1298 # dialog.
1299 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
1300 # item in dialog.
1301 &quot;A String&quot;,
1302 ],
1303 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
1304 # response is given.
1305 },
1306 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
1307 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
1308 },
1309 ],
1310 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
1311 },
1312 &quot;payload&quot;: { # A custom platform-specific response.
1313 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1314 },
1315 },
1316 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001317 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent.
1318 # If the collection of input contexts is not empty, all of the contexts must
1319 # be present in the active user session for an event to trigger this intent.
1320 # Event names are limited to 150 characters.
1321 &quot;A String&quot;,
1322 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001323 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent
1324 # is matched. Context messages in this collection should not set the
1325 # parameters field. Setting the `lifespan_count` to 0 will reset the context
1326 # when the intent is matched.
1327 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001328 { # Dialogflow contexts are similar to natural language context. If a person says
1329 # to you &quot;they are orange&quot;, you need context in order to understand what &quot;they&quot;
1330 # is referring to. Similarly, for Dialogflow to handle an end-user expression
1331 # like that, it needs to be provided with context in order to correctly match
1332 # an intent.
1333 #
1334 # Using contexts, you can control the flow of a conversation. You can configure
1335 # contexts for an intent by setting input and output contexts, which are
1336 # identified by string names. When an intent is matched, any configured output
1337 # contexts for that intent become active. While any contexts are active,
1338 # Dialogflow is more likely to match intents that are configured with input
1339 # contexts that correspond to the currently active contexts.
1340 #
1341 # For more information about context, see the
1342 # [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview).
Bu Sun Kim65020912020-05-20 12:08:20 -07001343 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
1344 #
1345 # Depending on your protocol or client library language, this is a
1346 # map, associative array, symbol table, dictionary, or JSON object
1347 # composed of a collection of (MapKey, MapValue) pairs:
1348 #
1349 # - MapKey type: string
1350 # - MapKey value: parameter name
1351 # - MapValue type:
1352 # - If parameter&#x27;s entity type is a composite entity: map
1353 # - Else: string or number, depending on parameter value type
1354 # - MapValue value:
1355 # - If parameter&#x27;s entity type is a composite entity:
1356 # map from composite entity property names to property values
1357 # - Else: parameter value
1358 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1359 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001360 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
1361 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
1362 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
1363 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
1364 #
1365 # The `Context ID` is always converted to lowercase, may only contain
1366 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
1367 #
1368 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
1369 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
1370 #
1371 # The following context names are reserved for internal use by Dialogflow.
1372 # You should not use these contexts or create contexts with these names:
1373 #
1374 # * `__system_counters__`
1375 # * `*_id_dialog_context`
1376 # * `*_dialog_params_size`
1377 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
1378 # context expires. The default is `0`. If set to `0`, the context expires
1379 # immediately. Contexts expire automatically after 20 minutes if there
1380 # are no matching queries.
Bu Sun Kim65020912020-05-20 12:08:20 -07001381 },
1382 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001383 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent.
1384 # Note: The action name must not contain whitespaces.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001385 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher
1386 # priorities.
1387 #
1388 # - If the supplied value is unspecified or 0, the service
1389 # translates the value to 500,000, which corresponds to the
1390 # `Normal` priority in the console.
1391 # - If the supplied value is negative, the intent is ignored
1392 # in runtime detect intent requests.
Bu Sun Kim65020912020-05-20 12:08:20 -07001393 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Read-only. The unique identifier of the root intent in the chain of
1394 # followup intents. It identifies the correct followup intents chain for
1395 # this intent. We populate this field only in the output.
1396 #
1397 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001398 &quot;followupIntentInfo&quot;: [ # Read-only. Information about all followup intents that have this intent as
1399 # a direct or indirect parent. We populate this field only in the output.
1400 { # Represents a single followup intent in the chain.
1401 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent.
1402 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
1403 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent.
1404 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
1405 },
1406 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001407 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001408 # trained on.
1409 { # Represents an example that the agent is trained on.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001410 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
1411 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to
1412 # the intent. Each time a developer adds an existing sample by editing an
1413 # intent or training, this counter is increased.
Bu Sun Kim65020912020-05-20 12:08:20 -07001414 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001415 # The parts are concatenated in order to form the training phrase.
1416 #
1417 # Note: The API does not automatically annotate training phrases like the
1418 # Dialogflow Console does.
1419 #
1420 # Note: Do not forget to include whitespace at part boundaries,
1421 # so the training phrase is well formatted when the parts are concatenated.
1422 #
1423 # If the training phrase does not need to be annotated with parameters,
1424 # you just need a single part with only the Part.text field set.
1425 #
1426 # If you want to annotate the training phrase, you must create multiple
1427 # parts, where the fields of each part are populated in one of two ways:
1428 #
1429 # - `Part.text` is set to a part of the phrase that has no parameters.
1430 # - `Part.text` is set to a part of the phrase that you want to annotate,
1431 # and the `entity_type`, `alias`, and `user_defined` fields are all
1432 # set.
1433 { # Represents a part of a training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07001434 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001435 # annotated part of the example.
1436 # This field is required for annotated parts of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07001437 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001438 # This field is set to true when the Dialogflow Console is used to
1439 # manually annotate the part. When creating an annotated part with the
1440 # API, you must set this to true.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001441 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
1442 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`.
1443 # This field is required for annotated parts of the training phrase.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001444 },
1445 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001446 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001447 },
1448 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001449 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be
1450 # triggered.
1451 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
1452 &quot;A String&quot;,
1453 ],
1454 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
1455 # Note: If `ml_disabled` setting is set to true, then this intent is not
1456 # taken into account during inference in `ML ONLY` match mode. Also,
1457 # auto-markup in the UI is turned off.
Bu Sun Kim65020912020-05-20 12:08:20 -07001458 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current
Dan O'Mearadd494642020-05-01 07:42:23 -07001459 # session when this intent is matched.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001460 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Read-only after creation. The unique identifier of the parent intent in the
1461 # chain of followup intents. You can set this field when creating an intent,
1462 # for example with CreateIntent or
1463 # BatchUpdateIntents, in order to make this
1464 # intent a followup intent.
1465 #
1466 # It identifies the parent followup intent.
1467 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
1468 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be
1469 # copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
1470 &quot;A String&quot;,
1471 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001472 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
1473 { # Represents intent parameters.
Bu Sun Kim65020912020-05-20 12:08:20 -07001474 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001475 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001476 # - a constant string,
1477 # - a parameter value defined as `$parameter_name`,
1478 # - an original parameter value defined as `$parameter_name.original`,
1479 # - a parameter value from some context defined as
1480 # `#context_name.parameter_name`.
1481 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001482 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is,
1483 # whether the intent cannot be completed without collecting the parameter
1484 # value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001485 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
1486 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that
1487 # describes values of the parameter. If the parameter is
1488 # required, this must be provided.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001489 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty
1490 # result.
1491 # Default values can be extracted from contexts by using the following
1492 # syntax: `#context_name.parameter_name`.
1493 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001494 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the
1495 # user in order to collect a value for the parameter.
1496 &quot;A String&quot;,
1497 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001498 },
1499 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001500}
1501
Dan O'Mearadd494642020-05-01 07:42:23 -07001502 languageCode: string, Optional. The language used to access language-specific data.
Bu Sun Kim65020912020-05-20 12:08:20 -07001503If not specified, the agent&#x27;s default language is used.
Dan O'Mearadd494642020-05-01 07:42:23 -07001504For more information, see
1505[Multilingual intent and entity
1506data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001507 intentView: string, Optional. The resource view to apply to the returned intent.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001508 x__xgafv: string, V1 error format.
1509 Allowed values
1510 1 - v1 error format
1511 2 - v2 error format
1512
1513Returns:
1514 An object of the form:
1515
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001516 { # An intent categorizes an end-user&#x27;s intention for one conversation turn. For
1517 # each agent, you define many intents, where your combined intents can handle a
1518 # complete conversation. When an end-user writes or says something, referred to
1519 # as an end-user expression or end-user input, Dialogflow matches the end-user
1520 # input to the best intent in your agent. Matching an intent is also known as
1521 # intent classification.
1522 #
1523 # For more information, see the [intent
1524 # guide](https://cloud.google.com/dialogflow/docs/intents-overview).
1525 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent.
1526 # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
1527 # methods.
1528 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
1529 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
1530 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
1531 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
1532 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the
1533 # `Response` field in the Dialogflow console.
1534 { # A rich response message.
1535 # Corresponds to the intent `Response` field in the Dialogflow console.
1536 # For more information, see
1537 # [Rich response
1538 # messages](https://cloud.google.com/dialogflow/docs/intents-rich-messages).
1539 &quot;card&quot;: { # The card response message. # The card response.
1540 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1541 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1542 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1543 { # Contains information about a button.
1544 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
1545 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
1546 # open.
1547 },
1548 ],
1549 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
1550 },
1551 &quot;text&quot;: { # The text response message. # The text response.
1552 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
1553 &quot;A String&quot;,
1554 ],
1555 },
1556 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
1557 &quot;items&quot;: [ # Required. Carousel items.
1558 { # An item in the carousel.
1559 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
1560 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
1561 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1562 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1563 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
1564 # e.g., screen readers.
1565 },
1566 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
1567 # dialog.
1568 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
1569 # item in dialog.
1570 &quot;A String&quot;,
1571 ],
1572 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
1573 # response is given.
1574 },
1575 },
1576 ],
1577 },
1578 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # The voice and text-only responses for Actions on Google.
1579 # This message in `QueryResult.fulfillment_messages` and
1580 # `WebhookResponse.fulfillment_messages` should contain only one
1581 # `SimpleResponse`.
1582 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
1583 { # The simple response message containing speech or text.
1584 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
1585 # speech output. Mutually exclusive with ssml.
1586 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
1587 # response to the user in the SSML format. Mutually exclusive with
1588 # text_to_speech.
1589 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
1590 },
1591 ],
1592 },
1593 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
1594 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
1595 # https://developers.google.com/actions/assistant/responses#browsing_carousel
1596 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
1597 # items, maximum of ten.
1598 { # Browsing carousel tile
1599 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
1600 # Card. Maximum of one line of text.
1601 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
1602 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1603 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
1604 # e.g., screen readers.
1605 },
1606 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
1607 # text.
1608 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
1609 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
1610 &quot;url&quot;: &quot;A String&quot;, # Required. URL
1611 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
1612 # the URL. Defaults to opening via web browser.
1613 },
1614 },
1615 ],
1616 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
1617 # items.
1618 },
1619 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app # The link out suggestion chip for Actions on Google.
1620 # or website associated with this agent.
1621 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
1622 # suggestion chip.
1623 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
1624 },
1625 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
1626 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1627 { # The button object that appears at the bottom of a card.
1628 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1629 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1630 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1631 },
1632 },
1633 ],
1634 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1635 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
1636 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1637 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
1638 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1639 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
1640 # e.g., screen readers.
1641 },
1642 },
1643 &quot;suggestions&quot;: { # The collection of suggestions. # The suggestion chips for Actions on Google.
1644 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
1645 { # The suggestion chip message that the user can tap to quickly post a reply
1646 # to the conversation.
1647 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
1648 },
1649 ],
1650 },
1651 &quot;quickReplies&quot;: { # The quick replies response message. # The quick replies response.
1652 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
1653 &quot;A String&quot;,
1654 ],
1655 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
1656 },
1657 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
1658 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
1659 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
1660 { # Column properties for TableCard.
1661 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
1662 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
1663 },
1664 ],
1665 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
1666 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
1667 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1668 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
1669 # e.g., screen readers.
1670 },
1671 &quot;rows&quot;: [ # Optional. Rows in this table of data.
1672 { # Row of TableCard.
1673 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
1674 { # Cell of TableCardRow.
1675 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
1676 },
1677 ],
1678 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
1679 },
1680 ],
1681 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
1682 { # The button object that appears at the bottom of a card.
1683 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1684 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1685 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1686 },
1687 },
1688 ],
1689 },
1690 &quot;image&quot;: { # The image response message. # The image response.
1691 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1692 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
1693 # e.g., screen readers.
1694 },
1695 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
1696 &quot;mediaObjects&quot;: [ # Required. List of media objects.
1697 { # Response media object for media content card.
1698 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
1699 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1700 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
1701 # e.g., screen readers.
1702 },
1703 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
1704 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
1705 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1706 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
1707 # e.g., screen readers.
1708 },
1709 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
1710 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
1711 },
1712 ],
1713 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
1714 },
1715 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
1716 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
1717 &quot;items&quot;: [ # Required. List items.
1718 { # An item in the list.
1719 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1720 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1721 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
1722 # e.g., screen readers.
1723 },
1724 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
1725 # dialog.
1726 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
1727 # item in dialog.
1728 &quot;A String&quot;,
1729 ],
1730 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
1731 # response is given.
1732 },
1733 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
1734 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
1735 },
1736 ],
1737 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
1738 },
1739 &quot;payload&quot;: { # A custom platform-specific response.
1740 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1741 },
1742 },
1743 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001744 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent.
1745 # If the collection of input contexts is not empty, all of the contexts must
1746 # be present in the active user session for an event to trigger this intent.
1747 # Event names are limited to 150 characters.
1748 &quot;A String&quot;,
1749 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001750 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent
1751 # is matched. Context messages in this collection should not set the
1752 # parameters field. Setting the `lifespan_count` to 0 will reset the context
1753 # when the intent is matched.
1754 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001755 { # Dialogflow contexts are similar to natural language context. If a person says
1756 # to you &quot;they are orange&quot;, you need context in order to understand what &quot;they&quot;
1757 # is referring to. Similarly, for Dialogflow to handle an end-user expression
1758 # like that, it needs to be provided with context in order to correctly match
1759 # an intent.
1760 #
1761 # Using contexts, you can control the flow of a conversation. You can configure
1762 # contexts for an intent by setting input and output contexts, which are
1763 # identified by string names. When an intent is matched, any configured output
1764 # contexts for that intent become active. While any contexts are active,
1765 # Dialogflow is more likely to match intents that are configured with input
1766 # contexts that correspond to the currently active contexts.
1767 #
1768 # For more information about context, see the
1769 # [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview).
Bu Sun Kim65020912020-05-20 12:08:20 -07001770 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
1771 #
1772 # Depending on your protocol or client library language, this is a
1773 # map, associative array, symbol table, dictionary, or JSON object
1774 # composed of a collection of (MapKey, MapValue) pairs:
1775 #
1776 # - MapKey type: string
1777 # - MapKey value: parameter name
1778 # - MapValue type:
1779 # - If parameter&#x27;s entity type is a composite entity: map
1780 # - Else: string or number, depending on parameter value type
1781 # - MapValue value:
1782 # - If parameter&#x27;s entity type is a composite entity:
1783 # map from composite entity property names to property values
1784 # - Else: parameter value
1785 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1786 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001787 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
1788 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
1789 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
1790 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
1791 #
1792 # The `Context ID` is always converted to lowercase, may only contain
1793 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
1794 #
1795 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
1796 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
1797 #
1798 # The following context names are reserved for internal use by Dialogflow.
1799 # You should not use these contexts or create contexts with these names:
1800 #
1801 # * `__system_counters__`
1802 # * `*_id_dialog_context`
1803 # * `*_dialog_params_size`
1804 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
1805 # context expires. The default is `0`. If set to `0`, the context expires
1806 # immediately. Contexts expire automatically after 20 minutes if there
1807 # are no matching queries.
Bu Sun Kim65020912020-05-20 12:08:20 -07001808 },
1809 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001810 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent.
1811 # Note: The action name must not contain whitespaces.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001812 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher
1813 # priorities.
1814 #
1815 # - If the supplied value is unspecified or 0, the service
1816 # translates the value to 500,000, which corresponds to the
1817 # `Normal` priority in the console.
1818 # - If the supplied value is negative, the intent is ignored
1819 # in runtime detect intent requests.
Bu Sun Kim65020912020-05-20 12:08:20 -07001820 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Read-only. The unique identifier of the root intent in the chain of
1821 # followup intents. It identifies the correct followup intents chain for
1822 # this intent. We populate this field only in the output.
1823 #
1824 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001825 &quot;followupIntentInfo&quot;: [ # Read-only. Information about all followup intents that have this intent as
1826 # a direct or indirect parent. We populate this field only in the output.
1827 { # Represents a single followup intent in the chain.
1828 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent.
1829 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
1830 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent.
1831 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
1832 },
1833 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001834 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001835 # trained on.
1836 { # Represents an example that the agent is trained on.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001837 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
1838 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to
1839 # the intent. Each time a developer adds an existing sample by editing an
1840 # intent or training, this counter is increased.
Bu Sun Kim65020912020-05-20 12:08:20 -07001841 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001842 # The parts are concatenated in order to form the training phrase.
1843 #
1844 # Note: The API does not automatically annotate training phrases like the
1845 # Dialogflow Console does.
1846 #
1847 # Note: Do not forget to include whitespace at part boundaries,
1848 # so the training phrase is well formatted when the parts are concatenated.
1849 #
1850 # If the training phrase does not need to be annotated with parameters,
1851 # you just need a single part with only the Part.text field set.
1852 #
1853 # If you want to annotate the training phrase, you must create multiple
1854 # parts, where the fields of each part are populated in one of two ways:
1855 #
1856 # - `Part.text` is set to a part of the phrase that has no parameters.
1857 # - `Part.text` is set to a part of the phrase that you want to annotate,
1858 # and the `entity_type`, `alias`, and `user_defined` fields are all
1859 # set.
1860 { # Represents a part of a training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07001861 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001862 # annotated part of the example.
1863 # This field is required for annotated parts of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07001864 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001865 # This field is set to true when the Dialogflow Console is used to
1866 # manually annotate the part. When creating an annotated part with the
1867 # API, you must set this to true.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001868 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
1869 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`.
1870 # This field is required for annotated parts of the training phrase.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001871 },
1872 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001873 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001874 },
1875 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001876 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be
1877 # triggered.
1878 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
1879 &quot;A String&quot;,
1880 ],
1881 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
1882 # Note: If `ml_disabled` setting is set to true, then this intent is not
1883 # taken into account during inference in `ML ONLY` match mode. Also,
1884 # auto-markup in the UI is turned off.
Bu Sun Kim65020912020-05-20 12:08:20 -07001885 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current
Dan O'Mearadd494642020-05-01 07:42:23 -07001886 # session when this intent is matched.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001887 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Read-only after creation. The unique identifier of the parent intent in the
1888 # chain of followup intents. You can set this field when creating an intent,
1889 # for example with CreateIntent or
1890 # BatchUpdateIntents, in order to make this
1891 # intent a followup intent.
1892 #
1893 # It identifies the parent followup intent.
1894 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
1895 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be
1896 # copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
1897 &quot;A String&quot;,
1898 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001899 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
1900 { # Represents intent parameters.
Bu Sun Kim65020912020-05-20 12:08:20 -07001901 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001902 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001903 # - a constant string,
1904 # - a parameter value defined as `$parameter_name`,
1905 # - an original parameter value defined as `$parameter_name.original`,
1906 # - a parameter value from some context defined as
1907 # `#context_name.parameter_name`.
1908 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001909 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is,
1910 # whether the intent cannot be completed without collecting the parameter
1911 # value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001912 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
1913 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that
1914 # describes values of the parameter. If the parameter is
1915 # required, this must be provided.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001916 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty
1917 # result.
1918 # Default values can be extracted from contexts by using the following
1919 # syntax: `#context_name.parameter_name`.
1920 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001921 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the
1922 # user in order to collect a value for the parameter.
1923 &quot;A String&quot;,
1924 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001925 },
1926 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001927 }</pre>
1928</div>
1929
1930<div class="method">
1931 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
1932 <pre>Deletes the specified intent and its direct or indirect followup intents.
1933
1934Args:
1935 name: string, Required. The name of the intent to delete. If this intent has direct or
1936indirect followup intents, we also delete them.
Dan O'Mearadd494642020-05-01 07:42:23 -07001937Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001938 x__xgafv: string, V1 error format.
1939 Allowed values
1940 1 - v1 error format
1941 2 - v2 error format
1942
1943Returns:
1944 An object of the form:
1945
1946 { # A generic empty message that you can re-use to avoid defining duplicated
1947 # empty messages in your APIs. A typical example is to use it as the request
1948 # or the response type of an API method. For instance:
1949 #
1950 # service Foo {
1951 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
1952 # }
1953 #
1954 # The JSON representation for `Empty` is empty JSON object `{}`.
1955 }</pre>
1956</div>
1957
1958<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -07001959 <code class="details" id="get">get(name, intentView=None, languageCode=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001960 <pre>Retrieves the specified intent.
1961
1962Args:
1963 name: string, Required. The name of the intent.
Dan O'Mearadd494642020-05-01 07:42:23 -07001964Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`. (required)
Bu Sun Kim65020912020-05-20 12:08:20 -07001965 intentView: string, Optional. The resource view to apply to the returned intent.
Dan O'Mearadd494642020-05-01 07:42:23 -07001966 languageCode: string, Optional. The language used to access language-specific data.
Bu Sun Kim65020912020-05-20 12:08:20 -07001967If not specified, the agent&#x27;s default language is used.
Dan O'Mearadd494642020-05-01 07:42:23 -07001968For more information, see
1969[Multilingual intent and entity
1970data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001971 x__xgafv: string, V1 error format.
1972 Allowed values
1973 1 - v1 error format
1974 2 - v2 error format
1975
1976Returns:
1977 An object of the form:
1978
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001979 { # An intent categorizes an end-user&#x27;s intention for one conversation turn. For
1980 # each agent, you define many intents, where your combined intents can handle a
1981 # complete conversation. When an end-user writes or says something, referred to
1982 # as an end-user expression or end-user input, Dialogflow matches the end-user
1983 # input to the best intent in your agent. Matching an intent is also known as
1984 # intent classification.
1985 #
1986 # For more information, see the [intent
1987 # guide](https://cloud.google.com/dialogflow/docs/intents-overview).
1988 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent.
1989 # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
1990 # methods.
1991 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
1992 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
1993 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
1994 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
1995 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the
1996 # `Response` field in the Dialogflow console.
1997 { # A rich response message.
1998 # Corresponds to the intent `Response` field in the Dialogflow console.
1999 # For more information, see
2000 # [Rich response
2001 # messages](https://cloud.google.com/dialogflow/docs/intents-rich-messages).
2002 &quot;card&quot;: { # The card response message. # The card response.
2003 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
2004 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2005 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2006 { # Contains information about a button.
2007 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
2008 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
2009 # open.
2010 },
2011 ],
2012 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
2013 },
2014 &quot;text&quot;: { # The text response message. # The text response.
2015 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
2016 &quot;A String&quot;,
2017 ],
2018 },
2019 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
2020 &quot;items&quot;: [ # Required. Carousel items.
2021 { # An item in the carousel.
2022 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
2023 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
2024 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2025 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2026 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
2027 # e.g., screen readers.
2028 },
2029 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
2030 # dialog.
2031 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
2032 # item in dialog.
2033 &quot;A String&quot;,
2034 ],
2035 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
2036 # response is given.
2037 },
2038 },
2039 ],
2040 },
2041 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # The voice and text-only responses for Actions on Google.
2042 # This message in `QueryResult.fulfillment_messages` and
2043 # `WebhookResponse.fulfillment_messages` should contain only one
2044 # `SimpleResponse`.
2045 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
2046 { # The simple response message containing speech or text.
2047 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
2048 # speech output. Mutually exclusive with ssml.
2049 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
2050 # response to the user in the SSML format. Mutually exclusive with
2051 # text_to_speech.
2052 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
2053 },
2054 ],
2055 },
2056 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
2057 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
2058 # https://developers.google.com/actions/assistant/responses#browsing_carousel
2059 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
2060 # items, maximum of ten.
2061 { # Browsing carousel tile
2062 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
2063 # Card. Maximum of one line of text.
2064 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
2065 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2066 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
2067 # e.g., screen readers.
2068 },
2069 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
2070 # text.
2071 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
2072 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
2073 &quot;url&quot;: &quot;A String&quot;, # Required. URL
2074 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
2075 # the URL. Defaults to opening via web browser.
2076 },
2077 },
2078 ],
2079 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
2080 # items.
2081 },
2082 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app # The link out suggestion chip for Actions on Google.
2083 # or website associated with this agent.
2084 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
2085 # suggestion chip.
2086 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
2087 },
2088 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
2089 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2090 { # The button object that appears at the bottom of a card.
2091 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
2092 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2093 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2094 },
2095 },
2096 ],
2097 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2098 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
2099 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
2100 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
2101 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2102 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
2103 # e.g., screen readers.
2104 },
2105 },
2106 &quot;suggestions&quot;: { # The collection of suggestions. # The suggestion chips for Actions on Google.
2107 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
2108 { # The suggestion chip message that the user can tap to quickly post a reply
2109 # to the conversation.
2110 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
2111 },
2112 ],
2113 },
2114 &quot;quickReplies&quot;: { # The quick replies response message. # The quick replies response.
2115 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
2116 &quot;A String&quot;,
2117 ],
2118 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
2119 },
2120 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
2121 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
2122 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
2123 { # Column properties for TableCard.
2124 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
2125 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
2126 },
2127 ],
2128 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
2129 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
2130 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2131 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
2132 # e.g., screen readers.
2133 },
2134 &quot;rows&quot;: [ # Optional. Rows in this table of data.
2135 { # Row of TableCard.
2136 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
2137 { # Cell of TableCardRow.
2138 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
2139 },
2140 ],
2141 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
2142 },
2143 ],
2144 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
2145 { # The button object that appears at the bottom of a card.
2146 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
2147 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2148 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2149 },
2150 },
2151 ],
2152 },
2153 &quot;image&quot;: { # The image response message. # The image response.
2154 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2155 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
2156 # e.g., screen readers.
2157 },
2158 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
2159 &quot;mediaObjects&quot;: [ # Required. List of media objects.
2160 { # Response media object for media content card.
2161 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
2162 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2163 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
2164 # e.g., screen readers.
2165 },
2166 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
2167 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
2168 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2169 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
2170 # e.g., screen readers.
2171 },
2172 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
2173 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
2174 },
2175 ],
2176 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
2177 },
2178 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
2179 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
2180 &quot;items&quot;: [ # Required. List items.
2181 { # An item in the list.
2182 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2183 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2184 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
2185 # e.g., screen readers.
2186 },
2187 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
2188 # dialog.
2189 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
2190 # item in dialog.
2191 &quot;A String&quot;,
2192 ],
2193 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
2194 # response is given.
2195 },
2196 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
2197 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
2198 },
2199 ],
2200 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
2201 },
2202 &quot;payload&quot;: { # A custom platform-specific response.
2203 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2204 },
2205 },
2206 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002207 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent.
2208 # If the collection of input contexts is not empty, all of the contexts must
2209 # be present in the active user session for an event to trigger this intent.
2210 # Event names are limited to 150 characters.
2211 &quot;A String&quot;,
2212 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002213 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent
2214 # is matched. Context messages in this collection should not set the
2215 # parameters field. Setting the `lifespan_count` to 0 will reset the context
2216 # when the intent is matched.
2217 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002218 { # Dialogflow contexts are similar to natural language context. If a person says
2219 # to you &quot;they are orange&quot;, you need context in order to understand what &quot;they&quot;
2220 # is referring to. Similarly, for Dialogflow to handle an end-user expression
2221 # like that, it needs to be provided with context in order to correctly match
2222 # an intent.
2223 #
2224 # Using contexts, you can control the flow of a conversation. You can configure
2225 # contexts for an intent by setting input and output contexts, which are
2226 # identified by string names. When an intent is matched, any configured output
2227 # contexts for that intent become active. While any contexts are active,
2228 # Dialogflow is more likely to match intents that are configured with input
2229 # contexts that correspond to the currently active contexts.
2230 #
2231 # For more information about context, see the
2232 # [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview).
Bu Sun Kim65020912020-05-20 12:08:20 -07002233 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
2234 #
2235 # Depending on your protocol or client library language, this is a
2236 # map, associative array, symbol table, dictionary, or JSON object
2237 # composed of a collection of (MapKey, MapValue) pairs:
2238 #
2239 # - MapKey type: string
2240 # - MapKey value: parameter name
2241 # - MapValue type:
2242 # - If parameter&#x27;s entity type is a composite entity: map
2243 # - Else: string or number, depending on parameter value type
2244 # - MapValue value:
2245 # - If parameter&#x27;s entity type is a composite entity:
2246 # map from composite entity property names to property values
2247 # - Else: parameter value
2248 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2249 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002250 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
2251 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
2252 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
2253 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
2254 #
2255 # The `Context ID` is always converted to lowercase, may only contain
2256 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
2257 #
2258 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
2259 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
2260 #
2261 # The following context names are reserved for internal use by Dialogflow.
2262 # You should not use these contexts or create contexts with these names:
2263 #
2264 # * `__system_counters__`
2265 # * `*_id_dialog_context`
2266 # * `*_dialog_params_size`
2267 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
2268 # context expires. The default is `0`. If set to `0`, the context expires
2269 # immediately. Contexts expire automatically after 20 minutes if there
2270 # are no matching queries.
Bu Sun Kim65020912020-05-20 12:08:20 -07002271 },
2272 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002273 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent.
2274 # Note: The action name must not contain whitespaces.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002275 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher
2276 # priorities.
2277 #
2278 # - If the supplied value is unspecified or 0, the service
2279 # translates the value to 500,000, which corresponds to the
2280 # `Normal` priority in the console.
2281 # - If the supplied value is negative, the intent is ignored
2282 # in runtime detect intent requests.
Bu Sun Kim65020912020-05-20 12:08:20 -07002283 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Read-only. The unique identifier of the root intent in the chain of
2284 # followup intents. It identifies the correct followup intents chain for
2285 # this intent. We populate this field only in the output.
2286 #
2287 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002288 &quot;followupIntentInfo&quot;: [ # Read-only. Information about all followup intents that have this intent as
2289 # a direct or indirect parent. We populate this field only in the output.
2290 { # Represents a single followup intent in the chain.
2291 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent.
2292 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
2293 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent.
2294 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
2295 },
2296 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002297 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002298 # trained on.
2299 { # Represents an example that the agent is trained on.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002300 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
2301 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to
2302 # the intent. Each time a developer adds an existing sample by editing an
2303 # intent or training, this counter is increased.
Bu Sun Kim65020912020-05-20 12:08:20 -07002304 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002305 # The parts are concatenated in order to form the training phrase.
2306 #
2307 # Note: The API does not automatically annotate training phrases like the
2308 # Dialogflow Console does.
2309 #
2310 # Note: Do not forget to include whitespace at part boundaries,
2311 # so the training phrase is well formatted when the parts are concatenated.
2312 #
2313 # If the training phrase does not need to be annotated with parameters,
2314 # you just need a single part with only the Part.text field set.
2315 #
2316 # If you want to annotate the training phrase, you must create multiple
2317 # parts, where the fields of each part are populated in one of two ways:
2318 #
2319 # - `Part.text` is set to a part of the phrase that has no parameters.
2320 # - `Part.text` is set to a part of the phrase that you want to annotate,
2321 # and the `entity_type`, `alias`, and `user_defined` fields are all
2322 # set.
2323 { # Represents a part of a training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07002324 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002325 # annotated part of the example.
2326 # This field is required for annotated parts of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07002327 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002328 # This field is set to true when the Dialogflow Console is used to
2329 # manually annotate the part. When creating an annotated part with the
2330 # API, you must set this to true.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002331 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
2332 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`.
2333 # This field is required for annotated parts of the training phrase.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002334 },
2335 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002336 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002337 },
2338 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002339 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be
2340 # triggered.
2341 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
2342 &quot;A String&quot;,
2343 ],
2344 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
2345 # Note: If `ml_disabled` setting is set to true, then this intent is not
2346 # taken into account during inference in `ML ONLY` match mode. Also,
2347 # auto-markup in the UI is turned off.
Bu Sun Kim65020912020-05-20 12:08:20 -07002348 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current
Dan O'Mearadd494642020-05-01 07:42:23 -07002349 # session when this intent is matched.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002350 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Read-only after creation. The unique identifier of the parent intent in the
2351 # chain of followup intents. You can set this field when creating an intent,
2352 # for example with CreateIntent or
2353 # BatchUpdateIntents, in order to make this
2354 # intent a followup intent.
2355 #
2356 # It identifies the parent followup intent.
2357 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
2358 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be
2359 # copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
2360 &quot;A String&quot;,
2361 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002362 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
2363 { # Represents intent parameters.
Bu Sun Kim65020912020-05-20 12:08:20 -07002364 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002365 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002366 # - a constant string,
2367 # - a parameter value defined as `$parameter_name`,
2368 # - an original parameter value defined as `$parameter_name.original`,
2369 # - a parameter value from some context defined as
2370 # `#context_name.parameter_name`.
2371 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002372 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is,
2373 # whether the intent cannot be completed without collecting the parameter
2374 # value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002375 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
2376 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that
2377 # describes values of the parameter. If the parameter is
2378 # required, this must be provided.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002379 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty
2380 # result.
2381 # Default values can be extracted from contexts by using the following
2382 # syntax: `#context_name.parameter_name`.
2383 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002384 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the
2385 # user in order to collect a value for the parameter.
2386 &quot;A String&quot;,
2387 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002388 },
2389 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002390 }</pre>
2391</div>
2392
2393<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -07002394 <code class="details" id="list">list(parent, pageToken=None, pageSize=None, intentView=None, languageCode=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002395 <pre>Returns the list of all intents in the specified agent.
2396
2397Args:
2398 parent: string, Required. The agent to list all intents from.
Dan O'Mearadd494642020-05-01 07:42:23 -07002399Format: `projects/&lt;Project ID&gt;/agent`. (required)
Bu Sun Kim65020912020-05-20 12:08:20 -07002400 pageToken: string, Optional. The next_page_token value returned from a previous list request.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002401 pageSize: integer, Optional. The maximum number of items to return in a single page. By
2402default 100 and at most 1000.
2403 intentView: string, Optional. The resource view to apply to the returned intent.
Bu Sun Kim65020912020-05-20 12:08:20 -07002404 languageCode: string, Optional. The language used to access language-specific data.
2405If not specified, the agent&#x27;s default language is used.
2406For more information, see
2407[Multilingual intent and entity
2408data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002409 x__xgafv: string, V1 error format.
2410 Allowed values
2411 1 - v1 error format
2412 2 - v2 error format
2413
2414Returns:
2415 An object of the form:
2416
2417 { # The response message for Intents.ListIntents.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002418 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no
2419 # more results in the list.
Bu Sun Kim65020912020-05-20 12:08:20 -07002420 &quot;intents&quot;: [ # The list of agent intents. There will be a maximum number of items
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002421 # returned based on the page_size field in the request.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002422 { # An intent categorizes an end-user&#x27;s intention for one conversation turn. For
2423 # each agent, you define many intents, where your combined intents can handle a
2424 # complete conversation. When an end-user writes or says something, referred to
2425 # as an end-user expression or end-user input, Dialogflow matches the end-user
2426 # input to the best intent in your agent. Matching an intent is also known as
2427 # intent classification.
2428 #
2429 # For more information, see the [intent
2430 # guide](https://cloud.google.com/dialogflow/docs/intents-overview).
2431 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent.
2432 # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
2433 # methods.
2434 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
2435 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
2436 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
2437 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
2438 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the
2439 # `Response` field in the Dialogflow console.
2440 { # A rich response message.
2441 # Corresponds to the intent `Response` field in the Dialogflow console.
2442 # For more information, see
2443 # [Rich response
2444 # messages](https://cloud.google.com/dialogflow/docs/intents-rich-messages).
2445 &quot;card&quot;: { # The card response message. # The card response.
2446 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
2447 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2448 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2449 { # Contains information about a button.
2450 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
2451 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
2452 # open.
2453 },
2454 ],
2455 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
2456 },
2457 &quot;text&quot;: { # The text response message. # The text response.
2458 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
2459 &quot;A String&quot;,
2460 ],
2461 },
2462 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
2463 &quot;items&quot;: [ # Required. Carousel items.
2464 { # An item in the carousel.
2465 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
2466 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
2467 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2468 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2469 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
2470 # e.g., screen readers.
2471 },
2472 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
2473 # dialog.
2474 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
2475 # item in dialog.
2476 &quot;A String&quot;,
2477 ],
2478 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
2479 # response is given.
2480 },
2481 },
2482 ],
2483 },
2484 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # The voice and text-only responses for Actions on Google.
2485 # This message in `QueryResult.fulfillment_messages` and
2486 # `WebhookResponse.fulfillment_messages` should contain only one
2487 # `SimpleResponse`.
2488 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
2489 { # The simple response message containing speech or text.
2490 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
2491 # speech output. Mutually exclusive with ssml.
2492 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
2493 # response to the user in the SSML format. Mutually exclusive with
2494 # text_to_speech.
2495 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
2496 },
2497 ],
2498 },
2499 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
2500 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
2501 # https://developers.google.com/actions/assistant/responses#browsing_carousel
2502 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
2503 # items, maximum of ten.
2504 { # Browsing carousel tile
2505 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
2506 # Card. Maximum of one line of text.
2507 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
2508 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2509 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
2510 # e.g., screen readers.
2511 },
2512 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
2513 # text.
2514 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
2515 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
2516 &quot;url&quot;: &quot;A String&quot;, # Required. URL
2517 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
2518 # the URL. Defaults to opening via web browser.
2519 },
2520 },
2521 ],
2522 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
2523 # items.
2524 },
2525 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app # The link out suggestion chip for Actions on Google.
2526 # or website associated with this agent.
2527 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
2528 # suggestion chip.
2529 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
2530 },
2531 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
2532 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2533 { # The button object that appears at the bottom of a card.
2534 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
2535 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2536 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2537 },
2538 },
2539 ],
2540 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2541 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
2542 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
2543 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
2544 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2545 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
2546 # e.g., screen readers.
2547 },
2548 },
2549 &quot;suggestions&quot;: { # The collection of suggestions. # The suggestion chips for Actions on Google.
2550 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
2551 { # The suggestion chip message that the user can tap to quickly post a reply
2552 # to the conversation.
2553 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
2554 },
2555 ],
2556 },
2557 &quot;quickReplies&quot;: { # The quick replies response message. # The quick replies response.
2558 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
2559 &quot;A String&quot;,
2560 ],
2561 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
2562 },
2563 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
2564 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
2565 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
2566 { # Column properties for TableCard.
2567 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
2568 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
2569 },
2570 ],
2571 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
2572 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
2573 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2574 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
2575 # e.g., screen readers.
2576 },
2577 &quot;rows&quot;: [ # Optional. Rows in this table of data.
2578 { # Row of TableCard.
2579 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
2580 { # Cell of TableCardRow.
2581 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
2582 },
2583 ],
2584 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
2585 },
2586 ],
2587 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
2588 { # The button object that appears at the bottom of a card.
2589 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
2590 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2591 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2592 },
2593 },
2594 ],
2595 },
2596 &quot;image&quot;: { # The image response message. # The image response.
2597 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2598 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
2599 # e.g., screen readers.
2600 },
2601 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
2602 &quot;mediaObjects&quot;: [ # Required. List of media objects.
2603 { # Response media object for media content card.
2604 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
2605 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2606 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
2607 # e.g., screen readers.
2608 },
2609 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
2610 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
2611 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2612 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
2613 # e.g., screen readers.
2614 },
2615 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
2616 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
2617 },
2618 ],
2619 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
2620 },
2621 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
2622 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
2623 &quot;items&quot;: [ # Required. List items.
2624 { # An item in the list.
2625 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2626 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2627 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
2628 # e.g., screen readers.
2629 },
2630 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
2631 # dialog.
2632 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
2633 # item in dialog.
2634 &quot;A String&quot;,
2635 ],
2636 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
2637 # response is given.
2638 },
2639 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
2640 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
2641 },
2642 ],
2643 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
2644 },
2645 &quot;payload&quot;: { # A custom platform-specific response.
2646 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2647 },
2648 },
2649 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002650 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent.
2651 # If the collection of input contexts is not empty, all of the contexts must
2652 # be present in the active user session for an event to trigger this intent.
2653 # Event names are limited to 150 characters.
2654 &quot;A String&quot;,
2655 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002656 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent
2657 # is matched. Context messages in this collection should not set the
2658 # parameters field. Setting the `lifespan_count` to 0 will reset the context
2659 # when the intent is matched.
2660 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002661 { # Dialogflow contexts are similar to natural language context. If a person says
2662 # to you &quot;they are orange&quot;, you need context in order to understand what &quot;they&quot;
2663 # is referring to. Similarly, for Dialogflow to handle an end-user expression
2664 # like that, it needs to be provided with context in order to correctly match
2665 # an intent.
2666 #
2667 # Using contexts, you can control the flow of a conversation. You can configure
2668 # contexts for an intent by setting input and output contexts, which are
2669 # identified by string names. When an intent is matched, any configured output
2670 # contexts for that intent become active. While any contexts are active,
2671 # Dialogflow is more likely to match intents that are configured with input
2672 # contexts that correspond to the currently active contexts.
2673 #
2674 # For more information about context, see the
2675 # [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview).
Bu Sun Kim65020912020-05-20 12:08:20 -07002676 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
2677 #
2678 # Depending on your protocol or client library language, this is a
2679 # map, associative array, symbol table, dictionary, or JSON object
2680 # composed of a collection of (MapKey, MapValue) pairs:
2681 #
2682 # - MapKey type: string
2683 # - MapKey value: parameter name
2684 # - MapValue type:
2685 # - If parameter&#x27;s entity type is a composite entity: map
2686 # - Else: string or number, depending on parameter value type
2687 # - MapValue value:
2688 # - If parameter&#x27;s entity type is a composite entity:
2689 # map from composite entity property names to property values
2690 # - Else: parameter value
2691 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2692 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002693 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
2694 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
2695 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
2696 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
2697 #
2698 # The `Context ID` is always converted to lowercase, may only contain
2699 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
2700 #
2701 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
2702 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
2703 #
2704 # The following context names are reserved for internal use by Dialogflow.
2705 # You should not use these contexts or create contexts with these names:
2706 #
2707 # * `__system_counters__`
2708 # * `*_id_dialog_context`
2709 # * `*_dialog_params_size`
2710 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
2711 # context expires. The default is `0`. If set to `0`, the context expires
2712 # immediately. Contexts expire automatically after 20 minutes if there
2713 # are no matching queries.
Bu Sun Kim65020912020-05-20 12:08:20 -07002714 },
2715 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002716 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent.
2717 # Note: The action name must not contain whitespaces.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002718 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher
2719 # priorities.
2720 #
2721 # - If the supplied value is unspecified or 0, the service
2722 # translates the value to 500,000, which corresponds to the
2723 # `Normal` priority in the console.
2724 # - If the supplied value is negative, the intent is ignored
2725 # in runtime detect intent requests.
Bu Sun Kim65020912020-05-20 12:08:20 -07002726 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Read-only. The unique identifier of the root intent in the chain of
2727 # followup intents. It identifies the correct followup intents chain for
2728 # this intent. We populate this field only in the output.
2729 #
2730 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002731 &quot;followupIntentInfo&quot;: [ # Read-only. Information about all followup intents that have this intent as
2732 # a direct or indirect parent. We populate this field only in the output.
2733 { # Represents a single followup intent in the chain.
2734 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent.
2735 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
2736 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent.
2737 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
2738 },
2739 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002740 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002741 # trained on.
2742 { # Represents an example that the agent is trained on.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002743 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
2744 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to
2745 # the intent. Each time a developer adds an existing sample by editing an
2746 # intent or training, this counter is increased.
Bu Sun Kim65020912020-05-20 12:08:20 -07002747 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002748 # The parts are concatenated in order to form the training phrase.
2749 #
2750 # Note: The API does not automatically annotate training phrases like the
2751 # Dialogflow Console does.
2752 #
2753 # Note: Do not forget to include whitespace at part boundaries,
2754 # so the training phrase is well formatted when the parts are concatenated.
2755 #
2756 # If the training phrase does not need to be annotated with parameters,
2757 # you just need a single part with only the Part.text field set.
2758 #
2759 # If you want to annotate the training phrase, you must create multiple
2760 # parts, where the fields of each part are populated in one of two ways:
2761 #
2762 # - `Part.text` is set to a part of the phrase that has no parameters.
2763 # - `Part.text` is set to a part of the phrase that you want to annotate,
2764 # and the `entity_type`, `alias`, and `user_defined` fields are all
2765 # set.
2766 { # Represents a part of a training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07002767 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002768 # annotated part of the example.
2769 # This field is required for annotated parts of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07002770 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002771 # This field is set to true when the Dialogflow Console is used to
2772 # manually annotate the part. When creating an annotated part with the
2773 # API, you must set this to true.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002774 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
2775 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`.
2776 # This field is required for annotated parts of the training phrase.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002777 },
2778 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002779 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002780 },
2781 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002782 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be
2783 # triggered.
2784 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
2785 &quot;A String&quot;,
2786 ],
2787 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
2788 # Note: If `ml_disabled` setting is set to true, then this intent is not
2789 # taken into account during inference in `ML ONLY` match mode. Also,
2790 # auto-markup in the UI is turned off.
Bu Sun Kim65020912020-05-20 12:08:20 -07002791 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current
Dan O'Mearadd494642020-05-01 07:42:23 -07002792 # session when this intent is matched.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002793 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Read-only after creation. The unique identifier of the parent intent in the
2794 # chain of followup intents. You can set this field when creating an intent,
2795 # for example with CreateIntent or
2796 # BatchUpdateIntents, in order to make this
2797 # intent a followup intent.
2798 #
2799 # It identifies the parent followup intent.
2800 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
2801 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be
2802 # copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
2803 &quot;A String&quot;,
2804 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002805 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
2806 { # Represents intent parameters.
Bu Sun Kim65020912020-05-20 12:08:20 -07002807 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002808 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002809 # - a constant string,
2810 # - a parameter value defined as `$parameter_name`,
2811 # - an original parameter value defined as `$parameter_name.original`,
2812 # - a parameter value from some context defined as
2813 # `#context_name.parameter_name`.
2814 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002815 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is,
2816 # whether the intent cannot be completed without collecting the parameter
2817 # value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002818 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
2819 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that
2820 # describes values of the parameter. If the parameter is
2821 # required, this must be provided.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002822 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty
2823 # result.
2824 # Default values can be extracted from contexts by using the following
2825 # syntax: `#context_name.parameter_name`.
2826 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002827 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the
2828 # user in order to collect a value for the parameter.
2829 &quot;A String&quot;,
2830 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002831 },
2832 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002833 },
2834 ],
2835 }</pre>
2836</div>
2837
2838<div class="method">
2839 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
2840 <pre>Retrieves the next page of results.
2841
2842Args:
2843 previous_request: The request for the previous page. (required)
2844 previous_response: The response from the request for the previous page. (required)
2845
2846Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07002847 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002848 page. Returns None if there are no more items in the collection.
2849 </pre>
2850</div>
2851
2852<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -07002853 <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 -07002854 <pre>Updates the specified intent.
2855
2856Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07002857 name: string, Optional. The unique identifier of this intent.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002858Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
2859methods.
Dan O'Mearadd494642020-05-01 07:42:23 -07002860Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`. (required)
2861 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002862 The object takes the form of:
2863
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002864{ # An intent categorizes an end-user&#x27;s intention for one conversation turn. For
2865 # each agent, you define many intents, where your combined intents can handle a
2866 # complete conversation. When an end-user writes or says something, referred to
2867 # as an end-user expression or end-user input, Dialogflow matches the end-user
2868 # input to the best intent in your agent. Matching an intent is also known as
2869 # intent classification.
2870 #
2871 # For more information, see the [intent
2872 # guide](https://cloud.google.com/dialogflow/docs/intents-overview).
2873 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent.
2874 # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
2875 # methods.
2876 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
2877 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
2878 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
2879 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
2880 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the
2881 # `Response` field in the Dialogflow console.
2882 { # A rich response message.
2883 # Corresponds to the intent `Response` field in the Dialogflow console.
2884 # For more information, see
2885 # [Rich response
2886 # messages](https://cloud.google.com/dialogflow/docs/intents-rich-messages).
2887 &quot;card&quot;: { # The card response message. # The card response.
2888 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
2889 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2890 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2891 { # Contains information about a button.
2892 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
2893 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
2894 # open.
2895 },
2896 ],
2897 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
2898 },
2899 &quot;text&quot;: { # The text response message. # The text response.
2900 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
2901 &quot;A String&quot;,
2902 ],
2903 },
2904 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
2905 &quot;items&quot;: [ # Required. Carousel items.
2906 { # An item in the carousel.
2907 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
2908 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
2909 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2910 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2911 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
2912 # e.g., screen readers.
2913 },
2914 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
2915 # dialog.
2916 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
2917 # item in dialog.
2918 &quot;A String&quot;,
2919 ],
2920 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
2921 # response is given.
2922 },
2923 },
2924 ],
2925 },
2926 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # The voice and text-only responses for Actions on Google.
2927 # This message in `QueryResult.fulfillment_messages` and
2928 # `WebhookResponse.fulfillment_messages` should contain only one
2929 # `SimpleResponse`.
2930 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
2931 { # The simple response message containing speech or text.
2932 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
2933 # speech output. Mutually exclusive with ssml.
2934 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
2935 # response to the user in the SSML format. Mutually exclusive with
2936 # text_to_speech.
2937 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
2938 },
2939 ],
2940 },
2941 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
2942 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
2943 # https://developers.google.com/actions/assistant/responses#browsing_carousel
2944 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
2945 # items, maximum of ten.
2946 { # Browsing carousel tile
2947 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
2948 # Card. Maximum of one line of text.
2949 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
2950 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2951 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
2952 # e.g., screen readers.
2953 },
2954 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
2955 # text.
2956 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
2957 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
2958 &quot;url&quot;: &quot;A String&quot;, # Required. URL
2959 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
2960 # the URL. Defaults to opening via web browser.
2961 },
2962 },
2963 ],
2964 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
2965 # items.
2966 },
2967 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app # The link out suggestion chip for Actions on Google.
2968 # or website associated with this agent.
2969 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
2970 # suggestion chip.
2971 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
2972 },
2973 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
2974 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2975 { # The button object that appears at the bottom of a card.
2976 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
2977 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2978 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2979 },
2980 },
2981 ],
2982 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2983 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
2984 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
2985 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
2986 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2987 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
2988 # e.g., screen readers.
2989 },
2990 },
2991 &quot;suggestions&quot;: { # The collection of suggestions. # The suggestion chips for Actions on Google.
2992 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
2993 { # The suggestion chip message that the user can tap to quickly post a reply
2994 # to the conversation.
2995 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
2996 },
2997 ],
2998 },
2999 &quot;quickReplies&quot;: { # The quick replies response message. # The quick replies response.
3000 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
3001 &quot;A String&quot;,
3002 ],
3003 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
3004 },
3005 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
3006 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
3007 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
3008 { # Column properties for TableCard.
3009 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
3010 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
3011 },
3012 ],
3013 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
3014 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
3015 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3016 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
3017 # e.g., screen readers.
3018 },
3019 &quot;rows&quot;: [ # Optional. Rows in this table of data.
3020 { # Row of TableCard.
3021 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
3022 { # Cell of TableCardRow.
3023 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
3024 },
3025 ],
3026 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
3027 },
3028 ],
3029 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
3030 { # The button object that appears at the bottom of a card.
3031 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
3032 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
3033 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
3034 },
3035 },
3036 ],
3037 },
3038 &quot;image&quot;: { # The image response message. # The image response.
3039 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3040 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
3041 # e.g., screen readers.
3042 },
3043 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
3044 &quot;mediaObjects&quot;: [ # Required. List of media objects.
3045 { # Response media object for media content card.
3046 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
3047 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3048 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
3049 # e.g., screen readers.
3050 },
3051 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
3052 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
3053 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3054 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
3055 # e.g., screen readers.
3056 },
3057 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
3058 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
3059 },
3060 ],
3061 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
3062 },
3063 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
3064 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
3065 &quot;items&quot;: [ # Required. List items.
3066 { # An item in the list.
3067 &quot;image&quot;: { # The image response message. # Optional. The image to display.
3068 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3069 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
3070 # e.g., screen readers.
3071 },
3072 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
3073 # dialog.
3074 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
3075 # item in dialog.
3076 &quot;A String&quot;,
3077 ],
3078 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
3079 # response is given.
3080 },
3081 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
3082 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
3083 },
3084 ],
3085 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
3086 },
3087 &quot;payload&quot;: { # A custom platform-specific response.
3088 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3089 },
3090 },
3091 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003092 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent.
3093 # If the collection of input contexts is not empty, all of the contexts must
3094 # be present in the active user session for an event to trigger this intent.
3095 # Event names are limited to 150 characters.
3096 &quot;A String&quot;,
3097 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003098 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent
3099 # is matched. Context messages in this collection should not set the
3100 # parameters field. Setting the `lifespan_count` to 0 will reset the context
3101 # when the intent is matched.
3102 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003103 { # Dialogflow contexts are similar to natural language context. If a person says
3104 # to you &quot;they are orange&quot;, you need context in order to understand what &quot;they&quot;
3105 # is referring to. Similarly, for Dialogflow to handle an end-user expression
3106 # like that, it needs to be provided with context in order to correctly match
3107 # an intent.
3108 #
3109 # Using contexts, you can control the flow of a conversation. You can configure
3110 # contexts for an intent by setting input and output contexts, which are
3111 # identified by string names. When an intent is matched, any configured output
3112 # contexts for that intent become active. While any contexts are active,
3113 # Dialogflow is more likely to match intents that are configured with input
3114 # contexts that correspond to the currently active contexts.
3115 #
3116 # For more information about context, see the
3117 # [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview).
Bu Sun Kim65020912020-05-20 12:08:20 -07003118 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
3119 #
3120 # Depending on your protocol or client library language, this is a
3121 # map, associative array, symbol table, dictionary, or JSON object
3122 # composed of a collection of (MapKey, MapValue) pairs:
3123 #
3124 # - MapKey type: string
3125 # - MapKey value: parameter name
3126 # - MapValue type:
3127 # - If parameter&#x27;s entity type is a composite entity: map
3128 # - Else: string or number, depending on parameter value type
3129 # - MapValue value:
3130 # - If parameter&#x27;s entity type is a composite entity:
3131 # map from composite entity property names to property values
3132 # - Else: parameter value
3133 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3134 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003135 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
3136 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
3137 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
3138 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
3139 #
3140 # The `Context ID` is always converted to lowercase, may only contain
3141 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
3142 #
3143 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
3144 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
3145 #
3146 # The following context names are reserved for internal use by Dialogflow.
3147 # You should not use these contexts or create contexts with these names:
3148 #
3149 # * `__system_counters__`
3150 # * `*_id_dialog_context`
3151 # * `*_dialog_params_size`
3152 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
3153 # context expires. The default is `0`. If set to `0`, the context expires
3154 # immediately. Contexts expire automatically after 20 minutes if there
3155 # are no matching queries.
Bu Sun Kim65020912020-05-20 12:08:20 -07003156 },
3157 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003158 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent.
3159 # Note: The action name must not contain whitespaces.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003160 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher
3161 # priorities.
3162 #
3163 # - If the supplied value is unspecified or 0, the service
3164 # translates the value to 500,000, which corresponds to the
3165 # `Normal` priority in the console.
3166 # - If the supplied value is negative, the intent is ignored
3167 # in runtime detect intent requests.
Bu Sun Kim65020912020-05-20 12:08:20 -07003168 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Read-only. The unique identifier of the root intent in the chain of
3169 # followup intents. It identifies the correct followup intents chain for
3170 # this intent. We populate this field only in the output.
3171 #
3172 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003173 &quot;followupIntentInfo&quot;: [ # Read-only. Information about all followup intents that have this intent as
3174 # a direct or indirect parent. We populate this field only in the output.
3175 { # Represents a single followup intent in the chain.
3176 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent.
3177 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
3178 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent.
3179 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
3180 },
3181 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003182 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003183 # trained on.
3184 { # Represents an example that the agent is trained on.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003185 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
3186 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to
3187 # the intent. Each time a developer adds an existing sample by editing an
3188 # intent or training, this counter is increased.
Bu Sun Kim65020912020-05-20 12:08:20 -07003189 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003190 # The parts are concatenated in order to form the training phrase.
3191 #
3192 # Note: The API does not automatically annotate training phrases like the
3193 # Dialogflow Console does.
3194 #
3195 # Note: Do not forget to include whitespace at part boundaries,
3196 # so the training phrase is well formatted when the parts are concatenated.
3197 #
3198 # If the training phrase does not need to be annotated with parameters,
3199 # you just need a single part with only the Part.text field set.
3200 #
3201 # If you want to annotate the training phrase, you must create multiple
3202 # parts, where the fields of each part are populated in one of two ways:
3203 #
3204 # - `Part.text` is set to a part of the phrase that has no parameters.
3205 # - `Part.text` is set to a part of the phrase that you want to annotate,
3206 # and the `entity_type`, `alias`, and `user_defined` fields are all
3207 # set.
3208 { # Represents a part of a training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07003209 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003210 # annotated part of the example.
3211 # This field is required for annotated parts of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07003212 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003213 # This field is set to true when the Dialogflow Console is used to
3214 # manually annotate the part. When creating an annotated part with the
3215 # API, you must set this to true.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003216 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
3217 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`.
3218 # This field is required for annotated parts of the training phrase.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003219 },
3220 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003221 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003222 },
3223 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003224 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be
3225 # triggered.
3226 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
3227 &quot;A String&quot;,
3228 ],
3229 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
3230 # Note: If `ml_disabled` setting is set to true, then this intent is not
3231 # taken into account during inference in `ML ONLY` match mode. Also,
3232 # auto-markup in the UI is turned off.
Bu Sun Kim65020912020-05-20 12:08:20 -07003233 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current
Dan O'Mearadd494642020-05-01 07:42:23 -07003234 # session when this intent is matched.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003235 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Read-only after creation. The unique identifier of the parent intent in the
3236 # chain of followup intents. You can set this field when creating an intent,
3237 # for example with CreateIntent or
3238 # BatchUpdateIntents, in order to make this
3239 # intent a followup intent.
3240 #
3241 # It identifies the parent followup intent.
3242 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
3243 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be
3244 # copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
3245 &quot;A String&quot;,
3246 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003247 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
3248 { # Represents intent parameters.
Bu Sun Kim65020912020-05-20 12:08:20 -07003249 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003250 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003251 # - a constant string,
3252 # - a parameter value defined as `$parameter_name`,
3253 # - an original parameter value defined as `$parameter_name.original`,
3254 # - a parameter value from some context defined as
3255 # `#context_name.parameter_name`.
3256 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003257 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is,
3258 # whether the intent cannot be completed without collecting the parameter
3259 # value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003260 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
3261 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that
3262 # describes values of the parameter. If the parameter is
3263 # required, this must be provided.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003264 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty
3265 # result.
3266 # Default values can be extracted from contexts by using the following
3267 # syntax: `#context_name.parameter_name`.
3268 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003269 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the
3270 # user in order to collect a value for the parameter.
3271 &quot;A String&quot;,
3272 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003273 },
3274 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003275}
3276
Bu Sun Kim65020912020-05-20 12:08:20 -07003277 intentView: string, Optional. The resource view to apply to the returned intent.
Dan O'Mearadd494642020-05-01 07:42:23 -07003278 languageCode: string, Optional. The language used to access language-specific data.
Bu Sun Kim65020912020-05-20 12:08:20 -07003279If not specified, the agent&#x27;s default language is used.
Dan O'Mearadd494642020-05-01 07:42:23 -07003280For more information, see
3281[Multilingual intent and entity
3282data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003283 updateMask: string, Optional. The mask to control which fields get updated.
3284 x__xgafv: string, V1 error format.
3285 Allowed values
3286 1 - v1 error format
3287 2 - v2 error format
3288
3289Returns:
3290 An object of the form:
3291
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003292 { # An intent categorizes an end-user&#x27;s intention for one conversation turn. For
3293 # each agent, you define many intents, where your combined intents can handle a
3294 # complete conversation. When an end-user writes or says something, referred to
3295 # as an end-user expression or end-user input, Dialogflow matches the end-user
3296 # input to the best intent in your agent. Matching an intent is also known as
3297 # intent classification.
3298 #
3299 # For more information, see the [intent
3300 # guide](https://cloud.google.com/dialogflow/docs/intents-overview).
3301 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent.
3302 # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
3303 # methods.
3304 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
3305 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
3306 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
3307 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
3308 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the
3309 # `Response` field in the Dialogflow console.
3310 { # A rich response message.
3311 # Corresponds to the intent `Response` field in the Dialogflow console.
3312 # For more information, see
3313 # [Rich response
3314 # messages](https://cloud.google.com/dialogflow/docs/intents-rich-messages).
3315 &quot;card&quot;: { # The card response message. # The card response.
3316 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
3317 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
3318 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
3319 { # Contains information about a button.
3320 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
3321 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
3322 # open.
3323 },
3324 ],
3325 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
3326 },
3327 &quot;text&quot;: { # The text response message. # The text response.
3328 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
3329 &quot;A String&quot;,
3330 ],
3331 },
3332 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
3333 &quot;items&quot;: [ # Required. Carousel items.
3334 { # An item in the carousel.
3335 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
3336 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
3337 &quot;image&quot;: { # The image response message. # Optional. The image to display.
3338 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3339 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
3340 # e.g., screen readers.
3341 },
3342 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
3343 # dialog.
3344 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
3345 # item in dialog.
3346 &quot;A String&quot;,
3347 ],
3348 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
3349 # response is given.
3350 },
3351 },
3352 ],
3353 },
3354 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # The voice and text-only responses for Actions on Google.
3355 # This message in `QueryResult.fulfillment_messages` and
3356 # `WebhookResponse.fulfillment_messages` should contain only one
3357 # `SimpleResponse`.
3358 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
3359 { # The simple response message containing speech or text.
3360 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
3361 # speech output. Mutually exclusive with ssml.
3362 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
3363 # response to the user in the SSML format. Mutually exclusive with
3364 # text_to_speech.
3365 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
3366 },
3367 ],
3368 },
3369 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
3370 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
3371 # https://developers.google.com/actions/assistant/responses#browsing_carousel
3372 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
3373 # items, maximum of ten.
3374 { # Browsing carousel tile
3375 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
3376 # Card. Maximum of one line of text.
3377 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
3378 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3379 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
3380 # e.g., screen readers.
3381 },
3382 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
3383 # text.
3384 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
3385 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
3386 &quot;url&quot;: &quot;A String&quot;, # Required. URL
3387 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
3388 # the URL. Defaults to opening via web browser.
3389 },
3390 },
3391 ],
3392 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
3393 # items.
3394 },
3395 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app # The link out suggestion chip for Actions on Google.
3396 # or website associated with this agent.
3397 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
3398 # suggestion chip.
3399 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
3400 },
3401 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
3402 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
3403 { # The button object that appears at the bottom of a card.
3404 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
3405 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
3406 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
3407 },
3408 },
3409 ],
3410 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
3411 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
3412 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
3413 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
3414 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3415 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
3416 # e.g., screen readers.
3417 },
3418 },
3419 &quot;suggestions&quot;: { # The collection of suggestions. # The suggestion chips for Actions on Google.
3420 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
3421 { # The suggestion chip message that the user can tap to quickly post a reply
3422 # to the conversation.
3423 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
3424 },
3425 ],
3426 },
3427 &quot;quickReplies&quot;: { # The quick replies response message. # The quick replies response.
3428 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
3429 &quot;A String&quot;,
3430 ],
3431 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
3432 },
3433 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
3434 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
3435 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
3436 { # Column properties for TableCard.
3437 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
3438 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
3439 },
3440 ],
3441 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
3442 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
3443 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3444 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
3445 # e.g., screen readers.
3446 },
3447 &quot;rows&quot;: [ # Optional. Rows in this table of data.
3448 { # Row of TableCard.
3449 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
3450 { # Cell of TableCardRow.
3451 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
3452 },
3453 ],
3454 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
3455 },
3456 ],
3457 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
3458 { # The button object that appears at the bottom of a card.
3459 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
3460 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
3461 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
3462 },
3463 },
3464 ],
3465 },
3466 &quot;image&quot;: { # The image response message. # The image response.
3467 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3468 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
3469 # e.g., screen readers.
3470 },
3471 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
3472 &quot;mediaObjects&quot;: [ # Required. List of media objects.
3473 { # Response media object for media content card.
3474 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
3475 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3476 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
3477 # e.g., screen readers.
3478 },
3479 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
3480 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
3481 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3482 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
3483 # e.g., screen readers.
3484 },
3485 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
3486 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
3487 },
3488 ],
3489 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
3490 },
3491 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
3492 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
3493 &quot;items&quot;: [ # Required. List items.
3494 { # An item in the list.
3495 &quot;image&quot;: { # The image response message. # Optional. The image to display.
3496 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3497 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
3498 # e.g., screen readers.
3499 },
3500 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
3501 # dialog.
3502 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
3503 # item in dialog.
3504 &quot;A String&quot;,
3505 ],
3506 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
3507 # response is given.
3508 },
3509 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
3510 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
3511 },
3512 ],
3513 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
3514 },
3515 &quot;payload&quot;: { # A custom platform-specific response.
3516 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3517 },
3518 },
3519 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003520 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent.
3521 # If the collection of input contexts is not empty, all of the contexts must
3522 # be present in the active user session for an event to trigger this intent.
3523 # Event names are limited to 150 characters.
3524 &quot;A String&quot;,
3525 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003526 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent
3527 # is matched. Context messages in this collection should not set the
3528 # parameters field. Setting the `lifespan_count` to 0 will reset the context
3529 # when the intent is matched.
3530 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003531 { # Dialogflow contexts are similar to natural language context. If a person says
3532 # to you &quot;they are orange&quot;, you need context in order to understand what &quot;they&quot;
3533 # is referring to. Similarly, for Dialogflow to handle an end-user expression
3534 # like that, it needs to be provided with context in order to correctly match
3535 # an intent.
3536 #
3537 # Using contexts, you can control the flow of a conversation. You can configure
3538 # contexts for an intent by setting input and output contexts, which are
3539 # identified by string names. When an intent is matched, any configured output
3540 # contexts for that intent become active. While any contexts are active,
3541 # Dialogflow is more likely to match intents that are configured with input
3542 # contexts that correspond to the currently active contexts.
3543 #
3544 # For more information about context, see the
3545 # [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview).
Bu Sun Kim65020912020-05-20 12:08:20 -07003546 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
3547 #
3548 # Depending on your protocol or client library language, this is a
3549 # map, associative array, symbol table, dictionary, or JSON object
3550 # composed of a collection of (MapKey, MapValue) pairs:
3551 #
3552 # - MapKey type: string
3553 # - MapKey value: parameter name
3554 # - MapValue type:
3555 # - If parameter&#x27;s entity type is a composite entity: map
3556 # - Else: string or number, depending on parameter value type
3557 # - MapValue value:
3558 # - If parameter&#x27;s entity type is a composite entity:
3559 # map from composite entity property names to property values
3560 # - Else: parameter value
3561 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3562 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003563 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
3564 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
3565 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
3566 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
3567 #
3568 # The `Context ID` is always converted to lowercase, may only contain
3569 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
3570 #
3571 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
3572 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
3573 #
3574 # The following context names are reserved for internal use by Dialogflow.
3575 # You should not use these contexts or create contexts with these names:
3576 #
3577 # * `__system_counters__`
3578 # * `*_id_dialog_context`
3579 # * `*_dialog_params_size`
3580 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
3581 # context expires. The default is `0`. If set to `0`, the context expires
3582 # immediately. Contexts expire automatically after 20 minutes if there
3583 # are no matching queries.
Bu Sun Kim65020912020-05-20 12:08:20 -07003584 },
3585 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003586 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent.
3587 # Note: The action name must not contain whitespaces.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003588 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher
3589 # priorities.
3590 #
3591 # - If the supplied value is unspecified or 0, the service
3592 # translates the value to 500,000, which corresponds to the
3593 # `Normal` priority in the console.
3594 # - If the supplied value is negative, the intent is ignored
3595 # in runtime detect intent requests.
Bu Sun Kim65020912020-05-20 12:08:20 -07003596 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Read-only. The unique identifier of the root intent in the chain of
3597 # followup intents. It identifies the correct followup intents chain for
3598 # this intent. We populate this field only in the output.
3599 #
3600 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003601 &quot;followupIntentInfo&quot;: [ # Read-only. Information about all followup intents that have this intent as
3602 # a direct or indirect parent. We populate this field only in the output.
3603 { # Represents a single followup intent in the chain.
3604 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent.
3605 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
3606 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent.
3607 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
3608 },
3609 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003610 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003611 # trained on.
3612 { # Represents an example that the agent is trained on.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003613 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
3614 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to
3615 # the intent. Each time a developer adds an existing sample by editing an
3616 # intent or training, this counter is increased.
Bu Sun Kim65020912020-05-20 12:08:20 -07003617 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003618 # The parts are concatenated in order to form the training phrase.
3619 #
3620 # Note: The API does not automatically annotate training phrases like the
3621 # Dialogflow Console does.
3622 #
3623 # Note: Do not forget to include whitespace at part boundaries,
3624 # so the training phrase is well formatted when the parts are concatenated.
3625 #
3626 # If the training phrase does not need to be annotated with parameters,
3627 # you just need a single part with only the Part.text field set.
3628 #
3629 # If you want to annotate the training phrase, you must create multiple
3630 # parts, where the fields of each part are populated in one of two ways:
3631 #
3632 # - `Part.text` is set to a part of the phrase that has no parameters.
3633 # - `Part.text` is set to a part of the phrase that you want to annotate,
3634 # and the `entity_type`, `alias`, and `user_defined` fields are all
3635 # set.
3636 { # Represents a part of a training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07003637 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003638 # annotated part of the example.
3639 # This field is required for annotated parts of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07003640 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003641 # This field is set to true when the Dialogflow Console is used to
3642 # manually annotate the part. When creating an annotated part with the
3643 # API, you must set this to true.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003644 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
3645 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`.
3646 # This field is required for annotated parts of the training phrase.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003647 },
3648 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003649 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003650 },
3651 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003652 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be
3653 # triggered.
3654 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
3655 &quot;A String&quot;,
3656 ],
3657 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
3658 # Note: If `ml_disabled` setting is set to true, then this intent is not
3659 # taken into account during inference in `ML ONLY` match mode. Also,
3660 # auto-markup in the UI is turned off.
Bu Sun Kim65020912020-05-20 12:08:20 -07003661 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current
Dan O'Mearadd494642020-05-01 07:42:23 -07003662 # session when this intent is matched.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003663 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Read-only after creation. The unique identifier of the parent intent in the
3664 # chain of followup intents. You can set this field when creating an intent,
3665 # for example with CreateIntent or
3666 # BatchUpdateIntents, in order to make this
3667 # intent a followup intent.
3668 #
3669 # It identifies the parent followup intent.
3670 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
3671 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be
3672 # copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
3673 &quot;A String&quot;,
3674 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003675 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
3676 { # Represents intent parameters.
Bu Sun Kim65020912020-05-20 12:08:20 -07003677 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003678 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003679 # - a constant string,
3680 # - a parameter value defined as `$parameter_name`,
3681 # - an original parameter value defined as `$parameter_name.original`,
3682 # - a parameter value from some context defined as
3683 # `#context_name.parameter_name`.
3684 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003685 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is,
3686 # whether the intent cannot be completed without collecting the parameter
3687 # value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003688 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
3689 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that
3690 # describes values of the parameter. If the parameter is
3691 # required, this must be provided.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003692 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty
3693 # result.
3694 # Default values can be extracted from contexts by using the following
3695 # syntax: `#context_name.parameter_name`.
3696 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003697 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the
3698 # user in order to collect a value for the parameter.
3699 &quot;A String&quot;,
3700 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003701 },
3702 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003703 }</pre>
3704</div>
3705
3706</body></html>