blob: e9270abd594414fd2179200c8e5f0e40d3fa7d03 [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">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070087 <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">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070093 <code><a href="#get">get(name, languageCode=None, intentView=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">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070096 <code><a href="#list">list(parent, pageToken=None, languageCode=None, intentView=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">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700102 <code><a href="#patch">patch(name, body=None, languageCode=None, intentView=None, updateMask=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).
117 &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.
118 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be triggered. Format: `projects//agent/sessions/-/contexts/`.
119 &quot;A String&quot;,
120 ],
121 &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/`.
122 { # 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).
123 &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.
124 &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
125 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
126 },
127 &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`
128 },
129 ],
130 &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.
131 &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.
132 &quot;A String&quot;,
133 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700134 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700135 &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).
136 &quot;A String&quot;,
137 ],
138 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
139 &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/`.
140 &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.
141 { # Represents a single followup intent in the chain.
142 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
143 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
144 },
145 ],
146 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700147 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700148 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
149 { # Represents intent parameters.
150 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
151 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
152 &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`.
153 &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.
154 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
155 &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.
156 &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.
157 &quot;A String&quot;,
158 ],
159 &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`.
160 },
161 ],
162 &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.
163 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
164 { # Represents an example that the agent is trained on.
165 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
166 &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.
167 &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.
168 { # Represents a part of a training phrase.
169 &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.
170 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
171 &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.
172 &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.
173 },
174 ],
175 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
176 },
177 ],
178 &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/`.
179 &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/`.
180 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
181 { # 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).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700182 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700183 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
184 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
185 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
186 },
187 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700188 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
189 { # The button object that appears at the bottom of a card.
190 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
191 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
192 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
193 },
194 },
195 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700196 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700197 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700198 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700199 &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.
200 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
201 { # The simple response message containing speech or text.
202 &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.
203 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
204 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700205 },
206 ],
207 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700208 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
209 &quot;items&quot;: [ # Required. Carousel items.
210 { # An item in the carousel.
211 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
212 &quot;image&quot;: { # The image response message. # Optional. The image to display.
213 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
214 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
215 },
216 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
217 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
218 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
219 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
220 &quot;A String&quot;,
221 ],
222 },
223 },
224 ],
225 },
226 &quot;image&quot;: { # The image response message. # The image response.
227 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
228 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
229 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700230 &quot;quickReplies&quot;: { # The quick replies response message. # The quick replies response.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700231 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700232 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
233 &quot;A String&quot;,
234 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700235 },
236 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700237 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
238 { # Column properties for TableCard.
239 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
240 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
241 },
242 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700243 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700244 &quot;rows&quot;: [ # Optional. Rows in this table of data.
245 { # Row of TableCard.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700246 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700247 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
248 { # Cell of TableCardRow.
249 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
250 },
251 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700252 },
253 ],
254 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
255 { # The button object that appears at the bottom of a card.
256 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
257 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
258 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
259 },
260 },
261 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700262 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
263 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
264 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
265 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
266 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700267 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700268 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
269 &quot;text&quot;: { # The text response message. # The text response.
270 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
271 &quot;A String&quot;,
272 ],
273 },
274 &quot;card&quot;: { # The card response message. # The card response.
275 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
276 { # Contains information about a button.
277 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
278 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
279 },
280 ],
281 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
282 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
283 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700284 },
285 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
286 &quot;mediaObjects&quot;: [ # Required. List of media objects.
287 { # Response media object for media content card.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700288 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
289 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
290 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700291 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
292 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700293 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700294 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700295 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
296 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700297 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700298 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700299 },
300 ],
301 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
302 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700303 &quot;payload&quot;: { # A custom platform-specific response.
304 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
305 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700306 &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.
307 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
308 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
309 { # Browsing carousel tile
310 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
311 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
312 &quot;url&quot;: &quot;A String&quot;, # Required. URL
313 &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.
314 },
315 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
316 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
317 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
318 },
319 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
320 &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.
321 },
322 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700323 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700324 &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.
325 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
326 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
327 },
328 &quot;suggestions&quot;: { # The collection of suggestions. # The suggestion chips for Actions on Google.
329 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
330 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
331 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
332 },
333 ],
334 },
335 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
336 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
337 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
338 &quot;items&quot;: [ # Required. List items.
339 { # An item in the list.
340 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
341 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
342 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
343 &quot;A String&quot;,
344 ],
345 },
346 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
347 &quot;image&quot;: { # The image response message. # Optional. The image to display.
348 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
349 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
350 },
351 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
352 },
353 ],
354 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700355 },
356 ],
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.
370 &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 },
373 &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}`.
374 &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.
375 &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 -0700376 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700377 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700378 },
379 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700380 &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.
381 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700382 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700383 &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`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700384 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700385 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700386 &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.
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{
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700400 &quot;intentView&quot;: &quot;A String&quot;, # Optional. The resource view to apply to the returned intent.
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).
404 &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.
405 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be triggered. Format: `projects//agent/sessions/-/contexts/`.
406 &quot;A String&quot;,
407 ],
408 &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/`.
409 { # 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).
410 &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.
411 &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
412 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
413 },
414 &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`
415 },
416 ],
417 &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.
418 &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.
419 &quot;A String&quot;,
420 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700421 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700422 &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).
423 &quot;A String&quot;,
424 ],
425 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
426 &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/`.
427 &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.
428 { # Represents a single followup intent in the chain.
429 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
430 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
431 },
432 ],
433 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700434 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700435 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
436 { # Represents intent parameters.
437 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
438 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
439 &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`.
440 &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.
441 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
442 &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.
443 &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.
444 &quot;A String&quot;,
445 ],
446 &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`.
447 },
448 ],
449 &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.
450 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
451 { # Represents an example that the agent is trained on.
452 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
453 &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.
454 &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.
455 { # Represents a part of a training phrase.
456 &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.
457 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
458 &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.
459 &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.
460 },
461 ],
462 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
463 },
464 ],
465 &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/`.
466 &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/`.
467 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
468 { # 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).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700469 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700470 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
471 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
472 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
473 },
474 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700475 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
476 { # The button object that appears at the bottom of a card.
477 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
478 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
479 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
480 },
481 },
482 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700483 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700484 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700485 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700486 &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.
487 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
488 { # The simple response message containing speech or text.
489 &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.
490 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
491 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700492 },
493 ],
494 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700495 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
496 &quot;items&quot;: [ # Required. Carousel items.
497 { # An item in the carousel.
498 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
499 &quot;image&quot;: { # The image response message. # Optional. The image to display.
500 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
501 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
502 },
503 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
504 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
505 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
506 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
507 &quot;A String&quot;,
508 ],
509 },
510 },
511 ],
512 },
513 &quot;image&quot;: { # The image response message. # The image response.
514 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
515 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
516 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700517 &quot;quickReplies&quot;: { # The quick replies response message. # The quick replies response.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700518 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700519 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
520 &quot;A String&quot;,
521 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700522 },
523 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700524 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
525 { # Column properties for TableCard.
526 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
527 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
528 },
529 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700530 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700531 &quot;rows&quot;: [ # Optional. Rows in this table of data.
532 { # Row of TableCard.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700533 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700534 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
535 { # Cell of TableCardRow.
536 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
537 },
538 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700539 },
540 ],
541 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
542 { # The button object that appears at the bottom of a card.
543 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
544 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
545 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
546 },
547 },
548 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700549 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
550 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
551 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
552 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
553 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700554 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700555 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
556 &quot;text&quot;: { # The text response message. # The text response.
557 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
558 &quot;A String&quot;,
559 ],
560 },
561 &quot;card&quot;: { # The card response message. # The card response.
562 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
563 { # Contains information about a button.
564 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
565 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
566 },
567 ],
568 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
569 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
570 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700571 },
572 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
573 &quot;mediaObjects&quot;: [ # Required. List of media objects.
574 { # Response media object for media content card.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700575 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
576 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
577 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700578 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
579 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700580 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700581 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700582 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
583 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700584 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700585 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700586 },
587 ],
588 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
589 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700590 &quot;payload&quot;: { # A custom platform-specific response.
591 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
592 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700593 &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.
594 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
595 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
596 { # Browsing carousel tile
597 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
598 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
599 &quot;url&quot;: &quot;A String&quot;, # Required. URL
600 &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.
601 },
602 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
603 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
604 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
605 },
606 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
607 &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.
608 },
609 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700610 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700611 &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.
612 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
613 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
614 },
615 &quot;suggestions&quot;: { # The collection of suggestions. # The suggestion chips for Actions on Google.
616 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
617 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
618 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
619 },
620 ],
621 },
622 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
623 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
624 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
625 &quot;items&quot;: [ # Required. List items.
626 { # An item in the list.
627 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
628 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
629 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
630 &quot;A String&quot;,
631 ],
632 },
633 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
634 &quot;image&quot;: { # The image response message. # Optional. The image to display.
635 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
636 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
637 },
638 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
639 },
640 ],
641 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700642 },
643 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700644 },
645 ],
646 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700647 &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 Kim65020912020-05-20 12:08:20 -0700648 &quot;updateMask&quot;: &quot;A String&quot;, # Optional. The mask to control which fields get updated.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700649 &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 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.
661 &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 },
664 &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}`.
665 &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.
666 &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 -0700667 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700668 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700669 },
670 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700671 &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.
672 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700673 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700674 &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`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700675 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700676 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700677 &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.
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">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700687 <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).
696 &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.
697 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be triggered. Format: `projects//agent/sessions/-/contexts/`.
698 &quot;A String&quot;,
699 ],
700 &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/`.
701 { # 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).
702 &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.
703 &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
704 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
705 },
706 &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`
707 },
708 ],
709 &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.
710 &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.
711 &quot;A String&quot;,
712 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700713 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700714 &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).
715 &quot;A String&quot;,
716 ],
717 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
718 &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/`.
719 &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.
720 { # Represents a single followup intent in the chain.
721 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
722 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
723 },
724 ],
725 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700726 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700727 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
728 { # Represents intent parameters.
729 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
730 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
731 &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`.
732 &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.
733 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
734 &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.
735 &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.
736 &quot;A String&quot;,
737 ],
738 &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`.
739 },
740 ],
741 &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.
742 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
743 { # Represents an example that the agent is trained on.
744 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
745 &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.
746 &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.
747 { # Represents a part of a training phrase.
748 &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.
749 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
750 &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.
751 &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.
752 },
753 ],
754 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
755 },
756 ],
757 &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/`.
758 &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/`.
759 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
760 { # 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).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700761 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700762 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
763 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
764 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
765 },
766 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700767 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
768 { # The button object that appears at the bottom of a card.
769 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
770 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
771 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
772 },
773 },
774 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700775 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700776 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700777 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700778 &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.
779 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
780 { # The simple response message containing speech or text.
781 &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.
782 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
783 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700784 },
785 ],
786 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700787 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
788 &quot;items&quot;: [ # Required. Carousel items.
789 { # An item in the carousel.
790 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
791 &quot;image&quot;: { # The image response message. # Optional. The image to display.
792 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
793 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
794 },
795 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
796 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
797 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
798 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
799 &quot;A String&quot;,
800 ],
801 },
802 },
803 ],
804 },
805 &quot;image&quot;: { # The image response message. # The image response.
806 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
807 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
808 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700809 &quot;quickReplies&quot;: { # The quick replies response message. # The quick replies response.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700810 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700811 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
812 &quot;A String&quot;,
813 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700814 },
815 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700816 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
817 { # Column properties for TableCard.
818 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
819 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
820 },
821 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700822 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700823 &quot;rows&quot;: [ # Optional. Rows in this table of data.
824 { # Row of TableCard.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700825 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700826 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
827 { # Cell of TableCardRow.
828 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
829 },
830 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700831 },
832 ],
833 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
834 { # The button object that appears at the bottom of a card.
835 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
836 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
837 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
838 },
839 },
840 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700841 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
842 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
843 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
844 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
845 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700846 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700847 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
848 &quot;text&quot;: { # The text response message. # The text response.
849 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
850 &quot;A String&quot;,
851 ],
852 },
853 &quot;card&quot;: { # The card response message. # The card response.
854 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
855 { # Contains information about a button.
856 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
857 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
858 },
859 ],
860 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
861 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
862 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700863 },
864 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
865 &quot;mediaObjects&quot;: [ # Required. List of media objects.
866 { # Response media object for media content card.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700867 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
868 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
869 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700870 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
871 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700872 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700873 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700874 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
875 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700876 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700877 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700878 },
879 ],
880 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
881 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700882 &quot;payload&quot;: { # A custom platform-specific response.
883 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
884 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700885 &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.
886 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
887 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
888 { # Browsing carousel tile
889 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
890 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
891 &quot;url&quot;: &quot;A String&quot;, # Required. URL
892 &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.
893 },
894 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
895 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
896 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
897 },
898 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
899 &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.
900 },
901 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700902 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700903 &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.
904 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
905 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
906 },
907 &quot;suggestions&quot;: { # The collection of suggestions. # The suggestion chips for Actions on Google.
908 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
909 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
910 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
911 },
912 ],
913 },
914 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
915 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
916 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
917 &quot;items&quot;: [ # Required. List items.
918 { # An item in the list.
919 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
920 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
921 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
922 &quot;A String&quot;,
923 ],
924 },
925 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
926 &quot;image&quot;: { # The image response message. # Optional. The image to display.
927 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
928 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
929 },
930 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
931 },
932 ],
933 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700934 },
935 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700936}
937
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700938 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).
952 &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.
953 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be triggered. Format: `projects//agent/sessions/-/contexts/`.
954 &quot;A String&quot;,
955 ],
956 &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/`.
957 { # 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).
958 &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.
959 &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
960 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
961 },
962 &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`
963 },
964 ],
965 &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.
966 &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.
967 &quot;A String&quot;,
968 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700969 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700970 &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).
971 &quot;A String&quot;,
972 ],
973 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
974 &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/`.
975 &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.
976 { # Represents a single followup intent in the chain.
977 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
978 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
979 },
980 ],
981 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700982 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700983 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
984 { # Represents intent parameters.
985 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
986 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
987 &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`.
988 &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.
989 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
990 &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.
991 &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.
992 &quot;A String&quot;,
993 ],
994 &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`.
995 },
996 ],
997 &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.
998 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
999 { # Represents an example that the agent is trained on.
1000 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
1001 &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.
1002 &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.
1003 { # Represents a part of a training phrase.
1004 &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.
1005 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
1006 &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.
1007 &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.
1008 },
1009 ],
1010 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
1011 },
1012 ],
1013 &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/`.
1014 &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/`.
1015 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
1016 { # 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).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001017 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001018 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
1019 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1020 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1021 },
1022 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001023 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1024 { # The button object that appears at the bottom of a card.
1025 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1026 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1027 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1028 },
1029 },
1030 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001031 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001032 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001033 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001034 &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.
1035 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
1036 { # The simple response message containing speech or text.
1037 &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.
1038 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
1039 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001040 },
1041 ],
1042 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001043 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
1044 &quot;items&quot;: [ # Required. Carousel items.
1045 { # An item in the carousel.
1046 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
1047 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1048 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1049 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1050 },
1051 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
1052 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
1053 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
1054 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1055 &quot;A String&quot;,
1056 ],
1057 },
1058 },
1059 ],
1060 },
1061 &quot;image&quot;: { # The image response message. # The image response.
1062 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1063 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1064 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001065 &quot;quickReplies&quot;: { # The quick replies response message. # The quick replies response.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001066 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001067 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
1068 &quot;A String&quot;,
1069 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001070 },
1071 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001072 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
1073 { # Column properties for TableCard.
1074 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
1075 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
1076 },
1077 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001078 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001079 &quot;rows&quot;: [ # Optional. Rows in this table of data.
1080 { # Row of TableCard.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001081 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001082 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
1083 { # Cell of TableCardRow.
1084 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
1085 },
1086 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001087 },
1088 ],
1089 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
1090 { # The button object that appears at the bottom of a card.
1091 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1092 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1093 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1094 },
1095 },
1096 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001097 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
1098 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
1099 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1100 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1101 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001102 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001103 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
1104 &quot;text&quot;: { # The text response message. # The text response.
1105 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
1106 &quot;A String&quot;,
1107 ],
1108 },
1109 &quot;card&quot;: { # The card response message. # The card response.
1110 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1111 { # Contains information about a button.
1112 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
1113 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
1114 },
1115 ],
1116 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
1117 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1118 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001119 },
1120 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
1121 &quot;mediaObjects&quot;: [ # Required. List of media objects.
1122 { # Response media object for media content card.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001123 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
1124 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
1125 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001126 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
1127 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001128 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001129 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001130 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
1131 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001132 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001133 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001134 },
1135 ],
1136 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
1137 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001138 &quot;payload&quot;: { # A custom platform-specific response.
1139 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1140 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001141 &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.
1142 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
1143 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
1144 { # Browsing carousel tile
1145 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
1146 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
1147 &quot;url&quot;: &quot;A String&quot;, # Required. URL
1148 &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.
1149 },
1150 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
1151 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1152 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1153 },
1154 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
1155 &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.
1156 },
1157 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001158 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001159 &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.
1160 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
1161 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
1162 },
1163 &quot;suggestions&quot;: { # The collection of suggestions. # The suggestion chips for Actions on Google.
1164 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
1165 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
1166 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
1167 },
1168 ],
1169 },
1170 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
1171 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
1172 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
1173 &quot;items&quot;: [ # Required. List items.
1174 { # An item in the list.
1175 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
1176 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
1177 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1178 &quot;A String&quot;,
1179 ],
1180 },
1181 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
1182 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1183 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1184 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1185 },
1186 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
1187 },
1188 ],
1189 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001190 },
1191 ],
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">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001214 <code class="details" id="get">get(name, languageCode=None, intentView=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)
1219 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 -07001220 intentView: string, Optional. The resource view to apply to the returned intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001221 Allowed values
1222 INTENT_VIEW_UNSPECIFIED - Training phrases field is not populated in the response.
1223 INTENT_VIEW_FULL - All fields are populated.
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).
1233 &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.
1234 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be triggered. Format: `projects//agent/sessions/-/contexts/`.
1235 &quot;A String&quot;,
1236 ],
1237 &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/`.
1238 { # 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).
1239 &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.
1240 &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
1241 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1242 },
1243 &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`
1244 },
1245 ],
1246 &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.
1247 &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.
1248 &quot;A String&quot;,
1249 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001250 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001251 &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).
1252 &quot;A String&quot;,
1253 ],
1254 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
1255 &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/`.
1256 &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.
1257 { # Represents a single followup intent in the chain.
1258 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
1259 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
1260 },
1261 ],
1262 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001263 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001264 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
1265 { # Represents intent parameters.
1266 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
1267 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
1268 &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`.
1269 &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.
1270 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
1271 &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.
1272 &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.
1273 &quot;A String&quot;,
1274 ],
1275 &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`.
1276 },
1277 ],
1278 &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.
1279 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
1280 { # Represents an example that the agent is trained on.
1281 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
1282 &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.
1283 &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.
1284 { # Represents a part of a training phrase.
1285 &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.
1286 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
1287 &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.
1288 &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.
1289 },
1290 ],
1291 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
1292 },
1293 ],
1294 &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/`.
1295 &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/`.
1296 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
1297 { # 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).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001298 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001299 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
1300 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1301 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1302 },
1303 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001304 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1305 { # The button object that appears at the bottom of a card.
1306 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1307 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1308 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1309 },
1310 },
1311 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001312 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001313 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001314 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001315 &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.
1316 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
1317 { # The simple response message containing speech or text.
1318 &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.
1319 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
1320 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001321 },
1322 ],
1323 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001324 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
1325 &quot;items&quot;: [ # Required. Carousel items.
1326 { # An item in the carousel.
1327 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
1328 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1329 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1330 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1331 },
1332 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
1333 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
1334 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
1335 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1336 &quot;A String&quot;,
1337 ],
1338 },
1339 },
1340 ],
1341 },
1342 &quot;image&quot;: { # The image response message. # The image response.
1343 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1344 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1345 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001346 &quot;quickReplies&quot;: { # The quick replies response message. # The quick replies response.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001347 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001348 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
1349 &quot;A String&quot;,
1350 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001351 },
1352 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001353 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
1354 { # Column properties for TableCard.
1355 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
1356 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
1357 },
1358 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001359 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001360 &quot;rows&quot;: [ # Optional. Rows in this table of data.
1361 { # Row of TableCard.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001362 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001363 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
1364 { # Cell of TableCardRow.
1365 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
1366 },
1367 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001368 },
1369 ],
1370 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
1371 { # The button object that appears at the bottom of a card.
1372 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1373 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1374 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1375 },
1376 },
1377 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001378 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
1379 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
1380 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1381 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1382 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001383 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001384 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
1385 &quot;text&quot;: { # The text response message. # The text response.
1386 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
1387 &quot;A String&quot;,
1388 ],
1389 },
1390 &quot;card&quot;: { # The card response message. # The card response.
1391 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1392 { # Contains information about a button.
1393 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
1394 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
1395 },
1396 ],
1397 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
1398 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1399 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001400 },
1401 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
1402 &quot;mediaObjects&quot;: [ # Required. List of media objects.
1403 { # Response media object for media content card.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001404 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
1405 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
1406 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001407 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
1408 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001409 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001410 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001411 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
1412 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001413 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001414 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001415 },
1416 ],
1417 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
1418 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001419 &quot;payload&quot;: { # A custom platform-specific response.
1420 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1421 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001422 &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.
1423 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
1424 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
1425 { # Browsing carousel tile
1426 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
1427 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
1428 &quot;url&quot;: &quot;A String&quot;, # Required. URL
1429 &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.
1430 },
1431 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
1432 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1433 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1434 },
1435 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
1436 &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.
1437 },
1438 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001439 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001440 &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.
1441 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
1442 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
1443 },
1444 &quot;suggestions&quot;: { # The collection of suggestions. # The suggestion chips for Actions on Google.
1445 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
1446 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
1447 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
1448 },
1449 ],
1450 },
1451 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
1452 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
1453 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
1454 &quot;items&quot;: [ # Required. List items.
1455 { # An item in the list.
1456 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
1457 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
1458 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1459 &quot;A String&quot;,
1460 ],
1461 },
1462 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
1463 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1464 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1465 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1466 },
1467 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
1468 },
1469 ],
1470 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001471 },
1472 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001473 }</pre>
1474</div>
1475
1476<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001477 <code class="details" id="list">list(parent, pageToken=None, languageCode=None, intentView=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 Kim65020912020-05-20 12:08:20 -07001482 pageToken: string, Optional. The next_page_token value returned from a previous list request.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001483 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 -07001484 intentView: string, Optional. The resource view to apply to the returned intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001485 Allowed values
1486 INTENT_VIEW_UNSPECIFIED - Training phrases field is not populated in the response.
1487 INTENT_VIEW_FULL - All fields are populated.
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).
1500 &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.
1501 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be triggered. Format: `projects//agent/sessions/-/contexts/`.
1502 &quot;A String&quot;,
1503 ],
1504 &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/`.
1505 { # 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).
1506 &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.
1507 &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
1508 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1509 },
1510 &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`
1511 },
1512 ],
1513 &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.
1514 &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.
1515 &quot;A String&quot;,
1516 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001517 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001518 &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).
1519 &quot;A String&quot;,
1520 ],
1521 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
1522 &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/`.
1523 &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.
1524 { # Represents a single followup intent in the chain.
1525 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
1526 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
1527 },
1528 ],
1529 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001530 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001531 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
1532 { # Represents intent parameters.
1533 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
1534 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
1535 &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`.
1536 &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.
1537 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
1538 &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.
1539 &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.
1540 &quot;A String&quot;,
1541 ],
1542 &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`.
1543 },
1544 ],
1545 &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.
1546 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
1547 { # Represents an example that the agent is trained on.
1548 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
1549 &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.
1550 &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.
1551 { # Represents a part of a training phrase.
1552 &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.
1553 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
1554 &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.
1555 &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.
1556 },
1557 ],
1558 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
1559 },
1560 ],
1561 &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/`.
1562 &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/`.
1563 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
1564 { # 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).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001565 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001566 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
1567 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1568 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1569 },
1570 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001571 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1572 { # The button object that appears at the bottom of a card.
1573 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1574 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1575 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1576 },
1577 },
1578 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001579 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001580 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001581 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001582 &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.
1583 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
1584 { # The simple response message containing speech or text.
1585 &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.
1586 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
1587 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001588 },
1589 ],
1590 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001591 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
1592 &quot;items&quot;: [ # Required. Carousel items.
1593 { # An item in the carousel.
1594 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
1595 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1596 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1597 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1598 },
1599 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
1600 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
1601 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
1602 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1603 &quot;A String&quot;,
1604 ],
1605 },
1606 },
1607 ],
1608 },
1609 &quot;image&quot;: { # The image response message. # The image response.
1610 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1611 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1612 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001613 &quot;quickReplies&quot;: { # The quick replies response message. # The quick replies response.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001614 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001615 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
1616 &quot;A String&quot;,
1617 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001618 },
1619 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001620 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
1621 { # Column properties for TableCard.
1622 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
1623 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
1624 },
1625 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001626 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001627 &quot;rows&quot;: [ # Optional. Rows in this table of data.
1628 { # Row of TableCard.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001629 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001630 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
1631 { # Cell of TableCardRow.
1632 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
1633 },
1634 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001635 },
1636 ],
1637 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
1638 { # The button object that appears at the bottom of a card.
1639 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1640 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1641 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1642 },
1643 },
1644 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001645 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
1646 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
1647 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1648 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1649 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001650 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001651 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
1652 &quot;text&quot;: { # The text response message. # The text response.
1653 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
1654 &quot;A String&quot;,
1655 ],
1656 },
1657 &quot;card&quot;: { # The card response message. # The card response.
1658 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1659 { # Contains information about a button.
1660 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
1661 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
1662 },
1663 ],
1664 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
1665 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1666 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001667 },
1668 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
1669 &quot;mediaObjects&quot;: [ # Required. List of media objects.
1670 { # Response media object for media content card.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001671 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
1672 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
1673 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001674 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
1675 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001676 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001677 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001678 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
1679 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001680 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001681 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001682 },
1683 ],
1684 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
1685 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001686 &quot;payload&quot;: { # A custom platform-specific response.
1687 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1688 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001689 &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.
1690 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
1691 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
1692 { # Browsing carousel tile
1693 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
1694 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
1695 &quot;url&quot;: &quot;A String&quot;, # Required. URL
1696 &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.
1697 },
1698 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
1699 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1700 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1701 },
1702 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
1703 &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.
1704 },
1705 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001706 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001707 &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.
1708 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
1709 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
1710 },
1711 &quot;suggestions&quot;: { # The collection of suggestions. # The suggestion chips for Actions on Google.
1712 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
1713 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
1714 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
1715 },
1716 ],
1717 },
1718 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
1719 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
1720 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
1721 &quot;items&quot;: [ # Required. List items.
1722 { # An item in the list.
1723 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
1724 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
1725 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1726 &quot;A String&quot;,
1727 ],
1728 },
1729 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
1730 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1731 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1732 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1733 },
1734 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
1735 },
1736 ],
1737 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001738 },
1739 ],
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">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001761 <code class="details" id="patch">patch(name, body=None, languageCode=None, intentView=None, updateMask=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).
1770 &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.
1771 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be triggered. Format: `projects//agent/sessions/-/contexts/`.
1772 &quot;A String&quot;,
1773 ],
1774 &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/`.
1775 { # 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).
1776 &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.
1777 &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
1778 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1779 },
1780 &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`
1781 },
1782 ],
1783 &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.
1784 &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.
1785 &quot;A String&quot;,
1786 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001787 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001788 &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).
1789 &quot;A String&quot;,
1790 ],
1791 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
1792 &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/`.
1793 &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.
1794 { # Represents a single followup intent in the chain.
1795 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
1796 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
1797 },
1798 ],
1799 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001800 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001801 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
1802 { # Represents intent parameters.
1803 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
1804 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
1805 &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`.
1806 &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.
1807 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
1808 &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.
1809 &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.
1810 &quot;A String&quot;,
1811 ],
1812 &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`.
1813 },
1814 ],
1815 &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.
1816 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
1817 { # Represents an example that the agent is trained on.
1818 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
1819 &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.
1820 &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.
1821 { # Represents a part of a training phrase.
1822 &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.
1823 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
1824 &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.
1825 &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.
1826 },
1827 ],
1828 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
1829 },
1830 ],
1831 &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/`.
1832 &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/`.
1833 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
1834 { # 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).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001835 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001836 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
1837 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1838 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1839 },
1840 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001841 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1842 { # The button object that appears at the bottom of a card.
1843 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1844 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1845 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1846 },
1847 },
1848 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001849 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001850 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001851 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001852 &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.
1853 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
1854 { # The simple response message containing speech or text.
1855 &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.
1856 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
1857 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001858 },
1859 ],
1860 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001861 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
1862 &quot;items&quot;: [ # Required. Carousel items.
1863 { # An item in the carousel.
1864 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
1865 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1866 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1867 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1868 },
1869 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
1870 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
1871 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
1872 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1873 &quot;A String&quot;,
1874 ],
1875 },
1876 },
1877 ],
1878 },
1879 &quot;image&quot;: { # The image response message. # The image response.
1880 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1881 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1882 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001883 &quot;quickReplies&quot;: { # The quick replies response message. # The quick replies response.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001884 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001885 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
1886 &quot;A String&quot;,
1887 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001888 },
1889 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001890 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
1891 { # Column properties for TableCard.
1892 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
1893 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
1894 },
1895 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001896 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001897 &quot;rows&quot;: [ # Optional. Rows in this table of data.
1898 { # Row of TableCard.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001899 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001900 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
1901 { # Cell of TableCardRow.
1902 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
1903 },
1904 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001905 },
1906 ],
1907 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
1908 { # The button object that appears at the bottom of a card.
1909 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1910 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1911 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1912 },
1913 },
1914 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001915 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
1916 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
1917 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1918 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1919 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001920 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001921 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
1922 &quot;text&quot;: { # The text response message. # The text response.
1923 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
1924 &quot;A String&quot;,
1925 ],
1926 },
1927 &quot;card&quot;: { # The card response message. # The card response.
1928 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1929 { # Contains information about a button.
1930 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
1931 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
1932 },
1933 ],
1934 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
1935 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1936 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001937 },
1938 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
1939 &quot;mediaObjects&quot;: [ # Required. List of media objects.
1940 { # Response media object for media content card.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001941 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
1942 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
1943 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001944 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
1945 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001946 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001947 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001948 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
1949 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001950 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001951 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001952 },
1953 ],
1954 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
1955 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001956 &quot;payload&quot;: { # A custom platform-specific response.
1957 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1958 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001959 &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.
1960 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
1961 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
1962 { # Browsing carousel tile
1963 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
1964 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
1965 &quot;url&quot;: &quot;A String&quot;, # Required. URL
1966 &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.
1967 },
1968 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
1969 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1970 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1971 },
1972 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
1973 &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.
1974 },
1975 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001976 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001977 &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.
1978 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
1979 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
1980 },
1981 &quot;suggestions&quot;: { # The collection of suggestions. # The suggestion chips for Actions on Google.
1982 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
1983 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
1984 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
1985 },
1986 ],
1987 },
1988 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
1989 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
1990 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
1991 &quot;items&quot;: [ # Required. List items.
1992 { # An item in the list.
1993 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
1994 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
1995 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1996 &quot;A String&quot;,
1997 ],
1998 },
1999 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
2000 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2001 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2002 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
2003 },
2004 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
2005 },
2006 ],
2007 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002008 },
2009 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002010}
2011
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002012 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 -07002013 intentView: string, Optional. The resource view to apply to the returned intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002014 Allowed values
2015 INTENT_VIEW_UNSPECIFIED - Training phrases field is not populated in the response.
2016 INTENT_VIEW_FULL - All fields are populated.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002017 updateMask: string, Optional. The mask to control which fields get updated.
2018 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).
2027 &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.
2028 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be triggered. Format: `projects//agent/sessions/-/contexts/`.
2029 &quot;A String&quot;,
2030 ],
2031 &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/`.
2032 { # 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).
2033 &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.
2034 &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
2035 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2036 },
2037 &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`
2038 },
2039 ],
2040 &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.
2041 &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.
2042 &quot;A String&quot;,
2043 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002044 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002045 &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).
2046 &quot;A String&quot;,
2047 ],
2048 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
2049 &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/`.
2050 &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.
2051 { # Represents a single followup intent in the chain.
2052 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
2053 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
2054 },
2055 ],
2056 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002057 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002058 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
2059 { # Represents intent parameters.
2060 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
2061 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
2062 &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`.
2063 &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.
2064 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
2065 &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.
2066 &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.
2067 &quot;A String&quot;,
2068 ],
2069 &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`.
2070 },
2071 ],
2072 &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.
2073 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
2074 { # Represents an example that the agent is trained on.
2075 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
2076 &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.
2077 &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.
2078 { # Represents a part of a training phrase.
2079 &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.
2080 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
2081 &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.
2082 &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.
2083 },
2084 ],
2085 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
2086 },
2087 ],
2088 &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/`.
2089 &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/`.
2090 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
2091 { # 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).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002092 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002093 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
2094 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2095 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
2096 },
2097 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002098 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2099 { # The button object that appears at the bottom of a card.
2100 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
2101 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2102 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2103 },
2104 },
2105 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002106 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002107 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002108 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002109 &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.
2110 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
2111 { # The simple response message containing speech or text.
2112 &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.
2113 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
2114 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002115 },
2116 ],
2117 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002118 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
2119 &quot;items&quot;: [ # Required. Carousel items.
2120 { # An item in the carousel.
2121 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
2122 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2123 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2124 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
2125 },
2126 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
2127 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
2128 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
2129 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
2130 &quot;A String&quot;,
2131 ],
2132 },
2133 },
2134 ],
2135 },
2136 &quot;image&quot;: { # The image response message. # The image response.
2137 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2138 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
2139 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002140 &quot;quickReplies&quot;: { # The quick replies response message. # The quick replies response.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002141 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002142 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
2143 &quot;A String&quot;,
2144 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002145 },
2146 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002147 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
2148 { # Column properties for TableCard.
2149 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
2150 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
2151 },
2152 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002153 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002154 &quot;rows&quot;: [ # Optional. Rows in this table of data.
2155 { # Row of TableCard.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002156 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002157 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
2158 { # Cell of TableCardRow.
2159 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
2160 },
2161 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002162 },
2163 ],
2164 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
2165 { # The button object that appears at the bottom of a card.
2166 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
2167 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2168 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2169 },
2170 },
2171 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002172 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
2173 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
2174 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2175 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
2176 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002177 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002178 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
2179 &quot;text&quot;: { # The text response message. # The text response.
2180 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
2181 &quot;A String&quot;,
2182 ],
2183 },
2184 &quot;card&quot;: { # The card response message. # The card response.
2185 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2186 { # Contains information about a button.
2187 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
2188 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
2189 },
2190 ],
2191 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
2192 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2193 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002194 },
2195 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
2196 &quot;mediaObjects&quot;: [ # Required. List of media objects.
2197 { # Response media object for media content card.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002198 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
2199 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
2200 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002201 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
2202 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002203 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002204 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002205 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
2206 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002207 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002208 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002209 },
2210 ],
2211 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
2212 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002213 &quot;payload&quot;: { # A custom platform-specific response.
2214 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2215 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002216 &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.
2217 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
2218 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
2219 { # Browsing carousel tile
2220 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
2221 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
2222 &quot;url&quot;: &quot;A String&quot;, # Required. URL
2223 &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.
2224 },
2225 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
2226 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2227 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
2228 },
2229 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
2230 &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.
2231 },
2232 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002233 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002234 &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.
2235 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
2236 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
2237 },
2238 &quot;suggestions&quot;: { # The collection of suggestions. # The suggestion chips for Actions on Google.
2239 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
2240 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
2241 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
2242 },
2243 ],
2244 },
2245 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
2246 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
2247 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
2248 &quot;items&quot;: [ # Required. List items.
2249 { # An item in the list.
2250 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
2251 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
2252 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
2253 &quot;A String&quot;,
2254 ],
2255 },
2256 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
2257 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2258 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2259 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
2260 },
2261 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
2262 },
2263 ],
2264 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002265 },
2266 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002267 }</pre>
2268</div>
2269
2270</body></html>