blob: 2cff99d4562b46062a02cbbaa9e8e26da88c6a18 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="dialogflow_v2beta1.html">Dialogflow API</a> . <a href="dialogflow_v2beta1.projects.html">projects</a> . <a href="dialogflow_v2beta1.projects.agent.html">agent</a> . <a href="dialogflow_v2beta1.projects.agent.intents.html">intents</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#batchDelete">batchDelete(parent, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070079<p class="firstline">Deletes intents in the specified agent.</p>
80<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#batchUpdate">batchUpdate(parent, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070082<p class="firstline">Updates/Creates multiple intents in the specified agent.</p>
83<p class="toc_element">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -070084 <code><a href="#create">create(parent, body=None, languageCode=None, intentView=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070085<p class="firstline">Creates an intent in the specified agent.</p>
86<p class="toc_element">
87 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
88<p class="firstline">Deletes the specified intent and its direct or indirect followup intents.</p>
89<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070090 <code><a href="#get">get(name, intentView=None, languageCode=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070091<p class="firstline">Retrieves the specified intent.</p>
92<p class="toc_element">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -070093 <code><a href="#list">list(parent, pageToken=None, pageSize=None, intentView=None, languageCode=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070094<p class="firstline">Returns the list of all intents in the specified agent.</p>
95<p class="toc_element">
96 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
97<p class="firstline">Retrieves the next page of results.</p>
98<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070099 <code><a href="#patch">patch(name, body=None, intentView=None, languageCode=None, updateMask=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700100<p class="firstline">Updates the specified intent.</p>
101<h3>Method Details</h3>
102<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700103 <code class="details" id="batchDelete">batchDelete(parent, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700104 <pre>Deletes intents in the specified agent.
105
Dan O'Mearadd494642020-05-01 07:42:23 -0700106Operation &lt;response: google.protobuf.Empty&gt;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700107
108Args:
109 parent: string, Required. The name of the agent to delete all entities types for. Format:
Dan O'Mearadd494642020-05-01 07:42:23 -0700110`projects/&lt;Project ID&gt;/agent`. (required)
111 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700112 The object takes the form of:
113
114{ # The request message for Intents.BatchDeleteIntents.
Bu Sun Kim65020912020-05-20 12:08:20 -0700115 &quot;intents&quot;: [ # Required. The collection of intents to delete. Only intent `name` must be
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700116 # filled in.
117 { # Represents an intent.
118 # Intents convert a number of user expressions or patterns into an action. An
119 # action is an extraction of a user command or sentence semantics.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700120 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
121 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Output only. The unique identifier of the root intent in the chain of
122 # followup intents. It identifies the correct followup intents chain for
123 # this intent.
124 #
125 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
126 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
127 # Note: If `ml_disabled` setting is set to true, then this intent is not
128 # taken into account during inference in `ML ONLY` match mode. Also,
129 # auto-markup in the UI is turned off.
130 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
131 &quot;mlEnabled&quot;: True or False, # Optional. Indicates whether Machine Learning is enabled for the intent.
132 # Note: If `ml_enabled` setting is set to false, then this intent is not
133 # taken into account during inference in `ML ONLY` match mode. Also,
134 # auto-markup in the UI is turned off.
135 # DEPRECATED! Please use `ml_disabled` field instead.
136 # NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false,
137 # then the default value is determined as follows:
138 # - Before April 15th, 2018 the default is:
139 # ml_enabled = false / ml_disabled = true.
140 # - After April 15th, 2018 the default is:
141 # ml_enabled = true / ml_disabled = false.
Bu Sun Kim65020912020-05-20 12:08:20 -0700142 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is
Dan O'Mearadd494642020-05-01 07:42:23 -0700143 # trained on.
144 { # Represents an example that the agent is trained on.
Bu Sun Kim65020912020-05-20 12:08:20 -0700145 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts.
Dan O'Mearadd494642020-05-01 07:42:23 -0700146 # The parts are concatenated in order to form the training phrase.
147 #
148 # Note: The API does not automatically annotate training phrases like the
149 # Dialogflow Console does.
150 #
151 # Note: Do not forget to include whitespace at part boundaries,
152 # so the training phrase is well formatted when the parts are concatenated.
153 #
154 # If the training phrase does not need to be annotated with parameters,
155 # you just need a single part with only the Part.text field set.
156 #
157 # If you want to annotate the training phrase, you must create multiple
158 # parts, where the fields of each part are populated in one of two ways:
159 #
160 # - `Part.text` is set to a part of the phrase that has no parameters.
161 # - `Part.text` is set to a part of the phrase that you want to annotate,
162 # and the `entity_type`, `alias`, and `user_defined` fields are all
163 # set.
164 { # Represents a part of a training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -0700165 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the
Dan O'Mearadd494642020-05-01 07:42:23 -0700166 # annotated part of the example.
167 # This field is required for annotated parts of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -0700168 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated.
Dan O'Mearadd494642020-05-01 07:42:23 -0700169 # This field is set to true when the Dialogflow Console is used to
170 # manually annotate the part. When creating an annotated part with the
171 # API, you must set this to true.
Bu Sun Kim65020912020-05-20 12:08:20 -0700172 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
173 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`.
174 # This field is required for annotated parts of the training phrase.
Dan O'Mearadd494642020-05-01 07:42:23 -0700175 },
176 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700177 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
178 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to
Dan O'Mearadd494642020-05-01 07:42:23 -0700179 # the intent. Each time a developer adds an existing sample by editing an
180 # intent or training, this counter is increased.
Bu Sun Kim65020912020-05-20 12:08:20 -0700181 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
Dan O'Mearadd494642020-05-01 07:42:23 -0700182 },
183 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700184 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current
185 # session when this intent is matched.
186 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
187 { # Represents intent parameters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700188 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that
189 # describes values of the parameter. If the parameter is
190 # required, this must be provided.
191 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the
192 # user in order to collect a value for the parameter.
193 &quot;A String&quot;,
194 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700195 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is,
196 # whether the intent cannot be completed without collecting the parameter
197 # value.
Bu Sun Kim65020912020-05-20 12:08:20 -0700198 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty
199 # result.
200 # Default values can be extracted from contexts by using the following
201 # syntax: `#context_name.parameter_name`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700202 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
203 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
204 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be:
205 #
206 # - a constant string,
207 # - a parameter value defined as `$parameter_name`,
208 # - an original parameter value defined as `$parameter_name.original`,
209 # - a parameter value from some context defined as
210 # `#context_name.parameter_name`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700211 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
Bu Sun Kim65020912020-05-20 12:08:20 -0700212 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700213 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700214 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent.
215 # If the collection of input contexts is not empty, all of the contexts must
216 # be present in the active user session for an event to trigger this intent.
217 # Event names are limited to 150 characters.
218 &quot;A String&quot;,
219 ],
220 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Optional. The unique identifier of the parent intent in the
221 # chain of followup intents. You can set this field when creating an intent,
222 # for example with CreateIntent or
223 # BatchUpdateIntents, in order to make this
224 # intent a followup intent.
225 #
226 # It identifies the parent followup intent.
227 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
228 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher
Dan O'Mearadd494642020-05-01 07:42:23 -0700229 # priorities.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700230 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700231 # - If the supplied value is unspecified or 0, the service
232 # translates the value to 500,000, which corresponds to the
233 # `Normal` priority in the console.
234 # - If the supplied value is negative, the intent is ignored
235 # in runtime detect intent requests.
Bu Sun Kim65020912020-05-20 12:08:20 -0700236 &quot;endInteraction&quot;: True or False, # Optional. Indicates that this intent ends an interaction. Some integrations
237 # (e.g., Actions on Google or Dialogflow phone gateway) use this information
238 # to close interaction with an end user. Default is false.
239 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent
240 # is matched. Context messages in this collection should not set the
241 # parameters field. Setting the `lifespan_count` to 0 will reset the context
242 # when the intent is matched.
243 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
244 { # Represents a context.
245 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
246 # context expires. The default is `0`. If set to `0`, the context expires
247 # immediately. Contexts expire automatically after 20 minutes if there
248 # are no matching queries.
249 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
250 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
251 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
252 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
253 #
254 # The `Context ID` is always converted to lowercase, may only contain
255 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
256 #
257 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
258 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
259 #
260 # The following context names are reserved for internal use by Dialogflow.
261 # You should not use these contexts or create contexts with these names:
262 #
263 # * `__system_counters__`
264 # * `*_id_dialog_context`
265 # * `*_dialog_params_size`
266 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
267 #
268 # Depending on your protocol or client library language, this is a
269 # map, associative array, symbol table, dictionary, or JSON object
270 # composed of a collection of (MapKey, MapValue) pairs:
271 #
272 # - MapKey type: string
273 # - MapKey value: parameter name
274 # - MapValue type:
275 # - If parameter&#x27;s entity type is a composite entity: map
276 # - Else: string or number, depending on parameter value type
277 # - MapValue value:
278 # - If parameter&#x27;s entity type is a composite entity:
279 # map from composite entity property names to property values
280 # - Else: parameter value
281 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
282 },
283 },
284 ],
285 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be
286 # copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
287 &quot;A String&quot;,
288 ],
289 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the
290 # `Response` field in the Dialogflow console.
291 { # Corresponds to the `Response` field in the Dialogflow console.
292 &quot;text&quot;: { # The text response message. # Returns a text response.
293 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
294 &quot;A String&quot;,
295 ],
296 },
297 &quot;rbmCarouselRichCard&quot;: { # Carousel Rich Business Messaging (RBM) rich card. # Rich Business Messaging (RBM) carousel rich card response.
298 #
299 # Rich cards allow you to respond to users with more vivid content, e.g.
300 # with media and suggestions.
301 #
302 # For more details about RBM rich cards, please see:
303 # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards.
304 # If you want to show a single card with more control over the layout,
305 # please use RbmStandaloneCard instead.
Bu Sun Kim65020912020-05-20 12:08:20 -0700306 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least
307 # 2 cards and at most 10.
308 { # Rich Business Messaging (RBM) Card content
Bu Sun Kim65020912020-05-20 12:08:20 -0700309 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
310 # be set. Media (image, GIF or a video) to include in the card.
311 # The following media-types are currently supported:
312 #
313 # Image Types
314 #
315 # * image/jpeg
316 # * image/jpg&#x27;
317 # * image/gif
318 # * image/png
319 #
320 # Video Types
321 #
322 # * video/h263
323 # * video/m4v
324 # * video/mp4
325 # * video/mpeg
326 # * video/mpeg4
327 # * video/webm
328 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
329 # provide a thumbnail URI, the RBM platform displays a blank
330 # placeholder thumbnail until the user&#x27;s device downloads the file.
331 # Depending on the user&#x27;s setting, the file may not download
332 # automatically and may require the user to tap a download button.
333 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
334 # within a rich card with a vertical layout. (https://goo.gl/NeFCjz).
335 # For a standalone card with horizontal layout, height is not
336 # customizable, and this field is ignored.
337 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
338 # determines the MIME type of the file from the content-type field in
339 # the HTTP headers when the platform fetches the file. The content-type
340 # field must be present and accurate in the HTTP response from the URL.
341 },
342 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
343 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
344 # easily select/click a predefined response or perform an action (like
345 # opening a web uri).
346 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
347 # instead of typing in their own response.
Bu Sun Kim65020912020-05-20 12:08:20 -0700348 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
349 # when the user taps the suggested reply. This data will be also
350 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700351 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -0700352 },
353 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
354 # can choose from the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700355 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
356 # but does not dial automatically (https://goo.gl/ergbB2).
357 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
358 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
359 # format. An example of a correctly formatted phone number:
360 # +15556767888.
361 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700362 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
363 # when the user taps the suggested action. This data will be also
364 # forwarded to webhook to allow performing custom business logic.
365 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
366 # to send back to the agent (https://goo.gl/GXotJW).
367 },
368 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
369 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
370 # (https://goo.gl/6GLJD2). If the user has an app installed that is
371 # registered as the default handler for the URL, then this app will be
372 # opened instead, and its icon will be used in the suggested action UI.
373 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
374 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700375 },
376 },
377 ],
378 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
379 #
380 # At least one of the title, description or media must be set.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700381 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
382 #
383 # At least one of the title, description or media must be set.
Bu Sun Kim65020912020-05-20 12:08:20 -0700384 },
385 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700386 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
Bu Sun Kim65020912020-05-20 12:08:20 -0700387 },
388 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
389 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
390 { # The suggestion chip message that the user can tap to quickly post a reply
391 # to the conversation.
392 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
393 },
394 ],
395 },
396 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
397 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
398 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to
399 # play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single
400 # channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz.
401 #
402 # This object must be readable by the `service-&lt;Project
403 # Number&gt;@gcp-sa-dialogflow.iam.gserviceaccount.com` service account
404 # where &lt;Project Number&gt; is the number of the Telephony Gateway project
405 # (usually the same as the Dialogflow agent project). If the Google Cloud
406 # Storage bucket is in the Telephony Gateway project, this permission is
407 # added by default when enabling the Dialogflow V2 API.
408 #
409 # For audio from other sources, consider using the
410 # `TelephonySynthesizeSpeech` message with SSML.
411 },
412 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
413 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
414 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
415 &quot;items&quot;: [ # Required. List items.
416 { # An item in the list.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700417 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
Bu Sun Kim65020912020-05-20 12:08:20 -0700418 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
419 # dialog.
420 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
421 # item in dialog.
422 &quot;A String&quot;,
423 ],
424 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
425 # response is given.
426 },
427 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
428 &quot;image&quot;: { # The image response message. # Optional. The image to display.
429 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
430 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
431 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
432 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700433 },
434 ],
435 },
436 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response.
437 #
438 # RBM allows businesses to send enriched and branded versions of SMS. See
439 # https://jibe.google.com/business-messaging.
440 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
441 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
442 # easily select/click a predefined response or perform an action (like
443 # opening a web uri).
444 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
445 # instead of typing in their own response.
Bu Sun Kim65020912020-05-20 12:08:20 -0700446 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
447 # when the user taps the suggested reply. This data will be also
448 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700449 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -0700450 },
451 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
452 # can choose from the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700453 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
454 # but does not dial automatically (https://goo.gl/ergbB2).
455 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
456 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
457 # format. An example of a correctly formatted phone number:
458 # +15556767888.
459 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700460 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
461 # when the user taps the suggested action. This data will be also
462 # forwarded to webhook to allow performing custom business logic.
463 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
464 # to send back to the agent (https://goo.gl/GXotJW).
465 },
466 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
467 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
468 # (https://goo.gl/6GLJD2). If the user has an app installed that is
469 # registered as the default handler for the URL, then this app will be
470 # opened instead, and its icon will be used in the suggested action UI.
471 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
472 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700473 },
474 },
475 ],
476 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
477 },
478 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
479 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
480 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
481 &quot;A String&quot;,
482 ],
483 },
484 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in # Synthesizes speech in Telephony Gateway.
485 # Telephony Gateway.
486 #
487 # Telephony Gateway takes the synthesizer settings from
488 # `DetectIntentResponse.output_audio_config` which can either be set
489 # at request-level or can come from the agent-level synthesizer config.
490 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
491 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see
492 # [SSML](https://developers.google.com/actions/reference/ssml).
493 },
494 &quot;card&quot;: { # The card response message. # Displays a card.
Bu Sun Kim65020912020-05-20 12:08:20 -0700495 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
496 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
497 { # Optional. Contains information about a button.
498 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
499 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
500 # open.
501 },
502 ],
503 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700504 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
Bu Sun Kim65020912020-05-20 12:08:20 -0700505 },
506 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
507 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
508 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
509 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
510 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
511 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
512 },
513 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
514 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
515 { # The button object that appears at the bottom of a card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700516 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -0700517 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
518 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
519 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700520 },
521 ],
522 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
523 },
524 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Bu Sun Kim65020912020-05-20 12:08:20 -0700525 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
526 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
527 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
528 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
529 },
530 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
531 { # The button object that appears at the bottom of a card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700532 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -0700533 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
534 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
535 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700536 },
537 ],
538 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
539 &quot;rows&quot;: [ # Optional. Rows in this table of data.
540 { # Row of TableCard.
541 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
542 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
543 { # Cell of TableCardRow.
544 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
545 },
546 ],
547 },
548 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700549 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
550 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
551 { # Column properties for TableCard.
552 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
553 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
554 },
555 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700556 },
557 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
558 &quot;items&quot;: [ # Required. Carousel items.
559 { # An item in the carousel.
Bu Sun Kim65020912020-05-20 12:08:20 -0700560 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
561 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
562 # dialog.
563 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
564 # item in dialog.
565 &quot;A String&quot;,
566 ],
567 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
568 # response is given.
569 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700570 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
571 &quot;image&quot;: { # The image response message. # Optional. The image to display.
572 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
573 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
574 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
575 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700576 },
577 ],
578 },
579 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app # Displays a link out suggestion chip for Actions on Google.
580 # or website associated with this agent.
581 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
582 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
583 # suggestion chip.
584 },
585 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
586 # https://developers.google.com/actions/assistant/responses#browsing_carousel
587 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
588 # items.
589 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
590 # items, maximum of ten.
591 { # Browsing carousel tile
Bu Sun Kim65020912020-05-20 12:08:20 -0700592 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
593 # text.
594 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
595 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
596 # the URL. Defaults to opening via web browser.
597 &quot;url&quot;: &quot;A String&quot;, # Required. URL
598 },
599 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
600 # Card. Maximum of one line of text.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700601 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
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;, # A text description of the image to be used for accessibility,
605 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
606 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700607 },
608 ],
609 },
610 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # Returns a voice or text-only response for Actions on Google.
611 # This message in `QueryResult.fulfillment_messages` and
612 # `WebhookResponse.fulfillment_messages` should contain only one
613 # `SimpleResponse`.
614 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
615 { # The simple response message containing speech or text.
Bu Sun Kim65020912020-05-20 12:08:20 -0700616 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
617 # response to the user in the SSML format. Mutually exclusive with
618 # text_to_speech.
619 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700620 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
621 # speech output. Mutually exclusive with ssml.
Bu Sun Kim65020912020-05-20 12:08:20 -0700622 },
623 ],
624 },
625 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
626 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to
627 # in [E.164 format](https://en.wikipedia.org/wiki/E.164).
628 #
629 # We currently only allow transferring to US numbers (+1xxxyyyzzzz).
630 },
631 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
632 &quot;mediaObjects&quot;: [ # Required. List of media objects.
633 { # Response media object for media content card.
Bu Sun Kim65020912020-05-20 12:08:20 -0700634 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
635 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
636 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
637 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
638 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
639 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
640 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
641 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700642 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
643 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
644 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
645 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
646 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700647 },
648 ],
649 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
650 },
651 &quot;image&quot;: { # The image response message. # Displays an image.
652 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
653 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
654 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
655 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700656 &quot;rbmStandaloneRichCard&quot;: { # Standalone Rich Business Messaging (RBM) rich card. # Standalone Rich Business Messaging (RBM) rich card response.
657 #
658 # Rich cards allow you to respond to users with more vivid content, e.g.
659 # with media and suggestions.
660 #
661 # For more details about RBM rich cards, please see:
662 # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards.
663 # You can group multiple rich cards into one using RbmCarouselCard but
664 # carousel cards will give you less control over the card layout.
665 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal.
666 # Image preview alignment for standalone cards with horizontal layout.
667 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
668 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
Bu Sun Kim65020912020-05-20 12:08:20 -0700669 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
670 # be set. Media (image, GIF or a video) to include in the card.
671 # The following media-types are currently supported:
672 #
673 # Image Types
674 #
675 # * image/jpeg
676 # * image/jpg&#x27;
677 # * image/gif
678 # * image/png
679 #
680 # Video Types
681 #
682 # * video/h263
683 # * video/m4v
684 # * video/mp4
685 # * video/mpeg
686 # * video/mpeg4
687 # * video/webm
688 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
689 # provide a thumbnail URI, the RBM platform displays a blank
690 # placeholder thumbnail until the user&#x27;s device downloads the file.
691 # Depending on the user&#x27;s setting, the file may not download
692 # automatically and may require the user to tap a download button.
693 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
694 # within a rich card with a vertical layout. (https://goo.gl/NeFCjz).
695 # For a standalone card with horizontal layout, height is not
696 # customizable, and this field is ignored.
697 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
698 # determines the MIME type of the file from the content-type field in
699 # the HTTP headers when the platform fetches the file. The content-type
700 # field must be present and accurate in the HTTP response from the URL.
701 },
702 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
703 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
704 # easily select/click a predefined response or perform an action (like
705 # opening a web uri).
706 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
707 # instead of typing in their own response.
Bu Sun Kim65020912020-05-20 12:08:20 -0700708 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
709 # when the user taps the suggested reply. This data will be also
710 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700711 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -0700712 },
713 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
714 # can choose from the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700715 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
716 # but does not dial automatically (https://goo.gl/ergbB2).
717 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
718 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
719 # format. An example of a correctly formatted phone number:
720 # +15556767888.
721 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700722 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
723 # when the user taps the suggested action. This data will be also
724 # forwarded to webhook to allow performing custom business logic.
725 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
726 # to send back to the agent (https://goo.gl/GXotJW).
727 },
728 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
729 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
730 # (https://goo.gl/6GLJD2). If the user has an app installed that is
731 # registered as the default handler for the URL, then this app will be
732 # opened instead, and its icon will be used in the suggested action UI.
733 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
734 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700735 },
736 },
737 ],
738 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
739 #
740 # At least one of the title, description or media must be set.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700741 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
742 #
743 # At least one of the title, description or media must be set.
Bu Sun Kim65020912020-05-20 12:08:20 -0700744 },
745 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700746 &quot;payload&quot;: { # A custom platform-specific response.
747 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
748 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700749 },
750 ],
751 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent.
752 # Note: The action name must not contain whitespaces.
753 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent.
754 # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
755 # methods.
Dan O'Mearadd494642020-05-01 07:42:23 -0700756 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700757 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
758 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700759 # triggered.
Dan O'Mearadd494642020-05-01 07:42:23 -0700760 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700761 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700762 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700763 &quot;followupIntentInfo&quot;: [ # Output only. Information about all followup intents that have this intent as
764 # a direct or indirect parent. We populate this field only in the output.
765 { # Represents a single followup intent in the chain.
766 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent.
767 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
768 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent.
769 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
770 },
771 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700772 },
773 ],
774 }
775
776 x__xgafv: string, V1 error format.
777 Allowed values
778 1 - v1 error format
779 2 - v2 error format
780
781Returns:
782 An object of the form:
783
784 { # This resource represents a long-running operation that is the result of a
785 # network API call.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700786 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
787 # originally returns it. If you use the default HTTP mapping, the
788 # `name` should be a resource name ending with `operations/{unique_id}`.
789 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
790 # different programming environments, including REST APIs and RPC APIs. It is
791 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
792 # three pieces of data: error code, error message, and error details.
793 #
794 # You can find out more about this error model and how to work with it in the
795 # [API Design Guide](https://cloud.google.com/apis/design/errors).
796 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
797 # user-facing error message should be localized and sent in the
798 # google.rpc.Status.details field, or localized by the client.
799 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
800 # message types for APIs to use.
801 {
802 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
803 },
804 ],
805 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
806 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700807 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
808 # contains progress information and common metadata such as create time.
809 # Some services might not provide such metadata. Any method that returns a
810 # long-running operation should document the metadata type, if any.
811 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
812 },
813 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
814 # If `true`, the operation is completed, and either `error` or `response` is
815 # available.
816 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Dan O'Mearadd494642020-05-01 07:42:23 -0700817 # method returns no data on success, such as `Delete`, the response is
818 # `google.protobuf.Empty`. If the original method is standard
819 # `Get`/`Create`/`Update`, the response should be the resource. For other
820 # methods, the response should have the type `XxxResponse`, where `Xxx`
821 # is the original method name. For example, if the original method name
822 # is `TakeSnapshot()`, the inferred response type is
823 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700824 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700825 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700826 }</pre>
827</div>
828
829<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700830 <code class="details" id="batchUpdate">batchUpdate(parent, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700831 <pre>Updates/Creates multiple intents in the specified agent.
832
Dan O'Mearadd494642020-05-01 07:42:23 -0700833Operation &lt;response: BatchUpdateIntentsResponse&gt;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700834
835Args:
836 parent: string, Required. The name of the agent to update or create intents in.
Dan O'Mearadd494642020-05-01 07:42:23 -0700837Format: `projects/&lt;Project ID&gt;/agent`. (required)
838 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700839 The object takes the form of:
840
841{ # The request message for Intents.BatchUpdateIntents.
Bu Sun Kim65020912020-05-20 12:08:20 -0700842 &quot;intentBatchInline&quot;: { # This message is a wrapper around a collection of intents. # The collection of intents to update or create.
843 &quot;intents&quot;: [ # A collection of intents.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700844 { # Represents an intent.
845 # Intents convert a number of user expressions or patterns into an action. An
846 # action is an extraction of a user command or sentence semantics.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700847 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
848 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Output only. The unique identifier of the root intent in the chain of
849 # followup intents. It identifies the correct followup intents chain for
850 # this intent.
851 #
852 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
853 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
854 # Note: If `ml_disabled` setting is set to true, then this intent is not
855 # taken into account during inference in `ML ONLY` match mode. Also,
856 # auto-markup in the UI is turned off.
857 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
858 &quot;mlEnabled&quot;: True or False, # Optional. Indicates whether Machine Learning is enabled for the intent.
859 # Note: If `ml_enabled` setting is set to false, then this intent is not
860 # taken into account during inference in `ML ONLY` match mode. Also,
861 # auto-markup in the UI is turned off.
862 # DEPRECATED! Please use `ml_disabled` field instead.
863 # NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false,
864 # then the default value is determined as follows:
865 # - Before April 15th, 2018 the default is:
866 # ml_enabled = false / ml_disabled = true.
867 # - After April 15th, 2018 the default is:
868 # ml_enabled = true / ml_disabled = false.
Bu Sun Kim65020912020-05-20 12:08:20 -0700869 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is
Dan O'Mearadd494642020-05-01 07:42:23 -0700870 # trained on.
871 { # Represents an example that the agent is trained on.
Bu Sun Kim65020912020-05-20 12:08:20 -0700872 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts.
Dan O'Mearadd494642020-05-01 07:42:23 -0700873 # The parts are concatenated in order to form the training phrase.
874 #
875 # Note: The API does not automatically annotate training phrases like the
876 # Dialogflow Console does.
877 #
878 # Note: Do not forget to include whitespace at part boundaries,
879 # so the training phrase is well formatted when the parts are concatenated.
880 #
881 # If the training phrase does not need to be annotated with parameters,
882 # you just need a single part with only the Part.text field set.
883 #
884 # If you want to annotate the training phrase, you must create multiple
885 # parts, where the fields of each part are populated in one of two ways:
886 #
887 # - `Part.text` is set to a part of the phrase that has no parameters.
888 # - `Part.text` is set to a part of the phrase that you want to annotate,
889 # and the `entity_type`, `alias`, and `user_defined` fields are all
890 # set.
891 { # Represents a part of a training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -0700892 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the
Dan O'Mearadd494642020-05-01 07:42:23 -0700893 # annotated part of the example.
894 # This field is required for annotated parts of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -0700895 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated.
Dan O'Mearadd494642020-05-01 07:42:23 -0700896 # This field is set to true when the Dialogflow Console is used to
897 # manually annotate the part. When creating an annotated part with the
898 # API, you must set this to true.
Bu Sun Kim65020912020-05-20 12:08:20 -0700899 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
900 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`.
901 # This field is required for annotated parts of the training phrase.
Dan O'Mearadd494642020-05-01 07:42:23 -0700902 },
903 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700904 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
905 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to
Dan O'Mearadd494642020-05-01 07:42:23 -0700906 # the intent. Each time a developer adds an existing sample by editing an
907 # intent or training, this counter is increased.
Bu Sun Kim65020912020-05-20 12:08:20 -0700908 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
Dan O'Mearadd494642020-05-01 07:42:23 -0700909 },
910 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700911 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current
912 # session when this intent is matched.
913 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
914 { # Represents intent parameters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700915 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that
916 # describes values of the parameter. If the parameter is
917 # required, this must be provided.
918 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the
919 # user in order to collect a value for the parameter.
920 &quot;A String&quot;,
921 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700922 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is,
923 # whether the intent cannot be completed without collecting the parameter
924 # value.
Bu Sun Kim65020912020-05-20 12:08:20 -0700925 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty
926 # result.
927 # Default values can be extracted from contexts by using the following
928 # syntax: `#context_name.parameter_name`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700929 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
930 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
931 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be:
932 #
933 # - a constant string,
934 # - a parameter value defined as `$parameter_name`,
935 # - an original parameter value defined as `$parameter_name.original`,
936 # - a parameter value from some context defined as
937 # `#context_name.parameter_name`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700938 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
Bu Sun Kim65020912020-05-20 12:08:20 -0700939 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700940 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700941 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent.
942 # If the collection of input contexts is not empty, all of the contexts must
943 # be present in the active user session for an event to trigger this intent.
944 # Event names are limited to 150 characters.
945 &quot;A String&quot;,
946 ],
947 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Optional. The unique identifier of the parent intent in the
948 # chain of followup intents. You can set this field when creating an intent,
949 # for example with CreateIntent or
950 # BatchUpdateIntents, in order to make this
951 # intent a followup intent.
952 #
953 # It identifies the parent followup intent.
954 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
955 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher
Dan O'Mearadd494642020-05-01 07:42:23 -0700956 # priorities.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700957 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700958 # - If the supplied value is unspecified or 0, the service
959 # translates the value to 500,000, which corresponds to the
960 # `Normal` priority in the console.
961 # - If the supplied value is negative, the intent is ignored
962 # in runtime detect intent requests.
Bu Sun Kim65020912020-05-20 12:08:20 -0700963 &quot;endInteraction&quot;: True or False, # Optional. Indicates that this intent ends an interaction. Some integrations
964 # (e.g., Actions on Google or Dialogflow phone gateway) use this information
965 # to close interaction with an end user. Default is false.
966 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent
967 # is matched. Context messages in this collection should not set the
968 # parameters field. Setting the `lifespan_count` to 0 will reset the context
969 # when the intent is matched.
970 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
971 { # Represents a context.
972 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
973 # context expires. The default is `0`. If set to `0`, the context expires
974 # immediately. Contexts expire automatically after 20 minutes if there
975 # are no matching queries.
976 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
977 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
978 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
979 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
980 #
981 # The `Context ID` is always converted to lowercase, may only contain
982 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
983 #
984 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
985 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
986 #
987 # The following context names are reserved for internal use by Dialogflow.
988 # You should not use these contexts or create contexts with these names:
989 #
990 # * `__system_counters__`
991 # * `*_id_dialog_context`
992 # * `*_dialog_params_size`
993 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
994 #
995 # Depending on your protocol or client library language, this is a
996 # map, associative array, symbol table, dictionary, or JSON object
997 # composed of a collection of (MapKey, MapValue) pairs:
998 #
999 # - MapKey type: string
1000 # - MapKey value: parameter name
1001 # - MapValue type:
1002 # - If parameter&#x27;s entity type is a composite entity: map
1003 # - Else: string or number, depending on parameter value type
1004 # - MapValue value:
1005 # - If parameter&#x27;s entity type is a composite entity:
1006 # map from composite entity property names to property values
1007 # - Else: parameter value
1008 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1009 },
1010 },
1011 ],
1012 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be
1013 # copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
1014 &quot;A String&quot;,
1015 ],
1016 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the
1017 # `Response` field in the Dialogflow console.
1018 { # Corresponds to the `Response` field in the Dialogflow console.
1019 &quot;text&quot;: { # The text response message. # Returns a text response.
1020 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
1021 &quot;A String&quot;,
1022 ],
1023 },
1024 &quot;rbmCarouselRichCard&quot;: { # Carousel Rich Business Messaging (RBM) rich card. # Rich Business Messaging (RBM) carousel rich card response.
1025 #
1026 # Rich cards allow you to respond to users with more vivid content, e.g.
1027 # with media and suggestions.
1028 #
1029 # For more details about RBM rich cards, please see:
1030 # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards.
1031 # If you want to show a single card with more control over the layout,
1032 # please use RbmStandaloneCard instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07001033 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least
1034 # 2 cards and at most 10.
1035 { # Rich Business Messaging (RBM) Card content
Bu Sun Kim65020912020-05-20 12:08:20 -07001036 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
1037 # be set. Media (image, GIF or a video) to include in the card.
1038 # The following media-types are currently supported:
1039 #
1040 # Image Types
1041 #
1042 # * image/jpeg
1043 # * image/jpg&#x27;
1044 # * image/gif
1045 # * image/png
1046 #
1047 # Video Types
1048 #
1049 # * video/h263
1050 # * video/m4v
1051 # * video/mp4
1052 # * video/mpeg
1053 # * video/mpeg4
1054 # * video/webm
1055 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
1056 # provide a thumbnail URI, the RBM platform displays a blank
1057 # placeholder thumbnail until the user&#x27;s device downloads the file.
1058 # Depending on the user&#x27;s setting, the file may not download
1059 # automatically and may require the user to tap a download button.
1060 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
1061 # within a rich card with a vertical layout. (https://goo.gl/NeFCjz).
1062 # For a standalone card with horizontal layout, height is not
1063 # customizable, and this field is ignored.
1064 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
1065 # determines the MIME type of the file from the content-type field in
1066 # the HTTP headers when the platform fetches the file. The content-type
1067 # field must be present and accurate in the HTTP response from the URL.
1068 },
1069 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
1070 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
1071 # easily select/click a predefined response or perform an action (like
1072 # opening a web uri).
1073 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
1074 # instead of typing in their own response.
Bu Sun Kim65020912020-05-20 12:08:20 -07001075 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1076 # when the user taps the suggested reply. This data will be also
1077 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001078 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07001079 },
1080 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
1081 # can choose from the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001082 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
1083 # but does not dial automatically (https://goo.gl/ergbB2).
1084 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
1085 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
1086 # format. An example of a correctly formatted phone number:
1087 # +15556767888.
1088 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001089 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1090 # when the user taps the suggested action. This data will be also
1091 # forwarded to webhook to allow performing custom business logic.
1092 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
1093 # to send back to the agent (https://goo.gl/GXotJW).
1094 },
1095 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1096 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
1097 # (https://goo.gl/6GLJD2). If the user has an app installed that is
1098 # registered as the default handler for the URL, then this app will be
1099 # opened instead, and its icon will be used in the suggested action UI.
1100 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1101 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001102 },
1103 },
1104 ],
1105 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
1106 #
1107 # At least one of the title, description or media must be set.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001108 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
1109 #
1110 # At least one of the title, description or media must be set.
Bu Sun Kim65020912020-05-20 12:08:20 -07001111 },
1112 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001113 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
Bu Sun Kim65020912020-05-20 12:08:20 -07001114 },
1115 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
1116 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
1117 { # The suggestion chip message that the user can tap to quickly post a reply
1118 # to the conversation.
1119 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
1120 },
1121 ],
1122 },
1123 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
1124 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
1125 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to
1126 # play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single
1127 # channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz.
1128 #
1129 # This object must be readable by the `service-&lt;Project
1130 # Number&gt;@gcp-sa-dialogflow.iam.gserviceaccount.com` service account
1131 # where &lt;Project Number&gt; is the number of the Telephony Gateway project
1132 # (usually the same as the Dialogflow agent project). If the Google Cloud
1133 # Storage bucket is in the Telephony Gateway project, this permission is
1134 # added by default when enabling the Dialogflow V2 API.
1135 #
1136 # For audio from other sources, consider using the
1137 # `TelephonySynthesizeSpeech` message with SSML.
1138 },
1139 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
1140 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
1141 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
1142 &quot;items&quot;: [ # Required. List items.
1143 { # An item in the list.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001144 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
Bu Sun Kim65020912020-05-20 12:08:20 -07001145 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
1146 # dialog.
1147 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
1148 # item in dialog.
1149 &quot;A String&quot;,
1150 ],
1151 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
1152 # response is given.
1153 },
1154 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
1155 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1156 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1157 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1158 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1159 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001160 },
1161 ],
1162 },
1163 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response.
1164 #
1165 # RBM allows businesses to send enriched and branded versions of SMS. See
1166 # https://jibe.google.com/business-messaging.
1167 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
1168 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
1169 # easily select/click a predefined response or perform an action (like
1170 # opening a web uri).
1171 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
1172 # instead of typing in their own response.
Bu Sun Kim65020912020-05-20 12:08:20 -07001173 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1174 # when the user taps the suggested reply. This data will be also
1175 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001176 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07001177 },
1178 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
1179 # can choose from the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001180 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
1181 # but does not dial automatically (https://goo.gl/ergbB2).
1182 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
1183 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
1184 # format. An example of a correctly formatted phone number:
1185 # +15556767888.
1186 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001187 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1188 # when the user taps the suggested action. This data will be also
1189 # forwarded to webhook to allow performing custom business logic.
1190 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
1191 # to send back to the agent (https://goo.gl/GXotJW).
1192 },
1193 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1194 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
1195 # (https://goo.gl/6GLJD2). If the user has an app installed that is
1196 # registered as the default handler for the URL, then this app will be
1197 # opened instead, and its icon will be used in the suggested action UI.
1198 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1199 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001200 },
1201 },
1202 ],
1203 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
1204 },
1205 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
1206 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
1207 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
1208 &quot;A String&quot;,
1209 ],
1210 },
1211 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in # Synthesizes speech in Telephony Gateway.
1212 # Telephony Gateway.
1213 #
1214 # Telephony Gateway takes the synthesizer settings from
1215 # `DetectIntentResponse.output_audio_config` which can either be set
1216 # at request-level or can come from the agent-level synthesizer config.
1217 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
1218 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see
1219 # [SSML](https://developers.google.com/actions/reference/ssml).
1220 },
1221 &quot;card&quot;: { # The card response message. # Displays a card.
Bu Sun Kim65020912020-05-20 12:08:20 -07001222 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1223 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1224 { # Optional. Contains information about a button.
1225 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
1226 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
1227 # open.
1228 },
1229 ],
1230 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001231 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07001232 },
1233 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
1234 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1235 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
1236 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1237 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1238 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1239 },
1240 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
1241 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1242 { # The button object that appears at the bottom of a card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001243 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -07001244 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1245 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1246 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001247 },
1248 ],
1249 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1250 },
1251 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Bu Sun Kim65020912020-05-20 12:08:20 -07001252 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
1253 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1254 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1255 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1256 },
1257 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
1258 { # The button object that appears at the bottom of a card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001259 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -07001260 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1261 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1262 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001263 },
1264 ],
1265 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
1266 &quot;rows&quot;: [ # Optional. Rows in this table of data.
1267 { # Row of TableCard.
1268 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
1269 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
1270 { # Cell of TableCardRow.
1271 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
1272 },
1273 ],
1274 },
1275 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001276 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
1277 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
1278 { # Column properties for TableCard.
1279 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
1280 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
1281 },
1282 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001283 },
1284 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
1285 &quot;items&quot;: [ # Required. Carousel items.
1286 { # An item in the carousel.
Bu Sun Kim65020912020-05-20 12:08:20 -07001287 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
1288 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
1289 # dialog.
1290 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
1291 # item in dialog.
1292 &quot;A String&quot;,
1293 ],
1294 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
1295 # response is given.
1296 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001297 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
1298 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1299 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1300 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1301 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1302 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001303 },
1304 ],
1305 },
1306 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app # Displays a link out suggestion chip for Actions on Google.
1307 # or website associated with this agent.
1308 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
1309 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
1310 # suggestion chip.
1311 },
1312 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
1313 # https://developers.google.com/actions/assistant/responses#browsing_carousel
1314 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
1315 # items.
1316 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
1317 # items, maximum of ten.
1318 { # Browsing carousel tile
Bu Sun Kim65020912020-05-20 12:08:20 -07001319 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
1320 # text.
1321 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
1322 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
1323 # the URL. Defaults to opening via web browser.
1324 &quot;url&quot;: &quot;A String&quot;, # Required. URL
1325 },
1326 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
1327 # Card. Maximum of one line of text.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001328 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
1329 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
1330 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1331 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1332 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1333 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001334 },
1335 ],
1336 },
1337 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # Returns a voice or text-only response for Actions on Google.
1338 # This message in `QueryResult.fulfillment_messages` and
1339 # `WebhookResponse.fulfillment_messages` should contain only one
1340 # `SimpleResponse`.
1341 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
1342 { # The simple response message containing speech or text.
Bu Sun Kim65020912020-05-20 12:08:20 -07001343 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
1344 # response to the user in the SSML format. Mutually exclusive with
1345 # text_to_speech.
1346 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001347 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
1348 # speech output. Mutually exclusive with ssml.
Bu Sun Kim65020912020-05-20 12:08:20 -07001349 },
1350 ],
1351 },
1352 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
1353 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to
1354 # in [E.164 format](https://en.wikipedia.org/wiki/E.164).
1355 #
1356 # We currently only allow transferring to US numbers (+1xxxyyyzzzz).
1357 },
1358 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
1359 &quot;mediaObjects&quot;: [ # Required. List of media objects.
1360 { # Response media object for media content card.
Bu Sun Kim65020912020-05-20 12:08:20 -07001361 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
1362 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
1363 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
1364 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
1365 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1366 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1367 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1368 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001369 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
1370 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1371 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1372 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1373 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001374 },
1375 ],
1376 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
1377 },
1378 &quot;image&quot;: { # The image response message. # Displays an image.
1379 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1380 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1381 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1382 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001383 &quot;rbmStandaloneRichCard&quot;: { # Standalone Rich Business Messaging (RBM) rich card. # Standalone Rich Business Messaging (RBM) rich card response.
1384 #
1385 # Rich cards allow you to respond to users with more vivid content, e.g.
1386 # with media and suggestions.
1387 #
1388 # For more details about RBM rich cards, please see:
1389 # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards.
1390 # You can group multiple rich cards into one using RbmCarouselCard but
1391 # carousel cards will give you less control over the card layout.
1392 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal.
1393 # Image preview alignment for standalone cards with horizontal layout.
1394 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
1395 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
Bu Sun Kim65020912020-05-20 12:08:20 -07001396 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
1397 # be set. Media (image, GIF or a video) to include in the card.
1398 # The following media-types are currently supported:
1399 #
1400 # Image Types
1401 #
1402 # * image/jpeg
1403 # * image/jpg&#x27;
1404 # * image/gif
1405 # * image/png
1406 #
1407 # Video Types
1408 #
1409 # * video/h263
1410 # * video/m4v
1411 # * video/mp4
1412 # * video/mpeg
1413 # * video/mpeg4
1414 # * video/webm
1415 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
1416 # provide a thumbnail URI, the RBM platform displays a blank
1417 # placeholder thumbnail until the user&#x27;s device downloads the file.
1418 # Depending on the user&#x27;s setting, the file may not download
1419 # automatically and may require the user to tap a download button.
1420 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
1421 # within a rich card with a vertical layout. (https://goo.gl/NeFCjz).
1422 # For a standalone card with horizontal layout, height is not
1423 # customizable, and this field is ignored.
1424 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
1425 # determines the MIME type of the file from the content-type field in
1426 # the HTTP headers when the platform fetches the file. The content-type
1427 # field must be present and accurate in the HTTP response from the URL.
1428 },
1429 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
1430 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
1431 # easily select/click a predefined response or perform an action (like
1432 # opening a web uri).
1433 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
1434 # instead of typing in their own response.
Bu Sun Kim65020912020-05-20 12:08:20 -07001435 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1436 # when the user taps the suggested reply. This data will be also
1437 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001438 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07001439 },
1440 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
1441 # can choose from the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001442 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
1443 # but does not dial automatically (https://goo.gl/ergbB2).
1444 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
1445 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
1446 # format. An example of a correctly formatted phone number:
1447 # +15556767888.
1448 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001449 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1450 # when the user taps the suggested action. This data will be also
1451 # forwarded to webhook to allow performing custom business logic.
1452 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
1453 # to send back to the agent (https://goo.gl/GXotJW).
1454 },
1455 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1456 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
1457 # (https://goo.gl/6GLJD2). If the user has an app installed that is
1458 # registered as the default handler for the URL, then this app will be
1459 # opened instead, and its icon will be used in the suggested action UI.
1460 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1461 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001462 },
1463 },
1464 ],
1465 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
1466 #
1467 # At least one of the title, description or media must be set.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001468 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
1469 #
1470 # At least one of the title, description or media must be set.
Bu Sun Kim65020912020-05-20 12:08:20 -07001471 },
1472 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001473 &quot;payload&quot;: { # A custom platform-specific response.
1474 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1475 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001476 },
1477 ],
1478 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent.
1479 # Note: The action name must not contain whitespaces.
1480 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent.
1481 # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
1482 # methods.
Dan O'Mearadd494642020-05-01 07:42:23 -07001483 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001484 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
1485 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001486 # triggered.
Dan O'Mearadd494642020-05-01 07:42:23 -07001487 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001488 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001489 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001490 &quot;followupIntentInfo&quot;: [ # Output only. Information about all followup intents that have this intent as
1491 # a direct or indirect parent. We populate this field only in the output.
1492 { # Represents a single followup intent in the chain.
1493 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent.
1494 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
1495 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent.
1496 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
1497 },
1498 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001499 },
1500 ],
1501 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001502 &quot;languageCode&quot;: &quot;A String&quot;, # Optional. The language used to access language-specific data.
1503 # If not specified, the agent&#x27;s default language is used.
1504 # For more information, see
1505 # [Multilingual intent and entity
1506 # data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
1507 &quot;updateMask&quot;: &quot;A String&quot;, # Optional. The mask to control which fields get updated.
1508 &quot;intentBatchUri&quot;: &quot;A String&quot;, # The URI to a Google Cloud Storage file containing intents to update or
1509 # create. The file format can either be a serialized proto (of IntentBatch
1510 # type) or JSON object. Note: The URI must start with &quot;gs://&quot;.
1511 &quot;intentView&quot;: &quot;A String&quot;, # Optional. The resource view to apply to the returned intent.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001512 }
1513
1514 x__xgafv: string, V1 error format.
1515 Allowed values
1516 1 - v1 error format
1517 2 - v2 error format
1518
1519Returns:
1520 An object of the form:
1521
1522 { # This resource represents a long-running operation that is the result of a
1523 # network API call.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001524 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
1525 # originally returns it. If you use the default HTTP mapping, the
1526 # `name` should be a resource name ending with `operations/{unique_id}`.
1527 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
1528 # different programming environments, including REST APIs and RPC APIs. It is
1529 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1530 # three pieces of data: error code, error message, and error details.
1531 #
1532 # You can find out more about this error model and how to work with it in the
1533 # [API Design Guide](https://cloud.google.com/apis/design/errors).
1534 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1535 # user-facing error message should be localized and sent in the
1536 # google.rpc.Status.details field, or localized by the client.
1537 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
1538 # message types for APIs to use.
1539 {
1540 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1541 },
1542 ],
1543 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1544 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001545 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
1546 # contains progress information and common metadata such as create time.
1547 # Some services might not provide such metadata. Any method that returns a
1548 # long-running operation should document the metadata type, if any.
1549 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1550 },
1551 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
1552 # If `true`, the operation is completed, and either `error` or `response` is
1553 # available.
1554 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Dan O'Mearadd494642020-05-01 07:42:23 -07001555 # method returns no data on success, such as `Delete`, the response is
1556 # `google.protobuf.Empty`. If the original method is standard
1557 # `Get`/`Create`/`Update`, the response should be the resource. For other
1558 # methods, the response should have the type `XxxResponse`, where `Xxx`
1559 # is the original method name. For example, if the original method name
1560 # is `TakeSnapshot()`, the inferred response type is
1561 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001562 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -07001563 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001564 }</pre>
1565</div>
1566
1567<div class="method">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001568 <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 -07001569 <pre>Creates an intent in the specified agent.
1570
1571Args:
1572 parent: string, Required. The agent to create a intent for.
Dan O'Mearadd494642020-05-01 07:42:23 -07001573Format: `projects/&lt;Project ID&gt;/agent`. (required)
1574 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001575 The object takes the form of:
1576
1577{ # Represents an intent.
1578 # Intents convert a number of user expressions or patterns into an action. An
1579 # action is an extraction of a user command or sentence semantics.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001580 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
1581 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Output only. The unique identifier of the root intent in the chain of
1582 # followup intents. It identifies the correct followup intents chain for
1583 # this intent.
1584 #
1585 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
1586 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
1587 # Note: If `ml_disabled` setting is set to true, then this intent is not
1588 # taken into account during inference in `ML ONLY` match mode. Also,
1589 # auto-markup in the UI is turned off.
1590 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
1591 &quot;mlEnabled&quot;: True or False, # Optional. Indicates whether Machine Learning is enabled for the intent.
1592 # Note: If `ml_enabled` setting is set to false, then this intent is not
1593 # taken into account during inference in `ML ONLY` match mode. Also,
1594 # auto-markup in the UI is turned off.
1595 # DEPRECATED! Please use `ml_disabled` field instead.
1596 # NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false,
1597 # then the default value is determined as follows:
1598 # - Before April 15th, 2018 the default is:
1599 # ml_enabled = false / ml_disabled = true.
1600 # - After April 15th, 2018 the default is:
1601 # ml_enabled = true / ml_disabled = false.
Bu Sun Kim65020912020-05-20 12:08:20 -07001602 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is
Dan O'Mearadd494642020-05-01 07:42:23 -07001603 # trained on.
1604 { # Represents an example that the agent is trained on.
Bu Sun Kim65020912020-05-20 12:08:20 -07001605 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts.
Dan O'Mearadd494642020-05-01 07:42:23 -07001606 # The parts are concatenated in order to form the training phrase.
1607 #
1608 # Note: The API does not automatically annotate training phrases like the
1609 # Dialogflow Console does.
1610 #
1611 # Note: Do not forget to include whitespace at part boundaries,
1612 # so the training phrase is well formatted when the parts are concatenated.
1613 #
1614 # If the training phrase does not need to be annotated with parameters,
1615 # you just need a single part with only the Part.text field set.
1616 #
1617 # If you want to annotate the training phrase, you must create multiple
1618 # parts, where the fields of each part are populated in one of two ways:
1619 #
1620 # - `Part.text` is set to a part of the phrase that has no parameters.
1621 # - `Part.text` is set to a part of the phrase that you want to annotate,
1622 # and the `entity_type`, `alias`, and `user_defined` fields are all
1623 # set.
1624 { # Represents a part of a training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07001625 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the
Dan O'Mearadd494642020-05-01 07:42:23 -07001626 # annotated part of the example.
1627 # This field is required for annotated parts of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07001628 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated.
Dan O'Mearadd494642020-05-01 07:42:23 -07001629 # This field is set to true when the Dialogflow Console is used to
1630 # manually annotate the part. When creating an annotated part with the
1631 # API, you must set this to true.
Bu Sun Kim65020912020-05-20 12:08:20 -07001632 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
1633 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`.
1634 # This field is required for annotated parts of the training phrase.
Dan O'Mearadd494642020-05-01 07:42:23 -07001635 },
1636 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001637 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
1638 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to
Dan O'Mearadd494642020-05-01 07:42:23 -07001639 # the intent. Each time a developer adds an existing sample by editing an
1640 # intent or training, this counter is increased.
Bu Sun Kim65020912020-05-20 12:08:20 -07001641 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
Dan O'Mearadd494642020-05-01 07:42:23 -07001642 },
1643 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001644 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current
1645 # session when this intent is matched.
1646 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
1647 { # Represents intent parameters.
Bu Sun Kim65020912020-05-20 12:08:20 -07001648 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that
1649 # describes values of the parameter. If the parameter is
1650 # required, this must be provided.
1651 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the
1652 # user in order to collect a value for the parameter.
1653 &quot;A String&quot;,
1654 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001655 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is,
1656 # whether the intent cannot be completed without collecting the parameter
1657 # value.
Bu Sun Kim65020912020-05-20 12:08:20 -07001658 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty
1659 # result.
1660 # Default values can be extracted from contexts by using the following
1661 # syntax: `#context_name.parameter_name`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001662 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
1663 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
1664 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be:
1665 #
1666 # - a constant string,
1667 # - a parameter value defined as `$parameter_name`,
1668 # - an original parameter value defined as `$parameter_name.original`,
1669 # - a parameter value from some context defined as
1670 # `#context_name.parameter_name`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001671 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
Bu Sun Kim65020912020-05-20 12:08:20 -07001672 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001673 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001674 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent.
1675 # If the collection of input contexts is not empty, all of the contexts must
1676 # be present in the active user session for an event to trigger this intent.
1677 # Event names are limited to 150 characters.
1678 &quot;A String&quot;,
1679 ],
1680 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Optional. The unique identifier of the parent intent in the
1681 # chain of followup intents. You can set this field when creating an intent,
1682 # for example with CreateIntent or
1683 # BatchUpdateIntents, in order to make this
1684 # intent a followup intent.
1685 #
1686 # It identifies the parent followup intent.
1687 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
1688 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher
Dan O'Mearadd494642020-05-01 07:42:23 -07001689 # priorities.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001690 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001691 # - If the supplied value is unspecified or 0, the service
1692 # translates the value to 500,000, which corresponds to the
1693 # `Normal` priority in the console.
1694 # - If the supplied value is negative, the intent is ignored
1695 # in runtime detect intent requests.
Bu Sun Kim65020912020-05-20 12:08:20 -07001696 &quot;endInteraction&quot;: True or False, # Optional. Indicates that this intent ends an interaction. Some integrations
1697 # (e.g., Actions on Google or Dialogflow phone gateway) use this information
1698 # to close interaction with an end user. Default is false.
1699 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001700 # is matched. Context messages in this collection should not set the
1701 # parameters field. Setting the `lifespan_count` to 0 will reset the context
1702 # when the intent is matched.
Dan O'Mearadd494642020-05-01 07:42:23 -07001703 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001704 { # Represents a context.
Bu Sun Kim65020912020-05-20 12:08:20 -07001705 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
1706 # context expires. The default is `0`. If set to `0`, the context expires
1707 # immediately. Contexts expire automatically after 20 minutes if there
1708 # are no matching queries.
1709 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
Dan O'Mearadd494642020-05-01 07:42:23 -07001710 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
1711 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
1712 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001713 #
1714 # The `Context ID` is always converted to lowercase, may only contain
1715 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
1716 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001717 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
1718 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
Dan O'Mearadd494642020-05-01 07:42:23 -07001719 #
1720 # The following context names are reserved for internal use by Dialogflow.
1721 # You should not use these contexts or create contexts with these names:
1722 #
1723 # * `__system_counters__`
1724 # * `*_id_dialog_context`
1725 # * `*_dialog_params_size`
Bu Sun Kim65020912020-05-20 12:08:20 -07001726 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
Dan O'Mearadd494642020-05-01 07:42:23 -07001727 #
1728 # Depending on your protocol or client library language, this is a
1729 # map, associative array, symbol table, dictionary, or JSON object
1730 # composed of a collection of (MapKey, MapValue) pairs:
1731 #
1732 # - MapKey type: string
1733 # - MapKey value: parameter name
1734 # - MapValue type:
Bu Sun Kim65020912020-05-20 12:08:20 -07001735 # - If parameter&#x27;s entity type is a composite entity: map
Dan O'Mearadd494642020-05-01 07:42:23 -07001736 # - Else: string or number, depending on parameter value type
1737 # - MapValue value:
Bu Sun Kim65020912020-05-20 12:08:20 -07001738 # - If parameter&#x27;s entity type is a composite entity:
Dan O'Mearadd494642020-05-01 07:42:23 -07001739 # map from composite entity property names to property values
1740 # - Else: parameter value
Bu Sun Kim65020912020-05-20 12:08:20 -07001741 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Dan O'Mearadd494642020-05-01 07:42:23 -07001742 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001743 },
1744 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001745 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be
1746 # copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
1747 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001748 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001749 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the
1750 # `Response` field in the Dialogflow console.
1751 { # Corresponds to the `Response` field in the Dialogflow console.
1752 &quot;text&quot;: { # The text response message. # Returns a text response.
1753 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
1754 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001755 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001756 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001757 &quot;rbmCarouselRichCard&quot;: { # Carousel Rich Business Messaging (RBM) rich card. # Rich Business Messaging (RBM) carousel rich card response.
1758 #
1759 # Rich cards allow you to respond to users with more vivid content, e.g.
1760 # with media and suggestions.
1761 #
1762 # For more details about RBM rich cards, please see:
1763 # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards.
1764 # If you want to show a single card with more control over the layout,
1765 # please use RbmStandaloneCard instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07001766 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least
1767 # 2 cards and at most 10.
1768 { # Rich Business Messaging (RBM) Card content
Bu Sun Kim65020912020-05-20 12:08:20 -07001769 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
Dan O'Mearadd494642020-05-01 07:42:23 -07001770 # be set. Media (image, GIF or a video) to include in the card.
1771 # The following media-types are currently supported:
1772 #
1773 # Image Types
1774 #
1775 # * image/jpeg
Bu Sun Kim65020912020-05-20 12:08:20 -07001776 # * image/jpg&#x27;
Dan O'Mearadd494642020-05-01 07:42:23 -07001777 # * image/gif
1778 # * image/png
1779 #
1780 # Video Types
1781 #
1782 # * video/h263
1783 # * video/m4v
1784 # * video/mp4
1785 # * video/mpeg
1786 # * video/mpeg4
1787 # * video/webm
Bu Sun Kim65020912020-05-20 12:08:20 -07001788 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
Dan O'Mearadd494642020-05-01 07:42:23 -07001789 # provide a thumbnail URI, the RBM platform displays a blank
Bu Sun Kim65020912020-05-20 12:08:20 -07001790 # placeholder thumbnail until the user&#x27;s device downloads the file.
1791 # Depending on the user&#x27;s setting, the file may not download
Dan O'Mearadd494642020-05-01 07:42:23 -07001792 # automatically and may require the user to tap a download button.
Bu Sun Kim65020912020-05-20 12:08:20 -07001793 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
Dan O'Mearadd494642020-05-01 07:42:23 -07001794 # within a rich card with a vertical layout. (https://goo.gl/NeFCjz).
1795 # For a standalone card with horizontal layout, height is not
1796 # customizable, and this field is ignored.
Bu Sun Kim65020912020-05-20 12:08:20 -07001797 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
1798 # determines the MIME type of the file from the content-type field in
1799 # the HTTP headers when the platform fetches the file. The content-type
1800 # field must be present and accurate in the HTTP response from the URL.
Dan O'Mearadd494642020-05-01 07:42:23 -07001801 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001802 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
Dan O'Mearadd494642020-05-01 07:42:23 -07001803 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
1804 # easily select/click a predefined response or perform an action (like
1805 # opening a web uri).
Bu Sun Kim65020912020-05-20 12:08:20 -07001806 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
1807 # instead of typing in their own response.
Bu Sun Kim65020912020-05-20 12:08:20 -07001808 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1809 # when the user taps the suggested reply. This data will be also
1810 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001811 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07001812 },
1813 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
Dan O'Mearadd494642020-05-01 07:42:23 -07001814 # can choose from the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001815 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
1816 # but does not dial automatically (https://goo.gl/ergbB2).
1817 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
1818 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
1819 # format. An example of a correctly formatted phone number:
1820 # +15556767888.
1821 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001822 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1823 # when the user taps the suggested action. This data will be also
1824 # forwarded to webhook to allow performing custom business logic.
1825 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
Dan O'Mearadd494642020-05-01 07:42:23 -07001826 # to send back to the agent (https://goo.gl/GXotJW).
1827 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001828 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1829 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
Dan O'Mearadd494642020-05-01 07:42:23 -07001830 # (https://goo.gl/6GLJD2). If the user has an app installed that is
1831 # registered as the default handler for the URL, then this app will be
1832 # opened instead, and its icon will be used in the suggested action UI.
Bu Sun Kim65020912020-05-20 12:08:20 -07001833 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
Dan O'Mearadd494642020-05-01 07:42:23 -07001834 },
Dan O'Mearadd494642020-05-01 07:42:23 -07001835 },
1836 },
1837 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001838 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
Dan O'Mearadd494642020-05-01 07:42:23 -07001839 #
1840 # At least one of the title, description or media must be set.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001841 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
1842 #
1843 # At least one of the title, description or media must be set.
Dan O'Mearadd494642020-05-01 07:42:23 -07001844 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001845 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001846 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
Bu Sun Kim65020912020-05-20 12:08:20 -07001847 },
1848 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
1849 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
1850 { # The suggestion chip message that the user can tap to quickly post a reply
1851 # to the conversation.
1852 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001853 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001854 ],
1855 },
1856 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
1857 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
1858 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to
1859 # play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single
1860 # channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz.
1861 #
1862 # This object must be readable by the `service-&lt;Project
1863 # Number&gt;@gcp-sa-dialogflow.iam.gserviceaccount.com` service account
1864 # where &lt;Project Number&gt; is the number of the Telephony Gateway project
1865 # (usually the same as the Dialogflow agent project). If the Google Cloud
1866 # Storage bucket is in the Telephony Gateway project, this permission is
1867 # added by default when enabling the Dialogflow V2 API.
1868 #
1869 # For audio from other sources, consider using the
1870 # `TelephonySynthesizeSpeech` message with SSML.
1871 },
1872 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
1873 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
1874 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
1875 &quot;items&quot;: [ # Required. List items.
1876 { # An item in the list.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001877 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
Bu Sun Kim65020912020-05-20 12:08:20 -07001878 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
1879 # dialog.
1880 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
1881 # item in dialog.
1882 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001883 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001884 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
1885 # response is given.
Dan O'Mearadd494642020-05-01 07:42:23 -07001886 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001887 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
1888 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1889 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1890 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1891 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1892 },
Dan O'Mearadd494642020-05-01 07:42:23 -07001893 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001894 ],
1895 },
1896 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response.
1897 #
1898 # RBM allows businesses to send enriched and branded versions of SMS. See
1899 # https://jibe.google.com/business-messaging.
1900 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
1901 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
1902 # easily select/click a predefined response or perform an action (like
1903 # opening a web uri).
1904 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
1905 # instead of typing in their own response.
Bu Sun Kim65020912020-05-20 12:08:20 -07001906 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1907 # when the user taps the suggested reply. This data will be also
1908 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001909 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Dan O'Mearadd494642020-05-01 07:42:23 -07001910 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001911 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
1912 # can choose from the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001913 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
1914 # but does not dial automatically (https://goo.gl/ergbB2).
1915 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
1916 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
1917 # format. An example of a correctly formatted phone number:
1918 # +15556767888.
1919 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001920 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1921 # when the user taps the suggested action. This data will be also
1922 # forwarded to webhook to allow performing custom business logic.
1923 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
1924 # to send back to the agent (https://goo.gl/GXotJW).
Dan O'Mearadd494642020-05-01 07:42:23 -07001925 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001926 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1927 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
1928 # (https://goo.gl/6GLJD2). If the user has an app installed that is
1929 # registered as the default handler for the URL, then this app will be
1930 # opened instead, and its icon will be used in the suggested action UI.
1931 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1932 },
Dan O'Mearadd494642020-05-01 07:42:23 -07001933 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001934 },
1935 ],
1936 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
1937 },
1938 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
1939 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
1940 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
1941 &quot;A String&quot;,
1942 ],
1943 },
1944 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in # Synthesizes speech in Telephony Gateway.
1945 # Telephony Gateway.
1946 #
1947 # Telephony Gateway takes the synthesizer settings from
1948 # `DetectIntentResponse.output_audio_config` which can either be set
1949 # at request-level or can come from the agent-level synthesizer config.
1950 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
1951 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see
1952 # [SSML](https://developers.google.com/actions/reference/ssml).
1953 },
1954 &quot;card&quot;: { # The card response message. # Displays a card.
Bu Sun Kim65020912020-05-20 12:08:20 -07001955 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1956 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1957 { # Optional. Contains information about a button.
1958 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
1959 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
1960 # open.
1961 },
1962 ],
1963 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001964 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07001965 },
1966 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
1967 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1968 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
1969 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1970 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1971 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
Dan O'Mearadd494642020-05-01 07:42:23 -07001972 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001973 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
1974 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1975 { # The button object that appears at the bottom of a card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001976 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -07001977 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1978 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001979 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001980 },
1981 ],
1982 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1983 },
1984 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Bu Sun Kim65020912020-05-20 12:08:20 -07001985 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
1986 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1987 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1988 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001989 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001990 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
1991 { # The button object that appears at the bottom of a card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001992 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -07001993 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1994 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001995 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001996 },
1997 ],
1998 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
1999 &quot;rows&quot;: [ # Optional. Rows in this table of data.
2000 { # Row of TableCard.
2001 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
2002 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
2003 { # Cell of TableCardRow.
2004 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
2005 },
2006 ],
2007 },
2008 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002009 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
2010 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
2011 { # Column properties for TableCard.
2012 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
2013 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
2014 },
2015 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002016 },
2017 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
2018 &quot;items&quot;: [ # Required. Carousel items.
2019 { # An item in the carousel.
Bu Sun Kim65020912020-05-20 12:08:20 -07002020 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
2021 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
2022 # dialog.
2023 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
2024 # item in dialog.
2025 &quot;A String&quot;,
2026 ],
2027 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
2028 # response is given.
2029 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002030 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
2031 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2032 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2033 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2034 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2035 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002036 },
2037 ],
2038 },
2039 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app # Displays a link out suggestion chip for Actions on Google.
2040 # or website associated with this agent.
2041 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
2042 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
2043 # suggestion chip.
2044 },
2045 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
2046 # https://developers.google.com/actions/assistant/responses#browsing_carousel
2047 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
2048 # items.
2049 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
2050 # items, maximum of ten.
2051 { # Browsing carousel tile
Bu Sun Kim65020912020-05-20 12:08:20 -07002052 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
2053 # text.
2054 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
2055 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
2056 # the URL. Defaults to opening via web browser.
2057 &quot;url&quot;: &quot;A String&quot;, # Required. URL
2058 },
2059 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
2060 # Card. Maximum of one line of text.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002061 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
2062 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
2063 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2064 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2065 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2066 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002067 },
2068 ],
2069 },
2070 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # Returns a voice or text-only response for Actions on Google.
2071 # This message in `QueryResult.fulfillment_messages` and
2072 # `WebhookResponse.fulfillment_messages` should contain only one
2073 # `SimpleResponse`.
2074 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
2075 { # The simple response message containing speech or text.
Bu Sun Kim65020912020-05-20 12:08:20 -07002076 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
2077 # response to the user in the SSML format. Mutually exclusive with
2078 # text_to_speech.
2079 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002080 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
2081 # speech output. Mutually exclusive with ssml.
Bu Sun Kim65020912020-05-20 12:08:20 -07002082 },
2083 ],
2084 },
2085 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
2086 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to
2087 # in [E.164 format](https://en.wikipedia.org/wiki/E.164).
2088 #
2089 # We currently only allow transferring to US numbers (+1xxxyyyzzzz).
2090 },
2091 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
2092 &quot;mediaObjects&quot;: [ # Required. List of media objects.
2093 { # Response media object for media content card.
Bu Sun Kim65020912020-05-20 12:08:20 -07002094 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
2095 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
2096 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
2097 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
2098 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2099 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2100 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2101 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002102 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
2103 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2104 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2105 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2106 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002107 },
2108 ],
2109 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
2110 },
2111 &quot;image&quot;: { # The image response message. # Displays an image.
2112 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2113 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2114 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2115 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002116 &quot;rbmStandaloneRichCard&quot;: { # Standalone Rich Business Messaging (RBM) rich card. # Standalone Rich Business Messaging (RBM) rich card response.
2117 #
2118 # Rich cards allow you to respond to users with more vivid content, e.g.
2119 # with media and suggestions.
2120 #
2121 # For more details about RBM rich cards, please see:
2122 # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards.
2123 # You can group multiple rich cards into one using RbmCarouselCard but
2124 # carousel cards will give you less control over the card layout.
2125 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal.
2126 # Image preview alignment for standalone cards with horizontal layout.
2127 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
2128 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
Bu Sun Kim65020912020-05-20 12:08:20 -07002129 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
2130 # be set. Media (image, GIF or a video) to include in the card.
2131 # The following media-types are currently supported:
2132 #
2133 # Image Types
2134 #
2135 # * image/jpeg
2136 # * image/jpg&#x27;
2137 # * image/gif
2138 # * image/png
2139 #
2140 # Video Types
2141 #
2142 # * video/h263
2143 # * video/m4v
2144 # * video/mp4
2145 # * video/mpeg
2146 # * video/mpeg4
2147 # * video/webm
2148 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
2149 # provide a thumbnail URI, the RBM platform displays a blank
2150 # placeholder thumbnail until the user&#x27;s device downloads the file.
2151 # Depending on the user&#x27;s setting, the file may not download
2152 # automatically and may require the user to tap a download button.
2153 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
2154 # within a rich card with a vertical layout. (https://goo.gl/NeFCjz).
2155 # For a standalone card with horizontal layout, height is not
2156 # customizable, and this field is ignored.
2157 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
2158 # determines the MIME type of the file from the content-type field in
2159 # the HTTP headers when the platform fetches the file. The content-type
2160 # field must be present and accurate in the HTTP response from the URL.
2161 },
2162 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
2163 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
2164 # easily select/click a predefined response or perform an action (like
2165 # opening a web uri).
2166 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
2167 # instead of typing in their own response.
Bu Sun Kim65020912020-05-20 12:08:20 -07002168 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2169 # when the user taps the suggested reply. This data will be also
2170 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002171 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07002172 },
2173 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
2174 # can choose from the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002175 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
2176 # but does not dial automatically (https://goo.gl/ergbB2).
2177 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
2178 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
2179 # format. An example of a correctly formatted phone number:
2180 # +15556767888.
2181 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002182 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2183 # when the user taps the suggested action. This data will be also
2184 # forwarded to webhook to allow performing custom business logic.
2185 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
2186 # to send back to the agent (https://goo.gl/GXotJW).
2187 },
2188 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2189 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
2190 # (https://goo.gl/6GLJD2). If the user has an app installed that is
2191 # registered as the default handler for the URL, then this app will be
2192 # opened instead, and its icon will be used in the suggested action UI.
2193 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2194 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002195 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002196 },
2197 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002198 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
2199 #
2200 # At least one of the title, description or media must be set.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002201 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
2202 #
2203 # At least one of the title, description or media must be set.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002204 },
2205 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002206 &quot;payload&quot;: { # A custom platform-specific response.
2207 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2208 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002209 },
2210 ],
2211 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent.
2212 # Note: The action name must not contain whitespaces.
2213 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent.
2214 # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
2215 # methods.
2216 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
2217 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
2218 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be
2219 # triggered.
2220 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
2221 &quot;A String&quot;,
2222 ],
2223 &quot;followupIntentInfo&quot;: [ # Output only. Information about all followup intents that have this intent as
2224 # a direct or indirect parent. We populate this field only in the output.
2225 { # Represents a single followup intent in the chain.
2226 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent.
2227 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
2228 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent.
2229 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
2230 },
2231 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002232}
2233
Bu Sun Kim65020912020-05-20 12:08:20 -07002234 languageCode: string, Optional. The language used to access language-specific data.
2235If not specified, the agent&#x27;s default language is used.
2236For more information, see
2237[Multilingual intent and entity
2238data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002239 intentView: string, Optional. The resource view to apply to the returned intent.
Bu Sun Kim65020912020-05-20 12:08:20 -07002240 x__xgafv: string, V1 error format.
2241 Allowed values
2242 1 - v1 error format
2243 2 - v2 error format
2244
2245Returns:
2246 An object of the form:
2247
2248 { # Represents an intent.
2249 # Intents convert a number of user expressions or patterns into an action. An
2250 # action is an extraction of a user command or sentence semantics.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002251 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
2252 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Output only. The unique identifier of the root intent in the chain of
2253 # followup intents. It identifies the correct followup intents chain for
2254 # this intent.
2255 #
2256 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
2257 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
2258 # Note: If `ml_disabled` setting is set to true, then this intent is not
2259 # taken into account during inference in `ML ONLY` match mode. Also,
2260 # auto-markup in the UI is turned off.
2261 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
2262 &quot;mlEnabled&quot;: True or False, # Optional. Indicates whether Machine Learning is enabled for the intent.
2263 # Note: If `ml_enabled` setting is set to false, then this intent is not
2264 # taken into account during inference in `ML ONLY` match mode. Also,
2265 # auto-markup in the UI is turned off.
2266 # DEPRECATED! Please use `ml_disabled` field instead.
2267 # NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false,
2268 # then the default value is determined as follows:
2269 # - Before April 15th, 2018 the default is:
2270 # ml_enabled = false / ml_disabled = true.
2271 # - After April 15th, 2018 the default is:
2272 # ml_enabled = true / ml_disabled = false.
Bu Sun Kim65020912020-05-20 12:08:20 -07002273 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is
Dan O'Mearadd494642020-05-01 07:42:23 -07002274 # trained on.
2275 { # Represents an example that the agent is trained on.
Bu Sun Kim65020912020-05-20 12:08:20 -07002276 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts.
Dan O'Mearadd494642020-05-01 07:42:23 -07002277 # The parts are concatenated in order to form the training phrase.
2278 #
2279 # Note: The API does not automatically annotate training phrases like the
2280 # Dialogflow Console does.
2281 #
2282 # Note: Do not forget to include whitespace at part boundaries,
2283 # so the training phrase is well formatted when the parts are concatenated.
2284 #
2285 # If the training phrase does not need to be annotated with parameters,
2286 # you just need a single part with only the Part.text field set.
2287 #
2288 # If you want to annotate the training phrase, you must create multiple
2289 # parts, where the fields of each part are populated in one of two ways:
2290 #
2291 # - `Part.text` is set to a part of the phrase that has no parameters.
2292 # - `Part.text` is set to a part of the phrase that you want to annotate,
2293 # and the `entity_type`, `alias`, and `user_defined` fields are all
2294 # set.
2295 { # Represents a part of a training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07002296 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the
Dan O'Mearadd494642020-05-01 07:42:23 -07002297 # annotated part of the example.
2298 # This field is required for annotated parts of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07002299 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated.
Dan O'Mearadd494642020-05-01 07:42:23 -07002300 # This field is set to true when the Dialogflow Console is used to
2301 # manually annotate the part. When creating an annotated part with the
2302 # API, you must set this to true.
Bu Sun Kim65020912020-05-20 12:08:20 -07002303 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
2304 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`.
2305 # This field is required for annotated parts of the training phrase.
Dan O'Mearadd494642020-05-01 07:42:23 -07002306 },
2307 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002308 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
2309 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to
Dan O'Mearadd494642020-05-01 07:42:23 -07002310 # the intent. Each time a developer adds an existing sample by editing an
2311 # intent or training, this counter is increased.
Bu Sun Kim65020912020-05-20 12:08:20 -07002312 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
Dan O'Mearadd494642020-05-01 07:42:23 -07002313 },
2314 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002315 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current
2316 # session when this intent is matched.
2317 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
2318 { # Represents intent parameters.
Bu Sun Kim65020912020-05-20 12:08:20 -07002319 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that
2320 # describes values of the parameter. If the parameter is
2321 # required, this must be provided.
2322 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the
2323 # user in order to collect a value for the parameter.
2324 &quot;A String&quot;,
2325 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002326 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is,
2327 # whether the intent cannot be completed without collecting the parameter
2328 # value.
Bu Sun Kim65020912020-05-20 12:08:20 -07002329 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty
2330 # result.
2331 # Default values can be extracted from contexts by using the following
2332 # syntax: `#context_name.parameter_name`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002333 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
2334 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
2335 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be:
2336 #
2337 # - a constant string,
2338 # - a parameter value defined as `$parameter_name`,
2339 # - an original parameter value defined as `$parameter_name.original`,
2340 # - a parameter value from some context defined as
2341 # `#context_name.parameter_name`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002342 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
Bu Sun Kim65020912020-05-20 12:08:20 -07002343 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002344 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002345 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent.
2346 # If the collection of input contexts is not empty, all of the contexts must
2347 # be present in the active user session for an event to trigger this intent.
2348 # Event names are limited to 150 characters.
2349 &quot;A String&quot;,
2350 ],
2351 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Optional. The unique identifier of the parent intent in the
2352 # chain of followup intents. You can set this field when creating an intent,
2353 # for example with CreateIntent or
2354 # BatchUpdateIntents, in order to make this
2355 # intent a followup intent.
2356 #
2357 # It identifies the parent followup intent.
2358 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
2359 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher
Dan O'Mearadd494642020-05-01 07:42:23 -07002360 # priorities.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002361 #
Dan O'Mearadd494642020-05-01 07:42:23 -07002362 # - If the supplied value is unspecified or 0, the service
2363 # translates the value to 500,000, which corresponds to the
2364 # `Normal` priority in the console.
2365 # - If the supplied value is negative, the intent is ignored
2366 # in runtime detect intent requests.
Bu Sun Kim65020912020-05-20 12:08:20 -07002367 &quot;endInteraction&quot;: True or False, # Optional. Indicates that this intent ends an interaction. Some integrations
2368 # (e.g., Actions on Google or Dialogflow phone gateway) use this information
2369 # to close interaction with an end user. Default is false.
2370 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent
2371 # is matched. Context messages in this collection should not set the
2372 # parameters field. Setting the `lifespan_count` to 0 will reset the context
2373 # when the intent is matched.
2374 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
2375 { # Represents a context.
2376 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
2377 # context expires. The default is `0`. If set to `0`, the context expires
2378 # immediately. Contexts expire automatically after 20 minutes if there
2379 # are no matching queries.
2380 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
2381 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
2382 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
2383 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
2384 #
2385 # The `Context ID` is always converted to lowercase, may only contain
2386 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
2387 #
2388 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
2389 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
2390 #
2391 # The following context names are reserved for internal use by Dialogflow.
2392 # You should not use these contexts or create contexts with these names:
2393 #
2394 # * `__system_counters__`
2395 # * `*_id_dialog_context`
2396 # * `*_dialog_params_size`
2397 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
2398 #
2399 # Depending on your protocol or client library language, this is a
2400 # map, associative array, symbol table, dictionary, or JSON object
2401 # composed of a collection of (MapKey, MapValue) pairs:
2402 #
2403 # - MapKey type: string
2404 # - MapKey value: parameter name
2405 # - MapValue type:
2406 # - If parameter&#x27;s entity type is a composite entity: map
2407 # - Else: string or number, depending on parameter value type
2408 # - MapValue value:
2409 # - If parameter&#x27;s entity type is a composite entity:
2410 # map from composite entity property names to property values
2411 # - Else: parameter value
2412 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2413 },
2414 },
2415 ],
2416 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be
2417 # copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
2418 &quot;A String&quot;,
2419 ],
2420 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the
2421 # `Response` field in the Dialogflow console.
2422 { # Corresponds to the `Response` field in the Dialogflow console.
2423 &quot;text&quot;: { # The text response message. # Returns a text response.
2424 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
2425 &quot;A String&quot;,
2426 ],
2427 },
2428 &quot;rbmCarouselRichCard&quot;: { # Carousel Rich Business Messaging (RBM) rich card. # Rich Business Messaging (RBM) carousel rich card response.
2429 #
2430 # Rich cards allow you to respond to users with more vivid content, e.g.
2431 # with media and suggestions.
2432 #
2433 # For more details about RBM rich cards, please see:
2434 # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards.
2435 # If you want to show a single card with more control over the layout,
2436 # please use RbmStandaloneCard instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07002437 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least
2438 # 2 cards and at most 10.
2439 { # Rich Business Messaging (RBM) Card content
Bu Sun Kim65020912020-05-20 12:08:20 -07002440 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
2441 # be set. Media (image, GIF or a video) to include in the card.
2442 # The following media-types are currently supported:
2443 #
2444 # Image Types
2445 #
2446 # * image/jpeg
2447 # * image/jpg&#x27;
2448 # * image/gif
2449 # * image/png
2450 #
2451 # Video Types
2452 #
2453 # * video/h263
2454 # * video/m4v
2455 # * video/mp4
2456 # * video/mpeg
2457 # * video/mpeg4
2458 # * video/webm
2459 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
2460 # provide a thumbnail URI, the RBM platform displays a blank
2461 # placeholder thumbnail until the user&#x27;s device downloads the file.
2462 # Depending on the user&#x27;s setting, the file may not download
2463 # automatically and may require the user to tap a download button.
2464 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
2465 # within a rich card with a vertical layout. (https://goo.gl/NeFCjz).
2466 # For a standalone card with horizontal layout, height is not
2467 # customizable, and this field is ignored.
2468 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
2469 # determines the MIME type of the file from the content-type field in
2470 # the HTTP headers when the platform fetches the file. The content-type
2471 # field must be present and accurate in the HTTP response from the URL.
2472 },
2473 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
2474 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
2475 # easily select/click a predefined response or perform an action (like
2476 # opening a web uri).
2477 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
2478 # instead of typing in their own response.
Bu Sun Kim65020912020-05-20 12:08:20 -07002479 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2480 # when the user taps the suggested reply. This data will be also
2481 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002482 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07002483 },
2484 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
2485 # can choose from the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002486 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
2487 # but does not dial automatically (https://goo.gl/ergbB2).
2488 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
2489 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
2490 # format. An example of a correctly formatted phone number:
2491 # +15556767888.
2492 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002493 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2494 # when the user taps the suggested action. This data will be also
2495 # forwarded to webhook to allow performing custom business logic.
2496 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
2497 # to send back to the agent (https://goo.gl/GXotJW).
2498 },
2499 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2500 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
2501 # (https://goo.gl/6GLJD2). If the user has an app installed that is
2502 # registered as the default handler for the URL, then this app will be
2503 # opened instead, and its icon will be used in the suggested action UI.
2504 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2505 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002506 },
2507 },
2508 ],
2509 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
2510 #
2511 # At least one of the title, description or media must be set.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002512 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
2513 #
2514 # At least one of the title, description or media must be set.
Bu Sun Kim65020912020-05-20 12:08:20 -07002515 },
2516 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002517 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
Bu Sun Kim65020912020-05-20 12:08:20 -07002518 },
2519 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
2520 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
2521 { # The suggestion chip message that the user can tap to quickly post a reply
2522 # to the conversation.
2523 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
2524 },
2525 ],
2526 },
2527 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
2528 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
2529 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to
2530 # play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single
2531 # channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz.
2532 #
2533 # This object must be readable by the `service-&lt;Project
2534 # Number&gt;@gcp-sa-dialogflow.iam.gserviceaccount.com` service account
2535 # where &lt;Project Number&gt; is the number of the Telephony Gateway project
2536 # (usually the same as the Dialogflow agent project). If the Google Cloud
2537 # Storage bucket is in the Telephony Gateway project, this permission is
2538 # added by default when enabling the Dialogflow V2 API.
2539 #
2540 # For audio from other sources, consider using the
2541 # `TelephonySynthesizeSpeech` message with SSML.
2542 },
2543 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
2544 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
2545 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
2546 &quot;items&quot;: [ # Required. List items.
2547 { # An item in the list.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002548 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
Bu Sun Kim65020912020-05-20 12:08:20 -07002549 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
2550 # dialog.
2551 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
2552 # item in dialog.
2553 &quot;A String&quot;,
2554 ],
2555 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
2556 # response is given.
2557 },
2558 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
2559 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2560 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2561 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2562 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2563 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002564 },
2565 ],
2566 },
2567 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response.
2568 #
2569 # RBM allows businesses to send enriched and branded versions of SMS. See
2570 # https://jibe.google.com/business-messaging.
2571 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
2572 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
2573 # easily select/click a predefined response or perform an action (like
2574 # opening a web uri).
2575 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
2576 # instead of typing in their own response.
Bu Sun Kim65020912020-05-20 12:08:20 -07002577 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2578 # when the user taps the suggested reply. This data will be also
2579 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002580 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07002581 },
2582 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
2583 # can choose from the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002584 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
2585 # but does not dial automatically (https://goo.gl/ergbB2).
2586 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
2587 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
2588 # format. An example of a correctly formatted phone number:
2589 # +15556767888.
2590 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002591 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2592 # when the user taps the suggested action. This data will be also
2593 # forwarded to webhook to allow performing custom business logic.
2594 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
2595 # to send back to the agent (https://goo.gl/GXotJW).
2596 },
2597 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2598 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
2599 # (https://goo.gl/6GLJD2). If the user has an app installed that is
2600 # registered as the default handler for the URL, then this app will be
2601 # opened instead, and its icon will be used in the suggested action UI.
2602 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2603 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002604 },
2605 },
2606 ],
2607 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
2608 },
2609 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
2610 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
2611 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
2612 &quot;A String&quot;,
2613 ],
2614 },
2615 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in # Synthesizes speech in Telephony Gateway.
2616 # Telephony Gateway.
2617 #
2618 # Telephony Gateway takes the synthesizer settings from
2619 # `DetectIntentResponse.output_audio_config` which can either be set
2620 # at request-level or can come from the agent-level synthesizer config.
2621 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
2622 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see
2623 # [SSML](https://developers.google.com/actions/reference/ssml).
2624 },
2625 &quot;card&quot;: { # The card response message. # Displays a card.
Bu Sun Kim65020912020-05-20 12:08:20 -07002626 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
2627 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2628 { # Optional. Contains information about a button.
2629 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
2630 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
2631 # open.
2632 },
2633 ],
2634 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002635 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07002636 },
2637 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
2638 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
2639 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
2640 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2641 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2642 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2643 },
2644 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
2645 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2646 { # The button object that appears at the bottom of a card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002647 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -07002648 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2649 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2650 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002651 },
2652 ],
2653 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2654 },
2655 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Bu Sun Kim65020912020-05-20 12:08:20 -07002656 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
2657 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2658 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2659 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2660 },
2661 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
2662 { # The button object that appears at the bottom of a card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002663 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -07002664 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2665 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2666 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002667 },
2668 ],
2669 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
2670 &quot;rows&quot;: [ # Optional. Rows in this table of data.
2671 { # Row of TableCard.
2672 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
2673 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
2674 { # Cell of TableCardRow.
2675 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
2676 },
2677 ],
2678 },
2679 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002680 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
2681 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
2682 { # Column properties for TableCard.
2683 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
2684 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
2685 },
2686 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002687 },
2688 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
2689 &quot;items&quot;: [ # Required. Carousel items.
2690 { # An item in the carousel.
Bu Sun Kim65020912020-05-20 12:08:20 -07002691 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
2692 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
2693 # dialog.
2694 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
2695 # item in dialog.
2696 &quot;A String&quot;,
2697 ],
2698 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
2699 # response is given.
2700 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002701 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
2702 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2703 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2704 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2705 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2706 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002707 },
2708 ],
2709 },
2710 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app # Displays a link out suggestion chip for Actions on Google.
2711 # or website associated with this agent.
2712 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
2713 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
2714 # suggestion chip.
2715 },
2716 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
2717 # https://developers.google.com/actions/assistant/responses#browsing_carousel
2718 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
2719 # items.
2720 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
2721 # items, maximum of ten.
2722 { # Browsing carousel tile
Bu Sun Kim65020912020-05-20 12:08:20 -07002723 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
2724 # text.
2725 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
2726 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
2727 # the URL. Defaults to opening via web browser.
2728 &quot;url&quot;: &quot;A String&quot;, # Required. URL
2729 },
2730 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
2731 # Card. Maximum of one line of text.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002732 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
2733 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
2734 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2735 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2736 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2737 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002738 },
2739 ],
2740 },
2741 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # Returns a voice or text-only response for Actions on Google.
2742 # This message in `QueryResult.fulfillment_messages` and
2743 # `WebhookResponse.fulfillment_messages` should contain only one
2744 # `SimpleResponse`.
2745 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
2746 { # The simple response message containing speech or text.
Bu Sun Kim65020912020-05-20 12:08:20 -07002747 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
2748 # response to the user in the SSML format. Mutually exclusive with
2749 # text_to_speech.
2750 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002751 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
2752 # speech output. Mutually exclusive with ssml.
Bu Sun Kim65020912020-05-20 12:08:20 -07002753 },
2754 ],
2755 },
2756 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
2757 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to
2758 # in [E.164 format](https://en.wikipedia.org/wiki/E.164).
2759 #
2760 # We currently only allow transferring to US numbers (+1xxxyyyzzzz).
2761 },
2762 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
2763 &quot;mediaObjects&quot;: [ # Required. List of media objects.
2764 { # Response media object for media content card.
Bu Sun Kim65020912020-05-20 12:08:20 -07002765 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
2766 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
2767 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
2768 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
2769 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2770 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2771 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2772 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002773 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
2774 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2775 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2776 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2777 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002778 },
2779 ],
2780 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
2781 },
2782 &quot;image&quot;: { # The image response message. # Displays an image.
2783 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2784 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2785 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2786 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002787 &quot;rbmStandaloneRichCard&quot;: { # Standalone Rich Business Messaging (RBM) rich card. # Standalone Rich Business Messaging (RBM) rich card response.
2788 #
2789 # Rich cards allow you to respond to users with more vivid content, e.g.
2790 # with media and suggestions.
2791 #
2792 # For more details about RBM rich cards, please see:
2793 # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards.
2794 # You can group multiple rich cards into one using RbmCarouselCard but
2795 # carousel cards will give you less control over the card layout.
2796 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal.
2797 # Image preview alignment for standalone cards with horizontal layout.
2798 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
2799 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
Bu Sun Kim65020912020-05-20 12:08:20 -07002800 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
2801 # be set. Media (image, GIF or a video) to include in the card.
2802 # The following media-types are currently supported:
2803 #
2804 # Image Types
2805 #
2806 # * image/jpeg
2807 # * image/jpg&#x27;
2808 # * image/gif
2809 # * image/png
2810 #
2811 # Video Types
2812 #
2813 # * video/h263
2814 # * video/m4v
2815 # * video/mp4
2816 # * video/mpeg
2817 # * video/mpeg4
2818 # * video/webm
2819 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
2820 # provide a thumbnail URI, the RBM platform displays a blank
2821 # placeholder thumbnail until the user&#x27;s device downloads the file.
2822 # Depending on the user&#x27;s setting, the file may not download
2823 # automatically and may require the user to tap a download button.
2824 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
2825 # within a rich card with a vertical layout. (https://goo.gl/NeFCjz).
2826 # For a standalone card with horizontal layout, height is not
2827 # customizable, and this field is ignored.
2828 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
2829 # determines the MIME type of the file from the content-type field in
2830 # the HTTP headers when the platform fetches the file. The content-type
2831 # field must be present and accurate in the HTTP response from the URL.
2832 },
2833 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
2834 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
2835 # easily select/click a predefined response or perform an action (like
2836 # opening a web uri).
2837 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
2838 # instead of typing in their own response.
Bu Sun Kim65020912020-05-20 12:08:20 -07002839 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2840 # when the user taps the suggested reply. This data will be also
2841 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002842 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07002843 },
2844 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
2845 # can choose from the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002846 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
2847 # but does not dial automatically (https://goo.gl/ergbB2).
2848 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
2849 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
2850 # format. An example of a correctly formatted phone number:
2851 # +15556767888.
2852 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002853 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2854 # when the user taps the suggested action. This data will be also
2855 # forwarded to webhook to allow performing custom business logic.
2856 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
2857 # to send back to the agent (https://goo.gl/GXotJW).
2858 },
2859 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2860 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
2861 # (https://goo.gl/6GLJD2). If the user has an app installed that is
2862 # registered as the default handler for the URL, then this app will be
2863 # opened instead, and its icon will be used in the suggested action UI.
2864 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2865 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002866 },
2867 },
2868 ],
2869 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
2870 #
2871 # At least one of the title, description or media must be set.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002872 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
2873 #
2874 # At least one of the title, description or media must be set.
Bu Sun Kim65020912020-05-20 12:08:20 -07002875 },
2876 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002877 &quot;payload&quot;: { # A custom platform-specific response.
2878 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2879 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002880 },
2881 ],
2882 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent.
2883 # Note: The action name must not contain whitespaces.
2884 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent.
2885 # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
2886 # methods.
Dan O'Mearadd494642020-05-01 07:42:23 -07002887 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002888 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
2889 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002890 # triggered.
Dan O'Mearadd494642020-05-01 07:42:23 -07002891 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002892 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002893 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002894 &quot;followupIntentInfo&quot;: [ # Output only. Information about all followup intents that have this intent as
2895 # a direct or indirect parent. We populate this field only in the output.
2896 { # Represents a single followup intent in the chain.
2897 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent.
2898 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
2899 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent.
2900 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
2901 },
2902 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002903 }</pre>
2904</div>
2905
2906<div class="method">
2907 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
2908 <pre>Deletes the specified intent and its direct or indirect followup intents.
2909
2910Args:
2911 name: string, Required. The name of the intent to delete. If this intent has direct or
2912indirect followup intents, we also delete them.
2913
Dan O'Mearadd494642020-05-01 07:42:23 -07002914Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002915 x__xgafv: string, V1 error format.
2916 Allowed values
2917 1 - v1 error format
2918 2 - v2 error format
2919
2920Returns:
2921 An object of the form:
2922
2923 { # A generic empty message that you can re-use to avoid defining duplicated
2924 # empty messages in your APIs. A typical example is to use it as the request
2925 # or the response type of an API method. For instance:
2926 #
2927 # service Foo {
2928 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
2929 # }
2930 #
2931 # The JSON representation for `Empty` is empty JSON object `{}`.
2932 }</pre>
2933</div>
2934
2935<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -07002936 <code class="details" id="get">get(name, intentView=None, languageCode=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002937 <pre>Retrieves the specified intent.
2938
2939Args:
2940 name: string, Required. The name of the intent.
Dan O'Mearadd494642020-05-01 07:42:23 -07002941Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`. (required)
Bu Sun Kim65020912020-05-20 12:08:20 -07002942 intentView: string, Optional. The resource view to apply to the returned intent.
Dan O'Mearadd494642020-05-01 07:42:23 -07002943 languageCode: string, Optional. The language used to access language-specific data.
Bu Sun Kim65020912020-05-20 12:08:20 -07002944If not specified, the agent&#x27;s default language is used.
Dan O'Mearadd494642020-05-01 07:42:23 -07002945For more information, see
2946[Multilingual intent and entity
2947data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002948 x__xgafv: string, V1 error format.
2949 Allowed values
2950 1 - v1 error format
2951 2 - v2 error format
2952
2953Returns:
2954 An object of the form:
2955
2956 { # Represents an intent.
2957 # Intents convert a number of user expressions or patterns into an action. An
2958 # action is an extraction of a user command or sentence semantics.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002959 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
2960 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Output only. The unique identifier of the root intent in the chain of
2961 # followup intents. It identifies the correct followup intents chain for
2962 # this intent.
2963 #
2964 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
2965 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
2966 # Note: If `ml_disabled` setting is set to true, then this intent is not
2967 # taken into account during inference in `ML ONLY` match mode. Also,
2968 # auto-markup in the UI is turned off.
2969 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
2970 &quot;mlEnabled&quot;: True or False, # Optional. Indicates whether Machine Learning is enabled for the intent.
2971 # Note: If `ml_enabled` setting is set to false, then this intent is not
2972 # taken into account during inference in `ML ONLY` match mode. Also,
2973 # auto-markup in the UI is turned off.
2974 # DEPRECATED! Please use `ml_disabled` field instead.
2975 # NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false,
2976 # then the default value is determined as follows:
2977 # - Before April 15th, 2018 the default is:
2978 # ml_enabled = false / ml_disabled = true.
2979 # - After April 15th, 2018 the default is:
2980 # ml_enabled = true / ml_disabled = false.
Bu Sun Kim65020912020-05-20 12:08:20 -07002981 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is
Dan O'Mearadd494642020-05-01 07:42:23 -07002982 # trained on.
2983 { # Represents an example that the agent is trained on.
Bu Sun Kim65020912020-05-20 12:08:20 -07002984 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts.
Dan O'Mearadd494642020-05-01 07:42:23 -07002985 # The parts are concatenated in order to form the training phrase.
2986 #
2987 # Note: The API does not automatically annotate training phrases like the
2988 # Dialogflow Console does.
2989 #
2990 # Note: Do not forget to include whitespace at part boundaries,
2991 # so the training phrase is well formatted when the parts are concatenated.
2992 #
2993 # If the training phrase does not need to be annotated with parameters,
2994 # you just need a single part with only the Part.text field set.
2995 #
2996 # If you want to annotate the training phrase, you must create multiple
2997 # parts, where the fields of each part are populated in one of two ways:
2998 #
2999 # - `Part.text` is set to a part of the phrase that has no parameters.
3000 # - `Part.text` is set to a part of the phrase that you want to annotate,
3001 # and the `entity_type`, `alias`, and `user_defined` fields are all
3002 # set.
3003 { # Represents a part of a training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07003004 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the
Dan O'Mearadd494642020-05-01 07:42:23 -07003005 # annotated part of the example.
3006 # This field is required for annotated parts of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07003007 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated.
Dan O'Mearadd494642020-05-01 07:42:23 -07003008 # This field is set to true when the Dialogflow Console is used to
3009 # manually annotate the part. When creating an annotated part with the
3010 # API, you must set this to true.
Bu Sun Kim65020912020-05-20 12:08:20 -07003011 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
3012 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`.
3013 # This field is required for annotated parts of the training phrase.
Dan O'Mearadd494642020-05-01 07:42:23 -07003014 },
3015 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003016 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
3017 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to
Dan O'Mearadd494642020-05-01 07:42:23 -07003018 # the intent. Each time a developer adds an existing sample by editing an
3019 # intent or training, this counter is increased.
Bu Sun Kim65020912020-05-20 12:08:20 -07003020 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
Dan O'Mearadd494642020-05-01 07:42:23 -07003021 },
3022 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003023 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current
3024 # session when this intent is matched.
3025 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
3026 { # Represents intent parameters.
Bu Sun Kim65020912020-05-20 12:08:20 -07003027 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that
3028 # describes values of the parameter. If the parameter is
3029 # required, this must be provided.
3030 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the
3031 # user in order to collect a value for the parameter.
3032 &quot;A String&quot;,
3033 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003034 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is,
3035 # whether the intent cannot be completed without collecting the parameter
3036 # value.
Bu Sun Kim65020912020-05-20 12:08:20 -07003037 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty
3038 # result.
3039 # Default values can be extracted from contexts by using the following
3040 # syntax: `#context_name.parameter_name`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003041 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
3042 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
3043 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be:
3044 #
3045 # - a constant string,
3046 # - a parameter value defined as `$parameter_name`,
3047 # - an original parameter value defined as `$parameter_name.original`,
3048 # - a parameter value from some context defined as
3049 # `#context_name.parameter_name`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003050 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
Bu Sun Kim65020912020-05-20 12:08:20 -07003051 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003052 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003053 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent.
3054 # If the collection of input contexts is not empty, all of the contexts must
3055 # be present in the active user session for an event to trigger this intent.
3056 # Event names are limited to 150 characters.
3057 &quot;A String&quot;,
3058 ],
3059 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Optional. The unique identifier of the parent intent in the
3060 # chain of followup intents. You can set this field when creating an intent,
3061 # for example with CreateIntent or
3062 # BatchUpdateIntents, in order to make this
3063 # intent a followup intent.
3064 #
3065 # It identifies the parent followup intent.
3066 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
3067 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher
Dan O'Mearadd494642020-05-01 07:42:23 -07003068 # priorities.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003069 #
Dan O'Mearadd494642020-05-01 07:42:23 -07003070 # - If the supplied value is unspecified or 0, the service
3071 # translates the value to 500,000, which corresponds to the
3072 # `Normal` priority in the console.
3073 # - If the supplied value is negative, the intent is ignored
3074 # in runtime detect intent requests.
Bu Sun Kim65020912020-05-20 12:08:20 -07003075 &quot;endInteraction&quot;: True or False, # Optional. Indicates that this intent ends an interaction. Some integrations
3076 # (e.g., Actions on Google or Dialogflow phone gateway) use this information
3077 # to close interaction with an end user. Default is false.
3078 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent
3079 # is matched. Context messages in this collection should not set the
3080 # parameters field. Setting the `lifespan_count` to 0 will reset the context
3081 # when the intent is matched.
3082 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
3083 { # Represents a context.
3084 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
3085 # context expires. The default is `0`. If set to `0`, the context expires
3086 # immediately. Contexts expire automatically after 20 minutes if there
3087 # are no matching queries.
3088 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
3089 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
3090 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
3091 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
3092 #
3093 # The `Context ID` is always converted to lowercase, may only contain
3094 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
3095 #
3096 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
3097 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
3098 #
3099 # The following context names are reserved for internal use by Dialogflow.
3100 # You should not use these contexts or create contexts with these names:
3101 #
3102 # * `__system_counters__`
3103 # * `*_id_dialog_context`
3104 # * `*_dialog_params_size`
3105 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
3106 #
3107 # Depending on your protocol or client library language, this is a
3108 # map, associative array, symbol table, dictionary, or JSON object
3109 # composed of a collection of (MapKey, MapValue) pairs:
3110 #
3111 # - MapKey type: string
3112 # - MapKey value: parameter name
3113 # - MapValue type:
3114 # - If parameter&#x27;s entity type is a composite entity: map
3115 # - Else: string or number, depending on parameter value type
3116 # - MapValue value:
3117 # - If parameter&#x27;s entity type is a composite entity:
3118 # map from composite entity property names to property values
3119 # - Else: parameter value
3120 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3121 },
3122 },
3123 ],
3124 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be
3125 # copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
3126 &quot;A String&quot;,
3127 ],
3128 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the
3129 # `Response` field in the Dialogflow console.
3130 { # Corresponds to the `Response` field in the Dialogflow console.
3131 &quot;text&quot;: { # The text response message. # Returns a text response.
3132 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
3133 &quot;A String&quot;,
3134 ],
3135 },
3136 &quot;rbmCarouselRichCard&quot;: { # Carousel Rich Business Messaging (RBM) rich card. # Rich Business Messaging (RBM) carousel rich card response.
3137 #
3138 # Rich cards allow you to respond to users with more vivid content, e.g.
3139 # with media and suggestions.
3140 #
3141 # For more details about RBM rich cards, please see:
3142 # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards.
3143 # If you want to show a single card with more control over the layout,
3144 # please use RbmStandaloneCard instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07003145 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least
3146 # 2 cards and at most 10.
3147 { # Rich Business Messaging (RBM) Card content
Bu Sun Kim65020912020-05-20 12:08:20 -07003148 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
3149 # be set. Media (image, GIF or a video) to include in the card.
3150 # The following media-types are currently supported:
3151 #
3152 # Image Types
3153 #
3154 # * image/jpeg
3155 # * image/jpg&#x27;
3156 # * image/gif
3157 # * image/png
3158 #
3159 # Video Types
3160 #
3161 # * video/h263
3162 # * video/m4v
3163 # * video/mp4
3164 # * video/mpeg
3165 # * video/mpeg4
3166 # * video/webm
3167 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
3168 # provide a thumbnail URI, the RBM platform displays a blank
3169 # placeholder thumbnail until the user&#x27;s device downloads the file.
3170 # Depending on the user&#x27;s setting, the file may not download
3171 # automatically and may require the user to tap a download button.
3172 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
3173 # within a rich card with a vertical layout. (https://goo.gl/NeFCjz).
3174 # For a standalone card with horizontal layout, height is not
3175 # customizable, and this field is ignored.
3176 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
3177 # determines the MIME type of the file from the content-type field in
3178 # the HTTP headers when the platform fetches the file. The content-type
3179 # field must be present and accurate in the HTTP response from the URL.
3180 },
3181 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
3182 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
3183 # easily select/click a predefined response or perform an action (like
3184 # opening a web uri).
3185 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
3186 # instead of typing in their own response.
Bu Sun Kim65020912020-05-20 12:08:20 -07003187 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
3188 # when the user taps the suggested reply. This data will be also
3189 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003190 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07003191 },
3192 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
3193 # can choose from the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003194 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
3195 # but does not dial automatically (https://goo.gl/ergbB2).
3196 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
3197 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
3198 # format. An example of a correctly formatted phone number:
3199 # +15556767888.
3200 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003201 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
3202 # when the user taps the suggested action. This data will be also
3203 # forwarded to webhook to allow performing custom business logic.
3204 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
3205 # to send back to the agent (https://goo.gl/GXotJW).
3206 },
3207 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
3208 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
3209 # (https://goo.gl/6GLJD2). If the user has an app installed that is
3210 # registered as the default handler for the URL, then this app will be
3211 # opened instead, and its icon will be used in the suggested action UI.
3212 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
3213 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003214 },
3215 },
3216 ],
3217 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
3218 #
3219 # At least one of the title, description or media must be set.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003220 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
3221 #
3222 # At least one of the title, description or media must be set.
Bu Sun Kim65020912020-05-20 12:08:20 -07003223 },
3224 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003225 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
Bu Sun Kim65020912020-05-20 12:08:20 -07003226 },
3227 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
3228 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
3229 { # The suggestion chip message that the user can tap to quickly post a reply
3230 # to the conversation.
3231 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
3232 },
3233 ],
3234 },
3235 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
3236 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
3237 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to
3238 # play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single
3239 # channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz.
3240 #
3241 # This object must be readable by the `service-&lt;Project
3242 # Number&gt;@gcp-sa-dialogflow.iam.gserviceaccount.com` service account
3243 # where &lt;Project Number&gt; is the number of the Telephony Gateway project
3244 # (usually the same as the Dialogflow agent project). If the Google Cloud
3245 # Storage bucket is in the Telephony Gateway project, this permission is
3246 # added by default when enabling the Dialogflow V2 API.
3247 #
3248 # For audio from other sources, consider using the
3249 # `TelephonySynthesizeSpeech` message with SSML.
3250 },
3251 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
3252 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
3253 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
3254 &quot;items&quot;: [ # Required. List items.
3255 { # An item in the list.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003256 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
Bu Sun Kim65020912020-05-20 12:08:20 -07003257 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
3258 # dialog.
3259 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
3260 # item in dialog.
3261 &quot;A String&quot;,
3262 ],
3263 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
3264 # response is given.
3265 },
3266 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
3267 &quot;image&quot;: { # The image response message. # Optional. The image to display.
3268 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3269 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
3270 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
3271 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003272 },
3273 ],
3274 },
3275 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response.
3276 #
3277 # RBM allows businesses to send enriched and branded versions of SMS. See
3278 # https://jibe.google.com/business-messaging.
3279 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
3280 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
3281 # easily select/click a predefined response or perform an action (like
3282 # opening a web uri).
3283 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
3284 # instead of typing in their own response.
Bu Sun Kim65020912020-05-20 12:08:20 -07003285 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
3286 # when the user taps the suggested reply. This data will be also
3287 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003288 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07003289 },
3290 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
3291 # can choose from the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003292 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
3293 # but does not dial automatically (https://goo.gl/ergbB2).
3294 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
3295 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
3296 # format. An example of a correctly formatted phone number:
3297 # +15556767888.
3298 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003299 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
3300 # when the user taps the suggested action. This data will be also
3301 # forwarded to webhook to allow performing custom business logic.
3302 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
3303 # to send back to the agent (https://goo.gl/GXotJW).
3304 },
3305 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
3306 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
3307 # (https://goo.gl/6GLJD2). If the user has an app installed that is
3308 # registered as the default handler for the URL, then this app will be
3309 # opened instead, and its icon will be used in the suggested action UI.
3310 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
3311 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003312 },
3313 },
3314 ],
3315 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
3316 },
3317 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
3318 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
3319 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
3320 &quot;A String&quot;,
3321 ],
3322 },
3323 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in # Synthesizes speech in Telephony Gateway.
3324 # Telephony Gateway.
3325 #
3326 # Telephony Gateway takes the synthesizer settings from
3327 # `DetectIntentResponse.output_audio_config` which can either be set
3328 # at request-level or can come from the agent-level synthesizer config.
3329 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
3330 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see
3331 # [SSML](https://developers.google.com/actions/reference/ssml).
3332 },
3333 &quot;card&quot;: { # The card response message. # Displays a card.
Bu Sun Kim65020912020-05-20 12:08:20 -07003334 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
3335 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
3336 { # Optional. Contains information about a button.
3337 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
3338 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
3339 # open.
3340 },
3341 ],
3342 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003343 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07003344 },
3345 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
3346 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
3347 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
3348 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3349 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
3350 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
3351 },
3352 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
3353 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
3354 { # The button object that appears at the bottom of a card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003355 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -07003356 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
3357 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
3358 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003359 },
3360 ],
3361 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
3362 },
3363 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Bu Sun Kim65020912020-05-20 12:08:20 -07003364 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
3365 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3366 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
3367 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
3368 },
3369 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
3370 { # The button object that appears at the bottom of a card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003371 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -07003372 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
3373 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
3374 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003375 },
3376 ],
3377 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
3378 &quot;rows&quot;: [ # Optional. Rows in this table of data.
3379 { # Row of TableCard.
3380 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
3381 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
3382 { # Cell of TableCardRow.
3383 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
3384 },
3385 ],
3386 },
3387 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003388 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
3389 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
3390 { # Column properties for TableCard.
3391 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
3392 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
3393 },
3394 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003395 },
3396 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
3397 &quot;items&quot;: [ # Required. Carousel items.
3398 { # An item in the carousel.
Bu Sun Kim65020912020-05-20 12:08:20 -07003399 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
3400 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
3401 # dialog.
3402 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
3403 # item in dialog.
3404 &quot;A String&quot;,
3405 ],
3406 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
3407 # response is given.
3408 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003409 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
3410 &quot;image&quot;: { # The image response message. # Optional. The image to display.
3411 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3412 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
3413 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
3414 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003415 },
3416 ],
3417 },
3418 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app # Displays a link out suggestion chip for Actions on Google.
3419 # or website associated with this agent.
3420 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
3421 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
3422 # suggestion chip.
3423 },
3424 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
3425 # https://developers.google.com/actions/assistant/responses#browsing_carousel
3426 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
3427 # items.
3428 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
3429 # items, maximum of ten.
3430 { # Browsing carousel tile
Bu Sun Kim65020912020-05-20 12:08:20 -07003431 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
3432 # text.
3433 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
3434 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
3435 # the URL. Defaults to opening via web browser.
3436 &quot;url&quot;: &quot;A String&quot;, # Required. URL
3437 },
3438 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
3439 # Card. Maximum of one line of text.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003440 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
3441 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
3442 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3443 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
3444 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
3445 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003446 },
3447 ],
3448 },
3449 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # Returns a voice or text-only response for Actions on Google.
3450 # This message in `QueryResult.fulfillment_messages` and
3451 # `WebhookResponse.fulfillment_messages` should contain only one
3452 # `SimpleResponse`.
3453 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
3454 { # The simple response message containing speech or text.
Bu Sun Kim65020912020-05-20 12:08:20 -07003455 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
3456 # response to the user in the SSML format. Mutually exclusive with
3457 # text_to_speech.
3458 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003459 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
3460 # speech output. Mutually exclusive with ssml.
Bu Sun Kim65020912020-05-20 12:08:20 -07003461 },
3462 ],
3463 },
3464 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
3465 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to
3466 # in [E.164 format](https://en.wikipedia.org/wiki/E.164).
3467 #
3468 # We currently only allow transferring to US numbers (+1xxxyyyzzzz).
3469 },
3470 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
3471 &quot;mediaObjects&quot;: [ # Required. List of media objects.
3472 { # Response media object for media content card.
Bu Sun Kim65020912020-05-20 12:08:20 -07003473 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
3474 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
3475 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
3476 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
3477 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3478 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
3479 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
3480 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003481 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
3482 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3483 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
3484 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
3485 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003486 },
3487 ],
3488 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
3489 },
3490 &quot;image&quot;: { # The image response message. # Displays an image.
3491 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3492 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
3493 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
3494 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003495 &quot;rbmStandaloneRichCard&quot;: { # Standalone Rich Business Messaging (RBM) rich card. # Standalone Rich Business Messaging (RBM) rich card response.
3496 #
3497 # Rich cards allow you to respond to users with more vivid content, e.g.
3498 # with media and suggestions.
3499 #
3500 # For more details about RBM rich cards, please see:
3501 # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards.
3502 # You can group multiple rich cards into one using RbmCarouselCard but
3503 # carousel cards will give you less control over the card layout.
3504 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal.
3505 # Image preview alignment for standalone cards with horizontal layout.
3506 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
3507 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
Bu Sun Kim65020912020-05-20 12:08:20 -07003508 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
3509 # be set. Media (image, GIF or a video) to include in the card.
3510 # The following media-types are currently supported:
3511 #
3512 # Image Types
3513 #
3514 # * image/jpeg
3515 # * image/jpg&#x27;
3516 # * image/gif
3517 # * image/png
3518 #
3519 # Video Types
3520 #
3521 # * video/h263
3522 # * video/m4v
3523 # * video/mp4
3524 # * video/mpeg
3525 # * video/mpeg4
3526 # * video/webm
3527 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
3528 # provide a thumbnail URI, the RBM platform displays a blank
3529 # placeholder thumbnail until the user&#x27;s device downloads the file.
3530 # Depending on the user&#x27;s setting, the file may not download
3531 # automatically and may require the user to tap a download button.
3532 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
3533 # within a rich card with a vertical layout. (https://goo.gl/NeFCjz).
3534 # For a standalone card with horizontal layout, height is not
3535 # customizable, and this field is ignored.
3536 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
3537 # determines the MIME type of the file from the content-type field in
3538 # the HTTP headers when the platform fetches the file. The content-type
3539 # field must be present and accurate in the HTTP response from the URL.
3540 },
3541 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
3542 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
3543 # easily select/click a predefined response or perform an action (like
3544 # opening a web uri).
3545 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
3546 # instead of typing in their own response.
Bu Sun Kim65020912020-05-20 12:08:20 -07003547 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
3548 # when the user taps the suggested reply. This data will be also
3549 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003550 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07003551 },
3552 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
3553 # can choose from the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003554 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
3555 # but does not dial automatically (https://goo.gl/ergbB2).
3556 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
3557 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
3558 # format. An example of a correctly formatted phone number:
3559 # +15556767888.
3560 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003561 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
3562 # when the user taps the suggested action. This data will be also
3563 # forwarded to webhook to allow performing custom business logic.
3564 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
3565 # to send back to the agent (https://goo.gl/GXotJW).
3566 },
3567 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
3568 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
3569 # (https://goo.gl/6GLJD2). If the user has an app installed that is
3570 # registered as the default handler for the URL, then this app will be
3571 # opened instead, and its icon will be used in the suggested action UI.
3572 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
3573 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003574 },
3575 },
3576 ],
3577 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
3578 #
3579 # At least one of the title, description or media must be set.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003580 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
3581 #
3582 # At least one of the title, description or media must be set.
Bu Sun Kim65020912020-05-20 12:08:20 -07003583 },
3584 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003585 &quot;payload&quot;: { # A custom platform-specific response.
3586 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3587 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003588 },
3589 ],
3590 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent.
3591 # Note: The action name must not contain whitespaces.
3592 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent.
3593 # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
3594 # methods.
Dan O'Mearadd494642020-05-01 07:42:23 -07003595 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003596 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
3597 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003598 # triggered.
Dan O'Mearadd494642020-05-01 07:42:23 -07003599 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003600 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003601 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003602 &quot;followupIntentInfo&quot;: [ # Output only. Information about all followup intents that have this intent as
3603 # a direct or indirect parent. We populate this field only in the output.
3604 { # Represents a single followup intent in the chain.
3605 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent.
3606 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
3607 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent.
3608 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
3609 },
3610 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003611 }</pre>
3612</div>
3613
3614<div class="method">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003615 <code class="details" id="list">list(parent, pageToken=None, pageSize=None, intentView=None, languageCode=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003616 <pre>Returns the list of all intents in the specified agent.
3617
3618Args:
3619 parent: string, Required. The agent to list all intents from.
Dan O'Mearadd494642020-05-01 07:42:23 -07003620Format: `projects/&lt;Project ID&gt;/agent`. (required)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003621 pageToken: string, Optional. The next_page_token value returned from a previous list request.
3622 pageSize: integer, Optional. The maximum number of items to return in a single page. By
3623default 100 and at most 1000.
3624 intentView: string, Optional. The resource view to apply to the returned intent.
Dan O'Mearadd494642020-05-01 07:42:23 -07003625 languageCode: string, Optional. The language used to access language-specific data.
Bu Sun Kim65020912020-05-20 12:08:20 -07003626If not specified, the agent&#x27;s default language is used.
Dan O'Mearadd494642020-05-01 07:42:23 -07003627For more information, see
3628[Multilingual intent and entity
3629data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003630 x__xgafv: string, V1 error format.
3631 Allowed values
3632 1 - v1 error format
3633 2 - v2 error format
3634
3635Returns:
3636 An object of the form:
3637
3638 { # The response message for Intents.ListIntents.
Bu Sun Kim65020912020-05-20 12:08:20 -07003639 &quot;intents&quot;: [ # The list of agent intents. There will be a maximum number of items
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003640 # returned based on the page_size field in the request.
3641 { # Represents an intent.
3642 # Intents convert a number of user expressions or patterns into an action. An
3643 # action is an extraction of a user command or sentence semantics.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003644 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
3645 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Output only. The unique identifier of the root intent in the chain of
3646 # followup intents. It identifies the correct followup intents chain for
3647 # this intent.
3648 #
3649 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
3650 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
3651 # Note: If `ml_disabled` setting is set to true, then this intent is not
3652 # taken into account during inference in `ML ONLY` match mode. Also,
3653 # auto-markup in the UI is turned off.
3654 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
3655 &quot;mlEnabled&quot;: True or False, # Optional. Indicates whether Machine Learning is enabled for the intent.
3656 # Note: If `ml_enabled` setting is set to false, then this intent is not
3657 # taken into account during inference in `ML ONLY` match mode. Also,
3658 # auto-markup in the UI is turned off.
3659 # DEPRECATED! Please use `ml_disabled` field instead.
3660 # NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false,
3661 # then the default value is determined as follows:
3662 # - Before April 15th, 2018 the default is:
3663 # ml_enabled = false / ml_disabled = true.
3664 # - After April 15th, 2018 the default is:
3665 # ml_enabled = true / ml_disabled = false.
Bu Sun Kim65020912020-05-20 12:08:20 -07003666 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is
Dan O'Mearadd494642020-05-01 07:42:23 -07003667 # trained on.
3668 { # Represents an example that the agent is trained on.
Bu Sun Kim65020912020-05-20 12:08:20 -07003669 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts.
Dan O'Mearadd494642020-05-01 07:42:23 -07003670 # The parts are concatenated in order to form the training phrase.
3671 #
3672 # Note: The API does not automatically annotate training phrases like the
3673 # Dialogflow Console does.
3674 #
3675 # Note: Do not forget to include whitespace at part boundaries,
3676 # so the training phrase is well formatted when the parts are concatenated.
3677 #
3678 # If the training phrase does not need to be annotated with parameters,
3679 # you just need a single part with only the Part.text field set.
3680 #
3681 # If you want to annotate the training phrase, you must create multiple
3682 # parts, where the fields of each part are populated in one of two ways:
3683 #
3684 # - `Part.text` is set to a part of the phrase that has no parameters.
3685 # - `Part.text` is set to a part of the phrase that you want to annotate,
3686 # and the `entity_type`, `alias`, and `user_defined` fields are all
3687 # set.
3688 { # Represents a part of a training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07003689 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the
Dan O'Mearadd494642020-05-01 07:42:23 -07003690 # annotated part of the example.
3691 # This field is required for annotated parts of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07003692 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated.
Dan O'Mearadd494642020-05-01 07:42:23 -07003693 # This field is set to true when the Dialogflow Console is used to
3694 # manually annotate the part. When creating an annotated part with the
3695 # API, you must set this to true.
Bu Sun Kim65020912020-05-20 12:08:20 -07003696 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
3697 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`.
3698 # This field is required for annotated parts of the training phrase.
Dan O'Mearadd494642020-05-01 07:42:23 -07003699 },
3700 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003701 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
3702 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to
Dan O'Mearadd494642020-05-01 07:42:23 -07003703 # the intent. Each time a developer adds an existing sample by editing an
3704 # intent or training, this counter is increased.
Bu Sun Kim65020912020-05-20 12:08:20 -07003705 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
Dan O'Mearadd494642020-05-01 07:42:23 -07003706 },
3707 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003708 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current
3709 # session when this intent is matched.
3710 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
3711 { # Represents intent parameters.
Bu Sun Kim65020912020-05-20 12:08:20 -07003712 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that
3713 # describes values of the parameter. If the parameter is
3714 # required, this must be provided.
3715 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the
3716 # user in order to collect a value for the parameter.
3717 &quot;A String&quot;,
3718 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003719 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is,
3720 # whether the intent cannot be completed without collecting the parameter
3721 # value.
Bu Sun Kim65020912020-05-20 12:08:20 -07003722 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty
3723 # result.
3724 # Default values can be extracted from contexts by using the following
3725 # syntax: `#context_name.parameter_name`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003726 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
3727 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
3728 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be:
3729 #
3730 # - a constant string,
3731 # - a parameter value defined as `$parameter_name`,
3732 # - an original parameter value defined as `$parameter_name.original`,
3733 # - a parameter value from some context defined as
3734 # `#context_name.parameter_name`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003735 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
Bu Sun Kim65020912020-05-20 12:08:20 -07003736 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003737 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003738 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent.
3739 # If the collection of input contexts is not empty, all of the contexts must
3740 # be present in the active user session for an event to trigger this intent.
3741 # Event names are limited to 150 characters.
3742 &quot;A String&quot;,
3743 ],
3744 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Optional. The unique identifier of the parent intent in the
3745 # chain of followup intents. You can set this field when creating an intent,
3746 # for example with CreateIntent or
3747 # BatchUpdateIntents, in order to make this
3748 # intent a followup intent.
3749 #
3750 # It identifies the parent followup intent.
3751 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
3752 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher
Dan O'Mearadd494642020-05-01 07:42:23 -07003753 # priorities.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003754 #
Dan O'Mearadd494642020-05-01 07:42:23 -07003755 # - If the supplied value is unspecified or 0, the service
3756 # translates the value to 500,000, which corresponds to the
3757 # `Normal` priority in the console.
3758 # - If the supplied value is negative, the intent is ignored
3759 # in runtime detect intent requests.
Bu Sun Kim65020912020-05-20 12:08:20 -07003760 &quot;endInteraction&quot;: True or False, # Optional. Indicates that this intent ends an interaction. Some integrations
3761 # (e.g., Actions on Google or Dialogflow phone gateway) use this information
3762 # to close interaction with an end user. Default is false.
3763 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent
3764 # is matched. Context messages in this collection should not set the
3765 # parameters field. Setting the `lifespan_count` to 0 will reset the context
3766 # when the intent is matched.
3767 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
3768 { # Represents a context.
3769 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
3770 # context expires. The default is `0`. If set to `0`, the context expires
3771 # immediately. Contexts expire automatically after 20 minutes if there
3772 # are no matching queries.
3773 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
3774 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
3775 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
3776 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
3777 #
3778 # The `Context ID` is always converted to lowercase, may only contain
3779 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
3780 #
3781 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
3782 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
3783 #
3784 # The following context names are reserved for internal use by Dialogflow.
3785 # You should not use these contexts or create contexts with these names:
3786 #
3787 # * `__system_counters__`
3788 # * `*_id_dialog_context`
3789 # * `*_dialog_params_size`
3790 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
3791 #
3792 # Depending on your protocol or client library language, this is a
3793 # map, associative array, symbol table, dictionary, or JSON object
3794 # composed of a collection of (MapKey, MapValue) pairs:
3795 #
3796 # - MapKey type: string
3797 # - MapKey value: parameter name
3798 # - MapValue type:
3799 # - If parameter&#x27;s entity type is a composite entity: map
3800 # - Else: string or number, depending on parameter value type
3801 # - MapValue value:
3802 # - If parameter&#x27;s entity type is a composite entity:
3803 # map from composite entity property names to property values
3804 # - Else: parameter value
3805 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3806 },
3807 },
3808 ],
3809 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be
3810 # copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
3811 &quot;A String&quot;,
3812 ],
3813 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the
3814 # `Response` field in the Dialogflow console.
3815 { # Corresponds to the `Response` field in the Dialogflow console.
3816 &quot;text&quot;: { # The text response message. # Returns a text response.
3817 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
3818 &quot;A String&quot;,
3819 ],
3820 },
3821 &quot;rbmCarouselRichCard&quot;: { # Carousel Rich Business Messaging (RBM) rich card. # Rich Business Messaging (RBM) carousel rich card response.
3822 #
3823 # Rich cards allow you to respond to users with more vivid content, e.g.
3824 # with media and suggestions.
3825 #
3826 # For more details about RBM rich cards, please see:
3827 # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards.
3828 # If you want to show a single card with more control over the layout,
3829 # please use RbmStandaloneCard instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07003830 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least
3831 # 2 cards and at most 10.
3832 { # Rich Business Messaging (RBM) Card content
Bu Sun Kim65020912020-05-20 12:08:20 -07003833 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
3834 # be set. Media (image, GIF or a video) to include in the card.
3835 # The following media-types are currently supported:
3836 #
3837 # Image Types
3838 #
3839 # * image/jpeg
3840 # * image/jpg&#x27;
3841 # * image/gif
3842 # * image/png
3843 #
3844 # Video Types
3845 #
3846 # * video/h263
3847 # * video/m4v
3848 # * video/mp4
3849 # * video/mpeg
3850 # * video/mpeg4
3851 # * video/webm
3852 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
3853 # provide a thumbnail URI, the RBM platform displays a blank
3854 # placeholder thumbnail until the user&#x27;s device downloads the file.
3855 # Depending on the user&#x27;s setting, the file may not download
3856 # automatically and may require the user to tap a download button.
3857 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
3858 # within a rich card with a vertical layout. (https://goo.gl/NeFCjz).
3859 # For a standalone card with horizontal layout, height is not
3860 # customizable, and this field is ignored.
3861 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
3862 # determines the MIME type of the file from the content-type field in
3863 # the HTTP headers when the platform fetches the file. The content-type
3864 # field must be present and accurate in the HTTP response from the URL.
3865 },
3866 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
3867 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
3868 # easily select/click a predefined response or perform an action (like
3869 # opening a web uri).
3870 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
3871 # instead of typing in their own response.
Bu Sun Kim65020912020-05-20 12:08:20 -07003872 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
3873 # when the user taps the suggested reply. This data will be also
3874 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003875 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07003876 },
3877 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
3878 # can choose from the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003879 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
3880 # but does not dial automatically (https://goo.gl/ergbB2).
3881 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
3882 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
3883 # format. An example of a correctly formatted phone number:
3884 # +15556767888.
3885 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003886 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
3887 # when the user taps the suggested action. This data will be also
3888 # forwarded to webhook to allow performing custom business logic.
3889 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
3890 # to send back to the agent (https://goo.gl/GXotJW).
3891 },
3892 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
3893 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
3894 # (https://goo.gl/6GLJD2). If the user has an app installed that is
3895 # registered as the default handler for the URL, then this app will be
3896 # opened instead, and its icon will be used in the suggested action UI.
3897 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
3898 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003899 },
3900 },
3901 ],
3902 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
3903 #
3904 # At least one of the title, description or media must be set.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003905 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
3906 #
3907 # At least one of the title, description or media must be set.
Bu Sun Kim65020912020-05-20 12:08:20 -07003908 },
3909 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003910 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
Bu Sun Kim65020912020-05-20 12:08:20 -07003911 },
3912 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
3913 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
3914 { # The suggestion chip message that the user can tap to quickly post a reply
3915 # to the conversation.
3916 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
3917 },
3918 ],
3919 },
3920 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
3921 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
3922 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to
3923 # play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single
3924 # channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz.
3925 #
3926 # This object must be readable by the `service-&lt;Project
3927 # Number&gt;@gcp-sa-dialogflow.iam.gserviceaccount.com` service account
3928 # where &lt;Project Number&gt; is the number of the Telephony Gateway project
3929 # (usually the same as the Dialogflow agent project). If the Google Cloud
3930 # Storage bucket is in the Telephony Gateway project, this permission is
3931 # added by default when enabling the Dialogflow V2 API.
3932 #
3933 # For audio from other sources, consider using the
3934 # `TelephonySynthesizeSpeech` message with SSML.
3935 },
3936 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
3937 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
3938 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
3939 &quot;items&quot;: [ # Required. List items.
3940 { # An item in the list.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003941 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
Bu Sun Kim65020912020-05-20 12:08:20 -07003942 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
3943 # dialog.
3944 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
3945 # item in dialog.
3946 &quot;A String&quot;,
3947 ],
3948 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
3949 # response is given.
3950 },
3951 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
3952 &quot;image&quot;: { # The image response message. # Optional. The image to display.
3953 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3954 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
3955 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
3956 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003957 },
3958 ],
3959 },
3960 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response.
3961 #
3962 # RBM allows businesses to send enriched and branded versions of SMS. See
3963 # https://jibe.google.com/business-messaging.
3964 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
3965 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
3966 # easily select/click a predefined response or perform an action (like
3967 # opening a web uri).
3968 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
3969 # instead of typing in their own response.
Bu Sun Kim65020912020-05-20 12:08:20 -07003970 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
3971 # when the user taps the suggested reply. This data will be also
3972 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003973 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07003974 },
3975 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
3976 # can choose from the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003977 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
3978 # but does not dial automatically (https://goo.gl/ergbB2).
3979 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
3980 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
3981 # format. An example of a correctly formatted phone number:
3982 # +15556767888.
3983 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003984 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
3985 # when the user taps the suggested action. This data will be also
3986 # forwarded to webhook to allow performing custom business logic.
3987 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
3988 # to send back to the agent (https://goo.gl/GXotJW).
3989 },
3990 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
3991 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
3992 # (https://goo.gl/6GLJD2). If the user has an app installed that is
3993 # registered as the default handler for the URL, then this app will be
3994 # opened instead, and its icon will be used in the suggested action UI.
3995 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
3996 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003997 },
3998 },
3999 ],
4000 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
4001 },
4002 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
4003 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
4004 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
4005 &quot;A String&quot;,
4006 ],
4007 },
4008 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in # Synthesizes speech in Telephony Gateway.
4009 # Telephony Gateway.
4010 #
4011 # Telephony Gateway takes the synthesizer settings from
4012 # `DetectIntentResponse.output_audio_config` which can either be set
4013 # at request-level or can come from the agent-level synthesizer config.
4014 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
4015 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see
4016 # [SSML](https://developers.google.com/actions/reference/ssml).
4017 },
4018 &quot;card&quot;: { # The card response message. # Displays a card.
Bu Sun Kim65020912020-05-20 12:08:20 -07004019 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
4020 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
4021 { # Optional. Contains information about a button.
4022 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
4023 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
4024 # open.
4025 },
4026 ],
4027 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004028 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07004029 },
4030 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
4031 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
4032 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
4033 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
4034 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
4035 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
4036 },
4037 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
4038 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
4039 { # The button object that appears at the bottom of a card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004040 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -07004041 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
4042 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
4043 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004044 },
4045 ],
4046 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
4047 },
4048 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Bu Sun Kim65020912020-05-20 12:08:20 -07004049 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
4050 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
4051 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
4052 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
4053 },
4054 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
4055 { # The button object that appears at the bottom of a card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004056 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -07004057 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
4058 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
4059 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004060 },
4061 ],
4062 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
4063 &quot;rows&quot;: [ # Optional. Rows in this table of data.
4064 { # Row of TableCard.
4065 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
4066 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
4067 { # Cell of TableCardRow.
4068 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
4069 },
4070 ],
4071 },
4072 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004073 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
4074 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
4075 { # Column properties for TableCard.
4076 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
4077 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
4078 },
4079 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004080 },
4081 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
4082 &quot;items&quot;: [ # Required. Carousel items.
4083 { # An item in the carousel.
Bu Sun Kim65020912020-05-20 12:08:20 -07004084 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
4085 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
4086 # dialog.
4087 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
4088 # item in dialog.
4089 &quot;A String&quot;,
4090 ],
4091 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
4092 # response is given.
4093 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004094 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
4095 &quot;image&quot;: { # The image response message. # Optional. The image to display.
4096 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
4097 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
4098 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
4099 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004100 },
4101 ],
4102 },
4103 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app # Displays a link out suggestion chip for Actions on Google.
4104 # or website associated with this agent.
4105 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
4106 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
4107 # suggestion chip.
4108 },
4109 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
4110 # https://developers.google.com/actions/assistant/responses#browsing_carousel
4111 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
4112 # items.
4113 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
4114 # items, maximum of ten.
4115 { # Browsing carousel tile
Bu Sun Kim65020912020-05-20 12:08:20 -07004116 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
4117 # text.
4118 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
4119 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
4120 # the URL. Defaults to opening via web browser.
4121 &quot;url&quot;: &quot;A String&quot;, # Required. URL
4122 },
4123 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
4124 # Card. Maximum of one line of text.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004125 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
4126 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
4127 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
4128 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
4129 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
4130 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004131 },
4132 ],
4133 },
4134 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # Returns a voice or text-only response for Actions on Google.
4135 # This message in `QueryResult.fulfillment_messages` and
4136 # `WebhookResponse.fulfillment_messages` should contain only one
4137 # `SimpleResponse`.
4138 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
4139 { # The simple response message containing speech or text.
Bu Sun Kim65020912020-05-20 12:08:20 -07004140 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
4141 # response to the user in the SSML format. Mutually exclusive with
4142 # text_to_speech.
4143 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004144 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
4145 # speech output. Mutually exclusive with ssml.
Bu Sun Kim65020912020-05-20 12:08:20 -07004146 },
4147 ],
4148 },
4149 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
4150 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to
4151 # in [E.164 format](https://en.wikipedia.org/wiki/E.164).
4152 #
4153 # We currently only allow transferring to US numbers (+1xxxyyyzzzz).
4154 },
4155 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
4156 &quot;mediaObjects&quot;: [ # Required. List of media objects.
4157 { # Response media object for media content card.
Bu Sun Kim65020912020-05-20 12:08:20 -07004158 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
4159 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
4160 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
4161 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
4162 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
4163 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
4164 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
4165 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004166 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
4167 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
4168 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
4169 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
4170 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004171 },
4172 ],
4173 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
4174 },
4175 &quot;image&quot;: { # The image response message. # Displays an image.
4176 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
4177 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
4178 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
4179 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004180 &quot;rbmStandaloneRichCard&quot;: { # Standalone Rich Business Messaging (RBM) rich card. # Standalone Rich Business Messaging (RBM) rich card response.
4181 #
4182 # Rich cards allow you to respond to users with more vivid content, e.g.
4183 # with media and suggestions.
4184 #
4185 # For more details about RBM rich cards, please see:
4186 # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards.
4187 # You can group multiple rich cards into one using RbmCarouselCard but
4188 # carousel cards will give you less control over the card layout.
4189 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal.
4190 # Image preview alignment for standalone cards with horizontal layout.
4191 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
4192 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
Bu Sun Kim65020912020-05-20 12:08:20 -07004193 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
4194 # be set. Media (image, GIF or a video) to include in the card.
4195 # The following media-types are currently supported:
4196 #
4197 # Image Types
4198 #
4199 # * image/jpeg
4200 # * image/jpg&#x27;
4201 # * image/gif
4202 # * image/png
4203 #
4204 # Video Types
4205 #
4206 # * video/h263
4207 # * video/m4v
4208 # * video/mp4
4209 # * video/mpeg
4210 # * video/mpeg4
4211 # * video/webm
4212 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
4213 # provide a thumbnail URI, the RBM platform displays a blank
4214 # placeholder thumbnail until the user&#x27;s device downloads the file.
4215 # Depending on the user&#x27;s setting, the file may not download
4216 # automatically and may require the user to tap a download button.
4217 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
4218 # within a rich card with a vertical layout. (https://goo.gl/NeFCjz).
4219 # For a standalone card with horizontal layout, height is not
4220 # customizable, and this field is ignored.
4221 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
4222 # determines the MIME type of the file from the content-type field in
4223 # the HTTP headers when the platform fetches the file. The content-type
4224 # field must be present and accurate in the HTTP response from the URL.
4225 },
4226 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
4227 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
4228 # easily select/click a predefined response or perform an action (like
4229 # opening a web uri).
4230 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
4231 # instead of typing in their own response.
Bu Sun Kim65020912020-05-20 12:08:20 -07004232 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
4233 # when the user taps the suggested reply. This data will be also
4234 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004235 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07004236 },
4237 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
4238 # can choose from the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004239 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
4240 # but does not dial automatically (https://goo.gl/ergbB2).
4241 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
4242 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
4243 # format. An example of a correctly formatted phone number:
4244 # +15556767888.
4245 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004246 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
4247 # when the user taps the suggested action. This data will be also
4248 # forwarded to webhook to allow performing custom business logic.
4249 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
4250 # to send back to the agent (https://goo.gl/GXotJW).
4251 },
4252 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
4253 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
4254 # (https://goo.gl/6GLJD2). If the user has an app installed that is
4255 # registered as the default handler for the URL, then this app will be
4256 # opened instead, and its icon will be used in the suggested action UI.
4257 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
4258 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004259 },
4260 },
4261 ],
4262 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
4263 #
4264 # At least one of the title, description or media must be set.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004265 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
4266 #
4267 # At least one of the title, description or media must be set.
Bu Sun Kim65020912020-05-20 12:08:20 -07004268 },
4269 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004270 &quot;payload&quot;: { # A custom platform-specific response.
4271 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4272 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004273 },
4274 ],
4275 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent.
4276 # Note: The action name must not contain whitespaces.
4277 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent.
4278 # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
4279 # methods.
Dan O'Mearadd494642020-05-01 07:42:23 -07004280 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kim65020912020-05-20 12:08:20 -07004281 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
4282 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004283 # triggered.
Dan O'Mearadd494642020-05-01 07:42:23 -07004284 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
Bu Sun Kim65020912020-05-20 12:08:20 -07004285 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004286 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004287 &quot;followupIntentInfo&quot;: [ # Output only. Information about all followup intents that have this intent as
4288 # a direct or indirect parent. We populate this field only in the output.
4289 { # Represents a single followup intent in the chain.
4290 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent.
4291 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
4292 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent.
4293 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
4294 },
4295 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004296 },
4297 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004298 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no
4299 # more results in the list.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004300 }</pre>
4301</div>
4302
4303<div class="method">
4304 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
4305 <pre>Retrieves the next page of results.
4306
4307Args:
4308 previous_request: The request for the previous page. (required)
4309 previous_response: The response from the request for the previous page. (required)
4310
4311Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07004312 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004313 page. Returns None if there are no more items in the collection.
4314 </pre>
4315</div>
4316
4317<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -07004318 <code class="details" id="patch">patch(name, body=None, intentView=None, languageCode=None, updateMask=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004319 <pre>Updates the specified intent.
4320
4321Args:
Bu Sun Kim65020912020-05-20 12:08:20 -07004322 name: string, Optional. The unique identifier of this intent.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004323Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
4324methods.
Dan O'Mearadd494642020-05-01 07:42:23 -07004325Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`. (required)
4326 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004327 The object takes the form of:
4328
4329{ # Represents an intent.
4330 # Intents convert a number of user expressions or patterns into an action. An
4331 # action is an extraction of a user command or sentence semantics.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004332 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
4333 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Output only. The unique identifier of the root intent in the chain of
4334 # followup intents. It identifies the correct followup intents chain for
4335 # this intent.
4336 #
4337 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
4338 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
4339 # Note: If `ml_disabled` setting is set to true, then this intent is not
4340 # taken into account during inference in `ML ONLY` match mode. Also,
4341 # auto-markup in the UI is turned off.
4342 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
4343 &quot;mlEnabled&quot;: True or False, # Optional. Indicates whether Machine Learning is enabled for the intent.
4344 # Note: If `ml_enabled` setting is set to false, then this intent is not
4345 # taken into account during inference in `ML ONLY` match mode. Also,
4346 # auto-markup in the UI is turned off.
4347 # DEPRECATED! Please use `ml_disabled` field instead.
4348 # NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false,
4349 # then the default value is determined as follows:
4350 # - Before April 15th, 2018 the default is:
4351 # ml_enabled = false / ml_disabled = true.
4352 # - After April 15th, 2018 the default is:
4353 # ml_enabled = true / ml_disabled = false.
Bu Sun Kim65020912020-05-20 12:08:20 -07004354 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is
Dan O'Mearadd494642020-05-01 07:42:23 -07004355 # trained on.
4356 { # Represents an example that the agent is trained on.
Bu Sun Kim65020912020-05-20 12:08:20 -07004357 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts.
Dan O'Mearadd494642020-05-01 07:42:23 -07004358 # The parts are concatenated in order to form the training phrase.
4359 #
4360 # Note: The API does not automatically annotate training phrases like the
4361 # Dialogflow Console does.
4362 #
4363 # Note: Do not forget to include whitespace at part boundaries,
4364 # so the training phrase is well formatted when the parts are concatenated.
4365 #
4366 # If the training phrase does not need to be annotated with parameters,
4367 # you just need a single part with only the Part.text field set.
4368 #
4369 # If you want to annotate the training phrase, you must create multiple
4370 # parts, where the fields of each part are populated in one of two ways:
4371 #
4372 # - `Part.text` is set to a part of the phrase that has no parameters.
4373 # - `Part.text` is set to a part of the phrase that you want to annotate,
4374 # and the `entity_type`, `alias`, and `user_defined` fields are all
4375 # set.
4376 { # Represents a part of a training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07004377 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the
Dan O'Mearadd494642020-05-01 07:42:23 -07004378 # annotated part of the example.
4379 # This field is required for annotated parts of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07004380 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated.
Dan O'Mearadd494642020-05-01 07:42:23 -07004381 # This field is set to true when the Dialogflow Console is used to
4382 # manually annotate the part. When creating an annotated part with the
4383 # API, you must set this to true.
Bu Sun Kim65020912020-05-20 12:08:20 -07004384 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
4385 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`.
4386 # This field is required for annotated parts of the training phrase.
Dan O'Mearadd494642020-05-01 07:42:23 -07004387 },
4388 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004389 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
4390 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to
Dan O'Mearadd494642020-05-01 07:42:23 -07004391 # the intent. Each time a developer adds an existing sample by editing an
4392 # intent or training, this counter is increased.
Bu Sun Kim65020912020-05-20 12:08:20 -07004393 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
Dan O'Mearadd494642020-05-01 07:42:23 -07004394 },
4395 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004396 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current
4397 # session when this intent is matched.
4398 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
4399 { # Represents intent parameters.
Bu Sun Kim65020912020-05-20 12:08:20 -07004400 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that
4401 # describes values of the parameter. If the parameter is
4402 # required, this must be provided.
4403 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the
4404 # user in order to collect a value for the parameter.
4405 &quot;A String&quot;,
4406 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004407 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is,
4408 # whether the intent cannot be completed without collecting the parameter
4409 # value.
Bu Sun Kim65020912020-05-20 12:08:20 -07004410 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty
4411 # result.
4412 # Default values can be extracted from contexts by using the following
4413 # syntax: `#context_name.parameter_name`.
Bu Sun Kim65020912020-05-20 12:08:20 -07004414 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
4415 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
4416 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be:
4417 #
4418 # - a constant string,
4419 # - a parameter value defined as `$parameter_name`,
4420 # - an original parameter value defined as `$parameter_name.original`,
4421 # - a parameter value from some context defined as
4422 # `#context_name.parameter_name`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004423 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
Bu Sun Kim65020912020-05-20 12:08:20 -07004424 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004425 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004426 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent.
4427 # If the collection of input contexts is not empty, all of the contexts must
4428 # be present in the active user session for an event to trigger this intent.
4429 # Event names are limited to 150 characters.
4430 &quot;A String&quot;,
4431 ],
4432 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Optional. The unique identifier of the parent intent in the
4433 # chain of followup intents. You can set this field when creating an intent,
4434 # for example with CreateIntent or
4435 # BatchUpdateIntents, in order to make this
4436 # intent a followup intent.
4437 #
4438 # It identifies the parent followup intent.
4439 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
4440 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher
Dan O'Mearadd494642020-05-01 07:42:23 -07004441 # priorities.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004442 #
Dan O'Mearadd494642020-05-01 07:42:23 -07004443 # - If the supplied value is unspecified or 0, the service
4444 # translates the value to 500,000, which corresponds to the
4445 # `Normal` priority in the console.
4446 # - If the supplied value is negative, the intent is ignored
4447 # in runtime detect intent requests.
Bu Sun Kim65020912020-05-20 12:08:20 -07004448 &quot;endInteraction&quot;: True or False, # Optional. Indicates that this intent ends an interaction. Some integrations
4449 # (e.g., Actions on Google or Dialogflow phone gateway) use this information
4450 # to close interaction with an end user. Default is false.
4451 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent
4452 # is matched. Context messages in this collection should not set the
4453 # parameters field. Setting the `lifespan_count` to 0 will reset the context
4454 # when the intent is matched.
4455 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
4456 { # Represents a context.
4457 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
4458 # context expires. The default is `0`. If set to `0`, the context expires
4459 # immediately. Contexts expire automatically after 20 minutes if there
4460 # are no matching queries.
4461 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
4462 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
4463 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
4464 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
4465 #
4466 # The `Context ID` is always converted to lowercase, may only contain
4467 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
4468 #
4469 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
4470 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
4471 #
4472 # The following context names are reserved for internal use by Dialogflow.
4473 # You should not use these contexts or create contexts with these names:
4474 #
4475 # * `__system_counters__`
4476 # * `*_id_dialog_context`
4477 # * `*_dialog_params_size`
4478 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
4479 #
4480 # Depending on your protocol or client library language, this is a
4481 # map, associative array, symbol table, dictionary, or JSON object
4482 # composed of a collection of (MapKey, MapValue) pairs:
4483 #
4484 # - MapKey type: string
4485 # - MapKey value: parameter name
4486 # - MapValue type:
4487 # - If parameter&#x27;s entity type is a composite entity: map
4488 # - Else: string or number, depending on parameter value type
4489 # - MapValue value:
4490 # - If parameter&#x27;s entity type is a composite entity:
4491 # map from composite entity property names to property values
4492 # - Else: parameter value
4493 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4494 },
4495 },
4496 ],
4497 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be
4498 # copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
4499 &quot;A String&quot;,
4500 ],
4501 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the
4502 # `Response` field in the Dialogflow console.
4503 { # Corresponds to the `Response` field in the Dialogflow console.
4504 &quot;text&quot;: { # The text response message. # Returns a text response.
4505 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
4506 &quot;A String&quot;,
4507 ],
4508 },
4509 &quot;rbmCarouselRichCard&quot;: { # Carousel Rich Business Messaging (RBM) rich card. # Rich Business Messaging (RBM) carousel rich card response.
4510 #
4511 # Rich cards allow you to respond to users with more vivid content, e.g.
4512 # with media and suggestions.
4513 #
4514 # For more details about RBM rich cards, please see:
4515 # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards.
4516 # If you want to show a single card with more control over the layout,
4517 # please use RbmStandaloneCard instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07004518 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least
4519 # 2 cards and at most 10.
4520 { # Rich Business Messaging (RBM) Card content
Bu Sun Kim65020912020-05-20 12:08:20 -07004521 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
4522 # be set. Media (image, GIF or a video) to include in the card.
4523 # The following media-types are currently supported:
4524 #
4525 # Image Types
4526 #
4527 # * image/jpeg
4528 # * image/jpg&#x27;
4529 # * image/gif
4530 # * image/png
4531 #
4532 # Video Types
4533 #
4534 # * video/h263
4535 # * video/m4v
4536 # * video/mp4
4537 # * video/mpeg
4538 # * video/mpeg4
4539 # * video/webm
4540 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
4541 # provide a thumbnail URI, the RBM platform displays a blank
4542 # placeholder thumbnail until the user&#x27;s device downloads the file.
4543 # Depending on the user&#x27;s setting, the file may not download
4544 # automatically and may require the user to tap a download button.
4545 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
4546 # within a rich card with a vertical layout. (https://goo.gl/NeFCjz).
4547 # For a standalone card with horizontal layout, height is not
4548 # customizable, and this field is ignored.
4549 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
4550 # determines the MIME type of the file from the content-type field in
4551 # the HTTP headers when the platform fetches the file. The content-type
4552 # field must be present and accurate in the HTTP response from the URL.
4553 },
4554 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
4555 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
4556 # easily select/click a predefined response or perform an action (like
4557 # opening a web uri).
4558 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
4559 # instead of typing in their own response.
Bu Sun Kim65020912020-05-20 12:08:20 -07004560 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
4561 # when the user taps the suggested reply. This data will be also
4562 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004563 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07004564 },
4565 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
4566 # can choose from the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004567 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
4568 # but does not dial automatically (https://goo.gl/ergbB2).
4569 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
4570 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
4571 # format. An example of a correctly formatted phone number:
4572 # +15556767888.
4573 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004574 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
4575 # when the user taps the suggested action. This data will be also
4576 # forwarded to webhook to allow performing custom business logic.
4577 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
4578 # to send back to the agent (https://goo.gl/GXotJW).
4579 },
4580 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
4581 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
4582 # (https://goo.gl/6GLJD2). If the user has an app installed that is
4583 # registered as the default handler for the URL, then this app will be
4584 # opened instead, and its icon will be used in the suggested action UI.
4585 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
4586 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004587 },
4588 },
4589 ],
4590 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
4591 #
4592 # At least one of the title, description or media must be set.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004593 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
4594 #
4595 # At least one of the title, description or media must be set.
Bu Sun Kim65020912020-05-20 12:08:20 -07004596 },
4597 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004598 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
Bu Sun Kim65020912020-05-20 12:08:20 -07004599 },
4600 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
4601 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
4602 { # The suggestion chip message that the user can tap to quickly post a reply
4603 # to the conversation.
4604 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
4605 },
4606 ],
4607 },
4608 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
4609 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
4610 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to
4611 # play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single
4612 # channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz.
4613 #
4614 # This object must be readable by the `service-&lt;Project
4615 # Number&gt;@gcp-sa-dialogflow.iam.gserviceaccount.com` service account
4616 # where &lt;Project Number&gt; is the number of the Telephony Gateway project
4617 # (usually the same as the Dialogflow agent project). If the Google Cloud
4618 # Storage bucket is in the Telephony Gateway project, this permission is
4619 # added by default when enabling the Dialogflow V2 API.
4620 #
4621 # For audio from other sources, consider using the
4622 # `TelephonySynthesizeSpeech` message with SSML.
4623 },
4624 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
4625 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
4626 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
4627 &quot;items&quot;: [ # Required. List items.
4628 { # An item in the list.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004629 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
Bu Sun Kim65020912020-05-20 12:08:20 -07004630 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
4631 # dialog.
4632 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
4633 # item in dialog.
4634 &quot;A String&quot;,
4635 ],
4636 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
4637 # response is given.
4638 },
4639 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
4640 &quot;image&quot;: { # The image response message. # Optional. The image to display.
4641 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
4642 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
4643 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
4644 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004645 },
4646 ],
4647 },
4648 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response.
4649 #
4650 # RBM allows businesses to send enriched and branded versions of SMS. See
4651 # https://jibe.google.com/business-messaging.
4652 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
4653 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
4654 # easily select/click a predefined response or perform an action (like
4655 # opening a web uri).
4656 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
4657 # instead of typing in their own response.
Bu Sun Kim65020912020-05-20 12:08:20 -07004658 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
4659 # when the user taps the suggested reply. This data will be also
4660 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004661 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07004662 },
4663 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
4664 # can choose from the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004665 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
4666 # but does not dial automatically (https://goo.gl/ergbB2).
4667 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
4668 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
4669 # format. An example of a correctly formatted phone number:
4670 # +15556767888.
4671 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004672 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
4673 # when the user taps the suggested action. This data will be also
4674 # forwarded to webhook to allow performing custom business logic.
4675 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
4676 # to send back to the agent (https://goo.gl/GXotJW).
4677 },
4678 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
4679 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
4680 # (https://goo.gl/6GLJD2). If the user has an app installed that is
4681 # registered as the default handler for the URL, then this app will be
4682 # opened instead, and its icon will be used in the suggested action UI.
4683 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
4684 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004685 },
4686 },
4687 ],
4688 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
4689 },
4690 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
4691 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
4692 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
4693 &quot;A String&quot;,
4694 ],
4695 },
4696 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in # Synthesizes speech in Telephony Gateway.
4697 # Telephony Gateway.
4698 #
4699 # Telephony Gateway takes the synthesizer settings from
4700 # `DetectIntentResponse.output_audio_config` which can either be set
4701 # at request-level or can come from the agent-level synthesizer config.
4702 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
4703 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see
4704 # [SSML](https://developers.google.com/actions/reference/ssml).
4705 },
4706 &quot;card&quot;: { # The card response message. # Displays a card.
Bu Sun Kim65020912020-05-20 12:08:20 -07004707 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
4708 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
4709 { # Optional. Contains information about a button.
4710 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
4711 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
4712 # open.
4713 },
4714 ],
4715 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004716 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07004717 },
4718 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
4719 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
4720 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
4721 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
4722 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
4723 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
4724 },
4725 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
4726 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
4727 { # The button object that appears at the bottom of a card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004728 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -07004729 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
4730 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
4731 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004732 },
4733 ],
4734 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
4735 },
4736 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Bu Sun Kim65020912020-05-20 12:08:20 -07004737 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
4738 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
4739 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
4740 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
4741 },
4742 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
4743 { # The button object that appears at the bottom of a card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004744 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -07004745 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
4746 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
4747 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004748 },
4749 ],
4750 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
4751 &quot;rows&quot;: [ # Optional. Rows in this table of data.
4752 { # Row of TableCard.
4753 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
4754 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
4755 { # Cell of TableCardRow.
4756 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
4757 },
4758 ],
4759 },
4760 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004761 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
4762 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
4763 { # Column properties for TableCard.
4764 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
4765 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
4766 },
4767 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004768 },
4769 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
4770 &quot;items&quot;: [ # Required. Carousel items.
4771 { # An item in the carousel.
Bu Sun Kim65020912020-05-20 12:08:20 -07004772 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
4773 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
4774 # dialog.
4775 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
4776 # item in dialog.
4777 &quot;A String&quot;,
4778 ],
4779 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
4780 # response is given.
4781 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004782 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
4783 &quot;image&quot;: { # The image response message. # Optional. The image to display.
4784 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
4785 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
4786 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
4787 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004788 },
4789 ],
4790 },
4791 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app # Displays a link out suggestion chip for Actions on Google.
4792 # or website associated with this agent.
4793 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
4794 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
4795 # suggestion chip.
4796 },
4797 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
4798 # https://developers.google.com/actions/assistant/responses#browsing_carousel
4799 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
4800 # items.
4801 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
4802 # items, maximum of ten.
4803 { # Browsing carousel tile
Bu Sun Kim65020912020-05-20 12:08:20 -07004804 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
4805 # text.
4806 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
4807 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
4808 # the URL. Defaults to opening via web browser.
4809 &quot;url&quot;: &quot;A String&quot;, # Required. URL
4810 },
4811 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
4812 # Card. Maximum of one line of text.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004813 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
4814 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
4815 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
4816 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
4817 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
4818 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004819 },
4820 ],
4821 },
4822 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # Returns a voice or text-only response for Actions on Google.
4823 # This message in `QueryResult.fulfillment_messages` and
4824 # `WebhookResponse.fulfillment_messages` should contain only one
4825 # `SimpleResponse`.
4826 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
4827 { # The simple response message containing speech or text.
Bu Sun Kim65020912020-05-20 12:08:20 -07004828 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
4829 # response to the user in the SSML format. Mutually exclusive with
4830 # text_to_speech.
4831 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004832 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
4833 # speech output. Mutually exclusive with ssml.
Bu Sun Kim65020912020-05-20 12:08:20 -07004834 },
4835 ],
4836 },
4837 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
4838 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to
4839 # in [E.164 format](https://en.wikipedia.org/wiki/E.164).
4840 #
4841 # We currently only allow transferring to US numbers (+1xxxyyyzzzz).
4842 },
4843 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
4844 &quot;mediaObjects&quot;: [ # Required. List of media objects.
4845 { # Response media object for media content card.
Bu Sun Kim65020912020-05-20 12:08:20 -07004846 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
4847 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
4848 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
4849 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
4850 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
4851 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
4852 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
4853 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004854 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
4855 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
4856 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
4857 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
4858 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004859 },
4860 ],
4861 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
4862 },
4863 &quot;image&quot;: { # The image response message. # Displays an image.
4864 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
4865 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
4866 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
4867 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004868 &quot;rbmStandaloneRichCard&quot;: { # Standalone Rich Business Messaging (RBM) rich card. # Standalone Rich Business Messaging (RBM) rich card response.
4869 #
4870 # Rich cards allow you to respond to users with more vivid content, e.g.
4871 # with media and suggestions.
4872 #
4873 # For more details about RBM rich cards, please see:
4874 # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards.
4875 # You can group multiple rich cards into one using RbmCarouselCard but
4876 # carousel cards will give you less control over the card layout.
4877 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal.
4878 # Image preview alignment for standalone cards with horizontal layout.
4879 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
4880 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
Bu Sun Kim65020912020-05-20 12:08:20 -07004881 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
4882 # be set. Media (image, GIF or a video) to include in the card.
4883 # The following media-types are currently supported:
4884 #
4885 # Image Types
4886 #
4887 # * image/jpeg
4888 # * image/jpg&#x27;
4889 # * image/gif
4890 # * image/png
4891 #
4892 # Video Types
4893 #
4894 # * video/h263
4895 # * video/m4v
4896 # * video/mp4
4897 # * video/mpeg
4898 # * video/mpeg4
4899 # * video/webm
4900 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
4901 # provide a thumbnail URI, the RBM platform displays a blank
4902 # placeholder thumbnail until the user&#x27;s device downloads the file.
4903 # Depending on the user&#x27;s setting, the file may not download
4904 # automatically and may require the user to tap a download button.
4905 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
4906 # within a rich card with a vertical layout. (https://goo.gl/NeFCjz).
4907 # For a standalone card with horizontal layout, height is not
4908 # customizable, and this field is ignored.
4909 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
4910 # determines the MIME type of the file from the content-type field in
4911 # the HTTP headers when the platform fetches the file. The content-type
4912 # field must be present and accurate in the HTTP response from the URL.
4913 },
4914 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
4915 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
4916 # easily select/click a predefined response or perform an action (like
4917 # opening a web uri).
4918 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
4919 # instead of typing in their own response.
Bu Sun Kim65020912020-05-20 12:08:20 -07004920 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
4921 # when the user taps the suggested reply. This data will be also
4922 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004923 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07004924 },
4925 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
4926 # can choose from the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004927 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
4928 # but does not dial automatically (https://goo.gl/ergbB2).
4929 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
4930 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
4931 # format. An example of a correctly formatted phone number:
4932 # +15556767888.
4933 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004934 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
4935 # when the user taps the suggested action. This data will be also
4936 # forwarded to webhook to allow performing custom business logic.
4937 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
4938 # to send back to the agent (https://goo.gl/GXotJW).
4939 },
4940 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
4941 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
4942 # (https://goo.gl/6GLJD2). If the user has an app installed that is
4943 # registered as the default handler for the URL, then this app will be
4944 # opened instead, and its icon will be used in the suggested action UI.
4945 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
4946 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004947 },
4948 },
4949 ],
4950 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
4951 #
4952 # At least one of the title, description or media must be set.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004953 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
4954 #
4955 # At least one of the title, description or media must be set.
Bu Sun Kim65020912020-05-20 12:08:20 -07004956 },
4957 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004958 &quot;payload&quot;: { # A custom platform-specific response.
4959 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4960 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004961 },
4962 ],
4963 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent.
4964 # Note: The action name must not contain whitespaces.
4965 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent.
4966 # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
4967 # methods.
Dan O'Mearadd494642020-05-01 07:42:23 -07004968 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kim65020912020-05-20 12:08:20 -07004969 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
4970 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004971 # triggered.
Dan O'Mearadd494642020-05-01 07:42:23 -07004972 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
Bu Sun Kim65020912020-05-20 12:08:20 -07004973 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004974 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004975 &quot;followupIntentInfo&quot;: [ # Output only. Information about all followup intents that have this intent as
4976 # a direct or indirect parent. We populate this field only in the output.
4977 { # Represents a single followup intent in the chain.
4978 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent.
4979 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
4980 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent.
4981 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
4982 },
4983 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004984}
4985
Bu Sun Kim65020912020-05-20 12:08:20 -07004986 intentView: string, Optional. The resource view to apply to the returned intent.
Dan O'Mearadd494642020-05-01 07:42:23 -07004987 languageCode: string, Optional. The language used to access language-specific data.
Bu Sun Kim65020912020-05-20 12:08:20 -07004988If not specified, the agent&#x27;s default language is used.
Dan O'Mearadd494642020-05-01 07:42:23 -07004989For more information, see
4990[Multilingual intent and entity
4991data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004992 updateMask: string, Optional. The mask to control which fields get updated.
4993 x__xgafv: string, V1 error format.
4994 Allowed values
4995 1 - v1 error format
4996 2 - v2 error format
4997
4998Returns:
4999 An object of the form:
5000
5001 { # Represents an intent.
5002 # Intents convert a number of user expressions or patterns into an action. An
5003 # action is an extraction of a user command or sentence semantics.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005004 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
5005 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Output only. The unique identifier of the root intent in the chain of
5006 # followup intents. It identifies the correct followup intents chain for
5007 # this intent.
5008 #
5009 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
5010 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
5011 # Note: If `ml_disabled` setting is set to true, then this intent is not
5012 # taken into account during inference in `ML ONLY` match mode. Also,
5013 # auto-markup in the UI is turned off.
5014 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
5015 &quot;mlEnabled&quot;: True or False, # Optional. Indicates whether Machine Learning is enabled for the intent.
5016 # Note: If `ml_enabled` setting is set to false, then this intent is not
5017 # taken into account during inference in `ML ONLY` match mode. Also,
5018 # auto-markup in the UI is turned off.
5019 # DEPRECATED! Please use `ml_disabled` field instead.
5020 # NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false,
5021 # then the default value is determined as follows:
5022 # - Before April 15th, 2018 the default is:
5023 # ml_enabled = false / ml_disabled = true.
5024 # - After April 15th, 2018 the default is:
5025 # ml_enabled = true / ml_disabled = false.
Bu Sun Kim65020912020-05-20 12:08:20 -07005026 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is
Dan O'Mearadd494642020-05-01 07:42:23 -07005027 # trained on.
5028 { # Represents an example that the agent is trained on.
Bu Sun Kim65020912020-05-20 12:08:20 -07005029 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts.
Dan O'Mearadd494642020-05-01 07:42:23 -07005030 # The parts are concatenated in order to form the training phrase.
5031 #
5032 # Note: The API does not automatically annotate training phrases like the
5033 # Dialogflow Console does.
5034 #
5035 # Note: Do not forget to include whitespace at part boundaries,
5036 # so the training phrase is well formatted when the parts are concatenated.
5037 #
5038 # If the training phrase does not need to be annotated with parameters,
5039 # you just need a single part with only the Part.text field set.
5040 #
5041 # If you want to annotate the training phrase, you must create multiple
5042 # parts, where the fields of each part are populated in one of two ways:
5043 #
5044 # - `Part.text` is set to a part of the phrase that has no parameters.
5045 # - `Part.text` is set to a part of the phrase that you want to annotate,
5046 # and the `entity_type`, `alias`, and `user_defined` fields are all
5047 # set.
5048 { # Represents a part of a training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07005049 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the
Dan O'Mearadd494642020-05-01 07:42:23 -07005050 # annotated part of the example.
5051 # This field is required for annotated parts of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07005052 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated.
Dan O'Mearadd494642020-05-01 07:42:23 -07005053 # This field is set to true when the Dialogflow Console is used to
5054 # manually annotate the part. When creating an annotated part with the
5055 # API, you must set this to true.
Bu Sun Kim65020912020-05-20 12:08:20 -07005056 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
5057 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`.
5058 # This field is required for annotated parts of the training phrase.
Dan O'Mearadd494642020-05-01 07:42:23 -07005059 },
5060 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07005061 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
5062 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to
Dan O'Mearadd494642020-05-01 07:42:23 -07005063 # the intent. Each time a developer adds an existing sample by editing an
5064 # intent or training, this counter is increased.
Bu Sun Kim65020912020-05-20 12:08:20 -07005065 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
Dan O'Mearadd494642020-05-01 07:42:23 -07005066 },
5067 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07005068 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current
5069 # session when this intent is matched.
5070 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
5071 { # Represents intent parameters.
Bu Sun Kim65020912020-05-20 12:08:20 -07005072 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that
5073 # describes values of the parameter. If the parameter is
5074 # required, this must be provided.
5075 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the
5076 # user in order to collect a value for the parameter.
5077 &quot;A String&quot;,
5078 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005079 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is,
5080 # whether the intent cannot be completed without collecting the parameter
5081 # value.
Bu Sun Kim65020912020-05-20 12:08:20 -07005082 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty
5083 # result.
5084 # Default values can be extracted from contexts by using the following
5085 # syntax: `#context_name.parameter_name`.
Bu Sun Kim65020912020-05-20 12:08:20 -07005086 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
5087 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
5088 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be:
5089 #
5090 # - a constant string,
5091 # - a parameter value defined as `$parameter_name`,
5092 # - an original parameter value defined as `$parameter_name.original`,
5093 # - a parameter value from some context defined as
5094 # `#context_name.parameter_name`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005095 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
Bu Sun Kim65020912020-05-20 12:08:20 -07005096 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005097 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07005098 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent.
5099 # If the collection of input contexts is not empty, all of the contexts must
5100 # be present in the active user session for an event to trigger this intent.
5101 # Event names are limited to 150 characters.
5102 &quot;A String&quot;,
5103 ],
5104 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Optional. The unique identifier of the parent intent in the
5105 # chain of followup intents. You can set this field when creating an intent,
5106 # for example with CreateIntent or
5107 # BatchUpdateIntents, in order to make this
5108 # intent a followup intent.
5109 #
5110 # It identifies the parent followup intent.
5111 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
5112 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher
Dan O'Mearadd494642020-05-01 07:42:23 -07005113 # priorities.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005114 #
Dan O'Mearadd494642020-05-01 07:42:23 -07005115 # - If the supplied value is unspecified or 0, the service
5116 # translates the value to 500,000, which corresponds to the
5117 # `Normal` priority in the console.
5118 # - If the supplied value is negative, the intent is ignored
5119 # in runtime detect intent requests.
Bu Sun Kim65020912020-05-20 12:08:20 -07005120 &quot;endInteraction&quot;: True or False, # Optional. Indicates that this intent ends an interaction. Some integrations
5121 # (e.g., Actions on Google or Dialogflow phone gateway) use this information
5122 # to close interaction with an end user. Default is false.
5123 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent
5124 # is matched. Context messages in this collection should not set the
5125 # parameters field. Setting the `lifespan_count` to 0 will reset the context
5126 # when the intent is matched.
5127 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
5128 { # Represents a context.
5129 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
5130 # context expires. The default is `0`. If set to `0`, the context expires
5131 # immediately. Contexts expire automatically after 20 minutes if there
5132 # are no matching queries.
5133 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
5134 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
5135 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
5136 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
5137 #
5138 # The `Context ID` is always converted to lowercase, may only contain
5139 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
5140 #
5141 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
5142 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
5143 #
5144 # The following context names are reserved for internal use by Dialogflow.
5145 # You should not use these contexts or create contexts with these names:
5146 #
5147 # * `__system_counters__`
5148 # * `*_id_dialog_context`
5149 # * `*_dialog_params_size`
5150 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
5151 #
5152 # Depending on your protocol or client library language, this is a
5153 # map, associative array, symbol table, dictionary, or JSON object
5154 # composed of a collection of (MapKey, MapValue) pairs:
5155 #
5156 # - MapKey type: string
5157 # - MapKey value: parameter name
5158 # - MapValue type:
5159 # - If parameter&#x27;s entity type is a composite entity: map
5160 # - Else: string or number, depending on parameter value type
5161 # - MapValue value:
5162 # - If parameter&#x27;s entity type is a composite entity:
5163 # map from composite entity property names to property values
5164 # - Else: parameter value
5165 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5166 },
5167 },
5168 ],
5169 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be
5170 # copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
5171 &quot;A String&quot;,
5172 ],
5173 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the
5174 # `Response` field in the Dialogflow console.
5175 { # Corresponds to the `Response` field in the Dialogflow console.
5176 &quot;text&quot;: { # The text response message. # Returns a text response.
5177 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
5178 &quot;A String&quot;,
5179 ],
5180 },
5181 &quot;rbmCarouselRichCard&quot;: { # Carousel Rich Business Messaging (RBM) rich card. # Rich Business Messaging (RBM) carousel rich card response.
5182 #
5183 # Rich cards allow you to respond to users with more vivid content, e.g.
5184 # with media and suggestions.
5185 #
5186 # For more details about RBM rich cards, please see:
5187 # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards.
5188 # If you want to show a single card with more control over the layout,
5189 # please use RbmStandaloneCard instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07005190 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least
5191 # 2 cards and at most 10.
5192 { # Rich Business Messaging (RBM) Card content
Bu Sun Kim65020912020-05-20 12:08:20 -07005193 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
5194 # be set. Media (image, GIF or a video) to include in the card.
5195 # The following media-types are currently supported:
5196 #
5197 # Image Types
5198 #
5199 # * image/jpeg
5200 # * image/jpg&#x27;
5201 # * image/gif
5202 # * image/png
5203 #
5204 # Video Types
5205 #
5206 # * video/h263
5207 # * video/m4v
5208 # * video/mp4
5209 # * video/mpeg
5210 # * video/mpeg4
5211 # * video/webm
5212 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
5213 # provide a thumbnail URI, the RBM platform displays a blank
5214 # placeholder thumbnail until the user&#x27;s device downloads the file.
5215 # Depending on the user&#x27;s setting, the file may not download
5216 # automatically and may require the user to tap a download button.
5217 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
5218 # within a rich card with a vertical layout. (https://goo.gl/NeFCjz).
5219 # For a standalone card with horizontal layout, height is not
5220 # customizable, and this field is ignored.
5221 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
5222 # determines the MIME type of the file from the content-type field in
5223 # the HTTP headers when the platform fetches the file. The content-type
5224 # field must be present and accurate in the HTTP response from the URL.
5225 },
5226 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
5227 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
5228 # easily select/click a predefined response or perform an action (like
5229 # opening a web uri).
5230 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
5231 # instead of typing in their own response.
Bu Sun Kim65020912020-05-20 12:08:20 -07005232 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
5233 # when the user taps the suggested reply. This data will be also
5234 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005235 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07005236 },
5237 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
5238 # can choose from the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005239 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
5240 # but does not dial automatically (https://goo.gl/ergbB2).
5241 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
5242 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
5243 # format. An example of a correctly formatted phone number:
5244 # +15556767888.
5245 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005246 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
5247 # when the user taps the suggested action. This data will be also
5248 # forwarded to webhook to allow performing custom business logic.
5249 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
5250 # to send back to the agent (https://goo.gl/GXotJW).
5251 },
5252 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
5253 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
5254 # (https://goo.gl/6GLJD2). If the user has an app installed that is
5255 # registered as the default handler for the URL, then this app will be
5256 # opened instead, and its icon will be used in the suggested action UI.
5257 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
5258 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005259 },
5260 },
5261 ],
5262 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
5263 #
5264 # At least one of the title, description or media must be set.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005265 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
5266 #
5267 # At least one of the title, description or media must be set.
Bu Sun Kim65020912020-05-20 12:08:20 -07005268 },
5269 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005270 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
Bu Sun Kim65020912020-05-20 12:08:20 -07005271 },
5272 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
5273 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
5274 { # The suggestion chip message that the user can tap to quickly post a reply
5275 # to the conversation.
5276 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
5277 },
5278 ],
5279 },
5280 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
5281 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
5282 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to
5283 # play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single
5284 # channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz.
5285 #
5286 # This object must be readable by the `service-&lt;Project
5287 # Number&gt;@gcp-sa-dialogflow.iam.gserviceaccount.com` service account
5288 # where &lt;Project Number&gt; is the number of the Telephony Gateway project
5289 # (usually the same as the Dialogflow agent project). If the Google Cloud
5290 # Storage bucket is in the Telephony Gateway project, this permission is
5291 # added by default when enabling the Dialogflow V2 API.
5292 #
5293 # For audio from other sources, consider using the
5294 # `TelephonySynthesizeSpeech` message with SSML.
5295 },
5296 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
5297 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
5298 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
5299 &quot;items&quot;: [ # Required. List items.
5300 { # An item in the list.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005301 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
Bu Sun Kim65020912020-05-20 12:08:20 -07005302 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
5303 # dialog.
5304 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
5305 # item in dialog.
5306 &quot;A String&quot;,
5307 ],
5308 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
5309 # response is given.
5310 },
5311 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
5312 &quot;image&quot;: { # The image response message. # Optional. The image to display.
5313 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
5314 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
5315 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
5316 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005317 },
5318 ],
5319 },
5320 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response.
5321 #
5322 # RBM allows businesses to send enriched and branded versions of SMS. See
5323 # https://jibe.google.com/business-messaging.
5324 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
5325 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
5326 # easily select/click a predefined response or perform an action (like
5327 # opening a web uri).
5328 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
5329 # instead of typing in their own response.
Bu Sun Kim65020912020-05-20 12:08:20 -07005330 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
5331 # when the user taps the suggested reply. This data will be also
5332 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005333 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07005334 },
5335 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
5336 # can choose from the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005337 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
5338 # but does not dial automatically (https://goo.gl/ergbB2).
5339 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
5340 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
5341 # format. An example of a correctly formatted phone number:
5342 # +15556767888.
5343 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005344 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
5345 # when the user taps the suggested action. This data will be also
5346 # forwarded to webhook to allow performing custom business logic.
5347 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
5348 # to send back to the agent (https://goo.gl/GXotJW).
5349 },
5350 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
5351 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
5352 # (https://goo.gl/6GLJD2). If the user has an app installed that is
5353 # registered as the default handler for the URL, then this app will be
5354 # opened instead, and its icon will be used in the suggested action UI.
5355 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
5356 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005357 },
5358 },
5359 ],
5360 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
5361 },
5362 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
5363 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
5364 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
5365 &quot;A String&quot;,
5366 ],
5367 },
5368 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in # Synthesizes speech in Telephony Gateway.
5369 # Telephony Gateway.
5370 #
5371 # Telephony Gateway takes the synthesizer settings from
5372 # `DetectIntentResponse.output_audio_config` which can either be set
5373 # at request-level or can come from the agent-level synthesizer config.
5374 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
5375 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see
5376 # [SSML](https://developers.google.com/actions/reference/ssml).
5377 },
5378 &quot;card&quot;: { # The card response message. # Displays a card.
Bu Sun Kim65020912020-05-20 12:08:20 -07005379 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
5380 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
5381 { # Optional. Contains information about a button.
5382 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
5383 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
5384 # open.
5385 },
5386 ],
5387 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005388 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07005389 },
5390 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
5391 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
5392 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
5393 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
5394 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
5395 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
5396 },
5397 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
5398 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
5399 { # The button object that appears at the bottom of a card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005400 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -07005401 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
5402 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
5403 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005404 },
5405 ],
5406 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
5407 },
5408 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Bu Sun Kim65020912020-05-20 12:08:20 -07005409 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
5410 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
5411 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
5412 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
5413 },
5414 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
5415 { # The button object that appears at the bottom of a card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005416 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -07005417 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
5418 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
5419 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005420 },
5421 ],
5422 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
5423 &quot;rows&quot;: [ # Optional. Rows in this table of data.
5424 { # Row of TableCard.
5425 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
5426 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
5427 { # Cell of TableCardRow.
5428 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
5429 },
5430 ],
5431 },
5432 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005433 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
5434 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
5435 { # Column properties for TableCard.
5436 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
5437 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
5438 },
5439 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07005440 },
5441 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
5442 &quot;items&quot;: [ # Required. Carousel items.
5443 { # An item in the carousel.
Bu Sun Kim65020912020-05-20 12:08:20 -07005444 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
5445 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
5446 # dialog.
5447 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
5448 # item in dialog.
5449 &quot;A String&quot;,
5450 ],
5451 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
5452 # response is given.
5453 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005454 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
5455 &quot;image&quot;: { # The image response message. # Optional. The image to display.
5456 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
5457 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
5458 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
5459 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005460 },
5461 ],
5462 },
5463 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app # Displays a link out suggestion chip for Actions on Google.
5464 # or website associated with this agent.
5465 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
5466 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
5467 # suggestion chip.
5468 },
5469 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
5470 # https://developers.google.com/actions/assistant/responses#browsing_carousel
5471 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
5472 # items.
5473 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
5474 # items, maximum of ten.
5475 { # Browsing carousel tile
Bu Sun Kim65020912020-05-20 12:08:20 -07005476 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
5477 # text.
5478 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
5479 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
5480 # the URL. Defaults to opening via web browser.
5481 &quot;url&quot;: &quot;A String&quot;, # Required. URL
5482 },
5483 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
5484 # Card. Maximum of one line of text.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005485 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
5486 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
5487 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
5488 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
5489 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
5490 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005491 },
5492 ],
5493 },
5494 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # Returns a voice or text-only response for Actions on Google.
5495 # This message in `QueryResult.fulfillment_messages` and
5496 # `WebhookResponse.fulfillment_messages` should contain only one
5497 # `SimpleResponse`.
5498 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
5499 { # The simple response message containing speech or text.
Bu Sun Kim65020912020-05-20 12:08:20 -07005500 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
5501 # response to the user in the SSML format. Mutually exclusive with
5502 # text_to_speech.
5503 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005504 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
5505 # speech output. Mutually exclusive with ssml.
Bu Sun Kim65020912020-05-20 12:08:20 -07005506 },
5507 ],
5508 },
5509 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
5510 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to
5511 # in [E.164 format](https://en.wikipedia.org/wiki/E.164).
5512 #
5513 # We currently only allow transferring to US numbers (+1xxxyyyzzzz).
5514 },
5515 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
5516 &quot;mediaObjects&quot;: [ # Required. List of media objects.
5517 { # Response media object for media content card.
Bu Sun Kim65020912020-05-20 12:08:20 -07005518 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
5519 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
5520 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
5521 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
5522 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
5523 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
5524 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
5525 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005526 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
5527 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
5528 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
5529 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
5530 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005531 },
5532 ],
5533 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
5534 },
5535 &quot;image&quot;: { # The image response message. # Displays an image.
5536 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
5537 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
5538 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
5539 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005540 &quot;rbmStandaloneRichCard&quot;: { # Standalone Rich Business Messaging (RBM) rich card. # Standalone Rich Business Messaging (RBM) rich card response.
5541 #
5542 # Rich cards allow you to respond to users with more vivid content, e.g.
5543 # with media and suggestions.
5544 #
5545 # For more details about RBM rich cards, please see:
5546 # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards.
5547 # You can group multiple rich cards into one using RbmCarouselCard but
5548 # carousel cards will give you less control over the card layout.
5549 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal.
5550 # Image preview alignment for standalone cards with horizontal layout.
5551 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
5552 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
Bu Sun Kim65020912020-05-20 12:08:20 -07005553 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
5554 # be set. Media (image, GIF or a video) to include in the card.
5555 # The following media-types are currently supported:
5556 #
5557 # Image Types
5558 #
5559 # * image/jpeg
5560 # * image/jpg&#x27;
5561 # * image/gif
5562 # * image/png
5563 #
5564 # Video Types
5565 #
5566 # * video/h263
5567 # * video/m4v
5568 # * video/mp4
5569 # * video/mpeg
5570 # * video/mpeg4
5571 # * video/webm
5572 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
5573 # provide a thumbnail URI, the RBM platform displays a blank
5574 # placeholder thumbnail until the user&#x27;s device downloads the file.
5575 # Depending on the user&#x27;s setting, the file may not download
5576 # automatically and may require the user to tap a download button.
5577 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
5578 # within a rich card with a vertical layout. (https://goo.gl/NeFCjz).
5579 # For a standalone card with horizontal layout, height is not
5580 # customizable, and this field is ignored.
5581 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
5582 # determines the MIME type of the file from the content-type field in
5583 # the HTTP headers when the platform fetches the file. The content-type
5584 # field must be present and accurate in the HTTP response from the URL.
5585 },
5586 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
5587 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
5588 # easily select/click a predefined response or perform an action (like
5589 # opening a web uri).
5590 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
5591 # instead of typing in their own response.
Bu Sun Kim65020912020-05-20 12:08:20 -07005592 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
5593 # when the user taps the suggested reply. This data will be also
5594 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005595 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07005596 },
5597 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
5598 # can choose from the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005599 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
5600 # but does not dial automatically (https://goo.gl/ergbB2).
5601 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
5602 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
5603 # format. An example of a correctly formatted phone number:
5604 # +15556767888.
5605 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005606 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
5607 # when the user taps the suggested action. This data will be also
5608 # forwarded to webhook to allow performing custom business logic.
5609 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
5610 # to send back to the agent (https://goo.gl/GXotJW).
5611 },
5612 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
5613 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
5614 # (https://goo.gl/6GLJD2). If the user has an app installed that is
5615 # registered as the default handler for the URL, then this app will be
5616 # opened instead, and its icon will be used in the suggested action UI.
5617 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
5618 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005619 },
5620 },
5621 ],
5622 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
5623 #
5624 # At least one of the title, description or media must be set.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005625 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
5626 #
5627 # At least one of the title, description or media must be set.
Bu Sun Kim65020912020-05-20 12:08:20 -07005628 },
5629 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005630 &quot;payload&quot;: { # A custom platform-specific response.
5631 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5632 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005633 },
5634 ],
5635 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent.
5636 # Note: The action name must not contain whitespaces.
5637 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent.
5638 # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
5639 # methods.
Dan O'Mearadd494642020-05-01 07:42:23 -07005640 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kim65020912020-05-20 12:08:20 -07005641 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
5642 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005643 # triggered.
Dan O'Mearadd494642020-05-01 07:42:23 -07005644 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
Bu Sun Kim65020912020-05-20 12:08:20 -07005645 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005646 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07005647 &quot;followupIntentInfo&quot;: [ # Output only. Information about all followup intents that have this intent as
5648 # a direct or indirect parent. We populate this field only in the output.
5649 { # Represents a single followup intent in the chain.
5650 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent.
5651 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
5652 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent.
5653 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
5654 },
5655 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005656 }</pre>
5657</div>
5658
5659</body></html>