blob: 9a57cd8177d585cefee6433f6769d1029ca94d55 [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>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070079<p class="firstline">Deletes intents in the specified agent. Operation </p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070080<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>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070082<p class="firstline">Updates/Creates multiple intents in the specified agent. Operation </p>
83<p class="toc_element">
84 <code><a href="#close">close()</a></code></p>
85<p class="firstline">Close httplib2 connections.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070086<p class="toc_element">
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -080087 <code><a href="#create">create(parent, body=None, languageCode=None, intentView=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070088<p class="firstline">Creates an intent in the specified agent.</p>
89<p class="toc_element">
90 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
91<p class="firstline">Deletes the specified intent and its direct or indirect followup intents.</p>
92<p class="toc_element">
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -080093 <code><a href="#get">get(name, intentView=None, languageCode=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070094<p class="firstline">Retrieves the specified intent.</p>
95<p class="toc_element">
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -080096 <code><a href="#list">list(parent, intentView=None, languageCode=None, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070097<p class="firstline">Returns the list of all intents in the specified agent.</p>
98<p class="toc_element">
99 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
100<p class="firstline">Retrieves the next page of results.</p>
101<p class="toc_element">
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800102 <code><a href="#patch">patch(name, body=None, updateMask=None, languageCode=None, intentView=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700103<p class="firstline">Updates the specified intent.</p>
104<h3>Method Details</h3>
105<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700106 <code class="details" id="batchDelete">batchDelete(parent, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700107 <pre>Deletes intents in the specified agent. Operation
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700108
109Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700110 parent: string, Required. The name of the agent to delete all entities types for. Format: `projects//agent`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700111 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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700115 &quot;intents&quot;: [ # Required. The collection of intents to delete. Only intent `name` must be filled in.
116 { # An intent categorizes an end-user&#x27;s intention for one conversation turn. For each agent, you define many intents, where your combined intents can handle a complete conversation. When an end-user writes or says something, referred to as an end-user expression or end-user input, Dialogflow matches the end-user input to the best intent in your agent. Matching an intent is also known as intent classification. For more information, see the [intent guide](https://cloud.google.com/dialogflow/docs/intents-overview).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800117 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700118 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
119 { # A rich response message. Corresponds to the intent `Response` field in the Dialogflow console. For more information, see [Rich response messages](https://cloud.google.com/dialogflow/docs/intents-rich-messages).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700120 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800121 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
122 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700123 &quot;items&quot;: [ # Required. List items.
124 { # An item in the list.
125 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
126 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
127 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
128 &quot;A String&quot;,
129 ],
130 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800131 &quot;image&quot;: { # The image response message. # Optional. The image to display.
132 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
133 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
134 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800135 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800136 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800137 },
138 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800139 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800140 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. https://developers.google.com/actions/assistant/responses#browsing_carousel # Browse carousel card for Actions on Google.
141 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
142 { # Browsing carousel tile
143 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel Card. Maximum of one line of text.
144 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
145 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
146 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
147 },
148 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
149 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening the URL. Defaults to opening via web browser.
150 &quot;url&quot;: &quot;A String&quot;, # Required. URL
151 },
152 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
153 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
154 },
155 ],
156 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
157 },
158 &quot;payload&quot;: { # A custom platform-specific response.
159 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800160 },
161 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800162 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
163 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
164 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
165 },
166 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
167 { # The button object that appears at the bottom of a card.
168 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
169 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
170 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
171 },
172 },
173 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800174 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800175 &quot;rows&quot;: [ # Optional. Rows in this table of data.
176 { # Row of TableCard.
177 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
178 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
179 { # Cell of TableCardRow.
180 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
181 },
182 ],
183 },
184 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800185 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800186 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
187 { # Column properties for TableCard.
188 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
189 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700190 },
191 ],
192 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800193 &quot;quickReplies&quot;: { # The quick replies response message. # The quick replies response.
194 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
195 &quot;A String&quot;,
196 ],
197 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
198 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800199 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800200 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
201 { # The button object that appears at the bottom of a card.
202 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
203 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
204 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
205 },
206 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700207 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800208 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
209 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
210 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
211 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800212 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800213 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800214 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
215 },
216 &quot;card&quot;: { # The card response message. # The card response.
217 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
218 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
219 { # Contains information about a button.
220 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
221 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
222 },
223 ],
224 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
225 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
226 },
227 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
228 &quot;items&quot;: [ # Required. Carousel items.
229 { # An item in the carousel.
230 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
231 &quot;image&quot;: { # The image response message. # Optional. The image to display.
232 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
233 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
234 },
235 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
236 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
237 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
238 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
239 &quot;A String&quot;,
240 ],
241 },
242 },
243 ],
244 },
245 &quot;image&quot;: { # The image response message. # The image response.
246 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
247 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
248 },
249 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
250 &quot;simpleResponses&quot;: { # The collection of simple response candidates. This message in `QueryResult.fulfillment_messages` and `WebhookResponse.fulfillment_messages` should contain only one `SimpleResponse`. # The voice and text-only responses for Actions on Google.
251 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
252 { # The simple response message containing speech or text.
253 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken response to the user in the SSML format. Mutually exclusive with text_to_speech.
254 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
255 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the speech output. Mutually exclusive with ssml.
256 },
257 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700258 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800259 &quot;suggestions&quot;: { # The collection of suggestions. # The suggestion chips for Actions on Google.
260 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
261 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
262 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
263 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700264 ],
265 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800266 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app or website associated with this agent. # The link out suggestion chip for Actions on Google.
267 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
268 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700269 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800270 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800271 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800272 &quot;mediaObjects&quot;: [ # Required. List of media objects.
273 { # Response media object for media content card.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800274 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
275 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
276 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
277 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800278 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800279 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
280 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
281 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
282 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
283 },
284 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
285 },
286 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800287 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800288 &quot;text&quot;: { # The text response message. # The text response.
289 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
290 &quot;A String&quot;,
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800291 ],
292 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700293 },
294 ],
295 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
296 { # Represents intent parameters.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700297 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be: - a constant string, - a parameter value defined as `$parameter_name`, - an original parameter value defined as `$parameter_name.original`, - a parameter value from some context defined as `#context_name.parameter_name`.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800298 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is, whether the intent cannot be completed without collecting the parameter value.
299 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
300 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty result. Default values can be extracted from contexts by using the following syntax: `#context_name.parameter_name`.
301 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700302 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the user in order to collect a value for the parameter.
303 &quot;A String&quot;,
304 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800305 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
306 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that describes values of the parameter. If the parameter is required, this must be provided.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700307 },
308 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800309 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
310 &quot;A String&quot;,
311 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800312 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be triggered. Format: `projects//agent/sessions/-/contexts/`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700313 &quot;A String&quot;,
314 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800315 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent is matched. Context messages in this collection should not set the parameters field. Setting the `lifespan_count` to 0 will reset the context when the intent is matched. Format: `projects//agent/sessions/-/contexts/`.
316 { # Dialogflow contexts are similar to natural language context. If a person says to you &quot;they are orange&quot;, you need context in order to understand what &quot;they&quot; is referring to. Similarly, for Dialogflow to handle an end-user expression like that, it needs to be provided with context in order to correctly match an intent. Using contexts, you can control the flow of a conversation. You can configure contexts for an intent by setting input and output contexts, which are identified by string names. When an intent is matched, any configured output contexts for that intent become active. While any contexts are active, Dialogflow is more likely to match intents that are configured with input contexts that correspond to the currently active contexts. For more information about context, see the [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview).
317 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: - MapKey type: string - MapKey value: parameter name - MapValue type: - If parameter&#x27;s entity type is a composite entity: map - Else: string or number, depending on parameter value type - MapValue value: - If parameter&#x27;s entity type is a composite entity: map from composite entity property names to property values - Else: parameter value
318 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
319 },
320 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the context expires. The default is `0`. If set to `0`, the context expires immediately. Contexts expire automatically after 20 minutes if there are no matching queries.
321 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format: `projects//agent/sessions//contexts/`, or `projects//agent/environments//users//sessions//contexts/`. The `Context ID` is always converted to lowercase, may only contain characters in a-zA-Z0-9_-% and may be at most 250 bytes long. If `Environment ID` is not specified, we assume default &#x27;draft&#x27; environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user. The following context names are reserved for internal use by Dialogflow. You should not use these contexts or create contexts with these names: * `__system_counters__` * `*_id_dialog_context` * `*_dialog_params_size`
322 },
323 ],
324 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Format: `projects//agent/intents/`.
325 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher priorities. - If the supplied value is unspecified or 0, the service translates the value to 500,000, which corresponds to the `Normal` priority in the console. - If the supplied value is negative, the intent is ignored in runtime detect intent requests.
326 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent. Note: If `ml_disabled` setting is set to true, then this intent is not taken into account during inference in `ML ONLY` match mode. Also, auto-markup in the UI is turned off.
327 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
328 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
329 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent. If the collection of input contexts is not empty, all of the contexts must be present in the active user session for an event to trigger this intent. Event names are limited to 150 characters.
330 &quot;A String&quot;,
331 ],
332 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Read-only after creation. The unique identifier of the parent intent in the chain of followup intents. You can set this field when creating an intent, for example with CreateIntent or BatchUpdateIntents, in order to make this intent a followup intent. It identifies the parent followup intent. Format: `projects//agent/intents/`.
333 &quot;followupIntentInfo&quot;: [ # Read-only. Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output.
334 { # Represents a single followup intent in the chain.
335 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
336 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
337 },
338 ],
339 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Read-only. The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. We populate this field only in the output. Format: `projects//agent/intents/`.
340 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
341 { # Represents an example that the agent is trained on.
342 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
343 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
344 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts. The parts are concatenated in order to form the training phrase. Note: The API does not automatically annotate training phrases like the Dialogflow Console does. Note: Do not forget to include whitespace at part boundaries, so the training phrase is well formatted when the parts are concatenated. If the training phrase does not need to be annotated with parameters, you just need a single part with only the Part.text field set. If you want to annotate the training phrase, you must create multiple parts, where the fields of each part are populated in one of two ways: - `Part.text` is set to a part of the phrase that has no parameters. - `Part.text` is set to a part of the phrase that you want to annotate, and the `entity_type`, `alias`, and `user_defined` fields are all set.
345 { # Represents a part of a training phrase.
346 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
347 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the annotated part of the example. This field is required for annotated parts of the training phrase.
348 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated. This field is set to true when the Dialogflow Console is used to manually annotate the part. When creating an annotated part with the API, you must set this to true.
349 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`. This field is required for annotated parts of the training phrase.
350 },
351 ],
352 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to the intent. Each time a developer adds an existing sample by editing an intent or training, this counter is increased.
353 },
354 ],
355 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent. Note: The action name must not contain whitespaces.
356 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700357 },
358 ],
359 }
360
361 x__xgafv: string, V1 error format.
362 Allowed values
363 1 - v1 error format
364 2 - v2 error format
365
366Returns:
367 An object of the form:
368
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700369 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800370 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
371 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
372 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700373 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800374 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
375 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
376 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700377 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800378 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700379 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700380 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700381 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700382 },
383 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800384 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800385 },
386 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700387 }</pre>
388</div>
389
390<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700391 <code class="details" id="batchUpdate">batchUpdate(parent, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700392 <pre>Updates/Creates multiple intents in the specified agent. Operation
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700393
394Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700395 parent: string, Required. The name of the agent to update or create intents in. Format: `projects//agent`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700396 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700397 The object takes the form of:
398
Dan O'Mearadd494642020-05-01 07:42:23 -0700399{
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800400 &quot;languageCode&quot;: &quot;A String&quot;, # Optional. The language used to access language-specific data. If not specified, the agent&#x27;s default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
Bu Sun Kim65020912020-05-20 12:08:20 -0700401 &quot;intentBatchInline&quot;: { # This message is a wrapper around a collection of intents. # The collection of intents to update or create.
402 &quot;intents&quot;: [ # A collection of intents.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700403 { # An intent categorizes an end-user&#x27;s intention for one conversation turn. For each agent, you define many intents, where your combined intents can handle a complete conversation. When an end-user writes or says something, referred to as an end-user expression or end-user input, Dialogflow matches the end-user input to the best intent in your agent. Matching an intent is also known as intent classification. For more information, see the [intent guide](https://cloud.google.com/dialogflow/docs/intents-overview).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800404 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700405 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
406 { # A rich response message. Corresponds to the intent `Response` field in the Dialogflow console. For more information, see [Rich response messages](https://cloud.google.com/dialogflow/docs/intents-rich-messages).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700407 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800408 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
409 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700410 &quot;items&quot;: [ # Required. List items.
411 { # An item in the list.
412 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
413 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
414 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
415 &quot;A String&quot;,
416 ],
417 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800418 &quot;image&quot;: { # The image response message. # Optional. The image to display.
419 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
420 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
421 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800422 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800423 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800424 },
425 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800426 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800427 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. https://developers.google.com/actions/assistant/responses#browsing_carousel # Browse carousel card for Actions on Google.
428 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
429 { # Browsing carousel tile
430 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel Card. Maximum of one line of text.
431 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
432 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
433 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
434 },
435 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
436 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening the URL. Defaults to opening via web browser.
437 &quot;url&quot;: &quot;A String&quot;, # Required. URL
438 },
439 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
440 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
441 },
442 ],
443 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
444 },
445 &quot;payload&quot;: { # A custom platform-specific response.
446 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800447 },
448 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800449 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
450 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
451 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
452 },
453 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
454 { # The button object that appears at the bottom of a card.
455 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
456 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
457 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
458 },
459 },
460 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800461 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800462 &quot;rows&quot;: [ # Optional. Rows in this table of data.
463 { # Row of TableCard.
464 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
465 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
466 { # Cell of TableCardRow.
467 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
468 },
469 ],
470 },
471 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800472 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800473 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
474 { # Column properties for TableCard.
475 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
476 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700477 },
478 ],
479 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800480 &quot;quickReplies&quot;: { # The quick replies response message. # The quick replies response.
481 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
482 &quot;A String&quot;,
483 ],
484 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
485 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800486 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800487 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
488 { # The button object that appears at the bottom of a card.
489 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
490 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
491 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
492 },
493 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700494 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800495 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
496 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
497 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
498 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800499 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800500 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800501 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
502 },
503 &quot;card&quot;: { # The card response message. # The card response.
504 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
505 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
506 { # Contains information about a button.
507 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
508 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
509 },
510 ],
511 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
512 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
513 },
514 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
515 &quot;items&quot;: [ # Required. Carousel items.
516 { # An item in the carousel.
517 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
518 &quot;image&quot;: { # The image response message. # Optional. The image to display.
519 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
520 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
521 },
522 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
523 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
524 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
525 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
526 &quot;A String&quot;,
527 ],
528 },
529 },
530 ],
531 },
532 &quot;image&quot;: { # The image response message. # The image response.
533 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
534 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
535 },
536 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
537 &quot;simpleResponses&quot;: { # The collection of simple response candidates. This message in `QueryResult.fulfillment_messages` and `WebhookResponse.fulfillment_messages` should contain only one `SimpleResponse`. # The voice and text-only responses for Actions on Google.
538 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
539 { # The simple response message containing speech or text.
540 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken response to the user in the SSML format. Mutually exclusive with text_to_speech.
541 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
542 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the speech output. Mutually exclusive with ssml.
543 },
544 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700545 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800546 &quot;suggestions&quot;: { # The collection of suggestions. # The suggestion chips for Actions on Google.
547 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
548 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
549 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
550 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700551 ],
552 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800553 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app or website associated with this agent. # The link out suggestion chip for Actions on Google.
554 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
555 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700556 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800557 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800558 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800559 &quot;mediaObjects&quot;: [ # Required. List of media objects.
560 { # Response media object for media content card.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800561 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
562 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
563 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
564 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800565 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800566 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
567 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
568 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
569 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
570 },
571 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
572 },
573 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800574 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800575 &quot;text&quot;: { # The text response message. # The text response.
576 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
577 &quot;A String&quot;,
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800578 ],
579 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700580 },
581 ],
582 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
583 { # Represents intent parameters.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700584 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be: - a constant string, - a parameter value defined as `$parameter_name`, - an original parameter value defined as `$parameter_name.original`, - a parameter value from some context defined as `#context_name.parameter_name`.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800585 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is, whether the intent cannot be completed without collecting the parameter value.
586 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
587 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty result. Default values can be extracted from contexts by using the following syntax: `#context_name.parameter_name`.
588 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700589 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the user in order to collect a value for the parameter.
590 &quot;A String&quot;,
591 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800592 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
593 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that describes values of the parameter. If the parameter is required, this must be provided.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700594 },
595 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800596 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
597 &quot;A String&quot;,
598 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800599 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be triggered. Format: `projects//agent/sessions/-/contexts/`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700600 &quot;A String&quot;,
601 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800602 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent is matched. Context messages in this collection should not set the parameters field. Setting the `lifespan_count` to 0 will reset the context when the intent is matched. Format: `projects//agent/sessions/-/contexts/`.
603 { # Dialogflow contexts are similar to natural language context. If a person says to you &quot;they are orange&quot;, you need context in order to understand what &quot;they&quot; is referring to. Similarly, for Dialogflow to handle an end-user expression like that, it needs to be provided with context in order to correctly match an intent. Using contexts, you can control the flow of a conversation. You can configure contexts for an intent by setting input and output contexts, which are identified by string names. When an intent is matched, any configured output contexts for that intent become active. While any contexts are active, Dialogflow is more likely to match intents that are configured with input contexts that correspond to the currently active contexts. For more information about context, see the [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview).
604 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: - MapKey type: string - MapKey value: parameter name - MapValue type: - If parameter&#x27;s entity type is a composite entity: map - Else: string or number, depending on parameter value type - MapValue value: - If parameter&#x27;s entity type is a composite entity: map from composite entity property names to property values - Else: parameter value
605 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
606 },
607 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the context expires. The default is `0`. If set to `0`, the context expires immediately. Contexts expire automatically after 20 minutes if there are no matching queries.
608 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format: `projects//agent/sessions//contexts/`, or `projects//agent/environments//users//sessions//contexts/`. The `Context ID` is always converted to lowercase, may only contain characters in a-zA-Z0-9_-% and may be at most 250 bytes long. If `Environment ID` is not specified, we assume default &#x27;draft&#x27; environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user. The following context names are reserved for internal use by Dialogflow. You should not use these contexts or create contexts with these names: * `__system_counters__` * `*_id_dialog_context` * `*_dialog_params_size`
609 },
610 ],
611 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Format: `projects//agent/intents/`.
612 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher priorities. - If the supplied value is unspecified or 0, the service translates the value to 500,000, which corresponds to the `Normal` priority in the console. - If the supplied value is negative, the intent is ignored in runtime detect intent requests.
613 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent. Note: If `ml_disabled` setting is set to true, then this intent is not taken into account during inference in `ML ONLY` match mode. Also, auto-markup in the UI is turned off.
614 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
615 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
616 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent. If the collection of input contexts is not empty, all of the contexts must be present in the active user session for an event to trigger this intent. Event names are limited to 150 characters.
617 &quot;A String&quot;,
618 ],
619 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Read-only after creation. The unique identifier of the parent intent in the chain of followup intents. You can set this field when creating an intent, for example with CreateIntent or BatchUpdateIntents, in order to make this intent a followup intent. It identifies the parent followup intent. Format: `projects//agent/intents/`.
620 &quot;followupIntentInfo&quot;: [ # Read-only. Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output.
621 { # Represents a single followup intent in the chain.
622 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
623 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
624 },
625 ],
626 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Read-only. The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. We populate this field only in the output. Format: `projects//agent/intents/`.
627 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
628 { # Represents an example that the agent is trained on.
629 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
630 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
631 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts. The parts are concatenated in order to form the training phrase. Note: The API does not automatically annotate training phrases like the Dialogflow Console does. Note: Do not forget to include whitespace at part boundaries, so the training phrase is well formatted when the parts are concatenated. If the training phrase does not need to be annotated with parameters, you just need a single part with only the Part.text field set. If you want to annotate the training phrase, you must create multiple parts, where the fields of each part are populated in one of two ways: - `Part.text` is set to a part of the phrase that has no parameters. - `Part.text` is set to a part of the phrase that you want to annotate, and the `entity_type`, `alias`, and `user_defined` fields are all set.
632 { # Represents a part of a training phrase.
633 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
634 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the annotated part of the example. This field is required for annotated parts of the training phrase.
635 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated. This field is set to true when the Dialogflow Console is used to manually annotate the part. When creating an annotated part with the API, you must set this to true.
636 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`. This field is required for annotated parts of the training phrase.
637 },
638 ],
639 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to the intent. Each time a developer adds an existing sample by editing an intent or training, this counter is increased.
640 },
641 ],
642 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent. Note: The action name must not contain whitespaces.
643 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700644 },
645 ],
646 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800647 &quot;intentView&quot;: &quot;A String&quot;, # Optional. The resource view to apply to the returned intent.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800648 &quot;updateMask&quot;: &quot;A String&quot;, # Optional. The mask to control which fields get updated.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800649 &quot;intentBatchUri&quot;: &quot;A String&quot;, # The URI to a Google Cloud Storage file containing intents to update or create. The file format can either be a serialized proto (of IntentBatch type) or JSON object. Note: The URI must start with &quot;gs://&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700650 }
651
652 x__xgafv: string, V1 error format.
653 Allowed values
654 1 - v1 error format
655 2 - v2 error format
656
657Returns:
658 An object of the form:
659
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700660 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800661 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
662 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
663 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700664 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800665 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
666 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
667 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700668 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800669 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700670 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700671 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700672 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700673 },
674 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800675 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800676 },
677 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700678 }</pre>
679</div>
680
681<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700682 <code class="details" id="close">close()</code>
683 <pre>Close httplib2 connections.</pre>
684</div>
685
686<div class="method">
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800687 <code class="details" id="create">create(parent, body=None, languageCode=None, intentView=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700688 <pre>Creates an intent in the specified agent.
689
690Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700691 parent: string, Required. The agent to create a intent for. Format: `projects//agent`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700692 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700693 The object takes the form of:
694
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700695{ # An intent categorizes an end-user&#x27;s intention for one conversation turn. For each agent, you define many intents, where your combined intents can handle a complete conversation. When an end-user writes or says something, referred to as an end-user expression or end-user input, Dialogflow matches the end-user input to the best intent in your agent. Matching an intent is also known as intent classification. For more information, see the [intent guide](https://cloud.google.com/dialogflow/docs/intents-overview).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800696 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700697 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
698 { # A rich response message. Corresponds to the intent `Response` field in the Dialogflow console. For more information, see [Rich response messages](https://cloud.google.com/dialogflow/docs/intents-rich-messages).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700699 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800700 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
701 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700702 &quot;items&quot;: [ # Required. List items.
703 { # An item in the list.
704 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
705 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
706 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
707 &quot;A String&quot;,
708 ],
709 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800710 &quot;image&quot;: { # The image response message. # Optional. The image to display.
711 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
712 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
713 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800714 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800715 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800716 },
717 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800718 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800719 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. https://developers.google.com/actions/assistant/responses#browsing_carousel # Browse carousel card for Actions on Google.
720 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
721 { # Browsing carousel tile
722 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel Card. Maximum of one line of text.
723 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
724 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
725 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
726 },
727 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
728 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening the URL. Defaults to opening via web browser.
729 &quot;url&quot;: &quot;A String&quot;, # Required. URL
730 },
731 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
732 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
733 },
734 ],
735 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
736 },
737 &quot;payload&quot;: { # A custom platform-specific response.
738 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800739 },
740 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800741 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
742 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
743 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
744 },
745 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
746 { # The button object that appears at the bottom of a card.
747 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
748 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
749 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
750 },
751 },
752 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800753 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800754 &quot;rows&quot;: [ # Optional. Rows in this table of data.
755 { # Row of TableCard.
756 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
757 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
758 { # Cell of TableCardRow.
759 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
760 },
761 ],
762 },
763 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800764 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800765 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
766 { # Column properties for TableCard.
767 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
768 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700769 },
770 ],
771 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800772 &quot;quickReplies&quot;: { # The quick replies response message. # The quick replies response.
773 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
774 &quot;A String&quot;,
775 ],
776 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
777 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800778 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800779 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
780 { # The button object that appears at the bottom of a card.
781 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
782 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
783 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
784 },
785 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700786 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800787 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
788 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
789 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
790 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800791 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800792 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800793 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
794 },
795 &quot;card&quot;: { # The card response message. # The card response.
796 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
797 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
798 { # Contains information about a button.
799 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
800 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
801 },
802 ],
803 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
804 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
805 },
806 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
807 &quot;items&quot;: [ # Required. Carousel items.
808 { # An item in the carousel.
809 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
810 &quot;image&quot;: { # The image response message. # Optional. The image to display.
811 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
812 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
813 },
814 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
815 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
816 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
817 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
818 &quot;A String&quot;,
819 ],
820 },
821 },
822 ],
823 },
824 &quot;image&quot;: { # The image response message. # The image response.
825 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
826 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
827 },
828 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
829 &quot;simpleResponses&quot;: { # The collection of simple response candidates. This message in `QueryResult.fulfillment_messages` and `WebhookResponse.fulfillment_messages` should contain only one `SimpleResponse`. # The voice and text-only responses for Actions on Google.
830 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
831 { # The simple response message containing speech or text.
832 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken response to the user in the SSML format. Mutually exclusive with text_to_speech.
833 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
834 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the speech output. Mutually exclusive with ssml.
835 },
836 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700837 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800838 &quot;suggestions&quot;: { # The collection of suggestions. # The suggestion chips for Actions on Google.
839 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
840 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
841 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
842 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700843 ],
844 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800845 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app or website associated with this agent. # The link out suggestion chip for Actions on Google.
846 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
847 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700848 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800849 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800850 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800851 &quot;mediaObjects&quot;: [ # Required. List of media objects.
852 { # Response media object for media content card.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800853 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
854 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
855 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
856 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800857 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800858 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
859 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
860 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
861 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
862 },
863 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
864 },
865 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800866 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800867 &quot;text&quot;: { # The text response message. # The text response.
868 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
869 &quot;A String&quot;,
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800870 ],
871 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700872 },
873 ],
874 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
875 { # Represents intent parameters.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700876 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be: - a constant string, - a parameter value defined as `$parameter_name`, - an original parameter value defined as `$parameter_name.original`, - a parameter value from some context defined as `#context_name.parameter_name`.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800877 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is, whether the intent cannot be completed without collecting the parameter value.
878 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
879 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty result. Default values can be extracted from contexts by using the following syntax: `#context_name.parameter_name`.
880 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700881 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the user in order to collect a value for the parameter.
882 &quot;A String&quot;,
883 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800884 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
885 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that describes values of the parameter. If the parameter is required, this must be provided.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700886 },
887 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800888 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
889 &quot;A String&quot;,
890 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800891 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be triggered. Format: `projects//agent/sessions/-/contexts/`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700892 &quot;A String&quot;,
893 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800894 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent is matched. Context messages in this collection should not set the parameters field. Setting the `lifespan_count` to 0 will reset the context when the intent is matched. Format: `projects//agent/sessions/-/contexts/`.
895 { # Dialogflow contexts are similar to natural language context. If a person says to you &quot;they are orange&quot;, you need context in order to understand what &quot;they&quot; is referring to. Similarly, for Dialogflow to handle an end-user expression like that, it needs to be provided with context in order to correctly match an intent. Using contexts, you can control the flow of a conversation. You can configure contexts for an intent by setting input and output contexts, which are identified by string names. When an intent is matched, any configured output contexts for that intent become active. While any contexts are active, Dialogflow is more likely to match intents that are configured with input contexts that correspond to the currently active contexts. For more information about context, see the [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview).
896 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: - MapKey type: string - MapKey value: parameter name - MapValue type: - If parameter&#x27;s entity type is a composite entity: map - Else: string or number, depending on parameter value type - MapValue value: - If parameter&#x27;s entity type is a composite entity: map from composite entity property names to property values - Else: parameter value
897 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
898 },
899 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the context expires. The default is `0`. If set to `0`, the context expires immediately. Contexts expire automatically after 20 minutes if there are no matching queries.
900 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format: `projects//agent/sessions//contexts/`, or `projects//agent/environments//users//sessions//contexts/`. The `Context ID` is always converted to lowercase, may only contain characters in a-zA-Z0-9_-% and may be at most 250 bytes long. If `Environment ID` is not specified, we assume default &#x27;draft&#x27; environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user. The following context names are reserved for internal use by Dialogflow. You should not use these contexts or create contexts with these names: * `__system_counters__` * `*_id_dialog_context` * `*_dialog_params_size`
901 },
902 ],
903 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Format: `projects//agent/intents/`.
904 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher priorities. - If the supplied value is unspecified or 0, the service translates the value to 500,000, which corresponds to the `Normal` priority in the console. - If the supplied value is negative, the intent is ignored in runtime detect intent requests.
905 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent. Note: If `ml_disabled` setting is set to true, then this intent is not taken into account during inference in `ML ONLY` match mode. Also, auto-markup in the UI is turned off.
906 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
907 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
908 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent. If the collection of input contexts is not empty, all of the contexts must be present in the active user session for an event to trigger this intent. Event names are limited to 150 characters.
909 &quot;A String&quot;,
910 ],
911 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Read-only after creation. The unique identifier of the parent intent in the chain of followup intents. You can set this field when creating an intent, for example with CreateIntent or BatchUpdateIntents, in order to make this intent a followup intent. It identifies the parent followup intent. Format: `projects//agent/intents/`.
912 &quot;followupIntentInfo&quot;: [ # Read-only. Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output.
913 { # Represents a single followup intent in the chain.
914 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
915 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
916 },
917 ],
918 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Read-only. The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. We populate this field only in the output. Format: `projects//agent/intents/`.
919 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
920 { # Represents an example that the agent is trained on.
921 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
922 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
923 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts. The parts are concatenated in order to form the training phrase. Note: The API does not automatically annotate training phrases like the Dialogflow Console does. Note: Do not forget to include whitespace at part boundaries, so the training phrase is well formatted when the parts are concatenated. If the training phrase does not need to be annotated with parameters, you just need a single part with only the Part.text field set. If you want to annotate the training phrase, you must create multiple parts, where the fields of each part are populated in one of two ways: - `Part.text` is set to a part of the phrase that has no parameters. - `Part.text` is set to a part of the phrase that you want to annotate, and the `entity_type`, `alias`, and `user_defined` fields are all set.
924 { # Represents a part of a training phrase.
925 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
926 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the annotated part of the example. This field is required for annotated parts of the training phrase.
927 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated. This field is set to true when the Dialogflow Console is used to manually annotate the part. When creating an annotated part with the API, you must set this to true.
928 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`. This field is required for annotated parts of the training phrase.
929 },
930 ],
931 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to the intent. Each time a developer adds an existing sample by editing an intent or training, this counter is increased.
932 },
933 ],
934 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent. Note: The action name must not contain whitespaces.
935 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700936}
937
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800938 languageCode: string, Optional. The language used to access language-specific data. If not specified, the agent&#x27;s default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700939 intentView: string, Optional. The resource view to apply to the returned intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700940 Allowed values
941 INTENT_VIEW_UNSPECIFIED - Training phrases field is not populated in the response.
942 INTENT_VIEW_FULL - All fields are populated.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700943 x__xgafv: string, V1 error format.
944 Allowed values
945 1 - v1 error format
946 2 - v2 error format
947
948Returns:
949 An object of the form:
950
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700951 { # An intent categorizes an end-user&#x27;s intention for one conversation turn. For each agent, you define many intents, where your combined intents can handle a complete conversation. When an end-user writes or says something, referred to as an end-user expression or end-user input, Dialogflow matches the end-user input to the best intent in your agent. Matching an intent is also known as intent classification. For more information, see the [intent guide](https://cloud.google.com/dialogflow/docs/intents-overview).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800952 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700953 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
954 { # A rich response message. Corresponds to the intent `Response` field in the Dialogflow console. For more information, see [Rich response messages](https://cloud.google.com/dialogflow/docs/intents-rich-messages).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700955 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800956 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
957 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700958 &quot;items&quot;: [ # Required. List items.
959 { # An item in the list.
960 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
961 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
962 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
963 &quot;A String&quot;,
964 ],
965 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800966 &quot;image&quot;: { # The image response message. # Optional. The image to display.
967 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
968 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
969 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800970 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800971 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800972 },
973 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800974 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800975 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. https://developers.google.com/actions/assistant/responses#browsing_carousel # Browse carousel card for Actions on Google.
976 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
977 { # Browsing carousel tile
978 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel Card. Maximum of one line of text.
979 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
980 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
981 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
982 },
983 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
984 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening the URL. Defaults to opening via web browser.
985 &quot;url&quot;: &quot;A String&quot;, # Required. URL
986 },
987 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
988 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
989 },
990 ],
991 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
992 },
993 &quot;payload&quot;: { # A custom platform-specific response.
994 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800995 },
996 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800997 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
998 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
999 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1000 },
1001 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
1002 { # The button object that appears at the bottom of a card.
1003 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1004 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1005 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1006 },
1007 },
1008 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001009 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001010 &quot;rows&quot;: [ # Optional. Rows in this table of data.
1011 { # Row of TableCard.
1012 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
1013 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
1014 { # Cell of TableCardRow.
1015 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
1016 },
1017 ],
1018 },
1019 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001020 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001021 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
1022 { # Column properties for TableCard.
1023 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
1024 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001025 },
1026 ],
1027 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001028 &quot;quickReplies&quot;: { # The quick replies response message. # The quick replies response.
1029 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
1030 &quot;A String&quot;,
1031 ],
1032 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
1033 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001034 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001035 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1036 { # The button object that appears at the bottom of a card.
1037 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1038 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1039 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1040 },
1041 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001042 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001043 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
1044 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1045 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1046 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001047 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001048 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001049 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1050 },
1051 &quot;card&quot;: { # The card response message. # The card response.
1052 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1053 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1054 { # Contains information about a button.
1055 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
1056 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
1057 },
1058 ],
1059 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
1060 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1061 },
1062 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
1063 &quot;items&quot;: [ # Required. Carousel items.
1064 { # An item in the carousel.
1065 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
1066 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1067 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1068 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1069 },
1070 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
1071 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
1072 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
1073 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1074 &quot;A String&quot;,
1075 ],
1076 },
1077 },
1078 ],
1079 },
1080 &quot;image&quot;: { # The image response message. # The image response.
1081 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1082 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1083 },
1084 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
1085 &quot;simpleResponses&quot;: { # The collection of simple response candidates. This message in `QueryResult.fulfillment_messages` and `WebhookResponse.fulfillment_messages` should contain only one `SimpleResponse`. # The voice and text-only responses for Actions on Google.
1086 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
1087 { # The simple response message containing speech or text.
1088 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken response to the user in the SSML format. Mutually exclusive with text_to_speech.
1089 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
1090 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the speech output. Mutually exclusive with ssml.
1091 },
1092 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001093 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001094 &quot;suggestions&quot;: { # The collection of suggestions. # The suggestion chips for Actions on Google.
1095 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
1096 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
1097 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
1098 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001099 ],
1100 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001101 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app or website associated with this agent. # The link out suggestion chip for Actions on Google.
1102 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
1103 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001104 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001105 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001106 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001107 &quot;mediaObjects&quot;: [ # Required. List of media objects.
1108 { # Response media object for media content card.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001109 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
1110 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1111 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1112 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001113 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001114 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
1115 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
1116 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1117 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1118 },
1119 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
1120 },
1121 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001122 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001123 &quot;text&quot;: { # The text response message. # The text response.
1124 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
1125 &quot;A String&quot;,
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001126 ],
1127 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001128 },
1129 ],
1130 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
1131 { # Represents intent parameters.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001132 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be: - a constant string, - a parameter value defined as `$parameter_name`, - an original parameter value defined as `$parameter_name.original`, - a parameter value from some context defined as `#context_name.parameter_name`.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001133 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is, whether the intent cannot be completed without collecting the parameter value.
1134 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
1135 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty result. Default values can be extracted from contexts by using the following syntax: `#context_name.parameter_name`.
1136 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001137 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the user in order to collect a value for the parameter.
1138 &quot;A String&quot;,
1139 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001140 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
1141 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that describes values of the parameter. If the parameter is required, this must be provided.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001142 },
1143 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001144 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
1145 &quot;A String&quot;,
1146 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001147 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be triggered. Format: `projects//agent/sessions/-/contexts/`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001148 &quot;A String&quot;,
1149 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001150 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent is matched. Context messages in this collection should not set the parameters field. Setting the `lifespan_count` to 0 will reset the context when the intent is matched. Format: `projects//agent/sessions/-/contexts/`.
1151 { # Dialogflow contexts are similar to natural language context. If a person says to you &quot;they are orange&quot;, you need context in order to understand what &quot;they&quot; is referring to. Similarly, for Dialogflow to handle an end-user expression like that, it needs to be provided with context in order to correctly match an intent. Using contexts, you can control the flow of a conversation. You can configure contexts for an intent by setting input and output contexts, which are identified by string names. When an intent is matched, any configured output contexts for that intent become active. While any contexts are active, Dialogflow is more likely to match intents that are configured with input contexts that correspond to the currently active contexts. For more information about context, see the [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview).
1152 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: - MapKey type: string - MapKey value: parameter name - MapValue type: - If parameter&#x27;s entity type is a composite entity: map - Else: string or number, depending on parameter value type - MapValue value: - If parameter&#x27;s entity type is a composite entity: map from composite entity property names to property values - Else: parameter value
1153 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1154 },
1155 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the context expires. The default is `0`. If set to `0`, the context expires immediately. Contexts expire automatically after 20 minutes if there are no matching queries.
1156 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format: `projects//agent/sessions//contexts/`, or `projects//agent/environments//users//sessions//contexts/`. The `Context ID` is always converted to lowercase, may only contain characters in a-zA-Z0-9_-% and may be at most 250 bytes long. If `Environment ID` is not specified, we assume default &#x27;draft&#x27; environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user. The following context names are reserved for internal use by Dialogflow. You should not use these contexts or create contexts with these names: * `__system_counters__` * `*_id_dialog_context` * `*_dialog_params_size`
1157 },
1158 ],
1159 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Format: `projects//agent/intents/`.
1160 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher priorities. - If the supplied value is unspecified or 0, the service translates the value to 500,000, which corresponds to the `Normal` priority in the console. - If the supplied value is negative, the intent is ignored in runtime detect intent requests.
1161 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent. Note: If `ml_disabled` setting is set to true, then this intent is not taken into account during inference in `ML ONLY` match mode. Also, auto-markup in the UI is turned off.
1162 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
1163 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
1164 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent. If the collection of input contexts is not empty, all of the contexts must be present in the active user session for an event to trigger this intent. Event names are limited to 150 characters.
1165 &quot;A String&quot;,
1166 ],
1167 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Read-only after creation. The unique identifier of the parent intent in the chain of followup intents. You can set this field when creating an intent, for example with CreateIntent or BatchUpdateIntents, in order to make this intent a followup intent. It identifies the parent followup intent. Format: `projects//agent/intents/`.
1168 &quot;followupIntentInfo&quot;: [ # Read-only. Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output.
1169 { # Represents a single followup intent in the chain.
1170 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
1171 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
1172 },
1173 ],
1174 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Read-only. The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. We populate this field only in the output. Format: `projects//agent/intents/`.
1175 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
1176 { # Represents an example that the agent is trained on.
1177 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
1178 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
1179 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts. The parts are concatenated in order to form the training phrase. Note: The API does not automatically annotate training phrases like the Dialogflow Console does. Note: Do not forget to include whitespace at part boundaries, so the training phrase is well formatted when the parts are concatenated. If the training phrase does not need to be annotated with parameters, you just need a single part with only the Part.text field set. If you want to annotate the training phrase, you must create multiple parts, where the fields of each part are populated in one of two ways: - `Part.text` is set to a part of the phrase that has no parameters. - `Part.text` is set to a part of the phrase that you want to annotate, and the `entity_type`, `alias`, and `user_defined` fields are all set.
1180 { # Represents a part of a training phrase.
1181 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
1182 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the annotated part of the example. This field is required for annotated parts of the training phrase.
1183 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated. This field is set to true when the Dialogflow Console is used to manually annotate the part. When creating an annotated part with the API, you must set this to true.
1184 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`. This field is required for annotated parts of the training phrase.
1185 },
1186 ],
1187 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to the intent. Each time a developer adds an existing sample by editing an intent or training, this counter is increased.
1188 },
1189 ],
1190 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent. Note: The action name must not contain whitespaces.
1191 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001192 }</pre>
1193</div>
1194
1195<div class="method">
1196 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
1197 <pre>Deletes the specified intent and its direct or indirect followup intents.
1198
1199Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001200 name: string, Required. The name of the intent to delete. If this intent has direct or indirect followup intents, we also delete them. Format: `projects//agent/intents/`. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001201 x__xgafv: string, V1 error format.
1202 Allowed values
1203 1 - v1 error format
1204 2 - v2 error format
1205
1206Returns:
1207 An object of the form:
1208
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001209 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001210 }</pre>
1211</div>
1212
1213<div class="method">
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001214 <code class="details" id="get">get(name, intentView=None, languageCode=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001215 <pre>Retrieves the specified intent.
1216
1217Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001218 name: string, Required. The name of the intent. Format: `projects//agent/intents/`. (required)
Bu Sun Kim65020912020-05-20 12:08:20 -07001219 intentView: string, Optional. The resource view to apply to the returned intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001220 Allowed values
1221 INTENT_VIEW_UNSPECIFIED - Training phrases field is not populated in the response.
1222 INTENT_VIEW_FULL - All fields are populated.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001223 languageCode: string, Optional. The language used to access language-specific data. If not specified, the agent&#x27;s default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001224 x__xgafv: string, V1 error format.
1225 Allowed values
1226 1 - v1 error format
1227 2 - v2 error format
1228
1229Returns:
1230 An object of the form:
1231
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001232 { # An intent categorizes an end-user&#x27;s intention for one conversation turn. For each agent, you define many intents, where your combined intents can handle a complete conversation. When an end-user writes or says something, referred to as an end-user expression or end-user input, Dialogflow matches the end-user input to the best intent in your agent. Matching an intent is also known as intent classification. For more information, see the [intent guide](https://cloud.google.com/dialogflow/docs/intents-overview).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001233 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001234 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
1235 { # A rich response message. Corresponds to the intent `Response` field in the Dialogflow console. For more information, see [Rich response messages](https://cloud.google.com/dialogflow/docs/intents-rich-messages).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001236 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001237 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
1238 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001239 &quot;items&quot;: [ # Required. List items.
1240 { # An item in the list.
1241 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
1242 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
1243 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1244 &quot;A String&quot;,
1245 ],
1246 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001247 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1248 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1249 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1250 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001251 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001252 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001253 },
1254 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001255 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001256 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. https://developers.google.com/actions/assistant/responses#browsing_carousel # Browse carousel card for Actions on Google.
1257 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
1258 { # Browsing carousel tile
1259 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel Card. Maximum of one line of text.
1260 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
1261 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1262 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1263 },
1264 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
1265 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening the URL. Defaults to opening via web browser.
1266 &quot;url&quot;: &quot;A String&quot;, # Required. URL
1267 },
1268 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
1269 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
1270 },
1271 ],
1272 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
1273 },
1274 &quot;payload&quot;: { # A custom platform-specific response.
1275 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001276 },
1277 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001278 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
1279 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1280 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1281 },
1282 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
1283 { # The button object that appears at the bottom of a card.
1284 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1285 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1286 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1287 },
1288 },
1289 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001290 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001291 &quot;rows&quot;: [ # Optional. Rows in this table of data.
1292 { # Row of TableCard.
1293 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
1294 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
1295 { # Cell of TableCardRow.
1296 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
1297 },
1298 ],
1299 },
1300 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001301 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001302 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
1303 { # Column properties for TableCard.
1304 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
1305 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001306 },
1307 ],
1308 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001309 &quot;quickReplies&quot;: { # The quick replies response message. # The quick replies response.
1310 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
1311 &quot;A String&quot;,
1312 ],
1313 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
1314 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001315 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001316 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1317 { # The button object that appears at the bottom of a card.
1318 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1319 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1320 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1321 },
1322 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001323 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001324 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
1325 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1326 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1327 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001328 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001329 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001330 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1331 },
1332 &quot;card&quot;: { # The card response message. # The card response.
1333 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1334 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1335 { # Contains information about a button.
1336 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
1337 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
1338 },
1339 ],
1340 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
1341 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1342 },
1343 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
1344 &quot;items&quot;: [ # Required. Carousel items.
1345 { # An item in the carousel.
1346 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
1347 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1348 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1349 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1350 },
1351 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
1352 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
1353 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
1354 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1355 &quot;A String&quot;,
1356 ],
1357 },
1358 },
1359 ],
1360 },
1361 &quot;image&quot;: { # The image response message. # The image response.
1362 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1363 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1364 },
1365 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
1366 &quot;simpleResponses&quot;: { # The collection of simple response candidates. This message in `QueryResult.fulfillment_messages` and `WebhookResponse.fulfillment_messages` should contain only one `SimpleResponse`. # The voice and text-only responses for Actions on Google.
1367 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
1368 { # The simple response message containing speech or text.
1369 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken response to the user in the SSML format. Mutually exclusive with text_to_speech.
1370 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
1371 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the speech output. Mutually exclusive with ssml.
1372 },
1373 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001374 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001375 &quot;suggestions&quot;: { # The collection of suggestions. # The suggestion chips for Actions on Google.
1376 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
1377 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
1378 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
1379 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001380 ],
1381 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001382 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app or website associated with this agent. # The link out suggestion chip for Actions on Google.
1383 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
1384 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001385 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001386 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001387 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001388 &quot;mediaObjects&quot;: [ # Required. List of media objects.
1389 { # Response media object for media content card.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001390 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
1391 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1392 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1393 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001394 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001395 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
1396 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
1397 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1398 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1399 },
1400 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
1401 },
1402 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001403 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001404 &quot;text&quot;: { # The text response message. # The text response.
1405 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
1406 &quot;A String&quot;,
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001407 ],
1408 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001409 },
1410 ],
1411 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
1412 { # Represents intent parameters.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001413 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be: - a constant string, - a parameter value defined as `$parameter_name`, - an original parameter value defined as `$parameter_name.original`, - a parameter value from some context defined as `#context_name.parameter_name`.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001414 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is, whether the intent cannot be completed without collecting the parameter value.
1415 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
1416 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty result. Default values can be extracted from contexts by using the following syntax: `#context_name.parameter_name`.
1417 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001418 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the user in order to collect a value for the parameter.
1419 &quot;A String&quot;,
1420 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001421 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
1422 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that describes values of the parameter. If the parameter is required, this must be provided.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001423 },
1424 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001425 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
1426 &quot;A String&quot;,
1427 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001428 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be triggered. Format: `projects//agent/sessions/-/contexts/`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001429 &quot;A String&quot;,
1430 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001431 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent is matched. Context messages in this collection should not set the parameters field. Setting the `lifespan_count` to 0 will reset the context when the intent is matched. Format: `projects//agent/sessions/-/contexts/`.
1432 { # Dialogflow contexts are similar to natural language context. If a person says to you &quot;they are orange&quot;, you need context in order to understand what &quot;they&quot; is referring to. Similarly, for Dialogflow to handle an end-user expression like that, it needs to be provided with context in order to correctly match an intent. Using contexts, you can control the flow of a conversation. You can configure contexts for an intent by setting input and output contexts, which are identified by string names. When an intent is matched, any configured output contexts for that intent become active. While any contexts are active, Dialogflow is more likely to match intents that are configured with input contexts that correspond to the currently active contexts. For more information about context, see the [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview).
1433 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: - MapKey type: string - MapKey value: parameter name - MapValue type: - If parameter&#x27;s entity type is a composite entity: map - Else: string or number, depending on parameter value type - MapValue value: - If parameter&#x27;s entity type is a composite entity: map from composite entity property names to property values - Else: parameter value
1434 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1435 },
1436 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the context expires. The default is `0`. If set to `0`, the context expires immediately. Contexts expire automatically after 20 minutes if there are no matching queries.
1437 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format: `projects//agent/sessions//contexts/`, or `projects//agent/environments//users//sessions//contexts/`. The `Context ID` is always converted to lowercase, may only contain characters in a-zA-Z0-9_-% and may be at most 250 bytes long. If `Environment ID` is not specified, we assume default &#x27;draft&#x27; environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user. The following context names are reserved for internal use by Dialogflow. You should not use these contexts or create contexts with these names: * `__system_counters__` * `*_id_dialog_context` * `*_dialog_params_size`
1438 },
1439 ],
1440 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Format: `projects//agent/intents/`.
1441 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher priorities. - If the supplied value is unspecified or 0, the service translates the value to 500,000, which corresponds to the `Normal` priority in the console. - If the supplied value is negative, the intent is ignored in runtime detect intent requests.
1442 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent. Note: If `ml_disabled` setting is set to true, then this intent is not taken into account during inference in `ML ONLY` match mode. Also, auto-markup in the UI is turned off.
1443 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
1444 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
1445 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent. If the collection of input contexts is not empty, all of the contexts must be present in the active user session for an event to trigger this intent. Event names are limited to 150 characters.
1446 &quot;A String&quot;,
1447 ],
1448 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Read-only after creation. The unique identifier of the parent intent in the chain of followup intents. You can set this field when creating an intent, for example with CreateIntent or BatchUpdateIntents, in order to make this intent a followup intent. It identifies the parent followup intent. Format: `projects//agent/intents/`.
1449 &quot;followupIntentInfo&quot;: [ # Read-only. Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output.
1450 { # Represents a single followup intent in the chain.
1451 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
1452 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
1453 },
1454 ],
1455 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Read-only. The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. We populate this field only in the output. Format: `projects//agent/intents/`.
1456 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
1457 { # Represents an example that the agent is trained on.
1458 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
1459 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
1460 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts. The parts are concatenated in order to form the training phrase. Note: The API does not automatically annotate training phrases like the Dialogflow Console does. Note: Do not forget to include whitespace at part boundaries, so the training phrase is well formatted when the parts are concatenated. If the training phrase does not need to be annotated with parameters, you just need a single part with only the Part.text field set. If you want to annotate the training phrase, you must create multiple parts, where the fields of each part are populated in one of two ways: - `Part.text` is set to a part of the phrase that has no parameters. - `Part.text` is set to a part of the phrase that you want to annotate, and the `entity_type`, `alias`, and `user_defined` fields are all set.
1461 { # Represents a part of a training phrase.
1462 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
1463 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the annotated part of the example. This field is required for annotated parts of the training phrase.
1464 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated. This field is set to true when the Dialogflow Console is used to manually annotate the part. When creating an annotated part with the API, you must set this to true.
1465 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`. This field is required for annotated parts of the training phrase.
1466 },
1467 ],
1468 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to the intent. Each time a developer adds an existing sample by editing an intent or training, this counter is increased.
1469 },
1470 ],
1471 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent. Note: The action name must not contain whitespaces.
1472 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001473 }</pre>
1474</div>
1475
1476<div class="method">
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001477 <code class="details" id="list">list(parent, intentView=None, languageCode=None, pageToken=None, pageSize=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001478 <pre>Returns the list of all intents in the specified agent.
1479
1480Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001481 parent: string, Required. The agent to list all intents from. Format: `projects//agent`. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001482 intentView: string, Optional. The resource view to apply to the returned intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001483 Allowed values
1484 INTENT_VIEW_UNSPECIFIED - Training phrases field is not populated in the response.
1485 INTENT_VIEW_FULL - All fields are populated.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001486 languageCode: string, Optional. The language used to access language-specific data. If not specified, the agent&#x27;s default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001487 pageToken: string, Optional. The next_page_token value returned from a previous list request.
1488 pageSize: integer, Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001489 x__xgafv: string, V1 error format.
1490 Allowed values
1491 1 - v1 error format
1492 2 - v2 error format
1493
1494Returns:
1495 An object of the form:
1496
1497 { # The response message for Intents.ListIntents.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001498 &quot;intents&quot;: [ # The list of agent intents. There will be a maximum number of items returned based on the page_size field in the request.
1499 { # An intent categorizes an end-user&#x27;s intention for one conversation turn. For each agent, you define many intents, where your combined intents can handle a complete conversation. When an end-user writes or says something, referred to as an end-user expression or end-user input, Dialogflow matches the end-user input to the best intent in your agent. Matching an intent is also known as intent classification. For more information, see the [intent guide](https://cloud.google.com/dialogflow/docs/intents-overview).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001500 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001501 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
1502 { # A rich response message. Corresponds to the intent `Response` field in the Dialogflow console. For more information, see [Rich response messages](https://cloud.google.com/dialogflow/docs/intents-rich-messages).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001503 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001504 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
1505 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001506 &quot;items&quot;: [ # Required. List items.
1507 { # An item in the list.
1508 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
1509 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
1510 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1511 &quot;A String&quot;,
1512 ],
1513 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001514 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1515 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1516 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1517 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001518 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001519 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001520 },
1521 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001522 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001523 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. https://developers.google.com/actions/assistant/responses#browsing_carousel # Browse carousel card for Actions on Google.
1524 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
1525 { # Browsing carousel tile
1526 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel Card. Maximum of one line of text.
1527 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
1528 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1529 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1530 },
1531 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
1532 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening the URL. Defaults to opening via web browser.
1533 &quot;url&quot;: &quot;A String&quot;, # Required. URL
1534 },
1535 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
1536 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
1537 },
1538 ],
1539 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
1540 },
1541 &quot;payload&quot;: { # A custom platform-specific response.
1542 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001543 },
1544 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001545 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
1546 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1547 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1548 },
1549 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
1550 { # The button object that appears at the bottom of a card.
1551 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1552 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1553 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1554 },
1555 },
1556 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001557 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001558 &quot;rows&quot;: [ # Optional. Rows in this table of data.
1559 { # Row of TableCard.
1560 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
1561 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
1562 { # Cell of TableCardRow.
1563 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
1564 },
1565 ],
1566 },
1567 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001568 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001569 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
1570 { # Column properties for TableCard.
1571 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
1572 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001573 },
1574 ],
1575 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001576 &quot;quickReplies&quot;: { # The quick replies response message. # The quick replies response.
1577 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
1578 &quot;A String&quot;,
1579 ],
1580 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
1581 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001582 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001583 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1584 { # The button object that appears at the bottom of a card.
1585 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1586 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1587 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1588 },
1589 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001590 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001591 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
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, e.g., screen readers.
1594 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001595 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001596 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001597 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1598 },
1599 &quot;card&quot;: { # The card response message. # The card response.
1600 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1601 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1602 { # Contains information about a button.
1603 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
1604 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
1605 },
1606 ],
1607 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
1608 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1609 },
1610 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
1611 &quot;items&quot;: [ # Required. Carousel items.
1612 { # An item in the carousel.
1613 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
1614 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1615 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1616 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1617 },
1618 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
1619 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
1620 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
1621 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1622 &quot;A String&quot;,
1623 ],
1624 },
1625 },
1626 ],
1627 },
1628 &quot;image&quot;: { # The image response message. # The image response.
1629 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1630 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1631 },
1632 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
1633 &quot;simpleResponses&quot;: { # The collection of simple response candidates. This message in `QueryResult.fulfillment_messages` and `WebhookResponse.fulfillment_messages` should contain only one `SimpleResponse`. # The voice and text-only responses for Actions on Google.
1634 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
1635 { # The simple response message containing speech or text.
1636 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken response to the user in the SSML format. Mutually exclusive with text_to_speech.
1637 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
1638 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the speech output. Mutually exclusive with ssml.
1639 },
1640 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001641 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001642 &quot;suggestions&quot;: { # The collection of suggestions. # The suggestion chips for Actions on Google.
1643 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
1644 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
1645 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
1646 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001647 ],
1648 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001649 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app or website associated with this agent. # The link out suggestion chip for Actions on Google.
1650 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
1651 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001652 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001653 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001654 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001655 &quot;mediaObjects&quot;: [ # Required. List of media objects.
1656 { # Response media object for media content card.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001657 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
1658 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1659 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1660 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001661 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001662 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
1663 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
1664 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1665 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1666 },
1667 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
1668 },
1669 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001670 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001671 &quot;text&quot;: { # The text response message. # The text response.
1672 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
1673 &quot;A String&quot;,
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001674 ],
1675 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001676 },
1677 ],
1678 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
1679 { # Represents intent parameters.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001680 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be: - a constant string, - a parameter value defined as `$parameter_name`, - an original parameter value defined as `$parameter_name.original`, - a parameter value from some context defined as `#context_name.parameter_name`.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001681 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is, whether the intent cannot be completed without collecting the parameter value.
1682 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
1683 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty result. Default values can be extracted from contexts by using the following syntax: `#context_name.parameter_name`.
1684 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001685 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the user in order to collect a value for the parameter.
1686 &quot;A String&quot;,
1687 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001688 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
1689 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that describes values of the parameter. If the parameter is required, this must be provided.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001690 },
1691 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001692 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
1693 &quot;A String&quot;,
1694 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001695 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be triggered. Format: `projects//agent/sessions/-/contexts/`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001696 &quot;A String&quot;,
1697 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001698 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent is matched. Context messages in this collection should not set the parameters field. Setting the `lifespan_count` to 0 will reset the context when the intent is matched. Format: `projects//agent/sessions/-/contexts/`.
1699 { # Dialogflow contexts are similar to natural language context. If a person says to you &quot;they are orange&quot;, you need context in order to understand what &quot;they&quot; is referring to. Similarly, for Dialogflow to handle an end-user expression like that, it needs to be provided with context in order to correctly match an intent. Using contexts, you can control the flow of a conversation. You can configure contexts for an intent by setting input and output contexts, which are identified by string names. When an intent is matched, any configured output contexts for that intent become active. While any contexts are active, Dialogflow is more likely to match intents that are configured with input contexts that correspond to the currently active contexts. For more information about context, see the [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview).
1700 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: - MapKey type: string - MapKey value: parameter name - MapValue type: - If parameter&#x27;s entity type is a composite entity: map - Else: string or number, depending on parameter value type - MapValue value: - If parameter&#x27;s entity type is a composite entity: map from composite entity property names to property values - Else: parameter value
1701 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1702 },
1703 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the context expires. The default is `0`. If set to `0`, the context expires immediately. Contexts expire automatically after 20 minutes if there are no matching queries.
1704 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format: `projects//agent/sessions//contexts/`, or `projects//agent/environments//users//sessions//contexts/`. The `Context ID` is always converted to lowercase, may only contain characters in a-zA-Z0-9_-% and may be at most 250 bytes long. If `Environment ID` is not specified, we assume default &#x27;draft&#x27; environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user. The following context names are reserved for internal use by Dialogflow. You should not use these contexts or create contexts with these names: * `__system_counters__` * `*_id_dialog_context` * `*_dialog_params_size`
1705 },
1706 ],
1707 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Format: `projects//agent/intents/`.
1708 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher priorities. - If the supplied value is unspecified or 0, the service translates the value to 500,000, which corresponds to the `Normal` priority in the console. - If the supplied value is negative, the intent is ignored in runtime detect intent requests.
1709 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent. Note: If `ml_disabled` setting is set to true, then this intent is not taken into account during inference in `ML ONLY` match mode. Also, auto-markup in the UI is turned off.
1710 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
1711 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
1712 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent. If the collection of input contexts is not empty, all of the contexts must be present in the active user session for an event to trigger this intent. Event names are limited to 150 characters.
1713 &quot;A String&quot;,
1714 ],
1715 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Read-only after creation. The unique identifier of the parent intent in the chain of followup intents. You can set this field when creating an intent, for example with CreateIntent or BatchUpdateIntents, in order to make this intent a followup intent. It identifies the parent followup intent. Format: `projects//agent/intents/`.
1716 &quot;followupIntentInfo&quot;: [ # Read-only. Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output.
1717 { # Represents a single followup intent in the chain.
1718 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
1719 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
1720 },
1721 ],
1722 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Read-only. The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. We populate this field only in the output. Format: `projects//agent/intents/`.
1723 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
1724 { # Represents an example that the agent is trained on.
1725 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
1726 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
1727 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts. The parts are concatenated in order to form the training phrase. Note: The API does not automatically annotate training phrases like the Dialogflow Console does. Note: Do not forget to include whitespace at part boundaries, so the training phrase is well formatted when the parts are concatenated. If the training phrase does not need to be annotated with parameters, you just need a single part with only the Part.text field set. If you want to annotate the training phrase, you must create multiple parts, where the fields of each part are populated in one of two ways: - `Part.text` is set to a part of the phrase that has no parameters. - `Part.text` is set to a part of the phrase that you want to annotate, and the `entity_type`, `alias`, and `user_defined` fields are all set.
1728 { # Represents a part of a training phrase.
1729 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
1730 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the annotated part of the example. This field is required for annotated parts of the training phrase.
1731 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated. This field is set to true when the Dialogflow Console is used to manually annotate the part. When creating an annotated part with the API, you must set this to true.
1732 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`. This field is required for annotated parts of the training phrase.
1733 },
1734 ],
1735 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to the intent. Each time a developer adds an existing sample by editing an intent or training, this counter is increased.
1736 },
1737 ],
1738 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent. Note: The action name must not contain whitespaces.
1739 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001740 },
1741 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001742 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no more results in the list.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001743 }</pre>
1744</div>
1745
1746<div class="method">
1747 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1748 <pre>Retrieves the next page of results.
1749
1750Args:
1751 previous_request: The request for the previous page. (required)
1752 previous_response: The response from the request for the previous page. (required)
1753
1754Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07001755 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001756 page. Returns None if there are no more items in the collection.
1757 </pre>
1758</div>
1759
1760<div class="method">
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001761 <code class="details" id="patch">patch(name, body=None, updateMask=None, languageCode=None, intentView=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001762 <pre>Updates the specified intent.
1763
1764Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001765 name: string, Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Format: `projects//agent/intents/`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001766 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001767 The object takes the form of:
1768
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001769{ # An intent categorizes an end-user&#x27;s intention for one conversation turn. For each agent, you define many intents, where your combined intents can handle a complete conversation. When an end-user writes or says something, referred to as an end-user expression or end-user input, Dialogflow matches the end-user input to the best intent in your agent. Matching an intent is also known as intent classification. For more information, see the [intent guide](https://cloud.google.com/dialogflow/docs/intents-overview).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001770 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001771 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
1772 { # A rich response message. Corresponds to the intent `Response` field in the Dialogflow console. For more information, see [Rich response messages](https://cloud.google.com/dialogflow/docs/intents-rich-messages).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001773 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001774 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
1775 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001776 &quot;items&quot;: [ # Required. List items.
1777 { # An item in the list.
1778 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
1779 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
1780 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1781 &quot;A String&quot;,
1782 ],
1783 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001784 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1785 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1786 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1787 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001788 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001789 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001790 },
1791 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001792 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001793 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. https://developers.google.com/actions/assistant/responses#browsing_carousel # Browse carousel card for Actions on Google.
1794 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
1795 { # Browsing carousel tile
1796 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel Card. Maximum of one line of text.
1797 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
1798 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1799 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1800 },
1801 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
1802 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening the URL. Defaults to opening via web browser.
1803 &quot;url&quot;: &quot;A String&quot;, # Required. URL
1804 },
1805 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
1806 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
1807 },
1808 ],
1809 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
1810 },
1811 &quot;payload&quot;: { # A custom platform-specific response.
1812 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001813 },
1814 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001815 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
1816 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1817 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1818 },
1819 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
1820 { # The button object that appears at the bottom of a card.
1821 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1822 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1823 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1824 },
1825 },
1826 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001827 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001828 &quot;rows&quot;: [ # Optional. Rows in this table of data.
1829 { # Row of TableCard.
1830 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
1831 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
1832 { # Cell of TableCardRow.
1833 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
1834 },
1835 ],
1836 },
1837 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001838 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001839 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
1840 { # Column properties for TableCard.
1841 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
1842 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001843 },
1844 ],
1845 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001846 &quot;quickReplies&quot;: { # The quick replies response message. # The quick replies response.
1847 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
1848 &quot;A String&quot;,
1849 ],
1850 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
1851 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001852 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001853 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1854 { # The button object that appears at the bottom of a card.
1855 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1856 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1857 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1858 },
1859 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001860 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001861 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
1862 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1863 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1864 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001865 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001866 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001867 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1868 },
1869 &quot;card&quot;: { # The card response message. # The card response.
1870 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1871 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1872 { # Contains information about a button.
1873 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
1874 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
1875 },
1876 ],
1877 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
1878 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1879 },
1880 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
1881 &quot;items&quot;: [ # Required. Carousel items.
1882 { # An item in the carousel.
1883 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
1884 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1885 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1886 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1887 },
1888 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
1889 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
1890 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
1891 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1892 &quot;A String&quot;,
1893 ],
1894 },
1895 },
1896 ],
1897 },
1898 &quot;image&quot;: { # The image response message. # The image response.
1899 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1900 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1901 },
1902 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
1903 &quot;simpleResponses&quot;: { # The collection of simple response candidates. This message in `QueryResult.fulfillment_messages` and `WebhookResponse.fulfillment_messages` should contain only one `SimpleResponse`. # The voice and text-only responses for Actions on Google.
1904 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
1905 { # The simple response message containing speech or text.
1906 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken response to the user in the SSML format. Mutually exclusive with text_to_speech.
1907 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
1908 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the speech output. Mutually exclusive with ssml.
1909 },
1910 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001911 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001912 &quot;suggestions&quot;: { # The collection of suggestions. # The suggestion chips for Actions on Google.
1913 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
1914 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
1915 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
1916 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001917 ],
1918 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001919 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app or website associated with this agent. # The link out suggestion chip for Actions on Google.
1920 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
1921 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001922 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001923 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001924 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001925 &quot;mediaObjects&quot;: [ # Required. List of media objects.
1926 { # Response media object for media content card.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001927 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
1928 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1929 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1930 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001931 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001932 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
1933 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
1934 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1935 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1936 },
1937 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
1938 },
1939 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001940 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001941 &quot;text&quot;: { # The text response message. # The text response.
1942 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
1943 &quot;A String&quot;,
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001944 ],
1945 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001946 },
1947 ],
1948 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
1949 { # Represents intent parameters.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001950 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be: - a constant string, - a parameter value defined as `$parameter_name`, - an original parameter value defined as `$parameter_name.original`, - a parameter value from some context defined as `#context_name.parameter_name`.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001951 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is, whether the intent cannot be completed without collecting the parameter value.
1952 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
1953 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty result. Default values can be extracted from contexts by using the following syntax: `#context_name.parameter_name`.
1954 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001955 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the user in order to collect a value for the parameter.
1956 &quot;A String&quot;,
1957 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001958 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
1959 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that describes values of the parameter. If the parameter is required, this must be provided.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001960 },
1961 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001962 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
1963 &quot;A String&quot;,
1964 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001965 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be triggered. Format: `projects//agent/sessions/-/contexts/`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001966 &quot;A String&quot;,
1967 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001968 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent is matched. Context messages in this collection should not set the parameters field. Setting the `lifespan_count` to 0 will reset the context when the intent is matched. Format: `projects//agent/sessions/-/contexts/`.
1969 { # Dialogflow contexts are similar to natural language context. If a person says to you &quot;they are orange&quot;, you need context in order to understand what &quot;they&quot; is referring to. Similarly, for Dialogflow to handle an end-user expression like that, it needs to be provided with context in order to correctly match an intent. Using contexts, you can control the flow of a conversation. You can configure contexts for an intent by setting input and output contexts, which are identified by string names. When an intent is matched, any configured output contexts for that intent become active. While any contexts are active, Dialogflow is more likely to match intents that are configured with input contexts that correspond to the currently active contexts. For more information about context, see the [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview).
1970 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: - MapKey type: string - MapKey value: parameter name - MapValue type: - If parameter&#x27;s entity type is a composite entity: map - Else: string or number, depending on parameter value type - MapValue value: - If parameter&#x27;s entity type is a composite entity: map from composite entity property names to property values - Else: parameter value
1971 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1972 },
1973 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the context expires. The default is `0`. If set to `0`, the context expires immediately. Contexts expire automatically after 20 minutes if there are no matching queries.
1974 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format: `projects//agent/sessions//contexts/`, or `projects//agent/environments//users//sessions//contexts/`. The `Context ID` is always converted to lowercase, may only contain characters in a-zA-Z0-9_-% and may be at most 250 bytes long. If `Environment ID` is not specified, we assume default &#x27;draft&#x27; environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user. The following context names are reserved for internal use by Dialogflow. You should not use these contexts or create contexts with these names: * `__system_counters__` * `*_id_dialog_context` * `*_dialog_params_size`
1975 },
1976 ],
1977 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Format: `projects//agent/intents/`.
1978 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher priorities. - If the supplied value is unspecified or 0, the service translates the value to 500,000, which corresponds to the `Normal` priority in the console. - If the supplied value is negative, the intent is ignored in runtime detect intent requests.
1979 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent. Note: If `ml_disabled` setting is set to true, then this intent is not taken into account during inference in `ML ONLY` match mode. Also, auto-markup in the UI is turned off.
1980 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
1981 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
1982 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent. If the collection of input contexts is not empty, all of the contexts must be present in the active user session for an event to trigger this intent. Event names are limited to 150 characters.
1983 &quot;A String&quot;,
1984 ],
1985 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Read-only after creation. The unique identifier of the parent intent in the chain of followup intents. You can set this field when creating an intent, for example with CreateIntent or BatchUpdateIntents, in order to make this intent a followup intent. It identifies the parent followup intent. Format: `projects//agent/intents/`.
1986 &quot;followupIntentInfo&quot;: [ # Read-only. Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output.
1987 { # Represents a single followup intent in the chain.
1988 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
1989 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
1990 },
1991 ],
1992 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Read-only. The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. We populate this field only in the output. Format: `projects//agent/intents/`.
1993 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
1994 { # Represents an example that the agent is trained on.
1995 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
1996 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
1997 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts. The parts are concatenated in order to form the training phrase. Note: The API does not automatically annotate training phrases like the Dialogflow Console does. Note: Do not forget to include whitespace at part boundaries, so the training phrase is well formatted when the parts are concatenated. If the training phrase does not need to be annotated with parameters, you just need a single part with only the Part.text field set. If you want to annotate the training phrase, you must create multiple parts, where the fields of each part are populated in one of two ways: - `Part.text` is set to a part of the phrase that has no parameters. - `Part.text` is set to a part of the phrase that you want to annotate, and the `entity_type`, `alias`, and `user_defined` fields are all set.
1998 { # Represents a part of a training phrase.
1999 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
2000 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the annotated part of the example. This field is required for annotated parts of the training phrase.
2001 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated. This field is set to true when the Dialogflow Console is used to manually annotate the part. When creating an annotated part with the API, you must set this to true.
2002 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`. This field is required for annotated parts of the training phrase.
2003 },
2004 ],
2005 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to the intent. Each time a developer adds an existing sample by editing an intent or training, this counter is increased.
2006 },
2007 ],
2008 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent. Note: The action name must not contain whitespaces.
2009 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002010}
2011
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002012 updateMask: string, Optional. The mask to control which fields get updated.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002013 languageCode: string, Optional. The language used to access language-specific data. If not specified, the agent&#x27;s default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
Bu Sun Kim65020912020-05-20 12:08:20 -07002014 intentView: string, Optional. The resource view to apply to the returned intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002015 Allowed values
2016 INTENT_VIEW_UNSPECIFIED - Training phrases field is not populated in the response.
2017 INTENT_VIEW_FULL - All fields are populated.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002018 x__xgafv: string, V1 error format.
2019 Allowed values
2020 1 - v1 error format
2021 2 - v2 error format
2022
2023Returns:
2024 An object of the form:
2025
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002026 { # An intent categorizes an end-user&#x27;s intention for one conversation turn. For each agent, you define many intents, where your combined intents can handle a complete conversation. When an end-user writes or says something, referred to as an end-user expression or end-user input, Dialogflow matches the end-user input to the best intent in your agent. Matching an intent is also known as intent classification. For more information, see the [intent guide](https://cloud.google.com/dialogflow/docs/intents-overview).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002027 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002028 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
2029 { # A rich response message. Corresponds to the intent `Response` field in the Dialogflow console. For more information, see [Rich response messages](https://cloud.google.com/dialogflow/docs/intents-rich-messages).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002030 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002031 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
2032 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002033 &quot;items&quot;: [ # Required. List items.
2034 { # An item in the list.
2035 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
2036 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
2037 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
2038 &quot;A String&quot;,
2039 ],
2040 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002041 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2042 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2043 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
2044 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002045 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002046 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002047 },
2048 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002049 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002050 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. https://developers.google.com/actions/assistant/responses#browsing_carousel # Browse carousel card for Actions on Google.
2051 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
2052 { # Browsing carousel tile
2053 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel Card. Maximum of one line of text.
2054 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
2055 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2056 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
2057 },
2058 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
2059 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening the URL. Defaults to opening via web browser.
2060 &quot;url&quot;: &quot;A String&quot;, # Required. URL
2061 },
2062 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
2063 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
2064 },
2065 ],
2066 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
2067 },
2068 &quot;payload&quot;: { # A custom platform-specific response.
2069 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002070 },
2071 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002072 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
2073 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2074 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
2075 },
2076 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
2077 { # The button object that appears at the bottom of a card.
2078 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
2079 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2080 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2081 },
2082 },
2083 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002084 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002085 &quot;rows&quot;: [ # Optional. Rows in this table of data.
2086 { # Row of TableCard.
2087 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
2088 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
2089 { # Cell of TableCardRow.
2090 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
2091 },
2092 ],
2093 },
2094 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002095 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002096 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
2097 { # Column properties for TableCard.
2098 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
2099 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002100 },
2101 ],
2102 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002103 &quot;quickReplies&quot;: { # The quick replies response message. # The quick replies response.
2104 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
2105 &quot;A String&quot;,
2106 ],
2107 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
2108 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002109 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002110 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2111 { # The button object that appears at the bottom of a card.
2112 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
2113 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2114 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2115 },
2116 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002117 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002118 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
2119 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2120 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
2121 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002122 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002123 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002124 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2125 },
2126 &quot;card&quot;: { # The card response message. # The card response.
2127 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
2128 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2129 { # Contains information about a button.
2130 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
2131 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
2132 },
2133 ],
2134 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
2135 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2136 },
2137 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
2138 &quot;items&quot;: [ # Required. Carousel items.
2139 { # An item in the carousel.
2140 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
2141 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2142 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2143 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
2144 },
2145 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
2146 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
2147 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
2148 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
2149 &quot;A String&quot;,
2150 ],
2151 },
2152 },
2153 ],
2154 },
2155 &quot;image&quot;: { # The image response message. # The image response.
2156 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2157 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
2158 },
2159 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
2160 &quot;simpleResponses&quot;: { # The collection of simple response candidates. This message in `QueryResult.fulfillment_messages` and `WebhookResponse.fulfillment_messages` should contain only one `SimpleResponse`. # The voice and text-only responses for Actions on Google.
2161 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
2162 { # The simple response message containing speech or text.
2163 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken response to the user in the SSML format. Mutually exclusive with text_to_speech.
2164 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
2165 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the speech output. Mutually exclusive with ssml.
2166 },
2167 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002168 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002169 &quot;suggestions&quot;: { # The collection of suggestions. # The suggestion chips for Actions on Google.
2170 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
2171 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
2172 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
2173 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002174 ],
2175 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002176 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app or website associated with this agent. # The link out suggestion chip for Actions on Google.
2177 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
2178 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002179 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002180 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002181 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002182 &quot;mediaObjects&quot;: [ # Required. List of media objects.
2183 { # Response media object for media content card.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002184 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
2185 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2186 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
2187 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002188 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002189 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
2190 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
2191 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2192 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
2193 },
2194 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
2195 },
2196 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002197 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002198 &quot;text&quot;: { # The text response message. # The text response.
2199 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
2200 &quot;A String&quot;,
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002201 ],
2202 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002203 },
2204 ],
2205 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
2206 { # Represents intent parameters.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002207 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be: - a constant string, - a parameter value defined as `$parameter_name`, - an original parameter value defined as `$parameter_name.original`, - a parameter value from some context defined as `#context_name.parameter_name`.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002208 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is, whether the intent cannot be completed without collecting the parameter value.
2209 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
2210 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty result. Default values can be extracted from contexts by using the following syntax: `#context_name.parameter_name`.
2211 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002212 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the user in order to collect a value for the parameter.
2213 &quot;A String&quot;,
2214 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002215 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
2216 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that describes values of the parameter. If the parameter is required, this must be provided.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002217 },
2218 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002219 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
2220 &quot;A String&quot;,
2221 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002222 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be triggered. Format: `projects//agent/sessions/-/contexts/`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002223 &quot;A String&quot;,
2224 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002225 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent is matched. Context messages in this collection should not set the parameters field. Setting the `lifespan_count` to 0 will reset the context when the intent is matched. Format: `projects//agent/sessions/-/contexts/`.
2226 { # Dialogflow contexts are similar to natural language context. If a person says to you &quot;they are orange&quot;, you need context in order to understand what &quot;they&quot; is referring to. Similarly, for Dialogflow to handle an end-user expression like that, it needs to be provided with context in order to correctly match an intent. Using contexts, you can control the flow of a conversation. You can configure contexts for an intent by setting input and output contexts, which are identified by string names. When an intent is matched, any configured output contexts for that intent become active. While any contexts are active, Dialogflow is more likely to match intents that are configured with input contexts that correspond to the currently active contexts. For more information about context, see the [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview).
2227 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: - MapKey type: string - MapKey value: parameter name - MapValue type: - If parameter&#x27;s entity type is a composite entity: map - Else: string or number, depending on parameter value type - MapValue value: - If parameter&#x27;s entity type is a composite entity: map from composite entity property names to property values - Else: parameter value
2228 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2229 },
2230 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the context expires. The default is `0`. If set to `0`, the context expires immediately. Contexts expire automatically after 20 minutes if there are no matching queries.
2231 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format: `projects//agent/sessions//contexts/`, or `projects//agent/environments//users//sessions//contexts/`. The `Context ID` is always converted to lowercase, may only contain characters in a-zA-Z0-9_-% and may be at most 250 bytes long. If `Environment ID` is not specified, we assume default &#x27;draft&#x27; environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user. The following context names are reserved for internal use by Dialogflow. You should not use these contexts or create contexts with these names: * `__system_counters__` * `*_id_dialog_context` * `*_dialog_params_size`
2232 },
2233 ],
2234 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Format: `projects//agent/intents/`.
2235 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher priorities. - If the supplied value is unspecified or 0, the service translates the value to 500,000, which corresponds to the `Normal` priority in the console. - If the supplied value is negative, the intent is ignored in runtime detect intent requests.
2236 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent. Note: If `ml_disabled` setting is set to true, then this intent is not taken into account during inference in `ML ONLY` match mode. Also, auto-markup in the UI is turned off.
2237 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
2238 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
2239 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent. If the collection of input contexts is not empty, all of the contexts must be present in the active user session for an event to trigger this intent. Event names are limited to 150 characters.
2240 &quot;A String&quot;,
2241 ],
2242 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Read-only after creation. The unique identifier of the parent intent in the chain of followup intents. You can set this field when creating an intent, for example with CreateIntent or BatchUpdateIntents, in order to make this intent a followup intent. It identifies the parent followup intent. Format: `projects//agent/intents/`.
2243 &quot;followupIntentInfo&quot;: [ # Read-only. Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output.
2244 { # Represents a single followup intent in the chain.
2245 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
2246 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
2247 },
2248 ],
2249 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Read-only. The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. We populate this field only in the output. Format: `projects//agent/intents/`.
2250 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
2251 { # Represents an example that the agent is trained on.
2252 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
2253 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
2254 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts. The parts are concatenated in order to form the training phrase. Note: The API does not automatically annotate training phrases like the Dialogflow Console does. Note: Do not forget to include whitespace at part boundaries, so the training phrase is well formatted when the parts are concatenated. If the training phrase does not need to be annotated with parameters, you just need a single part with only the Part.text field set. If you want to annotate the training phrase, you must create multiple parts, where the fields of each part are populated in one of two ways: - `Part.text` is set to a part of the phrase that has no parameters. - `Part.text` is set to a part of the phrase that you want to annotate, and the `entity_type`, `alias`, and `user_defined` fields are all set.
2255 { # Represents a part of a training phrase.
2256 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
2257 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the annotated part of the example. This field is required for annotated parts of the training phrase.
2258 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated. This field is set to true when the Dialogflow Console is used to manually annotate the part. When creating an annotated part with the API, you must set this to true.
2259 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`. This field is required for annotated parts of the training phrase.
2260 },
2261 ],
2262 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to the intent. Each time a developer adds an existing sample by editing an intent or training, this counter is increased.
2263 },
2264 ],
2265 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent. Note: The action name must not contain whitespaces.
2266 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002267 }</pre>
2268</div>
2269
2270</body></html>