blob: 012afa4a924aa0d2887cbb44e462560912891bac [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 Kim65020912020-05-20 12:08:20 -070084 <code><a href="#create">create(parent, body=None, intentView=None, languageCode=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070085<p class="firstline">Creates an intent in the specified agent.</p>
86<p class="toc_element">
87 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
88<p class="firstline">Deletes the specified intent and its direct or indirect followup intents.</p>
89<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070090 <code><a href="#get">get(name, intentView=None, languageCode=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070091<p class="firstline">Retrieves the specified intent.</p>
92<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070093 <code><a href="#list">list(parent, 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.
117 { # Represents an intent.
118 # Intents convert a number of user expressions or patterns into an action. An
119 # action is an extraction of a user command or sentence semantics.
Bu Sun Kim65020912020-05-20 12:08:20 -0700120 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent.
121 # If the collection of input contexts is not empty, all of the contexts must
122 # be present in the active user session for an event to trigger this intent.
123 # Event names are limited to 150 characters.
124 &quot;A String&quot;,
125 ],
126 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Read-only after creation. The unique identifier of the parent intent in the
127 # chain of followup intents. You can set this field when creating an intent,
128 # for example with CreateIntent or
129 # BatchUpdateIntents, in order to make this
130 # intent a followup intent.
131 #
132 # It identifies the parent followup intent.
133 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
134 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher
135 # priorities.
136 #
137 # - If the supplied value is unspecified or 0, the service
138 # translates the value to 500,000, which corresponds to the
139 # `Normal` priority in the console.
140 # - If the supplied value is negative, the intent is ignored
141 # in runtime detect intent requests.
142 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent
143 # is matched. Context messages in this collection should not set the
144 # parameters field. Setting the `lifespan_count` to 0 will reset the context
145 # when the intent is matched.
146 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
147 { # Represents a context.
148 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
149 # context expires. The default is `0`. If set to `0`, the context expires
150 # immediately. Contexts expire automatically after 20 minutes if there
151 # are no matching queries.
152 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
153 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
154 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
155 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
156 #
157 # The `Context ID` is always converted to lowercase, may only contain
158 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
159 #
160 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
161 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
162 #
163 # The following context names are reserved for internal use by Dialogflow.
164 # You should not use these contexts or create contexts with these names:
165 #
166 # * `__system_counters__`
167 # * `*_id_dialog_context`
168 # * `*_dialog_params_size`
169 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
170 #
171 # Depending on your protocol or client library language, this is a
172 # map, associative array, symbol table, dictionary, or JSON object
173 # composed of a collection of (MapKey, MapValue) pairs:
174 #
175 # - MapKey type: string
176 # - MapKey value: parameter name
177 # - MapValue type:
178 # - If parameter&#x27;s entity type is a composite entity: map
179 # - Else: string or number, depending on parameter value type
180 # - MapValue value:
181 # - If parameter&#x27;s entity type is a composite entity:
182 # map from composite entity property names to property values
183 # - Else: parameter value
184 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
185 },
186 },
187 ],
188 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be
189 # copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
190 &quot;A String&quot;,
191 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700192 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent.
193 # Note: The action name must not contain whitespaces.
194 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent.
195 # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
196 # methods.
197 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700198 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the
199 # `Response` field in the Dialogflow console.
200 { # A rich response message.
201 # Corresponds to the intent `Response` field in the Dialogflow console.
202 # For more information, see
203 # [Rich response
204 # messages](https://cloud.google.com/dialogflow/docs/intents-rich-messages).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700205 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
206 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
207 &quot;mediaObjects&quot;: [ # Required. List of media objects.
208 { # Response media object for media content card.
209 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
210 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
211 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
212 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
213 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
214 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
215 # e.g., screen readers.
216 },
217 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
218 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
219 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
220 # e.g., screen readers.
221 },
222 },
223 ],
224 },
225 &quot;image&quot;: { # The image response message. # The image response.
226 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
227 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
228 # e.g., screen readers.
229 },
230 &quot;payload&quot;: { # A custom platform-specific response.
231 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
232 },
233 &quot;text&quot;: { # The text response message. # The text response.
234 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
235 &quot;A String&quot;,
236 ],
237 },
238 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
239 &quot;suggestions&quot;: { # The collection of suggestions. # The suggestion chips for Actions on Google.
240 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
241 { # The suggestion chip message that the user can tap to quickly post a reply
242 # to the conversation.
243 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
244 },
245 ],
246 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700247 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
Bu Sun Kim65020912020-05-20 12:08:20 -0700248 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
249 &quot;items&quot;: [ # Required. List items.
250 { # An item in the list.
251 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
252 &quot;image&quot;: { # The image response message. # Optional. The image to display.
253 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
254 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
255 # e.g., screen readers.
256 },
257 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
258 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
259 # dialog.
260 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
261 # item in dialog.
262 &quot;A String&quot;,
263 ],
264 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
265 # response is given.
266 },
267 },
268 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700269 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
Bu Sun Kim65020912020-05-20 12:08:20 -0700270 },
271 &quot;quickReplies&quot;: { # The quick replies response message. # The quick replies response.
272 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
273 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
274 &quot;A String&quot;,
275 ],
276 },
277 &quot;card&quot;: { # The card response message. # The card response.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700278 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
Bu Sun Kim65020912020-05-20 12:08:20 -0700279 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
280 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
281 { # Contains information about a button.
282 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
283 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
284 # open.
285 },
286 ],
287 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
Bu Sun Kim65020912020-05-20 12:08:20 -0700288 },
289 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
290 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
291 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
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;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
297 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
298 { # The button object that appears at the bottom of a card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700299 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -0700300 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
301 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
302 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700303 },
304 ],
305 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
306 },
307 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
308 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
309 &quot;rows&quot;: [ # Optional. Rows in this table of data.
310 { # Row of TableCard.
311 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
312 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
313 { # Cell of TableCardRow.
314 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
315 },
316 ],
317 },
318 ],
319 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
320 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
321 { # Column properties for TableCard.
322 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
323 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
324 },
325 ],
326 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
327 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
328 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
329 # e.g., screen readers.
330 },
331 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
332 { # The button object that appears at the bottom of a card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700333 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -0700334 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
335 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
336 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700337 },
338 ],
339 },
340 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
341 &quot;items&quot;: [ # Required. Carousel items.
342 { # An item in the carousel.
Bu Sun Kim65020912020-05-20 12:08:20 -0700343 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
344 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
345 # dialog.
346 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
347 # item in dialog.
348 &quot;A String&quot;,
349 ],
350 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
351 # response is given.
352 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700353 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
354 &quot;image&quot;: { # The image response message. # Optional. The image to display.
355 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
356 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
357 # e.g., screen readers.
358 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700359 },
360 ],
361 },
362 &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.
363 # or website associated with this agent.
364 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
365 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
366 # suggestion chip.
367 },
368 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
369 # https://developers.google.com/actions/assistant/responses#browsing_carousel
370 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
371 # items, maximum of ten.
372 { # Browsing carousel tile
Bu Sun Kim65020912020-05-20 12:08:20 -0700373 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
374 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
375 # the URL. Defaults to opening via web browser.
376 &quot;url&quot;: &quot;A String&quot;, # Required. URL
377 },
378 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
379 # Card. Maximum of one line of text.
380 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
381 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
382 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
383 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
384 # e.g., screen readers.
385 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700386 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
387 # text.
Bu Sun Kim65020912020-05-20 12:08:20 -0700388 },
389 ],
390 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
391 # items.
392 },
393 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # The voice and text-only responses for Actions on Google.
394 # This message in `QueryResult.fulfillment_messages` and
395 # `WebhookResponse.fulfillment_messages` should contain only one
396 # `SimpleResponse`.
397 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
398 { # The simple response message containing speech or text.
Bu Sun Kim65020912020-05-20 12:08:20 -0700399 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
400 # speech output. Mutually exclusive with ssml.
401 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
402 # response to the user in the SSML format. Mutually exclusive with
403 # text_to_speech.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700404 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
Bu Sun Kim65020912020-05-20 12:08:20 -0700405 },
406 ],
407 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700408 },
409 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700410 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
Bu Sun Kim65020912020-05-20 12:08:20 -0700411 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be
412 # triggered.
413 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
414 &quot;A String&quot;,
415 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700416 &quot;followupIntentInfo&quot;: [ # Read-only. Information about all followup intents that have this intent as
417 # a direct or indirect parent. We populate this field only in the output.
418 { # Represents a single followup intent in the chain.
419 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent.
420 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
421 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent.
422 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700423 },
424 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700425 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Read-only. The unique identifier of the root intent in the chain of
426 # followup intents. It identifies the correct followup intents chain for
427 # this intent. We populate this field only in the output.
428 #
429 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700430 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
Bu Sun Kim65020912020-05-20 12:08:20 -0700431 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
432 # Note: If `ml_disabled` setting is set to true, then this intent is not
433 # taken into account during inference in `ML ONLY` match mode. Also,
434 # auto-markup in the UI is turned off.
435 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
436 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700437 # trained on.
438 { # Represents an example that the agent is trained on.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700439 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
440 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to
441 # the intent. Each time a developer adds an existing sample by editing an
442 # intent or training, this counter is increased.
443 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -0700444 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700445 # The parts are concatenated in order to form the training phrase.
446 #
447 # Note: The API does not automatically annotate training phrases like the
448 # Dialogflow Console does.
449 #
450 # Note: Do not forget to include whitespace at part boundaries,
451 # so the training phrase is well formatted when the parts are concatenated.
452 #
453 # If the training phrase does not need to be annotated with parameters,
454 # you just need a single part with only the Part.text field set.
455 #
456 # If you want to annotate the training phrase, you must create multiple
457 # parts, where the fields of each part are populated in one of two ways:
458 #
459 # - `Part.text` is set to a part of the phrase that has no parameters.
460 # - `Part.text` is set to a part of the phrase that you want to annotate,
461 # and the `entity_type`, `alias`, and `user_defined` fields are all
462 # set.
463 { # Represents a part of a training phrase.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700464 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
465 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`.
466 # This field is required for annotated parts of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -0700467 &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 -0700468 # annotated part of the example.
469 # This field is required for annotated parts of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -0700470 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700471 # This field is set to true when the Dialogflow Console is used to
472 # manually annotate the part. When creating an annotated part with the
473 # API, you must set this to true.
474 },
475 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700476 },
477 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700478 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current
Dan O'Mearadd494642020-05-01 07:42:23 -0700479 # session when this intent is matched.
Bu Sun Kim65020912020-05-20 12:08:20 -0700480 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
481 { # Represents intent parameters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700482 &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 -0700483 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700484 # - a constant string,
485 # - a parameter value defined as `$parameter_name`,
486 # - an original parameter value defined as `$parameter_name.original`,
487 # - a parameter value from some context defined as
488 # `#context_name.parameter_name`.
489 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
490 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that
491 # describes values of the parameter. If the parameter is
492 # required, this must be provided.
493 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the
494 # user in order to collect a value for the parameter.
495 &quot;A String&quot;,
496 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700497 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is,
498 # whether the intent cannot be completed without collecting the parameter
499 # value.
500 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty
501 # result.
502 # Default values can be extracted from contexts by using the following
503 # syntax: `#context_name.parameter_name`.
504 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
505 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700506 },
507 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700508 },
509 ],
510 }
511
512 x__xgafv: string, V1 error format.
513 Allowed values
514 1 - v1 error format
515 2 - v2 error format
516
517Returns:
518 An object of the form:
519
520 { # This resource represents a long-running operation that is the result of a
521 # network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -0700522 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Dan O'Mearadd494642020-05-01 07:42:23 -0700523 # method returns no data on success, such as `Delete`, the response is
524 # `google.protobuf.Empty`. If the original method is standard
525 # `Get`/`Create`/`Update`, the response should be the resource. For other
526 # methods, the response should have the type `XxxResponse`, where `Xxx`
527 # is the original method name. For example, if the original method name
528 # is `TakeSnapshot()`, the inferred response type is
529 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700530 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700531 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700532 &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 -0700533 # originally returns it. If you use the default HTTP mapping, the
534 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700535 &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 -0700536 # different programming environments, including REST APIs and RPC APIs. It is
537 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
538 # three pieces of data: error code, error message, and error details.
539 #
540 # You can find out more about this error model and how to work with it in the
541 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim65020912020-05-20 12:08:20 -0700542 &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 -0700543 # message types for APIs to use.
544 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700545 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700546 },
547 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700548 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
549 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
550 # user-facing error message should be localized and sent in the
551 # google.rpc.Status.details field, or localized by the client.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700552 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700553 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
554 # contains progress information and common metadata such as create time.
555 # Some services might not provide such metadata. Any method that returns a
556 # long-running operation should document the metadata type, if any.
557 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
558 },
559 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
560 # If `true`, the operation is completed, and either `error` or `response` is
561 # available.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700562 }</pre>
563</div>
564
565<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700566 <code class="details" id="batchUpdate">batchUpdate(parent, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700567 <pre>Updates/Creates multiple intents in the specified agent.
568
Dan O'Mearadd494642020-05-01 07:42:23 -0700569Operation &lt;response: BatchUpdateIntentsResponse&gt;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700570
571Args:
572 parent: string, Required. The name of the agent to update or create intents in.
Dan O'Mearadd494642020-05-01 07:42:23 -0700573Format: `projects/&lt;Project ID&gt;/agent`. (required)
574 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700575 The object takes the form of:
576
Dan O'Mearadd494642020-05-01 07:42:23 -0700577{
Bu Sun Kim65020912020-05-20 12:08:20 -0700578 &quot;intentBatchUri&quot;: &quot;A String&quot;, # The URI to a Google Cloud Storage file containing intents to update or
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700579 # create. The file format can either be a serialized proto (of IntentBatch
Bu Sun Kim65020912020-05-20 12:08:20 -0700580 # type) or JSON object. Note: The URI must start with &quot;gs://&quot;.
581 &quot;intentView&quot;: &quot;A String&quot;, # Optional. The resource view to apply to the returned intent.
582 &quot;intentBatchInline&quot;: { # This message is a wrapper around a collection of intents. # The collection of intents to update or create.
583 &quot;intents&quot;: [ # A collection of intents.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700584 { # Represents an intent.
585 # Intents convert a number of user expressions or patterns into an action. An
586 # action is an extraction of a user command or sentence semantics.
Bu Sun Kim65020912020-05-20 12:08:20 -0700587 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent.
588 # If the collection of input contexts is not empty, all of the contexts must
589 # be present in the active user session for an event to trigger this intent.
590 # Event names are limited to 150 characters.
591 &quot;A String&quot;,
592 ],
593 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Read-only after creation. The unique identifier of the parent intent in the
594 # chain of followup intents. You can set this field when creating an intent,
595 # for example with CreateIntent or
596 # BatchUpdateIntents, in order to make this
597 # intent a followup intent.
598 #
599 # It identifies the parent followup intent.
600 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
601 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher
602 # priorities.
603 #
604 # - If the supplied value is unspecified or 0, the service
605 # translates the value to 500,000, which corresponds to the
606 # `Normal` priority in the console.
607 # - If the supplied value is negative, the intent is ignored
608 # in runtime detect intent requests.
609 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent
610 # is matched. Context messages in this collection should not set the
611 # parameters field. Setting the `lifespan_count` to 0 will reset the context
612 # when the intent is matched.
613 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
614 { # Represents a context.
615 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
616 # context expires. The default is `0`. If set to `0`, the context expires
617 # immediately. Contexts expire automatically after 20 minutes if there
618 # are no matching queries.
619 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
620 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
621 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
622 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
623 #
624 # The `Context ID` is always converted to lowercase, may only contain
625 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
626 #
627 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
628 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
629 #
630 # The following context names are reserved for internal use by Dialogflow.
631 # You should not use these contexts or create contexts with these names:
632 #
633 # * `__system_counters__`
634 # * `*_id_dialog_context`
635 # * `*_dialog_params_size`
636 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
637 #
638 # Depending on your protocol or client library language, this is a
639 # map, associative array, symbol table, dictionary, or JSON object
640 # composed of a collection of (MapKey, MapValue) pairs:
641 #
642 # - MapKey type: string
643 # - MapKey value: parameter name
644 # - MapValue type:
645 # - If parameter&#x27;s entity type is a composite entity: map
646 # - Else: string or number, depending on parameter value type
647 # - MapValue value:
648 # - If parameter&#x27;s entity type is a composite entity:
649 # map from composite entity property names to property values
650 # - Else: parameter value
651 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
652 },
653 },
654 ],
655 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be
656 # copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
657 &quot;A String&quot;,
658 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700659 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent.
660 # Note: The action name must not contain whitespaces.
661 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent.
662 # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
663 # methods.
664 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700665 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the
666 # `Response` field in the Dialogflow console.
667 { # A rich response message.
668 # Corresponds to the intent `Response` field in the Dialogflow console.
669 # For more information, see
670 # [Rich response
671 # messages](https://cloud.google.com/dialogflow/docs/intents-rich-messages).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700672 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
673 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
674 &quot;mediaObjects&quot;: [ # Required. List of media objects.
675 { # Response media object for media content card.
676 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
677 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
678 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
679 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
680 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
681 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
682 # e.g., screen readers.
683 },
684 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
685 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
686 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
687 # e.g., screen readers.
688 },
689 },
690 ],
691 },
692 &quot;image&quot;: { # The image response message. # The image response.
693 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
694 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
695 # e.g., screen readers.
696 },
697 &quot;payload&quot;: { # A custom platform-specific response.
698 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
699 },
700 &quot;text&quot;: { # The text response message. # The text response.
701 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
702 &quot;A String&quot;,
703 ],
704 },
705 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
706 &quot;suggestions&quot;: { # The collection of suggestions. # The suggestion chips for Actions on Google.
707 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
708 { # The suggestion chip message that the user can tap to quickly post a reply
709 # to the conversation.
710 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
711 },
712 ],
713 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700714 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
Bu Sun Kim65020912020-05-20 12:08:20 -0700715 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
716 &quot;items&quot;: [ # Required. List items.
717 { # An item in the list.
718 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
719 &quot;image&quot;: { # The image response message. # Optional. The image to display.
720 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
721 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
722 # e.g., screen readers.
723 },
724 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
725 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
726 # dialog.
727 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
728 # item in dialog.
729 &quot;A String&quot;,
730 ],
731 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
732 # response is given.
733 },
734 },
735 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700736 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
Bu Sun Kim65020912020-05-20 12:08:20 -0700737 },
738 &quot;quickReplies&quot;: { # The quick replies response message. # The quick replies response.
739 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
740 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
741 &quot;A String&quot;,
742 ],
743 },
744 &quot;card&quot;: { # The card response message. # The card response.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700745 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
Bu Sun Kim65020912020-05-20 12:08:20 -0700746 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
747 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
748 { # Contains information about a button.
749 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
750 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
751 # open.
752 },
753 ],
754 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
Bu Sun Kim65020912020-05-20 12:08:20 -0700755 },
756 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
757 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
758 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
759 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
760 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
761 # e.g., screen readers.
762 },
763 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
764 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
765 { # The button object that appears at the bottom of a card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700766 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -0700767 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
768 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
769 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700770 },
771 ],
772 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
773 },
774 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
775 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
776 &quot;rows&quot;: [ # Optional. Rows in this table of data.
777 { # Row of TableCard.
778 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
779 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
780 { # Cell of TableCardRow.
781 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
782 },
783 ],
784 },
785 ],
786 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
787 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
788 { # Column properties for TableCard.
789 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
790 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
791 },
792 ],
793 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
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;buttons&quot;: [ # Optional. List of buttons for the card.
799 { # The button object that appears at the bottom of a card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700800 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -0700801 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
802 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
803 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700804 },
805 ],
806 },
807 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
808 &quot;items&quot;: [ # Required. Carousel items.
809 { # An item in the carousel.
Bu Sun Kim65020912020-05-20 12:08:20 -0700810 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
811 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
812 # dialog.
813 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
814 # item in dialog.
815 &quot;A String&quot;,
816 ],
817 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
818 # response is given.
819 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700820 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
821 &quot;image&quot;: { # The image response message. # Optional. The image to display.
822 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
823 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
824 # e.g., screen readers.
825 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700826 },
827 ],
828 },
829 &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.
830 # or website associated with this agent.
831 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
832 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
833 # suggestion chip.
834 },
835 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
836 # https://developers.google.com/actions/assistant/responses#browsing_carousel
837 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
838 # items, maximum of ten.
839 { # Browsing carousel tile
Bu Sun Kim65020912020-05-20 12:08:20 -0700840 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
841 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
842 # the URL. Defaults to opening via web browser.
843 &quot;url&quot;: &quot;A String&quot;, # Required. URL
844 },
845 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
846 # Card. Maximum of one line of text.
847 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
848 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
849 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
850 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
851 # e.g., screen readers.
852 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700853 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
854 # text.
Bu Sun Kim65020912020-05-20 12:08:20 -0700855 },
856 ],
857 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
858 # items.
859 },
860 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # The voice and text-only responses for Actions on Google.
861 # This message in `QueryResult.fulfillment_messages` and
862 # `WebhookResponse.fulfillment_messages` should contain only one
863 # `SimpleResponse`.
864 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
865 { # The simple response message containing speech or text.
Bu Sun Kim65020912020-05-20 12:08:20 -0700866 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
867 # speech output. Mutually exclusive with ssml.
868 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
869 # response to the user in the SSML format. Mutually exclusive with
870 # text_to_speech.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700871 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
Bu Sun Kim65020912020-05-20 12:08:20 -0700872 },
873 ],
874 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700875 },
876 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700877 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
Bu Sun Kim65020912020-05-20 12:08:20 -0700878 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be
879 # triggered.
880 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
881 &quot;A String&quot;,
882 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700883 &quot;followupIntentInfo&quot;: [ # Read-only. Information about all followup intents that have this intent as
884 # a direct or indirect parent. We populate this field only in the output.
885 { # Represents a single followup intent in the chain.
886 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent.
887 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
888 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent.
889 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700890 },
891 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700892 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Read-only. The unique identifier of the root intent in the chain of
893 # followup intents. It identifies the correct followup intents chain for
894 # this intent. We populate this field only in the output.
895 #
896 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700897 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
Bu Sun Kim65020912020-05-20 12:08:20 -0700898 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
899 # Note: If `ml_disabled` setting is set to true, then this intent is not
900 # taken into account during inference in `ML ONLY` match mode. Also,
901 # auto-markup in the UI is turned off.
902 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
903 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700904 # trained on.
905 { # Represents an example that the agent is trained on.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700906 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
907 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to
908 # the intent. Each time a developer adds an existing sample by editing an
909 # intent or training, this counter is increased.
910 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -0700911 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700912 # The parts are concatenated in order to form the training phrase.
913 #
914 # Note: The API does not automatically annotate training phrases like the
915 # Dialogflow Console does.
916 #
917 # Note: Do not forget to include whitespace at part boundaries,
918 # so the training phrase is well formatted when the parts are concatenated.
919 #
920 # If the training phrase does not need to be annotated with parameters,
921 # you just need a single part with only the Part.text field set.
922 #
923 # If you want to annotate the training phrase, you must create multiple
924 # parts, where the fields of each part are populated in one of two ways:
925 #
926 # - `Part.text` is set to a part of the phrase that has no parameters.
927 # - `Part.text` is set to a part of the phrase that you want to annotate,
928 # and the `entity_type`, `alias`, and `user_defined` fields are all
929 # set.
930 { # Represents a part of a training phrase.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700931 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
932 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`.
933 # This field is required for annotated parts of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -0700934 &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 -0700935 # annotated part of the example.
936 # This field is required for annotated parts of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -0700937 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700938 # This field is set to true when the Dialogflow Console is used to
939 # manually annotate the part. When creating an annotated part with the
940 # API, you must set this to true.
941 },
942 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700943 },
944 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700945 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current
Dan O'Mearadd494642020-05-01 07:42:23 -0700946 # session when this intent is matched.
Bu Sun Kim65020912020-05-20 12:08:20 -0700947 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
948 { # Represents intent parameters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700949 &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 -0700950 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700951 # - a constant string,
952 # - a parameter value defined as `$parameter_name`,
953 # - an original parameter value defined as `$parameter_name.original`,
954 # - a parameter value from some context defined as
955 # `#context_name.parameter_name`.
956 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
957 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that
958 # describes values of the parameter. If the parameter is
959 # required, this must be provided.
960 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the
961 # user in order to collect a value for the parameter.
962 &quot;A String&quot;,
963 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700964 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is,
965 # whether the intent cannot be completed without collecting the parameter
966 # value.
967 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty
968 # result.
969 # Default values can be extracted from contexts by using the following
970 # syntax: `#context_name.parameter_name`.
971 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
972 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700973 },
974 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700975 },
976 ],
977 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700978 &quot;languageCode&quot;: &quot;A String&quot;, # Optional. The language used to access language-specific data.
979 # If not specified, the agent&#x27;s default language is used.
980 # For more information, see
981 # [Multilingual intent and entity
982 # data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
983 &quot;updateMask&quot;: &quot;A String&quot;, # Optional. The mask to control which fields get updated.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700984 }
985
986 x__xgafv: string, V1 error format.
987 Allowed values
988 1 - v1 error format
989 2 - v2 error format
990
991Returns:
992 An object of the form:
993
994 { # This resource represents a long-running operation that is the result of a
995 # network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -0700996 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Dan O'Mearadd494642020-05-01 07:42:23 -0700997 # method returns no data on success, such as `Delete`, the response is
998 # `google.protobuf.Empty`. If the original method is standard
999 # `Get`/`Create`/`Update`, the response should be the resource. For other
1000 # methods, the response should have the type `XxxResponse`, where `Xxx`
1001 # is the original method name. For example, if the original method name
1002 # is `TakeSnapshot()`, the inferred response type is
1003 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001004 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -07001005 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001006 &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 -07001007 # originally returns it. If you use the default HTTP mapping, the
1008 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001009 &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 -07001010 # different programming environments, including REST APIs and RPC APIs. It is
1011 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1012 # three pieces of data: error code, error message, and error details.
1013 #
1014 # You can find out more about this error model and how to work with it in the
1015 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim65020912020-05-20 12:08:20 -07001016 &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 -07001017 # message types for APIs to use.
1018 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001019 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001020 },
1021 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001022 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1023 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1024 # user-facing error message should be localized and sent in the
1025 # google.rpc.Status.details field, or localized by the client.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001026 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001027 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
1028 # contains progress information and common metadata such as create time.
1029 # Some services might not provide such metadata. Any method that returns a
1030 # long-running operation should document the metadata type, if any.
1031 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1032 },
1033 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
1034 # If `true`, the operation is completed, and either `error` or `response` is
1035 # available.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001036 }</pre>
1037</div>
1038
1039<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -07001040 <code class="details" id="create">create(parent, body=None, intentView=None, languageCode=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001041 <pre>Creates an intent in the specified agent.
1042
1043Args:
1044 parent: string, Required. The agent to create a intent for.
Dan O'Mearadd494642020-05-01 07:42:23 -07001045Format: `projects/&lt;Project ID&gt;/agent`. (required)
1046 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001047 The object takes the form of:
1048
1049{ # Represents an intent.
1050 # Intents convert a number of user expressions or patterns into an action. An
1051 # action is an extraction of a user command or sentence semantics.
Bu Sun Kim65020912020-05-20 12:08:20 -07001052 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent.
1053 # If the collection of input contexts is not empty, all of the contexts must
1054 # be present in the active user session for an event to trigger this intent.
1055 # Event names are limited to 150 characters.
1056 &quot;A String&quot;,
1057 ],
1058 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Read-only after creation. The unique identifier of the parent intent in the
1059 # chain of followup intents. You can set this field when creating an intent,
1060 # for example with CreateIntent or
1061 # BatchUpdateIntents, in order to make this
1062 # intent a followup intent.
1063 #
1064 # It identifies the parent followup intent.
1065 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
1066 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher
1067 # priorities.
1068 #
1069 # - If the supplied value is unspecified or 0, the service
1070 # translates the value to 500,000, which corresponds to the
1071 # `Normal` priority in the console.
1072 # - If the supplied value is negative, the intent is ignored
1073 # in runtime detect intent requests.
1074 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent
1075 # is matched. Context messages in this collection should not set the
1076 # parameters field. Setting the `lifespan_count` to 0 will reset the context
1077 # when the intent is matched.
1078 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
1079 { # Represents a context.
1080 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
1081 # context expires. The default is `0`. If set to `0`, the context expires
1082 # immediately. Contexts expire automatically after 20 minutes if there
1083 # are no matching queries.
1084 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
1085 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
1086 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
1087 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
1088 #
1089 # The `Context ID` is always converted to lowercase, may only contain
1090 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
1091 #
1092 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
1093 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
1094 #
1095 # The following context names are reserved for internal use by Dialogflow.
1096 # You should not use these contexts or create contexts with these names:
1097 #
1098 # * `__system_counters__`
1099 # * `*_id_dialog_context`
1100 # * `*_dialog_params_size`
1101 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
1102 #
1103 # Depending on your protocol or client library language, this is a
1104 # map, associative array, symbol table, dictionary, or JSON object
1105 # composed of a collection of (MapKey, MapValue) pairs:
1106 #
1107 # - MapKey type: string
1108 # - MapKey value: parameter name
1109 # - MapValue type:
1110 # - If parameter&#x27;s entity type is a composite entity: map
1111 # - Else: string or number, depending on parameter value type
1112 # - MapValue value:
1113 # - If parameter&#x27;s entity type is a composite entity:
1114 # map from composite entity property names to property values
1115 # - Else: parameter value
1116 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1117 },
1118 },
1119 ],
1120 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be
1121 # copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
1122 &quot;A String&quot;,
1123 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001124 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent.
1125 # Note: The action name must not contain whitespaces.
1126 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent.
1127 # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
1128 # methods.
1129 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001130 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the
1131 # `Response` field in the Dialogflow console.
1132 { # A rich response message.
1133 # Corresponds to the intent `Response` field in the Dialogflow console.
1134 # For more information, see
1135 # [Rich response
1136 # messages](https://cloud.google.com/dialogflow/docs/intents-rich-messages).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001137 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
1138 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
1139 &quot;mediaObjects&quot;: [ # Required. List of media objects.
1140 { # Response media object for media content card.
1141 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
1142 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
1143 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
1144 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
1145 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1146 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
1147 # e.g., screen readers.
1148 },
1149 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
1150 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1151 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
1152 # e.g., screen readers.
1153 },
1154 },
1155 ],
1156 },
1157 &quot;image&quot;: { # The image response message. # The image response.
1158 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1159 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
1160 # e.g., screen readers.
1161 },
1162 &quot;payload&quot;: { # A custom platform-specific response.
1163 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1164 },
1165 &quot;text&quot;: { # The text response message. # The text response.
1166 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
1167 &quot;A String&quot;,
1168 ],
1169 },
1170 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
1171 &quot;suggestions&quot;: { # The collection of suggestions. # The suggestion chips for Actions on Google.
1172 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
1173 { # The suggestion chip message that the user can tap to quickly post a reply
1174 # to the conversation.
1175 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
1176 },
1177 ],
1178 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001179 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
Bu Sun Kim65020912020-05-20 12:08:20 -07001180 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
1181 &quot;items&quot;: [ # Required. List items.
1182 { # An item in the list.
1183 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
1184 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1185 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1186 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
1187 # e.g., screen readers.
1188 },
1189 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
1190 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
1191 # dialog.
1192 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
1193 # item in dialog.
1194 &quot;A String&quot;,
1195 ],
1196 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
1197 # response is given.
1198 },
1199 },
1200 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001201 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
Bu Sun Kim65020912020-05-20 12:08:20 -07001202 },
1203 &quot;quickReplies&quot;: { # The quick replies response message. # The quick replies response.
1204 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
1205 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
1206 &quot;A String&quot;,
1207 ],
1208 },
1209 &quot;card&quot;: { # The card response message. # The card response.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001210 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07001211 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1212 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1213 { # Contains information about a button.
1214 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
1215 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
1216 # open.
1217 },
1218 ],
1219 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07001220 },
1221 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
1222 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1223 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
1224 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1225 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
1226 # e.g., screen readers.
1227 },
1228 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
1229 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1230 { # The button object that appears at the bottom of a card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001231 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -07001232 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1233 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1234 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001235 },
1236 ],
1237 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1238 },
1239 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
1240 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
1241 &quot;rows&quot;: [ # Optional. Rows in this table of data.
1242 { # Row of TableCard.
1243 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
1244 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
1245 { # Cell of TableCardRow.
1246 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
1247 },
1248 ],
1249 },
1250 ],
1251 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
1252 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
1253 { # Column properties for TableCard.
1254 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
1255 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
1256 },
1257 ],
1258 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
1259 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1260 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
1261 # e.g., screen readers.
1262 },
1263 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
1264 { # The button object that appears at the bottom of a card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001265 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -07001266 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1267 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1268 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001269 },
1270 ],
1271 },
1272 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
1273 &quot;items&quot;: [ # Required. Carousel items.
1274 { # An item in the carousel.
Bu Sun Kim65020912020-05-20 12:08:20 -07001275 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
1276 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
1277 # dialog.
1278 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
1279 # item in dialog.
1280 &quot;A String&quot;,
1281 ],
1282 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
1283 # response is given.
1284 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001285 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
1286 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1287 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1288 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
1289 # e.g., screen readers.
1290 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001291 },
1292 ],
1293 },
1294 &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.
1295 # or website associated with this agent.
1296 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
1297 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
1298 # suggestion chip.
1299 },
1300 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
1301 # https://developers.google.com/actions/assistant/responses#browsing_carousel
1302 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
1303 # items, maximum of ten.
1304 { # Browsing carousel tile
Bu Sun Kim65020912020-05-20 12:08:20 -07001305 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
1306 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
1307 # the URL. Defaults to opening via web browser.
1308 &quot;url&quot;: &quot;A String&quot;, # Required. URL
1309 },
1310 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
1311 # Card. Maximum of one line of text.
1312 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
1313 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
1314 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1315 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
1316 # e.g., screen readers.
1317 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001318 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
1319 # text.
Bu Sun Kim65020912020-05-20 12:08:20 -07001320 },
1321 ],
1322 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
1323 # items.
1324 },
1325 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # The voice and text-only responses for Actions on Google.
1326 # This message in `QueryResult.fulfillment_messages` and
1327 # `WebhookResponse.fulfillment_messages` should contain only one
1328 # `SimpleResponse`.
1329 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
1330 { # The simple response message containing speech or text.
Bu Sun Kim65020912020-05-20 12:08:20 -07001331 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
1332 # speech output. Mutually exclusive with ssml.
1333 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
1334 # response to the user in the SSML format. Mutually exclusive with
1335 # text_to_speech.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001336 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
Bu Sun Kim65020912020-05-20 12:08:20 -07001337 },
1338 ],
1339 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001340 },
1341 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001342 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
Bu Sun Kim65020912020-05-20 12:08:20 -07001343 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be
1344 # triggered.
1345 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
1346 &quot;A String&quot;,
1347 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001348 &quot;followupIntentInfo&quot;: [ # Read-only. Information about all followup intents that have this intent as
1349 # a direct or indirect parent. We populate this field only in the output.
1350 { # Represents a single followup intent in the chain.
1351 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent.
1352 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
1353 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent.
1354 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001355 },
1356 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001357 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Read-only. The unique identifier of the root intent in the chain of
1358 # followup intents. It identifies the correct followup intents chain for
1359 # this intent. We populate this field only in the output.
1360 #
1361 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001362 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
Bu Sun Kim65020912020-05-20 12:08:20 -07001363 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
1364 # Note: If `ml_disabled` setting is set to true, then this intent is not
1365 # taken into account during inference in `ML ONLY` match mode. Also,
1366 # auto-markup in the UI is turned off.
1367 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
1368 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001369 # trained on.
1370 { # Represents an example that the agent is trained on.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001371 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
1372 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to
1373 # the intent. Each time a developer adds an existing sample by editing an
1374 # intent or training, this counter is increased.
1375 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07001376 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001377 # The parts are concatenated in order to form the training phrase.
1378 #
1379 # Note: The API does not automatically annotate training phrases like the
1380 # Dialogflow Console does.
1381 #
1382 # Note: Do not forget to include whitespace at part boundaries,
1383 # so the training phrase is well formatted when the parts are concatenated.
1384 #
1385 # If the training phrase does not need to be annotated with parameters,
1386 # you just need a single part with only the Part.text field set.
1387 #
1388 # If you want to annotate the training phrase, you must create multiple
1389 # parts, where the fields of each part are populated in one of two ways:
1390 #
1391 # - `Part.text` is set to a part of the phrase that has no parameters.
1392 # - `Part.text` is set to a part of the phrase that you want to annotate,
1393 # and the `entity_type`, `alias`, and `user_defined` fields are all
1394 # set.
1395 { # Represents a part of a training phrase.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001396 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
1397 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`.
1398 # This field is required for annotated parts of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07001399 &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 -07001400 # annotated part of the example.
1401 # This field is required for annotated parts of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07001402 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001403 # This field is set to true when the Dialogflow Console is used to
1404 # manually annotate the part. When creating an annotated part with the
1405 # API, you must set this to true.
1406 },
1407 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001408 },
1409 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001410 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current
Dan O'Mearadd494642020-05-01 07:42:23 -07001411 # session when this intent is matched.
Bu Sun Kim65020912020-05-20 12:08:20 -07001412 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
1413 { # Represents intent parameters.
Bu Sun Kim65020912020-05-20 12:08:20 -07001414 &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 -07001415 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001416 # - a constant string,
1417 # - a parameter value defined as `$parameter_name`,
1418 # - an original parameter value defined as `$parameter_name.original`,
1419 # - a parameter value from some context defined as
1420 # `#context_name.parameter_name`.
1421 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
1422 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that
1423 # describes values of the parameter. If the parameter is
1424 # required, this must be provided.
1425 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the
1426 # user in order to collect a value for the parameter.
1427 &quot;A String&quot;,
1428 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001429 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is,
1430 # whether the intent cannot be completed without collecting the parameter
1431 # value.
1432 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty
1433 # result.
1434 # Default values can be extracted from contexts by using the following
1435 # syntax: `#context_name.parameter_name`.
1436 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
1437 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001438 },
1439 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001440}
1441
Bu Sun Kim65020912020-05-20 12:08:20 -07001442 intentView: string, Optional. The resource view to apply to the returned intent.
Dan O'Mearadd494642020-05-01 07:42:23 -07001443 languageCode: string, Optional. The language used to access language-specific data.
Bu Sun Kim65020912020-05-20 12:08:20 -07001444If not specified, the agent&#x27;s default language is used.
Dan O'Mearadd494642020-05-01 07:42:23 -07001445For more information, see
1446[Multilingual intent and entity
1447data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001448 x__xgafv: string, V1 error format.
1449 Allowed values
1450 1 - v1 error format
1451 2 - v2 error format
1452
1453Returns:
1454 An object of the form:
1455
1456 { # Represents an intent.
1457 # Intents convert a number of user expressions or patterns into an action. An
1458 # action is an extraction of a user command or sentence semantics.
Bu Sun Kim65020912020-05-20 12:08:20 -07001459 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent.
1460 # If the collection of input contexts is not empty, all of the contexts must
1461 # be present in the active user session for an event to trigger this intent.
1462 # Event names are limited to 150 characters.
1463 &quot;A String&quot;,
1464 ],
1465 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Read-only after creation. The unique identifier of the parent intent in the
1466 # chain of followup intents. You can set this field when creating an intent,
1467 # for example with CreateIntent or
1468 # BatchUpdateIntents, in order to make this
1469 # intent a followup intent.
1470 #
1471 # It identifies the parent followup intent.
1472 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
1473 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher
1474 # priorities.
1475 #
1476 # - If the supplied value is unspecified or 0, the service
1477 # translates the value to 500,000, which corresponds to the
1478 # `Normal` priority in the console.
1479 # - If the supplied value is negative, the intent is ignored
1480 # in runtime detect intent requests.
1481 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent
1482 # is matched. Context messages in this collection should not set the
1483 # parameters field. Setting the `lifespan_count` to 0 will reset the context
1484 # when the intent is matched.
1485 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
1486 { # Represents a context.
1487 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
1488 # context expires. The default is `0`. If set to `0`, the context expires
1489 # immediately. Contexts expire automatically after 20 minutes if there
1490 # are no matching queries.
1491 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
1492 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
1493 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
1494 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
1495 #
1496 # The `Context ID` is always converted to lowercase, may only contain
1497 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
1498 #
1499 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
1500 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
1501 #
1502 # The following context names are reserved for internal use by Dialogflow.
1503 # You should not use these contexts or create contexts with these names:
1504 #
1505 # * `__system_counters__`
1506 # * `*_id_dialog_context`
1507 # * `*_dialog_params_size`
1508 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
1509 #
1510 # Depending on your protocol or client library language, this is a
1511 # map, associative array, symbol table, dictionary, or JSON object
1512 # composed of a collection of (MapKey, MapValue) pairs:
1513 #
1514 # - MapKey type: string
1515 # - MapKey value: parameter name
1516 # - MapValue type:
1517 # - If parameter&#x27;s entity type is a composite entity: map
1518 # - Else: string or number, depending on parameter value type
1519 # - MapValue value:
1520 # - If parameter&#x27;s entity type is a composite entity:
1521 # map from composite entity property names to property values
1522 # - Else: parameter value
1523 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1524 },
1525 },
1526 ],
1527 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be
1528 # copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
1529 &quot;A String&quot;,
1530 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001531 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent.
1532 # Note: The action name must not contain whitespaces.
1533 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent.
1534 # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
1535 # methods.
1536 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001537 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the
1538 # `Response` field in the Dialogflow console.
1539 { # A rich response message.
1540 # Corresponds to the intent `Response` field in the Dialogflow console.
1541 # For more information, see
1542 # [Rich response
1543 # messages](https://cloud.google.com/dialogflow/docs/intents-rich-messages).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001544 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
1545 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
1546 &quot;mediaObjects&quot;: [ # Required. List of media objects.
1547 { # Response media object for media content card.
1548 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
1549 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
1550 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
1551 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
1552 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1553 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
1554 # e.g., screen readers.
1555 },
1556 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
1557 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1558 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
1559 # e.g., screen readers.
1560 },
1561 },
1562 ],
1563 },
1564 &quot;image&quot;: { # The image response message. # The image response.
1565 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1566 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
1567 # e.g., screen readers.
1568 },
1569 &quot;payload&quot;: { # A custom platform-specific response.
1570 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1571 },
1572 &quot;text&quot;: { # The text response message. # The text response.
1573 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
1574 &quot;A String&quot;,
1575 ],
1576 },
1577 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
1578 &quot;suggestions&quot;: { # The collection of suggestions. # The suggestion chips for Actions on Google.
1579 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
1580 { # The suggestion chip message that the user can tap to quickly post a reply
1581 # to the conversation.
1582 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
1583 },
1584 ],
1585 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001586 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
Bu Sun Kim65020912020-05-20 12:08:20 -07001587 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
1588 &quot;items&quot;: [ # Required. List items.
1589 { # An item in the list.
1590 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
1591 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1592 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1593 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
1594 # e.g., screen readers.
1595 },
1596 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
1597 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
1598 # dialog.
1599 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
1600 # item in dialog.
1601 &quot;A String&quot;,
1602 ],
1603 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
1604 # response is given.
1605 },
1606 },
1607 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001608 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
Bu Sun Kim65020912020-05-20 12:08:20 -07001609 },
1610 &quot;quickReplies&quot;: { # The quick replies response message. # The quick replies response.
1611 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
1612 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
1613 &quot;A String&quot;,
1614 ],
1615 },
1616 &quot;card&quot;: { # The card response message. # The card response.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001617 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07001618 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1619 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1620 { # Contains information about a button.
1621 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
1622 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
1623 # open.
1624 },
1625 ],
1626 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07001627 },
1628 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
1629 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1630 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
1631 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1632 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
1633 # e.g., screen readers.
1634 },
1635 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
1636 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1637 { # The button object that appears at the bottom of a card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001638 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -07001639 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1640 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1641 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001642 },
1643 ],
1644 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1645 },
1646 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
1647 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
1648 &quot;rows&quot;: [ # Optional. Rows in this table of data.
1649 { # Row of TableCard.
1650 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
1651 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
1652 { # Cell of TableCardRow.
1653 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
1654 },
1655 ],
1656 },
1657 ],
1658 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
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;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
1666 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1667 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
1668 # e.g., screen readers.
1669 },
1670 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
1671 { # The button object that appears at the bottom of a card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001672 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -07001673 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1674 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1675 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001676 },
1677 ],
1678 },
1679 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
1680 &quot;items&quot;: [ # Required. Carousel items.
1681 { # An item in the carousel.
Bu Sun Kim65020912020-05-20 12:08:20 -07001682 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
1683 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
1684 # dialog.
1685 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
1686 # item in dialog.
1687 &quot;A String&quot;,
1688 ],
1689 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
1690 # response is given.
1691 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001692 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
1693 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1694 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1695 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
1696 # e.g., screen readers.
1697 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001698 },
1699 ],
1700 },
1701 &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.
1702 # or website associated with this agent.
1703 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
1704 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
1705 # suggestion chip.
1706 },
1707 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
1708 # https://developers.google.com/actions/assistant/responses#browsing_carousel
1709 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
1710 # items, maximum of ten.
1711 { # Browsing carousel tile
Bu Sun Kim65020912020-05-20 12:08:20 -07001712 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
1713 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
1714 # the URL. Defaults to opening via web browser.
1715 &quot;url&quot;: &quot;A String&quot;, # Required. URL
1716 },
1717 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
1718 # Card. Maximum of one line of text.
1719 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
1720 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
1721 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1722 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
1723 # e.g., screen readers.
1724 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001725 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
1726 # text.
Bu Sun Kim65020912020-05-20 12:08:20 -07001727 },
1728 ],
1729 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
1730 # items.
1731 },
1732 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # The voice and text-only responses for Actions on Google.
1733 # This message in `QueryResult.fulfillment_messages` and
1734 # `WebhookResponse.fulfillment_messages` should contain only one
1735 # `SimpleResponse`.
1736 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
1737 { # The simple response message containing speech or text.
Bu Sun Kim65020912020-05-20 12:08:20 -07001738 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
1739 # speech output. Mutually exclusive with ssml.
1740 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
1741 # response to the user in the SSML format. Mutually exclusive with
1742 # text_to_speech.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001743 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
Bu Sun Kim65020912020-05-20 12:08:20 -07001744 },
1745 ],
1746 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001747 },
1748 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001749 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
Bu Sun Kim65020912020-05-20 12:08:20 -07001750 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be
1751 # triggered.
1752 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
1753 &quot;A String&quot;,
1754 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001755 &quot;followupIntentInfo&quot;: [ # Read-only. Information about all followup intents that have this intent as
1756 # a direct or indirect parent. We populate this field only in the output.
1757 { # Represents a single followup intent in the chain.
1758 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent.
1759 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
1760 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent.
1761 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001762 },
1763 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001764 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Read-only. The unique identifier of the root intent in the chain of
1765 # followup intents. It identifies the correct followup intents chain for
1766 # this intent. We populate this field only in the output.
1767 #
1768 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001769 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
Bu Sun Kim65020912020-05-20 12:08:20 -07001770 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
1771 # Note: If `ml_disabled` setting is set to true, then this intent is not
1772 # taken into account during inference in `ML ONLY` match mode. Also,
1773 # auto-markup in the UI is turned off.
1774 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
1775 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001776 # trained on.
1777 { # Represents an example that the agent is trained on.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001778 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
1779 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to
1780 # the intent. Each time a developer adds an existing sample by editing an
1781 # intent or training, this counter is increased.
1782 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07001783 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001784 # The parts are concatenated in order to form the training phrase.
1785 #
1786 # Note: The API does not automatically annotate training phrases like the
1787 # Dialogflow Console does.
1788 #
1789 # Note: Do not forget to include whitespace at part boundaries,
1790 # so the training phrase is well formatted when the parts are concatenated.
1791 #
1792 # If the training phrase does not need to be annotated with parameters,
1793 # you just need a single part with only the Part.text field set.
1794 #
1795 # If you want to annotate the training phrase, you must create multiple
1796 # parts, where the fields of each part are populated in one of two ways:
1797 #
1798 # - `Part.text` is set to a part of the phrase that has no parameters.
1799 # - `Part.text` is set to a part of the phrase that you want to annotate,
1800 # and the `entity_type`, `alias`, and `user_defined` fields are all
1801 # set.
1802 { # Represents a part of a training phrase.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001803 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
1804 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`.
1805 # This field is required for annotated parts of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07001806 &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 -07001807 # annotated part of the example.
1808 # This field is required for annotated parts of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07001809 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001810 # This field is set to true when the Dialogflow Console is used to
1811 # manually annotate the part. When creating an annotated part with the
1812 # API, you must set this to true.
1813 },
1814 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001815 },
1816 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001817 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current
Dan O'Mearadd494642020-05-01 07:42:23 -07001818 # session when this intent is matched.
Bu Sun Kim65020912020-05-20 12:08:20 -07001819 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
1820 { # Represents intent parameters.
Bu Sun Kim65020912020-05-20 12:08:20 -07001821 &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 -07001822 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001823 # - a constant string,
1824 # - a parameter value defined as `$parameter_name`,
1825 # - an original parameter value defined as `$parameter_name.original`,
1826 # - a parameter value from some context defined as
1827 # `#context_name.parameter_name`.
1828 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
1829 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that
1830 # describes values of the parameter. If the parameter is
1831 # required, this must be provided.
1832 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the
1833 # user in order to collect a value for the parameter.
1834 &quot;A String&quot;,
1835 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001836 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is,
1837 # whether the intent cannot be completed without collecting the parameter
1838 # value.
1839 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty
1840 # result.
1841 # Default values can be extracted from contexts by using the following
1842 # syntax: `#context_name.parameter_name`.
1843 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
1844 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001845 },
1846 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001847 }</pre>
1848</div>
1849
1850<div class="method">
1851 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
1852 <pre>Deletes the specified intent and its direct or indirect followup intents.
1853
1854Args:
1855 name: string, Required. The name of the intent to delete. If this intent has direct or
1856indirect followup intents, we also delete them.
Dan O'Mearadd494642020-05-01 07:42:23 -07001857Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001858 x__xgafv: string, V1 error format.
1859 Allowed values
1860 1 - v1 error format
1861 2 - v2 error format
1862
1863Returns:
1864 An object of the form:
1865
1866 { # A generic empty message that you can re-use to avoid defining duplicated
1867 # empty messages in your APIs. A typical example is to use it as the request
1868 # or the response type of an API method. For instance:
1869 #
1870 # service Foo {
1871 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
1872 # }
1873 #
1874 # The JSON representation for `Empty` is empty JSON object `{}`.
1875 }</pre>
1876</div>
1877
1878<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -07001879 <code class="details" id="get">get(name, intentView=None, languageCode=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001880 <pre>Retrieves the specified intent.
1881
1882Args:
1883 name: string, Required. The name of the intent.
Dan O'Mearadd494642020-05-01 07:42:23 -07001884Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`. (required)
Bu Sun Kim65020912020-05-20 12:08:20 -07001885 intentView: string, Optional. The resource view to apply to the returned intent.
Dan O'Mearadd494642020-05-01 07:42:23 -07001886 languageCode: string, Optional. The language used to access language-specific data.
Bu Sun Kim65020912020-05-20 12:08:20 -07001887If not specified, the agent&#x27;s default language is used.
Dan O'Mearadd494642020-05-01 07:42:23 -07001888For more information, see
1889[Multilingual intent and entity
1890data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001891 x__xgafv: string, V1 error format.
1892 Allowed values
1893 1 - v1 error format
1894 2 - v2 error format
1895
1896Returns:
1897 An object of the form:
1898
1899 { # Represents an intent.
1900 # Intents convert a number of user expressions or patterns into an action. An
1901 # action is an extraction of a user command or sentence semantics.
Bu Sun Kim65020912020-05-20 12:08:20 -07001902 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent.
1903 # If the collection of input contexts is not empty, all of the contexts must
1904 # be present in the active user session for an event to trigger this intent.
1905 # Event names are limited to 150 characters.
1906 &quot;A String&quot;,
1907 ],
1908 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Read-only after creation. The unique identifier of the parent intent in the
1909 # chain of followup intents. You can set this field when creating an intent,
1910 # for example with CreateIntent or
1911 # BatchUpdateIntents, in order to make this
1912 # intent a followup intent.
1913 #
1914 # It identifies the parent followup intent.
1915 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
1916 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher
1917 # priorities.
1918 #
1919 # - If the supplied value is unspecified or 0, the service
1920 # translates the value to 500,000, which corresponds to the
1921 # `Normal` priority in the console.
1922 # - If the supplied value is negative, the intent is ignored
1923 # in runtime detect intent requests.
1924 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent
1925 # is matched. Context messages in this collection should not set the
1926 # parameters field. Setting the `lifespan_count` to 0 will reset the context
1927 # when the intent is matched.
1928 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
1929 { # Represents a context.
1930 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
1931 # context expires. The default is `0`. If set to `0`, the context expires
1932 # immediately. Contexts expire automatically after 20 minutes if there
1933 # are no matching queries.
1934 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
1935 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
1936 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
1937 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
1938 #
1939 # The `Context ID` is always converted to lowercase, may only contain
1940 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
1941 #
1942 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
1943 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
1944 #
1945 # The following context names are reserved for internal use by Dialogflow.
1946 # You should not use these contexts or create contexts with these names:
1947 #
1948 # * `__system_counters__`
1949 # * `*_id_dialog_context`
1950 # * `*_dialog_params_size`
1951 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
1952 #
1953 # Depending on your protocol or client library language, this is a
1954 # map, associative array, symbol table, dictionary, or JSON object
1955 # composed of a collection of (MapKey, MapValue) pairs:
1956 #
1957 # - MapKey type: string
1958 # - MapKey value: parameter name
1959 # - MapValue type:
1960 # - If parameter&#x27;s entity type is a composite entity: map
1961 # - Else: string or number, depending on parameter value type
1962 # - MapValue value:
1963 # - If parameter&#x27;s entity type is a composite entity:
1964 # map from composite entity property names to property values
1965 # - Else: parameter value
1966 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1967 },
1968 },
1969 ],
1970 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be
1971 # copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
1972 &quot;A String&quot;,
1973 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001974 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent.
1975 # Note: The action name must not contain whitespaces.
1976 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent.
1977 # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
1978 # methods.
1979 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001980 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the
1981 # `Response` field in the Dialogflow console.
1982 { # A rich response message.
1983 # Corresponds to the intent `Response` field in the Dialogflow console.
1984 # For more information, see
1985 # [Rich response
1986 # messages](https://cloud.google.com/dialogflow/docs/intents-rich-messages).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001987 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
1988 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
1989 &quot;mediaObjects&quot;: [ # Required. List of media objects.
1990 { # Response media object for media content card.
1991 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
1992 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
1993 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
1994 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
1995 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1996 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
1997 # e.g., screen readers.
1998 },
1999 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
2000 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2001 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
2002 # e.g., screen readers.
2003 },
2004 },
2005 ],
2006 },
2007 &quot;image&quot;: { # The image response message. # The image response.
2008 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2009 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
2010 # e.g., screen readers.
2011 },
2012 &quot;payload&quot;: { # A custom platform-specific response.
2013 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2014 },
2015 &quot;text&quot;: { # The text response message. # The text response.
2016 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
2017 &quot;A String&quot;,
2018 ],
2019 },
2020 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
2021 &quot;suggestions&quot;: { # The collection of suggestions. # The suggestion chips for Actions on Google.
2022 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
2023 { # The suggestion chip message that the user can tap to quickly post a reply
2024 # to the conversation.
2025 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
2026 },
2027 ],
2028 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002029 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
Bu Sun Kim65020912020-05-20 12:08:20 -07002030 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
2031 &quot;items&quot;: [ # Required. List items.
2032 { # An item in the list.
2033 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
2034 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2035 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2036 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
2037 # e.g., screen readers.
2038 },
2039 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
2040 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
2041 # dialog.
2042 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
2043 # item in dialog.
2044 &quot;A String&quot;,
2045 ],
2046 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
2047 # response is given.
2048 },
2049 },
2050 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002051 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
Bu Sun Kim65020912020-05-20 12:08:20 -07002052 },
2053 &quot;quickReplies&quot;: { # The quick replies response message. # The quick replies response.
2054 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
2055 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
2056 &quot;A String&quot;,
2057 ],
2058 },
2059 &quot;card&quot;: { # The card response message. # The card response.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002060 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07002061 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
2062 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2063 { # Contains information about a button.
2064 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
2065 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
2066 # open.
2067 },
2068 ],
2069 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07002070 },
2071 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
2072 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
2073 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
2074 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2075 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
2076 # e.g., screen readers.
2077 },
2078 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
2079 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2080 { # The button object that appears at the bottom of a card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002081 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -07002082 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2083 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2084 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002085 },
2086 ],
2087 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2088 },
2089 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
2090 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
2091 &quot;rows&quot;: [ # Optional. Rows in this table of data.
2092 { # Row of TableCard.
2093 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
2094 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
2095 { # Cell of TableCardRow.
2096 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
2097 },
2098 ],
2099 },
2100 ],
2101 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
2102 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
2103 { # Column properties for TableCard.
2104 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
2105 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
2106 },
2107 ],
2108 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
2109 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2110 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
2111 # e.g., screen readers.
2112 },
2113 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
2114 { # The button object that appears at the bottom of a card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002115 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -07002116 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2117 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2118 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002119 },
2120 ],
2121 },
2122 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
2123 &quot;items&quot;: [ # Required. Carousel items.
2124 { # An item in the carousel.
Bu Sun Kim65020912020-05-20 12:08:20 -07002125 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
2126 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
2127 # dialog.
2128 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
2129 # item in dialog.
2130 &quot;A String&quot;,
2131 ],
2132 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
2133 # response is given.
2134 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002135 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
2136 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2137 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2138 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
2139 # e.g., screen readers.
2140 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002141 },
2142 ],
2143 },
2144 &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.
2145 # or website associated with this agent.
2146 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
2147 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
2148 # suggestion chip.
2149 },
2150 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
2151 # https://developers.google.com/actions/assistant/responses#browsing_carousel
2152 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
2153 # items, maximum of ten.
2154 { # Browsing carousel tile
Bu Sun Kim65020912020-05-20 12:08:20 -07002155 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
2156 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
2157 # the URL. Defaults to opening via web browser.
2158 &quot;url&quot;: &quot;A String&quot;, # Required. URL
2159 },
2160 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
2161 # Card. Maximum of one line of text.
2162 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
2163 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
2164 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2165 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
2166 # e.g., screen readers.
2167 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002168 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
2169 # text.
Bu Sun Kim65020912020-05-20 12:08:20 -07002170 },
2171 ],
2172 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
2173 # items.
2174 },
2175 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # The voice and text-only responses for Actions on Google.
2176 # This message in `QueryResult.fulfillment_messages` and
2177 # `WebhookResponse.fulfillment_messages` should contain only one
2178 # `SimpleResponse`.
2179 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
2180 { # The simple response message containing speech or text.
Bu Sun Kim65020912020-05-20 12:08:20 -07002181 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
2182 # speech output. Mutually exclusive with ssml.
2183 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
2184 # response to the user in the SSML format. Mutually exclusive with
2185 # text_to_speech.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002186 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
Bu Sun Kim65020912020-05-20 12:08:20 -07002187 },
2188 ],
2189 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002190 },
2191 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002192 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
Bu Sun Kim65020912020-05-20 12:08:20 -07002193 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be
2194 # triggered.
2195 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
2196 &quot;A String&quot;,
2197 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002198 &quot;followupIntentInfo&quot;: [ # Read-only. Information about all followup intents that have this intent as
2199 # a direct or indirect parent. We populate this field only in the output.
2200 { # Represents a single followup intent in the chain.
2201 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent.
2202 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
2203 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent.
2204 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002205 },
2206 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002207 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Read-only. The unique identifier of the root intent in the chain of
2208 # followup intents. It identifies the correct followup intents chain for
2209 # this intent. We populate this field only in the output.
2210 #
2211 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002212 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
Bu Sun Kim65020912020-05-20 12:08:20 -07002213 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
2214 # Note: If `ml_disabled` setting is set to true, then this intent is not
2215 # taken into account during inference in `ML ONLY` match mode. Also,
2216 # auto-markup in the UI is turned off.
2217 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
2218 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002219 # trained on.
2220 { # Represents an example that the agent is trained on.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002221 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
2222 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to
2223 # the intent. Each time a developer adds an existing sample by editing an
2224 # intent or training, this counter is increased.
2225 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07002226 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002227 # The parts are concatenated in order to form the training phrase.
2228 #
2229 # Note: The API does not automatically annotate training phrases like the
2230 # Dialogflow Console does.
2231 #
2232 # Note: Do not forget to include whitespace at part boundaries,
2233 # so the training phrase is well formatted when the parts are concatenated.
2234 #
2235 # If the training phrase does not need to be annotated with parameters,
2236 # you just need a single part with only the Part.text field set.
2237 #
2238 # If you want to annotate the training phrase, you must create multiple
2239 # parts, where the fields of each part are populated in one of two ways:
2240 #
2241 # - `Part.text` is set to a part of the phrase that has no parameters.
2242 # - `Part.text` is set to a part of the phrase that you want to annotate,
2243 # and the `entity_type`, `alias`, and `user_defined` fields are all
2244 # set.
2245 { # Represents a part of a training phrase.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002246 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
2247 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`.
2248 # This field is required for annotated parts of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07002249 &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 -07002250 # annotated part of the example.
2251 # This field is required for annotated parts of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07002252 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002253 # This field is set to true when the Dialogflow Console is used to
2254 # manually annotate the part. When creating an annotated part with the
2255 # API, you must set this to true.
2256 },
2257 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002258 },
2259 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002260 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current
Dan O'Mearadd494642020-05-01 07:42:23 -07002261 # session when this intent is matched.
Bu Sun Kim65020912020-05-20 12:08:20 -07002262 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
2263 { # Represents intent parameters.
Bu Sun Kim65020912020-05-20 12:08:20 -07002264 &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 -07002265 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002266 # - a constant string,
2267 # - a parameter value defined as `$parameter_name`,
2268 # - an original parameter value defined as `$parameter_name.original`,
2269 # - a parameter value from some context defined as
2270 # `#context_name.parameter_name`.
2271 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
2272 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that
2273 # describes values of the parameter. If the parameter is
2274 # required, this must be provided.
2275 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the
2276 # user in order to collect a value for the parameter.
2277 &quot;A String&quot;,
2278 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002279 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is,
2280 # whether the intent cannot be completed without collecting the parameter
2281 # value.
2282 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty
2283 # result.
2284 # Default values can be extracted from contexts by using the following
2285 # syntax: `#context_name.parameter_name`.
2286 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
2287 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002288 },
2289 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002290 }</pre>
2291</div>
2292
2293<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -07002294 <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 -07002295 <pre>Returns the list of all intents in the specified agent.
2296
2297Args:
2298 parent: string, Required. The agent to list all intents from.
Dan O'Mearadd494642020-05-01 07:42:23 -07002299Format: `projects/&lt;Project ID&gt;/agent`. (required)
Bu Sun Kim65020912020-05-20 12:08:20 -07002300 pageToken: string, Optional. The next_page_token value returned from a previous list request.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002301 pageSize: integer, Optional. The maximum number of items to return in a single page. By
2302default 100 and at most 1000.
2303 intentView: string, Optional. The resource view to apply to the returned intent.
Bu Sun Kim65020912020-05-20 12:08:20 -07002304 languageCode: string, Optional. The language used to access language-specific data.
2305If not specified, the agent&#x27;s default language is used.
2306For more information, see
2307[Multilingual intent and entity
2308data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002309 x__xgafv: string, V1 error format.
2310 Allowed values
2311 1 - v1 error format
2312 2 - v2 error format
2313
2314Returns:
2315 An object of the form:
2316
2317 { # The response message for Intents.ListIntents.
Bu Sun Kim65020912020-05-20 12:08:20 -07002318 &quot;intents&quot;: [ # The list of agent intents. There will be a maximum number of items
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002319 # returned based on the page_size field in the request.
2320 { # Represents an intent.
2321 # Intents convert a number of user expressions or patterns into an action. An
2322 # action is an extraction of a user command or sentence semantics.
Bu Sun Kim65020912020-05-20 12:08:20 -07002323 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent.
2324 # If the collection of input contexts is not empty, all of the contexts must
2325 # be present in the active user session for an event to trigger this intent.
2326 # Event names are limited to 150 characters.
2327 &quot;A String&quot;,
2328 ],
2329 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Read-only after creation. The unique identifier of the parent intent in the
2330 # chain of followup intents. You can set this field when creating an intent,
2331 # for example with CreateIntent or
2332 # BatchUpdateIntents, in order to make this
2333 # intent a followup intent.
2334 #
2335 # It identifies the parent followup intent.
2336 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
2337 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher
2338 # priorities.
2339 #
2340 # - If the supplied value is unspecified or 0, the service
2341 # translates the value to 500,000, which corresponds to the
2342 # `Normal` priority in the console.
2343 # - If the supplied value is negative, the intent is ignored
2344 # in runtime detect intent requests.
2345 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent
2346 # is matched. Context messages in this collection should not set the
2347 # parameters field. Setting the `lifespan_count` to 0 will reset the context
2348 # when the intent is matched.
2349 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
2350 { # Represents a context.
2351 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
2352 # context expires. The default is `0`. If set to `0`, the context expires
2353 # immediately. Contexts expire automatically after 20 minutes if there
2354 # are no matching queries.
2355 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
2356 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
2357 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
2358 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
2359 #
2360 # The `Context ID` is always converted to lowercase, may only contain
2361 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
2362 #
2363 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
2364 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
2365 #
2366 # The following context names are reserved for internal use by Dialogflow.
2367 # You should not use these contexts or create contexts with these names:
2368 #
2369 # * `__system_counters__`
2370 # * `*_id_dialog_context`
2371 # * `*_dialog_params_size`
2372 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
2373 #
2374 # Depending on your protocol or client library language, this is a
2375 # map, associative array, symbol table, dictionary, or JSON object
2376 # composed of a collection of (MapKey, MapValue) pairs:
2377 #
2378 # - MapKey type: string
2379 # - MapKey value: parameter name
2380 # - MapValue type:
2381 # - If parameter&#x27;s entity type is a composite entity: map
2382 # - Else: string or number, depending on parameter value type
2383 # - MapValue value:
2384 # - If parameter&#x27;s entity type is a composite entity:
2385 # map from composite entity property names to property values
2386 # - Else: parameter value
2387 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2388 },
2389 },
2390 ],
2391 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be
2392 # copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
2393 &quot;A String&quot;,
2394 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002395 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent.
2396 # Note: The action name must not contain whitespaces.
2397 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent.
2398 # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
2399 # methods.
2400 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002401 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the
2402 # `Response` field in the Dialogflow console.
2403 { # A rich response message.
2404 # Corresponds to the intent `Response` field in the Dialogflow console.
2405 # For more information, see
2406 # [Rich response
2407 # messages](https://cloud.google.com/dialogflow/docs/intents-rich-messages).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002408 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
2409 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
2410 &quot;mediaObjects&quot;: [ # Required. List of media objects.
2411 { # Response media object for media content card.
2412 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
2413 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
2414 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
2415 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
2416 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2417 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
2418 # e.g., screen readers.
2419 },
2420 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
2421 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2422 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
2423 # e.g., screen readers.
2424 },
2425 },
2426 ],
2427 },
2428 &quot;image&quot;: { # The image response message. # The image response.
2429 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2430 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
2431 # e.g., screen readers.
2432 },
2433 &quot;payload&quot;: { # A custom platform-specific response.
2434 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2435 },
2436 &quot;text&quot;: { # The text response message. # The text response.
2437 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
2438 &quot;A String&quot;,
2439 ],
2440 },
2441 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
2442 &quot;suggestions&quot;: { # The collection of suggestions. # The suggestion chips for Actions on Google.
2443 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
2444 { # The suggestion chip message that the user can tap to quickly post a reply
2445 # to the conversation.
2446 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
2447 },
2448 ],
2449 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002450 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
Bu Sun Kim65020912020-05-20 12:08:20 -07002451 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
2452 &quot;items&quot;: [ # Required. List items.
2453 { # An item in the list.
2454 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
2455 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2456 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2457 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
2458 # e.g., screen readers.
2459 },
2460 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
2461 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
2462 # dialog.
2463 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
2464 # item in dialog.
2465 &quot;A String&quot;,
2466 ],
2467 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
2468 # response is given.
2469 },
2470 },
2471 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002472 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
Bu Sun Kim65020912020-05-20 12:08:20 -07002473 },
2474 &quot;quickReplies&quot;: { # The quick replies response message. # The quick replies response.
2475 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
2476 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
2477 &quot;A String&quot;,
2478 ],
2479 },
2480 &quot;card&quot;: { # The card response message. # The card response.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002481 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07002482 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
2483 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2484 { # Contains information about a button.
2485 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
2486 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
2487 # open.
2488 },
2489 ],
2490 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07002491 },
2492 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
2493 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
2494 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
2495 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2496 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
2497 # e.g., screen readers.
2498 },
2499 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
2500 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2501 { # The button object that appears at the bottom of a card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002502 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -07002503 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2504 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2505 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002506 },
2507 ],
2508 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2509 },
2510 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
2511 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
2512 &quot;rows&quot;: [ # Optional. Rows in this table of data.
2513 { # Row of TableCard.
2514 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
2515 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
2516 { # Cell of TableCardRow.
2517 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
2518 },
2519 ],
2520 },
2521 ],
2522 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
2523 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
2524 { # Column properties for TableCard.
2525 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
2526 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
2527 },
2528 ],
2529 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
2530 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2531 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
2532 # e.g., screen readers.
2533 },
2534 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
2535 { # The button object that appears at the bottom of a card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002536 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -07002537 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2538 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2539 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002540 },
2541 ],
2542 },
2543 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
2544 &quot;items&quot;: [ # Required. Carousel items.
2545 { # An item in the carousel.
Bu Sun Kim65020912020-05-20 12:08:20 -07002546 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
2547 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
2548 # dialog.
2549 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
2550 # item in dialog.
2551 &quot;A String&quot;,
2552 ],
2553 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
2554 # response is given.
2555 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002556 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
2557 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2558 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2559 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
2560 # e.g., screen readers.
2561 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002562 },
2563 ],
2564 },
2565 &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.
2566 # or website associated with this agent.
2567 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
2568 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
2569 # suggestion chip.
2570 },
2571 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
2572 # https://developers.google.com/actions/assistant/responses#browsing_carousel
2573 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
2574 # items, maximum of ten.
2575 { # Browsing carousel tile
Bu Sun Kim65020912020-05-20 12:08:20 -07002576 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
2577 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
2578 # the URL. Defaults to opening via web browser.
2579 &quot;url&quot;: &quot;A String&quot;, # Required. URL
2580 },
2581 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
2582 # Card. Maximum of one line of text.
2583 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
2584 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
2585 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2586 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
2587 # e.g., screen readers.
2588 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002589 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
2590 # text.
Bu Sun Kim65020912020-05-20 12:08:20 -07002591 },
2592 ],
2593 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
2594 # items.
2595 },
2596 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # The voice and text-only responses for Actions on Google.
2597 # This message in `QueryResult.fulfillment_messages` and
2598 # `WebhookResponse.fulfillment_messages` should contain only one
2599 # `SimpleResponse`.
2600 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
2601 { # The simple response message containing speech or text.
Bu Sun Kim65020912020-05-20 12:08:20 -07002602 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
2603 # speech output. Mutually exclusive with ssml.
2604 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
2605 # response to the user in the SSML format. Mutually exclusive with
2606 # text_to_speech.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002607 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
Bu Sun Kim65020912020-05-20 12:08:20 -07002608 },
2609 ],
2610 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002611 },
2612 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002613 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
Bu Sun Kim65020912020-05-20 12:08:20 -07002614 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be
2615 # triggered.
2616 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
2617 &quot;A String&quot;,
2618 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002619 &quot;followupIntentInfo&quot;: [ # Read-only. Information about all followup intents that have this intent as
2620 # a direct or indirect parent. We populate this field only in the output.
2621 { # Represents a single followup intent in the chain.
2622 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent.
2623 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
2624 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent.
2625 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002626 },
2627 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002628 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Read-only. The unique identifier of the root intent in the chain of
2629 # followup intents. It identifies the correct followup intents chain for
2630 # this intent. We populate this field only in the output.
2631 #
2632 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002633 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
Bu Sun Kim65020912020-05-20 12:08:20 -07002634 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
2635 # Note: If `ml_disabled` setting is set to true, then this intent is not
2636 # taken into account during inference in `ML ONLY` match mode. Also,
2637 # auto-markup in the UI is turned off.
2638 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
2639 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002640 # trained on.
2641 { # Represents an example that the agent is trained on.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002642 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
2643 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to
2644 # the intent. Each time a developer adds an existing sample by editing an
2645 # intent or training, this counter is increased.
2646 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07002647 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002648 # The parts are concatenated in order to form the training phrase.
2649 #
2650 # Note: The API does not automatically annotate training phrases like the
2651 # Dialogflow Console does.
2652 #
2653 # Note: Do not forget to include whitespace at part boundaries,
2654 # so the training phrase is well formatted when the parts are concatenated.
2655 #
2656 # If the training phrase does not need to be annotated with parameters,
2657 # you just need a single part with only the Part.text field set.
2658 #
2659 # If you want to annotate the training phrase, you must create multiple
2660 # parts, where the fields of each part are populated in one of two ways:
2661 #
2662 # - `Part.text` is set to a part of the phrase that has no parameters.
2663 # - `Part.text` is set to a part of the phrase that you want to annotate,
2664 # and the `entity_type`, `alias`, and `user_defined` fields are all
2665 # set.
2666 { # Represents a part of a training phrase.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002667 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
2668 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`.
2669 # This field is required for annotated parts of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07002670 &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 -07002671 # annotated part of the example.
2672 # This field is required for annotated parts of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07002673 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002674 # This field is set to true when the Dialogflow Console is used to
2675 # manually annotate the part. When creating an annotated part with the
2676 # API, you must set this to true.
2677 },
2678 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002679 },
2680 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002681 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current
Dan O'Mearadd494642020-05-01 07:42:23 -07002682 # session when this intent is matched.
Bu Sun Kim65020912020-05-20 12:08:20 -07002683 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
2684 { # Represents intent parameters.
Bu Sun Kim65020912020-05-20 12:08:20 -07002685 &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 -07002686 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002687 # - a constant string,
2688 # - a parameter value defined as `$parameter_name`,
2689 # - an original parameter value defined as `$parameter_name.original`,
2690 # - a parameter value from some context defined as
2691 # `#context_name.parameter_name`.
2692 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
2693 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that
2694 # describes values of the parameter. If the parameter is
2695 # required, this must be provided.
2696 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the
2697 # user in order to collect a value for the parameter.
2698 &quot;A String&quot;,
2699 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002700 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is,
2701 # whether the intent cannot be completed without collecting the parameter
2702 # value.
2703 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty
2704 # result.
2705 # Default values can be extracted from contexts by using the following
2706 # syntax: `#context_name.parameter_name`.
2707 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
2708 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002709 },
2710 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002711 },
2712 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002713 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no
2714 # more results in the list.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002715 }</pre>
2716</div>
2717
2718<div class="method">
2719 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
2720 <pre>Retrieves the next page of results.
2721
2722Args:
2723 previous_request: The request for the previous page. (required)
2724 previous_response: The response from the request for the previous page. (required)
2725
2726Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07002727 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002728 page. Returns None if there are no more items in the collection.
2729 </pre>
2730</div>
2731
2732<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -07002733 <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 -07002734 <pre>Updates the specified intent.
2735
2736Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07002737 name: string, Optional. The unique identifier of this intent.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002738Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
2739methods.
Dan O'Mearadd494642020-05-01 07:42:23 -07002740Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`. (required)
2741 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002742 The object takes the form of:
2743
2744{ # Represents an intent.
2745 # Intents convert a number of user expressions or patterns into an action. An
2746 # action is an extraction of a user command or sentence semantics.
Bu Sun Kim65020912020-05-20 12:08:20 -07002747 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent.
2748 # If the collection of input contexts is not empty, all of the contexts must
2749 # be present in the active user session for an event to trigger this intent.
2750 # Event names are limited to 150 characters.
2751 &quot;A String&quot;,
2752 ],
2753 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Read-only after creation. The unique identifier of the parent intent in the
2754 # chain of followup intents. You can set this field when creating an intent,
2755 # for example with CreateIntent or
2756 # BatchUpdateIntents, in order to make this
2757 # intent a followup intent.
2758 #
2759 # It identifies the parent followup intent.
2760 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
2761 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher
2762 # priorities.
2763 #
2764 # - If the supplied value is unspecified or 0, the service
2765 # translates the value to 500,000, which corresponds to the
2766 # `Normal` priority in the console.
2767 # - If the supplied value is negative, the intent is ignored
2768 # in runtime detect intent requests.
2769 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent
2770 # is matched. Context messages in this collection should not set the
2771 # parameters field. Setting the `lifespan_count` to 0 will reset the context
2772 # when the intent is matched.
2773 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
2774 { # Represents a context.
2775 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
2776 # context expires. The default is `0`. If set to `0`, the context expires
2777 # immediately. Contexts expire automatically after 20 minutes if there
2778 # are no matching queries.
2779 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
2780 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
2781 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
2782 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
2783 #
2784 # The `Context ID` is always converted to lowercase, may only contain
2785 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
2786 #
2787 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
2788 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
2789 #
2790 # The following context names are reserved for internal use by Dialogflow.
2791 # You should not use these contexts or create contexts with these names:
2792 #
2793 # * `__system_counters__`
2794 # * `*_id_dialog_context`
2795 # * `*_dialog_params_size`
2796 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
2797 #
2798 # Depending on your protocol or client library language, this is a
2799 # map, associative array, symbol table, dictionary, or JSON object
2800 # composed of a collection of (MapKey, MapValue) pairs:
2801 #
2802 # - MapKey type: string
2803 # - MapKey value: parameter name
2804 # - MapValue type:
2805 # - If parameter&#x27;s entity type is a composite entity: map
2806 # - Else: string or number, depending on parameter value type
2807 # - MapValue value:
2808 # - If parameter&#x27;s entity type is a composite entity:
2809 # map from composite entity property names to property values
2810 # - Else: parameter value
2811 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2812 },
2813 },
2814 ],
2815 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be
2816 # copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
2817 &quot;A String&quot;,
2818 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002819 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent.
2820 # Note: The action name must not contain whitespaces.
2821 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent.
2822 # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
2823 # methods.
2824 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002825 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the
2826 # `Response` field in the Dialogflow console.
2827 { # A rich response message.
2828 # Corresponds to the intent `Response` field in the Dialogflow console.
2829 # For more information, see
2830 # [Rich response
2831 # messages](https://cloud.google.com/dialogflow/docs/intents-rich-messages).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002832 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
2833 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
2834 &quot;mediaObjects&quot;: [ # Required. List of media objects.
2835 { # Response media object for media content card.
2836 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
2837 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
2838 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
2839 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
2840 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2841 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
2842 # e.g., screen readers.
2843 },
2844 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
2845 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2846 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
2847 # e.g., screen readers.
2848 },
2849 },
2850 ],
2851 },
2852 &quot;image&quot;: { # The image response message. # The image response.
2853 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2854 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
2855 # e.g., screen readers.
2856 },
2857 &quot;payload&quot;: { # A custom platform-specific response.
2858 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2859 },
2860 &quot;text&quot;: { # The text response message. # The text response.
2861 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
2862 &quot;A String&quot;,
2863 ],
2864 },
2865 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
2866 &quot;suggestions&quot;: { # The collection of suggestions. # The suggestion chips for Actions on Google.
2867 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
2868 { # The suggestion chip message that the user can tap to quickly post a reply
2869 # to the conversation.
2870 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
2871 },
2872 ],
2873 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002874 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
Bu Sun Kim65020912020-05-20 12:08:20 -07002875 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
2876 &quot;items&quot;: [ # Required. List items.
2877 { # An item in the list.
2878 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
2879 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2880 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2881 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
2882 # e.g., screen readers.
2883 },
2884 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
2885 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
2886 # dialog.
2887 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
2888 # item in dialog.
2889 &quot;A String&quot;,
2890 ],
2891 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
2892 # response is given.
2893 },
2894 },
2895 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002896 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
Bu Sun Kim65020912020-05-20 12:08:20 -07002897 },
2898 &quot;quickReplies&quot;: { # The quick replies response message. # The quick replies response.
2899 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
2900 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
2901 &quot;A String&quot;,
2902 ],
2903 },
2904 &quot;card&quot;: { # The card response message. # The card response.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002905 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07002906 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
2907 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2908 { # Contains information about a button.
2909 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
2910 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
2911 # open.
2912 },
2913 ],
2914 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07002915 },
2916 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
2917 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
2918 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
2919 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2920 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
2921 # e.g., screen readers.
2922 },
2923 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
2924 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2925 { # The button object that appears at the bottom of a card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002926 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -07002927 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2928 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2929 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002930 },
2931 ],
2932 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2933 },
2934 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
2935 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
2936 &quot;rows&quot;: [ # Optional. Rows in this table of data.
2937 { # Row of TableCard.
2938 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
2939 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
2940 { # Cell of TableCardRow.
2941 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
2942 },
2943 ],
2944 },
2945 ],
2946 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
2947 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
2948 { # Column properties for TableCard.
2949 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
2950 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
2951 },
2952 ],
2953 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
2954 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2955 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
2956 # e.g., screen readers.
2957 },
2958 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
2959 { # The button object that appears at the bottom of a card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002960 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -07002961 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2962 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2963 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002964 },
2965 ],
2966 },
2967 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
2968 &quot;items&quot;: [ # Required. Carousel items.
2969 { # An item in the carousel.
Bu Sun Kim65020912020-05-20 12:08:20 -07002970 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
2971 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
2972 # dialog.
2973 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
2974 # item in dialog.
2975 &quot;A String&quot;,
2976 ],
2977 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
2978 # response is given.
2979 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002980 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
2981 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2982 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2983 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
2984 # e.g., screen readers.
2985 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002986 },
2987 ],
2988 },
2989 &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.
2990 # or website associated with this agent.
2991 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
2992 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
2993 # suggestion chip.
2994 },
2995 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
2996 # https://developers.google.com/actions/assistant/responses#browsing_carousel
2997 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
2998 # items, maximum of ten.
2999 { # Browsing carousel tile
Bu Sun Kim65020912020-05-20 12:08:20 -07003000 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
3001 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
3002 # the URL. Defaults to opening via web browser.
3003 &quot;url&quot;: &quot;A String&quot;, # Required. URL
3004 },
3005 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
3006 # Card. Maximum of one line of text.
3007 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
3008 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
3009 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3010 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
3011 # e.g., screen readers.
3012 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003013 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
3014 # text.
Bu Sun Kim65020912020-05-20 12:08:20 -07003015 },
3016 ],
3017 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
3018 # items.
3019 },
3020 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # The voice and text-only responses for Actions on Google.
3021 # This message in `QueryResult.fulfillment_messages` and
3022 # `WebhookResponse.fulfillment_messages` should contain only one
3023 # `SimpleResponse`.
3024 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
3025 { # The simple response message containing speech or text.
Bu Sun Kim65020912020-05-20 12:08:20 -07003026 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
3027 # speech output. Mutually exclusive with ssml.
3028 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
3029 # response to the user in the SSML format. Mutually exclusive with
3030 # text_to_speech.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003031 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
Bu Sun Kim65020912020-05-20 12:08:20 -07003032 },
3033 ],
3034 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003035 },
3036 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003037 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
Bu Sun Kim65020912020-05-20 12:08:20 -07003038 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be
3039 # triggered.
3040 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
3041 &quot;A String&quot;,
3042 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003043 &quot;followupIntentInfo&quot;: [ # Read-only. Information about all followup intents that have this intent as
3044 # a direct or indirect parent. We populate this field only in the output.
3045 { # Represents a single followup intent in the chain.
3046 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent.
3047 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
3048 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent.
3049 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003050 },
3051 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003052 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Read-only. The unique identifier of the root intent in the chain of
3053 # followup intents. It identifies the correct followup intents chain for
3054 # this intent. We populate this field only in the output.
3055 #
3056 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003057 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
Bu Sun Kim65020912020-05-20 12:08:20 -07003058 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
3059 # Note: If `ml_disabled` setting is set to true, then this intent is not
3060 # taken into account during inference in `ML ONLY` match mode. Also,
3061 # auto-markup in the UI is turned off.
3062 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
3063 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003064 # trained on.
3065 { # Represents an example that the agent is trained on.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003066 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
3067 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to
3068 # the intent. Each time a developer adds an existing sample by editing an
3069 # intent or training, this counter is increased.
3070 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07003071 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003072 # The parts are concatenated in order to form the training phrase.
3073 #
3074 # Note: The API does not automatically annotate training phrases like the
3075 # Dialogflow Console does.
3076 #
3077 # Note: Do not forget to include whitespace at part boundaries,
3078 # so the training phrase is well formatted when the parts are concatenated.
3079 #
3080 # If the training phrase does not need to be annotated with parameters,
3081 # you just need a single part with only the Part.text field set.
3082 #
3083 # If you want to annotate the training phrase, you must create multiple
3084 # parts, where the fields of each part are populated in one of two ways:
3085 #
3086 # - `Part.text` is set to a part of the phrase that has no parameters.
3087 # - `Part.text` is set to a part of the phrase that you want to annotate,
3088 # and the `entity_type`, `alias`, and `user_defined` fields are all
3089 # set.
3090 { # Represents a part of a training phrase.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003091 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
3092 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`.
3093 # This field is required for annotated parts of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07003094 &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 -07003095 # annotated part of the example.
3096 # This field is required for annotated parts of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07003097 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003098 # This field is set to true when the Dialogflow Console is used to
3099 # manually annotate the part. When creating an annotated part with the
3100 # API, you must set this to true.
3101 },
3102 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003103 },
3104 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003105 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current
Dan O'Mearadd494642020-05-01 07:42:23 -07003106 # session when this intent is matched.
Bu Sun Kim65020912020-05-20 12:08:20 -07003107 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
3108 { # Represents intent parameters.
Bu Sun Kim65020912020-05-20 12:08:20 -07003109 &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 -07003110 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003111 # - a constant string,
3112 # - a parameter value defined as `$parameter_name`,
3113 # - an original parameter value defined as `$parameter_name.original`,
3114 # - a parameter value from some context defined as
3115 # `#context_name.parameter_name`.
3116 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
3117 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that
3118 # describes values of the parameter. If the parameter is
3119 # required, this must be provided.
3120 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the
3121 # user in order to collect a value for the parameter.
3122 &quot;A String&quot;,
3123 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003124 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is,
3125 # whether the intent cannot be completed without collecting the parameter
3126 # value.
3127 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty
3128 # result.
3129 # Default values can be extracted from contexts by using the following
3130 # syntax: `#context_name.parameter_name`.
3131 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
3132 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003133 },
3134 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003135}
3136
Bu Sun Kim65020912020-05-20 12:08:20 -07003137 intentView: string, Optional. The resource view to apply to the returned intent.
Dan O'Mearadd494642020-05-01 07:42:23 -07003138 languageCode: string, Optional. The language used to access language-specific data.
Bu Sun Kim65020912020-05-20 12:08:20 -07003139If not specified, the agent&#x27;s default language is used.
Dan O'Mearadd494642020-05-01 07:42:23 -07003140For more information, see
3141[Multilingual intent and entity
3142data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003143 updateMask: string, Optional. The mask to control which fields get updated.
3144 x__xgafv: string, V1 error format.
3145 Allowed values
3146 1 - v1 error format
3147 2 - v2 error format
3148
3149Returns:
3150 An object of the form:
3151
3152 { # Represents an intent.
3153 # Intents convert a number of user expressions or patterns into an action. An
3154 # action is an extraction of a user command or sentence semantics.
Bu Sun Kim65020912020-05-20 12:08:20 -07003155 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent.
3156 # If the collection of input contexts is not empty, all of the contexts must
3157 # be present in the active user session for an event to trigger this intent.
3158 # Event names are limited to 150 characters.
3159 &quot;A String&quot;,
3160 ],
3161 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Read-only after creation. The unique identifier of the parent intent in the
3162 # chain of followup intents. You can set this field when creating an intent,
3163 # for example with CreateIntent or
3164 # BatchUpdateIntents, in order to make this
3165 # intent a followup intent.
3166 #
3167 # It identifies the parent followup intent.
3168 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
3169 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher
3170 # priorities.
3171 #
3172 # - If the supplied value is unspecified or 0, the service
3173 # translates the value to 500,000, which corresponds to the
3174 # `Normal` priority in the console.
3175 # - If the supplied value is negative, the intent is ignored
3176 # in runtime detect intent requests.
3177 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent
3178 # is matched. Context messages in this collection should not set the
3179 # parameters field. Setting the `lifespan_count` to 0 will reset the context
3180 # when the intent is matched.
3181 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
3182 { # Represents a context.
3183 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
3184 # context expires. The default is `0`. If set to `0`, the context expires
3185 # immediately. Contexts expire automatically after 20 minutes if there
3186 # are no matching queries.
3187 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
3188 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
3189 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
3190 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
3191 #
3192 # The `Context ID` is always converted to lowercase, may only contain
3193 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
3194 #
3195 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
3196 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
3197 #
3198 # The following context names are reserved for internal use by Dialogflow.
3199 # You should not use these contexts or create contexts with these names:
3200 #
3201 # * `__system_counters__`
3202 # * `*_id_dialog_context`
3203 # * `*_dialog_params_size`
3204 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
3205 #
3206 # Depending on your protocol or client library language, this is a
3207 # map, associative array, symbol table, dictionary, or JSON object
3208 # composed of a collection of (MapKey, MapValue) pairs:
3209 #
3210 # - MapKey type: string
3211 # - MapKey value: parameter name
3212 # - MapValue type:
3213 # - If parameter&#x27;s entity type is a composite entity: map
3214 # - Else: string or number, depending on parameter value type
3215 # - MapValue value:
3216 # - If parameter&#x27;s entity type is a composite entity:
3217 # map from composite entity property names to property values
3218 # - Else: parameter value
3219 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3220 },
3221 },
3222 ],
3223 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be
3224 # copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
3225 &quot;A String&quot;,
3226 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003227 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent.
3228 # Note: The action name must not contain whitespaces.
3229 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent.
3230 # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
3231 # methods.
3232 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003233 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the
3234 # `Response` field in the Dialogflow console.
3235 { # A rich response message.
3236 # Corresponds to the intent `Response` field in the Dialogflow console.
3237 # For more information, see
3238 # [Rich response
3239 # messages](https://cloud.google.com/dialogflow/docs/intents-rich-messages).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003240 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
3241 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
3242 &quot;mediaObjects&quot;: [ # Required. List of media objects.
3243 { # Response media object for media content card.
3244 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
3245 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
3246 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
3247 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
3248 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3249 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
3250 # e.g., screen readers.
3251 },
3252 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
3253 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3254 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
3255 # e.g., screen readers.
3256 },
3257 },
3258 ],
3259 },
3260 &quot;image&quot;: { # The image response message. # The image response.
3261 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3262 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
3263 # e.g., screen readers.
3264 },
3265 &quot;payload&quot;: { # A custom platform-specific response.
3266 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3267 },
3268 &quot;text&quot;: { # The text response message. # The text response.
3269 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
3270 &quot;A String&quot;,
3271 ],
3272 },
3273 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
3274 &quot;suggestions&quot;: { # The collection of suggestions. # The suggestion chips for Actions on Google.
3275 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
3276 { # The suggestion chip message that the user can tap to quickly post a reply
3277 # to the conversation.
3278 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
3279 },
3280 ],
3281 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003282 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
Bu Sun Kim65020912020-05-20 12:08:20 -07003283 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
3284 &quot;items&quot;: [ # Required. List items.
3285 { # An item in the list.
3286 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
3287 &quot;image&quot;: { # The image response message. # Optional. The image to display.
3288 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3289 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
3290 # e.g., screen readers.
3291 },
3292 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
3293 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
3294 # dialog.
3295 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
3296 # item in dialog.
3297 &quot;A String&quot;,
3298 ],
3299 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
3300 # response is given.
3301 },
3302 },
3303 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003304 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
Bu Sun Kim65020912020-05-20 12:08:20 -07003305 },
3306 &quot;quickReplies&quot;: { # The quick replies response message. # The quick replies response.
3307 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
3308 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
3309 &quot;A String&quot;,
3310 ],
3311 },
3312 &quot;card&quot;: { # The card response message. # The card response.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003313 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07003314 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
3315 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
3316 { # Contains information about a button.
3317 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
3318 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
3319 # open.
3320 },
3321 ],
3322 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07003323 },
3324 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
3325 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
3326 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
3327 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3328 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
3329 # e.g., screen readers.
3330 },
3331 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
3332 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
3333 { # The button object that appears at the bottom of a card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003334 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -07003335 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
3336 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
3337 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003338 },
3339 ],
3340 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
3341 },
3342 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
3343 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
3344 &quot;rows&quot;: [ # Optional. Rows in this table of data.
3345 { # Row of TableCard.
3346 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
3347 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
3348 { # Cell of TableCardRow.
3349 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
3350 },
3351 ],
3352 },
3353 ],
3354 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
3355 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
3356 { # Column properties for TableCard.
3357 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
3358 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
3359 },
3360 ],
3361 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
3362 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3363 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
3364 # e.g., screen readers.
3365 },
3366 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
3367 { # The button object that appears at the bottom of a card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003368 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -07003369 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
3370 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
3371 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003372 },
3373 ],
3374 },
3375 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
3376 &quot;items&quot;: [ # Required. Carousel items.
3377 { # An item in the carousel.
Bu Sun Kim65020912020-05-20 12:08:20 -07003378 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
3379 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
3380 # dialog.
3381 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
3382 # item in dialog.
3383 &quot;A String&quot;,
3384 ],
3385 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
3386 # response is given.
3387 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003388 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
3389 &quot;image&quot;: { # The image response message. # Optional. The image to display.
3390 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3391 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
3392 # e.g., screen readers.
3393 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003394 },
3395 ],
3396 },
3397 &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.
3398 # or website associated with this agent.
3399 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
3400 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
3401 # suggestion chip.
3402 },
3403 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
3404 # https://developers.google.com/actions/assistant/responses#browsing_carousel
3405 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
3406 # items, maximum of ten.
3407 { # Browsing carousel tile
Bu Sun Kim65020912020-05-20 12:08:20 -07003408 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
3409 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
3410 # the URL. Defaults to opening via web browser.
3411 &quot;url&quot;: &quot;A String&quot;, # Required. URL
3412 },
3413 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
3414 # Card. Maximum of one line of text.
3415 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
3416 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
3417 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3418 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility,
3419 # e.g., screen readers.
3420 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003421 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
3422 # text.
Bu Sun Kim65020912020-05-20 12:08:20 -07003423 },
3424 ],
3425 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
3426 # items.
3427 },
3428 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # The voice and text-only responses for Actions on Google.
3429 # This message in `QueryResult.fulfillment_messages` and
3430 # `WebhookResponse.fulfillment_messages` should contain only one
3431 # `SimpleResponse`.
3432 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
3433 { # The simple response message containing speech or text.
Bu Sun Kim65020912020-05-20 12:08:20 -07003434 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
3435 # speech output. Mutually exclusive with ssml.
3436 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
3437 # response to the user in the SSML format. Mutually exclusive with
3438 # text_to_speech.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003439 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
Bu Sun Kim65020912020-05-20 12:08:20 -07003440 },
3441 ],
3442 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003443 },
3444 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003445 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
Bu Sun Kim65020912020-05-20 12:08:20 -07003446 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be
3447 # triggered.
3448 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
3449 &quot;A String&quot;,
3450 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003451 &quot;followupIntentInfo&quot;: [ # Read-only. Information about all followup intents that have this intent as
3452 # a direct or indirect parent. We populate this field only in the output.
3453 { # Represents a single followup intent in the chain.
3454 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent.
3455 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
3456 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent.
3457 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003458 },
3459 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003460 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Read-only. The unique identifier of the root intent in the chain of
3461 # followup intents. It identifies the correct followup intents chain for
3462 # this intent. We populate this field only in the output.
3463 #
3464 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003465 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
Bu Sun Kim65020912020-05-20 12:08:20 -07003466 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
3467 # Note: If `ml_disabled` setting is set to true, then this intent is not
3468 # taken into account during inference in `ML ONLY` match mode. Also,
3469 # auto-markup in the UI is turned off.
3470 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
3471 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003472 # trained on.
3473 { # Represents an example that the agent is trained on.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003474 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
3475 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to
3476 # the intent. Each time a developer adds an existing sample by editing an
3477 # intent or training, this counter is increased.
3478 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07003479 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003480 # The parts are concatenated in order to form the training phrase.
3481 #
3482 # Note: The API does not automatically annotate training phrases like the
3483 # Dialogflow Console does.
3484 #
3485 # Note: Do not forget to include whitespace at part boundaries,
3486 # so the training phrase is well formatted when the parts are concatenated.
3487 #
3488 # If the training phrase does not need to be annotated with parameters,
3489 # you just need a single part with only the Part.text field set.
3490 #
3491 # If you want to annotate the training phrase, you must create multiple
3492 # parts, where the fields of each part are populated in one of two ways:
3493 #
3494 # - `Part.text` is set to a part of the phrase that has no parameters.
3495 # - `Part.text` is set to a part of the phrase that you want to annotate,
3496 # and the `entity_type`, `alias`, and `user_defined` fields are all
3497 # set.
3498 { # Represents a part of a training phrase.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003499 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
3500 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`.
3501 # This field is required for annotated parts of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07003502 &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 -07003503 # annotated part of the example.
3504 # This field is required for annotated parts of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07003505 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003506 # This field is set to true when the Dialogflow Console is used to
3507 # manually annotate the part. When creating an annotated part with the
3508 # API, you must set this to true.
3509 },
3510 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003511 },
3512 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003513 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current
Dan O'Mearadd494642020-05-01 07:42:23 -07003514 # session when this intent is matched.
Bu Sun Kim65020912020-05-20 12:08:20 -07003515 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
3516 { # Represents intent parameters.
Bu Sun Kim65020912020-05-20 12:08:20 -07003517 &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 -07003518 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003519 # - a constant string,
3520 # - a parameter value defined as `$parameter_name`,
3521 # - an original parameter value defined as `$parameter_name.original`,
3522 # - a parameter value from some context defined as
3523 # `#context_name.parameter_name`.
3524 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
3525 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that
3526 # describes values of the parameter. If the parameter is
3527 # required, this must be provided.
3528 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the
3529 # user in order to collect a value for the parameter.
3530 &quot;A String&quot;,
3531 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003532 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is,
3533 # whether the intent cannot be completed without collecting the parameter
3534 # value.
3535 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty
3536 # result.
3537 # Default values can be extracted from contexts by using the following
3538 # syntax: `#context_name.parameter_name`.
3539 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
3540 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003541 },
3542 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003543 }</pre>
3544</div>
3545
3546</body></html>