blob: bd5eb3da8e05e1621562db077c4be30c77ac9045 [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.environments.html">environments</a> . <a href="dialogflow_v2beta1.projects.agent.environments.users.html">users</a> . <a href="dialogflow_v2beta1.projects.agent.environments.users.sessions.html">sessions</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="dialogflow_v2beta1.projects.agent.environments.users.sessions.contexts.html">contexts()</a></code>
79</p>
80<p class="firstline">Returns the contexts Resource.</p>
81
82<p class="toc_element">
83 <code><a href="dialogflow_v2beta1.projects.agent.environments.users.sessions.entityTypes.html">entityTypes()</a></code>
84</p>
85<p class="firstline">Returns the entityTypes Resource.</p>
86
87<p class="toc_element">
88 <code><a href="#deleteContexts">deleteContexts(parent, x__xgafv=None)</a></code></p>
89<p class="firstline">Deletes all active contexts in the specified session.</p>
90<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070091 <code><a href="#detectIntent">detectIntent(session, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070092<p class="firstline">Processes a natural language query and returns structured, actionable data</p>
93<h3>Method Details</h3>
94<div class="method">
95 <code class="details" id="deleteContexts">deleteContexts(parent, x__xgafv=None)</code>
96 <pre>Deletes all active contexts in the specified session.
97
98Args:
99 parent: string, Required. The name of the session to delete all contexts from. Format:
Dan O'Mearadd494642020-05-01 07:42:23 -0700100`projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;` or `projects/&lt;Project
101ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User ID&gt;/sessions/&lt;Session
Bu Sun Kim65020912020-05-20 12:08:20 -0700102ID&gt;`. If `Environment ID` is not specified we assume default &#x27;draft&#x27;
103environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700104 x__xgafv: string, V1 error format.
105 Allowed values
106 1 - v1 error format
107 2 - v2 error format
108
109Returns:
110 An object of the form:
111
112 { # A generic empty message that you can re-use to avoid defining duplicated
113 # empty messages in your APIs. A typical example is to use it as the request
114 # or the response type of an API method. For instance:
115 #
116 # service Foo {
117 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
118 # }
119 #
120 # The JSON representation for `Empty` is empty JSON object `{}`.
121 }</pre>
122</div>
123
124<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700125 <code class="details" id="detectIntent">detectIntent(session, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700126 <pre>Processes a natural language query and returns structured, actionable data
127as a result. This method is not idempotent, because it may cause contexts
128and session entity types to be updated, which in turn might affect
129results of future queries.
130
131Args:
132 session: string, Required. The name of the session this query is sent to. Format:
Dan O'Mearadd494642020-05-01 07:42:23 -0700133`projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;`, or
134`projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
135ID&gt;/sessions/&lt;Session ID&gt;`. If `Environment ID` is not specified, we assume
Bu Sun Kim65020912020-05-20 12:08:20 -0700136default &#x27;draft&#x27; environment. If `User ID` is not specified, we are using
137&quot;-&quot;. It&#x27;s up to the API caller to choose an appropriate `Session ID` and
Dan O'Mearadd494642020-05-01 07:42:23 -0700138`User Id`. They can be a random number or some type of user and session
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700139identifiers (preferably hashed). The length of the `Session ID` and
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700140`User ID` must not exceed 36 characters.
141
142For more information, see the [API interactions
143guide](https://cloud.google.com/dialogflow/docs/api-overview). (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700144 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700145 The object takes the form of:
146
Bu Sun Kim65020912020-05-20 12:08:20 -0700147{ # The request to detect user&#x27;s intent.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700148 &quot;outputAudioConfig&quot;: { # Instructs the speech synthesizer how to generate the output audio content. # Instructs the speech synthesizer how to generate the output
149 # audio. If this field is not set and agent-level speech synthesizer is not
150 # configured, no output audio is generated.
151 # If this audio config is supplied in a request, it overrides all existing
152 # text-to-speech settings applied to the agent.
153 &quot;synthesizeSpeechConfig&quot;: { # Configuration of how speech should be synthesized. # Configuration of how speech should be synthesized.
154 &quot;speakingRate&quot;: 3.14, # Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal
155 # native speed supported by the specific voice. 2.0 is twice as fast, and
156 # 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any
157 # other values &lt; 0.25 or &gt; 4.0 will return an error.
158 &quot;pitch&quot;: 3.14, # Optional. Speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20
159 # semitones from the original pitch. -20 means decrease 20 semitones from the
160 # original pitch.
161 &quot;volumeGainDb&quot;: 3.14, # Optional. Volume gain (in dB) of the normal native volume supported by the
162 # specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of
163 # 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB)
164 # will play at approximately half the amplitude of the normal native signal
165 # amplitude. A value of +6.0 (dB) will play at approximately twice the
166 # amplitude of the normal native signal amplitude. We strongly recommend not
167 # to exceed +10 (dB) as there&#x27;s usually no effective increase in loudness for
168 # any value greater than that.
169 &quot;voice&quot;: { # Description of which voice to use for speech synthesis. # Optional. The desired voice of the synthesized audio.
170 &quot;ssmlGender&quot;: &quot;A String&quot;, # Optional. The preferred gender of the voice. If not set, the service will
171 # choose a voice based on the other parameters such as language_code and
172 # name. Note that this is only a preference, not requirement. If a
173 # voice of the appropriate gender is not available, the synthesizer should
174 # substitute a voice with a different gender rather than failing the request.
175 &quot;name&quot;: &quot;A String&quot;, # Optional. The name of the voice. If not set, the service will choose a
176 # voice based on the other parameters such as language_code and
177 # ssml_gender.
178 },
179 &quot;effectsProfileId&quot;: [ # Optional. An identifier which selects &#x27;audio effects&#x27; profiles that are
180 # applied on (post synthesized) text to speech. Effects are applied on top of
181 # each other in the order they are given.
182 &quot;A String&quot;,
183 ],
184 },
185 &quot;audioEncoding&quot;: &quot;A String&quot;, # Required. Audio encoding of the synthesized audio content.
186 &quot;sampleRateHertz&quot;: 42, # The synthesis sample rate (in hertz) for this audio. If not
187 # provided, then the synthesizer will use the default sample rate based on
188 # the audio encoding. If this is different from the voice&#x27;s natural sample
189 # rate, then the synthesizer will honor this request by converting to the
190 # desired sample rate (which might result in worse audio quality).
191 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700192 &quot;outputAudioConfigMask&quot;: &quot;A String&quot;, # Mask for output_audio_config indicating which settings in this
Dan O'Mearadd494642020-05-01 07:42:23 -0700193 # request-level config should override speech synthesizer settings defined at
194 # agent-level.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700195 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700196 # If unspecified or empty, output_audio_config replaces the agent-level
197 # config in its entirety.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700198 &quot;inputAudio&quot;: &quot;A String&quot;, # The natural language speech audio to be processed. This field
199 # should be populated iff `query_input` is set to an input audio config.
200 # A single request can contain up to 1 minute of speech audio data.
Bu Sun Kim65020912020-05-20 12:08:20 -0700201 &quot;queryInput&quot;: { # Represents the query input. It can contain either: # Required. The input specification. It can be set to:
Dan O'Mearadd494642020-05-01 07:42:23 -0700202 #
203 # 1. an audio config
204 # which instructs the speech recognizer how to process the speech audio,
205 #
206 # 2. a conversational query in the form of text, or
207 #
208 # 3. an event that specifies which intent to trigger.
209 #
210 # 1. An audio config which
211 # instructs the speech recognizer how to process the speech audio.
212 #
213 # 2. A conversational query in the form of text.
214 #
215 # 3. An event that specifies which intent to trigger.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700216 &quot;audioConfig&quot;: { # Instructs the speech recognizer on how to process the audio content. # Instructs the speech recognizer how to process the speech audio.
217 &quot;languageCode&quot;: &quot;A String&quot;, # Required. The language of the supplied audio. Dialogflow does not do
218 # translations. See [Language
219 # Support](https://cloud.google.com/dialogflow/docs/reference/language)
220 # for a list of the currently supported language codes. Note that queries in
221 # the same session do not necessarily need to specify the same language.
222 &quot;phraseHints&quot;: [ # A list of strings containing words and phrases that the speech
223 # recognizer should recognize with higher likelihood.
224 #
225 # See [the Cloud Speech
226 # documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints)
227 # for more details.
228 #
229 # This field is deprecated. Please use [speech_contexts]() instead. If you
230 # specify both [phrase_hints]() and [speech_contexts](), Dialogflow will
231 # treat the [phrase_hints]() as a single additional [SpeechContext]().
232 &quot;A String&quot;,
233 ],
234 &quot;enableWordInfo&quot;: True or False, # If `true`, Dialogflow returns SpeechWordInfo in
235 # StreamingRecognitionResult with information about the recognized speech
236 # words, e.g. start and end time offsets. If false or unspecified, Speech
237 # doesn&#x27;t return any word-level information.
238 &quot;model&quot;: &quot;A String&quot;, # Which Speech model to select for the given request. Select the
239 # model best suited to your domain to get best results. If a model is not
240 # explicitly specified, then we auto-select a model based on the parameters
241 # in the InputAudioConfig.
242 # If enhanced speech model is enabled for the agent and an enhanced
243 # version of the specified model for the language does not exist, then the
244 # speech is recognized using the standard version of the specified model.
245 # Refer to
246 # [Cloud Speech API
247 # documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model)
248 # for more details.
249 &quot;audioEncoding&quot;: &quot;A String&quot;, # Required. Audio encoding of the audio content to process.
250 &quot;modelVariant&quot;: &quot;A String&quot;, # Which variant of the Speech model to use.
251 &quot;speechContexts&quot;: [ # Context information to assist speech recognition.
252 #
253 # See [the Cloud Speech
254 # documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints)
255 # for more details.
256 { # Hints for the speech recognizer to help with recognition in a specific
257 # conversation state.
258 &quot;boost&quot;: 3.14, # Optional. Boost for this context compared to other contexts:
259 #
260 # * If the boost is positive, Dialogflow will increase the probability that
261 # the phrases in this context are recognized over similar sounding phrases.
262 # * If the boost is unspecified or non-positive, Dialogflow will not apply
263 # any boost.
264 #
265 # Dialogflow recommends that you use boosts in the range (0, 20] and that you
266 # find a value that fits your use case with binary search.
267 &quot;phrases&quot;: [ # Optional. A list of strings containing words and phrases that the speech
268 # recognizer should recognize with higher likelihood.
269 #
270 # This list can be used to:
271 #
272 # * improve accuracy for words and phrases you expect the user to say,
273 # e.g. typical commands for your Dialogflow agent
274 # * add additional words to the speech recognizer vocabulary
275 # * ...
276 #
277 # See the [Cloud Speech
278 # documentation](https://cloud.google.com/speech-to-text/quotas) for usage
279 # limits.
280 &quot;A String&quot;,
281 ],
282 },
283 ],
284 &quot;singleUtterance&quot;: True or False, # If `false` (default), recognition does not cease until the
285 # client closes the stream.
286 # If `true`, the recognizer will detect a single spoken utterance in input
287 # audio. Recognition ceases when it detects the audio&#x27;s voice has
288 # stopped or paused. In this case, once a detected intent is received, the
289 # client should close the stream and start a new request with a new stream as
290 # needed.
291 # Note: This setting is relevant only for streaming methods.
292 # Note: When specified, InputAudioConfig.single_utterance takes precedence
293 # over StreamingDetectIntentRequest.single_utterance.
294 &quot;sampleRateHertz&quot;: 42, # Required. Sample rate (in Hertz) of the audio content sent in the query.
295 # Refer to
296 # [Cloud Speech API
297 # documentation](https://cloud.google.com/speech-to-text/docs/basics) for
298 # more details.
299 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700300 &quot;event&quot;: { # Events allow for matching intents by event name instead of the natural # The event to be processed.
301 # language input. For instance, input `&lt;event: { name: &quot;welcome_event&quot;,
302 # parameters: { name: &quot;Sam&quot; } }&gt;` can trigger a personalized welcome response.
303 # The parameter `name` may be used by the agent in the response:
304 # `&quot;Hello #welcome_event.name! What can I do for you today?&quot;`.
305 &quot;languageCode&quot;: &quot;A String&quot;, # Required. The language of this query. See [Language
306 # Support](https://cloud.google.com/dialogflow/docs/reference/language)
307 # for a list of the currently supported language codes. Note that queries in
308 # the same session do not necessarily need to specify the same language.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700309 &quot;parameters&quot;: { # The collection of parameters associated with the event.
310 #
311 # Depending on your protocol or client library language, this is a
312 # map, associative array, symbol table, dictionary, or JSON object
313 # composed of a collection of (MapKey, MapValue) pairs:
314 #
315 # - MapKey type: string
316 # - MapKey value: parameter name
317 # - MapValue type:
318 # - If parameter&#x27;s entity type is a composite entity: map
319 # - Else: string or number, depending on parameter value type
320 # - MapValue value:
321 # - If parameter&#x27;s entity type is a composite entity:
322 # map from composite entity property names to property values
323 # - Else: parameter value
324 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
325 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700326 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the event.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700327 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700328 &quot;text&quot;: { # Represents the natural language text to be processed. # The natural language text to be processed.
329 &quot;text&quot;: &quot;A String&quot;, # Required. The UTF-8 encoded natural language text to be processed.
Dan O'Mearadd494642020-05-01 07:42:23 -0700330 # Text length must not exceed 256 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700331 &quot;languageCode&quot;: &quot;A String&quot;, # Required. The language of this conversational query. See [Language
Dan O'Mearadd494642020-05-01 07:42:23 -0700332 # Support](https://cloud.google.com/dialogflow/docs/reference/language)
333 # for a list of the currently supported language codes. Note that queries in
334 # the same session do not necessarily need to specify the same language.
335 },
Dan O'Mearadd494642020-05-01 07:42:23 -0700336 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700337 &quot;queryParams&quot;: { # Represents the parameters of the conversational query. # The parameters of this query.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700338 &quot;sessionEntityTypes&quot;: [ # Additional session entity types to replace or extend developer
339 # entity types with. The entity synonyms apply to all languages and persist
340 # for the session of this query.
341 { # A session represents a conversation between a Dialogflow agent and an
342 # end-user. You can create special entities, called session entities, during a
343 # session. Session entities can extend or replace custom entity types and only
344 # exist during the session that they were created for. All session data,
345 # including session entities, is stored by Dialogflow for 20 minutes.
346 #
347 # For more information, see the [session entity
348 # guide](https://cloud.google.com/dialogflow/docs/entities-session).
349 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of this session entity type. Format:
350 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/entityTypes/&lt;Entity Type
351 # Display Name&gt;`, or
352 # `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
353 # ID&gt;/sessions/&lt;Session ID&gt;/entityTypes/&lt;Entity Type Display Name&gt;`.
354 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
355 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
356 #
357 # `&lt;Entity Type Display Name&gt;` must be the display name of an existing entity
358 # type in the same agent that will be overridden or supplemented.
359 &quot;entityOverrideMode&quot;: &quot;A String&quot;, # Required. Indicates whether the additional data should override or
360 # supplement the custom entity type definition.
361 &quot;entities&quot;: [ # Required. The collection of entities associated with this session entity
362 # type.
363 { # An **entity entry** for an associated entity type.
364 &quot;synonyms&quot;: [ # Required. A collection of value synonyms. For example, if the entity type
365 # is *vegetable*, and `value` is *scallions*, a synonym could be *green
366 # onions*.
367 #
368 # For `KIND_LIST` entity types:
369 #
370 # * This collection must contain exactly one synonym equal to `value`.
371 &quot;A String&quot;,
372 ],
373 &quot;value&quot;: &quot;A String&quot;, # Required. The primary value associated with this entity entry.
374 # For example, if the entity type is *vegetable*, the value could be
375 # *scallions*.
376 #
377 # For `KIND_MAP` entity types:
378 #
379 # * A reference value to be used in place of synonyms.
380 #
381 # For `KIND_LIST` entity types:
382 #
383 # * A string that can contain references to other entity types (with or
384 # without aliases).
385 },
386 ],
387 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700388 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700389 &quot;sentimentAnalysisRequestConfig&quot;: { # Configures the types of sentiment analysis to perform. # Configures the type of sentiment analysis to perform. If not
390 # provided, sentiment analysis is not performed.
391 # Note: Sentiment Analysis is only currently available for Enterprise Edition
392 # agents.
393 &quot;analyzeQueryTextSentiment&quot;: True or False, # Instructs the service to perform sentiment analysis on
394 # `query_text`. If not provided, sentiment analysis is not performed on
395 # `query_text`.
396 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700397 &quot;contexts&quot;: [ # The collection of contexts to be activated before this query is
398 # executed.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700399 { # Dialogflow contexts are similar to natural language context. If a person says
400 # to you &quot;they are orange&quot;, you need context in order to understand what &quot;they&quot;
401 # is referring to. Similarly, for Dialogflow to handle an end-user expression
402 # like that, it needs to be provided with context in order to correctly match
403 # an intent.
404 #
405 # Using contexts, you can control the flow of a conversation. You can configure
406 # contexts for an intent by setting input and output contexts, which are
407 # identified by string names. When an intent is matched, any configured output
408 # contexts for that intent become active. While any contexts are active,
409 # Dialogflow is more likely to match intents that are configured with input
410 # contexts that correspond to the currently active contexts.
411 #
412 # For more information about context, see the
413 # [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview).
414 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
415 #
416 # Depending on your protocol or client library language, this is a
417 # map, associative array, symbol table, dictionary, or JSON object
418 # composed of a collection of (MapKey, MapValue) pairs:
419 #
420 # - MapKey type: string
421 # - MapKey value: parameter name
422 # - MapValue type:
423 # - If parameter&#x27;s entity type is a composite entity: map
424 # - Else: string or number, depending on parameter value type
425 # - MapValue value:
426 # - If parameter&#x27;s entity type is a composite entity:
427 # map from composite entity property names to property values
428 # - Else: parameter value
429 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
430 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700431 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
432 # context expires. The default is `0`. If set to `0`, the context expires
433 # immediately. Contexts expire automatically after 20 minutes if there
434 # are no matching queries.
435 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
436 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
437 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
438 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
439 #
440 # The `Context ID` is always converted to lowercase, may only contain
441 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
442 #
443 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
444 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
445 #
446 # The following context names are reserved for internal use by Dialogflow.
447 # You should not use these contexts or create contexts with these names:
448 #
449 # * `__system_counters__`
450 # * `*_id_dialog_context`
451 # * `*_dialog_params_size`
Bu Sun Kim65020912020-05-20 12:08:20 -0700452 },
453 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700454 &quot;geoLocation&quot;: { # An object representing a latitude/longitude pair. This is expressed as a pair # The geo location of this conversational query.
455 # of doubles representing degrees latitude and degrees longitude. Unless
456 # specified otherwise, this must conform to the
457 # &lt;a href=&quot;http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf&quot;&gt;WGS84
458 # standard&lt;/a&gt;. Values must be within normalized ranges.
459 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
460 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
Bu Sun Kim65020912020-05-20 12:08:20 -0700461 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700462 &quot;knowledgeBaseNames&quot;: [ # KnowledgeBases to get alternative results from. If not set, the
463 # KnowledgeBases enabled in the agent (through UI) will be used.
464 # Format: `projects/&lt;Project ID&gt;/knowledgeBases/&lt;Knowledge Base ID&gt;`.
465 &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -0700466 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700467 &quot;subAgents&quot;: [ # For mega agent query, directly specify which sub agents to query.
468 # If any specified sub agent is not linked to the mega agent, an error will
469 # be returned. If empty, Dialogflow will decide which sub agents to query.
470 # If specified for a non-mega-agent query, will be silently ignored.
471 { # Contains basic configuration for a sub-agent.
Bu Sun Kim65020912020-05-20 12:08:20 -0700472 &quot;environment&quot;: &quot;A String&quot;, # Optional. The unique identifier (`environment name` in dialogflow console)
473 # of this sub-agent environment. Assumes draft environment if `environment`
474 # is not set.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700475 &quot;project&quot;: &quot;A String&quot;, # Required. The project of this agent.
476 # Format: `projects/&lt;Project ID&gt;`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700477 },
478 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700479 &quot;resetContexts&quot;: True or False, # Specifies whether to delete all contexts in the current session
480 # before the new ones are activated.
481 &quot;payload&quot;: { # This field can be used to pass custom data to your webhook.
482 # Arbitrary JSON objects are supported.
483 # If supplied, the value is used to populate the
484 # `WebhookRequest.original_detect_intent_request.payload`
485 # field sent to your webhook.
486 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Bu Sun Kim65020912020-05-20 12:08:20 -0700487 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700488 &quot;timeZone&quot;: &quot;A String&quot;, # The time zone of this conversational query from the
489 # [time zone database](https://www.iana.org/time-zones), e.g.,
490 # America/New_York, Europe/Paris. If not provided, the time zone specified in
491 # agent settings is used.
492 &quot;webhookHeaders&quot;: { # This field can be used to pass HTTP headers for a webhook
493 # call. These headers will be sent to webhook alone with the headers that
494 # have been configured through Dialogflow web console. The headers defined
495 # within this field will overwrite the headers configured through Dialogflow
496 # console if there is a conflict. Header names are case-insensitive.
497 # Google&#x27;s specified headers are not allowed. Including: &quot;Host&quot;,
498 # &quot;Content-Length&quot;, &quot;Connection&quot;, &quot;From&quot;, &quot;User-Agent&quot;, &quot;Accept-Encoding&quot;,
499 # &quot;If-Modified-Since&quot;, &quot;If-None-Match&quot;, &quot;X-Forwarded-For&quot;, etc.
500 &quot;a_key&quot;: &quot;A String&quot;,
501 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700502 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700503 }
504
505 x__xgafv: string, V1 error format.
506 Allowed values
507 1 - v1 error format
508 2 - v2 error format
509
510Returns:
511 An object of the form:
512
513 { # The message returned from the DetectIntent method.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700514 &quot;alternativeQueryResults&quot;: [ # If Knowledge Connectors are enabled, there could be more than one result
515 # returned for a given query or event, and this field will contain all
516 # results except for the top one, which is captured in query_result. The
517 # alternative results are ordered by decreasing
518 # `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
519 # disabled, this field will be empty until multiple responses for regular
520 # intents are supported, at which point those additional results will be
521 # surfaced here.
522 { # Represents the result of conversational query or event processing.
523 &quot;fulfillmentText&quot;: &quot;A String&quot;, # The text to be pronounced to the user or shown on the screen.
524 # Note: This is a legacy field, `fulfillment_messages` should be preferred.
525 &quot;parameters&quot;: { # The collection of extracted parameters.
526 #
527 # Depending on your protocol or client library language, this is a
528 # map, associative array, symbol table, dictionary, or JSON object
529 # composed of a collection of (MapKey, MapValue) pairs:
530 #
531 # - MapKey type: string
532 # - MapKey value: parameter name
533 # - MapValue type:
534 # - If parameter&#x27;s entity type is a composite entity: map
535 # - Else: string or number, depending on parameter value type
536 # - MapValue value:
537 # - If parameter&#x27;s entity type is a composite entity:
538 # map from composite entity property names to property values
539 # - Else: parameter value
540 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700541 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700542 &quot;diagnosticInfo&quot;: { # Free-form diagnostic information for the associated detect intent request.
543 # The fields of this data can change without notice, so you should not write
544 # code that depends on its structure.
545 # The data may contain:
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700546 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700547 # - webhook call latency
548 # - webhook errors
549 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
550 },
551 &quot;languageCode&quot;: &quot;A String&quot;, # The language that was triggered during intent detection.
552 # See [Language
553 # Support](https://cloud.google.com/dialogflow/docs/reference/language)
554 # for a list of the currently supported language codes.
555 &quot;outputContexts&quot;: [ # The collection of output contexts. If applicable,
556 # `output_contexts.parameters` contains entries with name
557 # `&lt;parameter name&gt;.original` containing the original parameter values
558 # before the query.
559 { # Dialogflow contexts are similar to natural language context. If a person says
560 # to you &quot;they are orange&quot;, you need context in order to understand what &quot;they&quot;
561 # is referring to. Similarly, for Dialogflow to handle an end-user expression
562 # like that, it needs to be provided with context in order to correctly match
563 # an intent.
564 #
565 # Using contexts, you can control the flow of a conversation. You can configure
566 # contexts for an intent by setting input and output contexts, which are
567 # identified by string names. When an intent is matched, any configured output
568 # contexts for that intent become active. While any contexts are active,
569 # Dialogflow is more likely to match intents that are configured with input
570 # contexts that correspond to the currently active contexts.
571 #
572 # For more information about context, see the
573 # [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview).
574 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700575 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700576 # Depending on your protocol or client library language, this is a
577 # map, associative array, symbol table, dictionary, or JSON object
578 # composed of a collection of (MapKey, MapValue) pairs:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700579 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700580 # - MapKey type: string
581 # - MapKey value: parameter name
582 # - MapValue type:
583 # - If parameter&#x27;s entity type is a composite entity: map
584 # - Else: string or number, depending on parameter value type
585 # - MapValue value:
586 # - If parameter&#x27;s entity type is a composite entity:
587 # map from composite entity property names to property values
588 # - Else: parameter value
589 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
590 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700591 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
592 # context expires. The default is `0`. If set to `0`, the context expires
593 # immediately. Contexts expire automatically after 20 minutes if there
594 # are no matching queries.
595 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
Dan O'Mearadd494642020-05-01 07:42:23 -0700596 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
597 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
598 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700599 #
600 # The `Context ID` is always converted to lowercase, may only contain
601 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
602 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700603 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
604 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
Dan O'Mearadd494642020-05-01 07:42:23 -0700605 #
606 # The following context names are reserved for internal use by Dialogflow.
607 # You should not use these contexts or create contexts with these names:
608 #
609 # * `__system_counters__`
610 # * `*_id_dialog_context`
611 # * `*_dialog_params_size`
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700612 },
613 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700614 &quot;queryText&quot;: &quot;A String&quot;, # The original conversational query text:
615 #
616 # - If natural language text was provided as input, `query_text` contains
617 # a copy of the input.
618 # - If natural language speech audio was provided as input, `query_text`
619 # contains the speech recognition result. If speech recognizer produced
620 # multiple alternatives, a particular one is picked.
621 # - If automatic spell correction is enabled, `query_text` will contain the
622 # corrected user input.
623 &quot;intentDetectionConfidence&quot;: 3.14, # The intent detection confidence. Values range from 0.0
624 # (completely uncertain) to 1.0 (completely certain).
625 # This value is for informational purpose only and is only used to
626 # help match the best intent within the classification threshold.
627 # This value may change for the same end-user expression at any time due to a
628 # model retraining or change in implementation.
629 # If there are `multiple knowledge_answers` messages, this value is set to
630 # the greatest `knowledgeAnswers.match_confidence` value in the list.
631 &quot;webhookPayload&quot;: { # If the query was fulfilled by a webhook call, this field is set to the
632 # value of the `payload` field returned in the webhook response.
633 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
634 },
635 &quot;speechRecognitionConfidence&quot;: 3.14, # The Speech recognition confidence between 0.0 and 1.0. A higher number
636 # indicates an estimated greater likelihood that the recognized words are
637 # correct. The default of 0.0 is a sentinel value indicating that confidence
638 # was not set.
639 #
640 # This field is not guaranteed to be accurate or set. In particular this
641 # field isn&#x27;t set for StreamingDetectIntent since the streaming endpoint has
642 # separate confidence estimates per portion of the audio in
643 # StreamingRecognitionResult.
644 &quot;sentimentAnalysisResult&quot;: { # The result of sentiment analysis. Sentiment analysis inspects user input # The sentiment analysis result, which depends on the
645 # `sentiment_analysis_request_config` specified in the request.
646 # and identifies the prevailing subjective opinion, especially to determine a
647 # user&#x27;s attitude as positive, negative, or neutral.
648 # For Participants.AnalyzeContent, it needs to be configured in
649 # DetectIntentRequest.query_params. For
650 # Participants.StreamingAnalyzeContent, it needs to be configured in
651 # StreamingDetectIntentRequest.query_params.
652 # And for Participants.AnalyzeContent and
653 # Participants.StreamingAnalyzeContent, it needs to be configured in
654 # ConversationProfile.human_agent_assistant_config
655 &quot;queryTextSentiment&quot;: { # The sentiment, such as positive/negative feeling or association, for a unit # The sentiment analysis result for `query_text`.
656 # of analysis, such as the query text.
657 &quot;magnitude&quot;: 3.14, # A non-negative number in the [0, +inf) range, which represents the absolute
658 # magnitude of sentiment, regardless of score (positive or negative).
659 &quot;score&quot;: 3.14, # Sentiment score between -1.0 (negative sentiment) and 1.0 (positive
660 # sentiment).
661 },
662 },
663 &quot;action&quot;: &quot;A String&quot;, # The action name from the matched intent.
664 &quot;allRequiredParamsPresent&quot;: True or False, # This field is set to:
665 #
666 # - `false` if the matched intent has required parameters and not all of
667 # the required parameter values have been collected.
668 # - `true` if all required parameter values have been collected, or if the
669 # matched intent doesn&#x27;t contain any required parameters.
670 &quot;fulfillmentMessages&quot;: [ # The collection of rich messages to present to the user.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700671 { # Corresponds to the `Response` field in the Dialogflow console.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700672 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
673 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
674 { # The suggestion chip message that the user can tap to quickly post a reply
675 # to the conversation.
676 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
677 },
678 ],
679 },
680 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
681 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
682 &quot;mediaObjects&quot;: [ # Required. List of media objects.
683 { # Response media object for media content card.
684 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
685 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
686 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
687 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
688 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
689 },
690 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
691 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
692 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
693 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
694 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
695 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
696 },
697 },
698 ],
699 },
700 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
701 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to
702 # in [E.164 format](https://en.wikipedia.org/wiki/E.164).
703 #
704 # We currently only allow transferring to US numbers (+1xxxyyyzzzz).
705 },
706 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
707 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in # Synthesizes speech in Telephony Gateway.
708 # Telephony Gateway.
709 #
710 # Telephony Gateway takes the synthesizer settings from
711 # `DetectIntentResponse.output_audio_config` which can either be set
712 # at request-level or can come from the agent-level synthesizer config.
713 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
714 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see
715 # [SSML](https://developers.google.com/actions/reference/ssml).
716 },
717 &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.
718 # or website associated with this agent.
719 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
720 # suggestion chip.
721 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
722 },
723 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
724 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
Bu Sun Kim65020912020-05-20 12:08:20 -0700725 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700726 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700727 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
728 },
729 &quot;card&quot;: { # The card response message. # Displays a card.
730 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
731 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
732 { # Optional. Contains information about a button.
733 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
734 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
735 # open.
736 },
737 ],
738 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
739 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
740 },
741 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
742 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
743 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
744 &quot;items&quot;: [ # Required. List items.
745 { # An item in the list.
746 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
747 # dialog.
748 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
749 # item in dialog.
750 &quot;A String&quot;,
751 ],
752 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
753 # response is given.
754 },
755 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
756 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
757 &quot;image&quot;: { # The image response message. # Optional. The image to display.
758 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
759 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
760 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
761 },
762 },
763 ],
764 },
765 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
766 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
767 { # The button object that appears at the bottom of a card.
768 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
769 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
770 },
771 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
772 },
773 ],
774 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
775 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
776 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
777 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
778 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
779 },
780 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
781 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
782 },
783 &quot;image&quot;: { # The image response message. # Displays an image.
784 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
785 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
786 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700787 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700788 &quot;rbmCarouselRichCard&quot;: { # Carousel Rich Business Messaging (RBM) rich card. # Rich Business Messaging (RBM) carousel rich card response.
Dan O'Mearadd494642020-05-01 07:42:23 -0700789 #
790 # Rich cards allow you to respond to users with more vivid content, e.g.
791 # with media and suggestions.
792 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700793 # If you want to show a single card with more control over the layout,
794 # please use RbmStandaloneCard instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700795 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
Bu Sun Kim65020912020-05-20 12:08:20 -0700796 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least
Dan O'Mearadd494642020-05-01 07:42:23 -0700797 # 2 cards and at most 10.
798 { # Rich Business Messaging (RBM) Card content
Bu Sun Kim65020912020-05-20 12:08:20 -0700799 &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 -0700800 # be set. Media (image, GIF or a video) to include in the card.
801 # The following media-types are currently supported:
802 #
803 # Image Types
804 #
805 # * image/jpeg
Bu Sun Kim65020912020-05-20 12:08:20 -0700806 # * image/jpg&#x27;
Dan O'Mearadd494642020-05-01 07:42:23 -0700807 # * image/gif
808 # * image/png
809 #
810 # Video Types
811 #
812 # * video/h263
813 # * video/m4v
814 # * video/mp4
815 # * video/mpeg
816 # * video/mpeg4
817 # * video/webm
Bu Sun Kim65020912020-05-20 12:08:20 -0700818 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700819 # within a rich card with a vertical layout.
Dan O'Mearadd494642020-05-01 07:42:23 -0700820 # For a standalone card with horizontal layout, height is not
821 # customizable, and this field is ignored.
Bu Sun Kim65020912020-05-20 12:08:20 -0700822 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
823 # determines the MIME type of the file from the content-type field in
824 # the HTTP headers when the platform fetches the file. The content-type
825 # field must be present and accurate in the HTTP response from the URL.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700826 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
827 # provide a thumbnail URI, the RBM platform displays a blank
828 # placeholder thumbnail until the user&#x27;s device downloads the file.
829 # Depending on the user&#x27;s setting, the file may not download
830 # automatically and may require the user to tap a download button.
Dan O'Mearadd494642020-05-01 07:42:23 -0700831 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700832 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
833 #
834 # At least one of the title, description or media must be set.
835 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
836 #
837 # At least one of the title, description or media must be set.
Bu Sun Kim65020912020-05-20 12:08:20 -0700838 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
Dan O'Mearadd494642020-05-01 07:42:23 -0700839 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
840 # easily select/click a predefined response or perform an action (like
841 # opening a web uri).
Bu Sun Kim65020912020-05-20 12:08:20 -0700842 &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 -0700843 # can choose from the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700844 &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
845 # If the user has an app installed that is
846 # registered as the default handler for the URL, then this app will be
847 # opened instead, and its icon will be used in the suggested action UI.
848 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
849 },
850 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
851 # to send back to the agent.
852 },
853 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700854 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700855 # but does not dial automatically.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700856 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
857 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
858 # format. An example of a correctly formatted phone number:
859 # +15556767888.
860 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700861 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
862 # when the user taps the suggested action. This data will be also
863 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700864 },
865 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
866 # instead of typing in their own response.
867 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
868 # when the user taps the suggested reply. This data will be also
869 # forwarded to webhook to allow performing custom business logic.
870 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Dan O'Mearadd494642020-05-01 07:42:23 -0700871 },
872 },
873 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700874 },
875 ],
876 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700877 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
878 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
Bu Sun Kim65020912020-05-20 12:08:20 -0700879 { # The button object that appears at the bottom of a card.
880 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
881 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
882 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700883 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -0700884 },
885 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700886 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
Bu Sun Kim65020912020-05-20 12:08:20 -0700887 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
888 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
889 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
890 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
891 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700892 &quot;rows&quot;: [ # Optional. Rows in this table of data.
893 { # Row of TableCard.
894 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
895 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
896 { # Cell of TableCardRow.
897 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
898 },
899 ],
900 },
901 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700902 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700903 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
904 { # Column properties for TableCard.
905 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
906 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
907 },
908 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700909 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700910 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response.
911 #
912 # RBM allows businesses to send enriched and branded versions of SMS. See
913 # https://jibe.google.com/business-messaging.
914 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
915 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
916 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
917 # easily select/click a predefined response or perform an action (like
918 # opening a web uri).
919 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
920 # can choose from the card.
921 &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
922 # If the user has an app installed that is
923 # registered as the default handler for the URL, then this app will be
924 # opened instead, and its icon will be used in the suggested action UI.
925 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
926 },
927 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
928 # to send back to the agent.
929 },
930 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
931 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
932 # but does not dial automatically.
933 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
934 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
935 # format. An example of a correctly formatted phone number:
936 # +15556767888.
937 },
938 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
939 # when the user taps the suggested action. This data will be also
940 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kim65020912020-05-20 12:08:20 -0700941 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700942 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
943 # instead of typing in their own response.
944 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
945 # when the user taps the suggested reply. This data will be also
946 # forwarded to webhook to allow performing custom business logic.
947 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700948 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700949 },
950 ],
951 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700952 &quot;payload&quot;: { # A custom platform-specific response.
953 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Bu Sun Kim65020912020-05-20 12:08:20 -0700954 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700955 &quot;text&quot;: { # The text response message. # Returns a text response.
956 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
957 &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -0700958 ],
959 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700960 &quot;rbmStandaloneRichCard&quot;: { # Standalone Rich Business Messaging (RBM) rich card. # Standalone Rich Business Messaging (RBM) rich card response.
Dan O'Mearadd494642020-05-01 07:42:23 -0700961 #
962 # Rich cards allow you to respond to users with more vivid content, e.g.
963 # with media and suggestions.
964 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700965 # You can group multiple rich cards into one using RbmCarouselCard but
966 # carousel cards will give you less control over the card layout.
Bu Sun Kim65020912020-05-20 12:08:20 -0700967 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
Bu Sun Kim65020912020-05-20 12:08:20 -0700968 &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 -0700969 # be set. Media (image, GIF or a video) to include in the card.
970 # The following media-types are currently supported:
971 #
972 # Image Types
973 #
974 # * image/jpeg
Bu Sun Kim65020912020-05-20 12:08:20 -0700975 # * image/jpg&#x27;
Dan O'Mearadd494642020-05-01 07:42:23 -0700976 # * image/gif
977 # * image/png
978 #
979 # Video Types
980 #
981 # * video/h263
982 # * video/m4v
983 # * video/mp4
984 # * video/mpeg
985 # * video/mpeg4
986 # * video/webm
Bu Sun Kim65020912020-05-20 12:08:20 -0700987 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700988 # within a rich card with a vertical layout.
Dan O'Mearadd494642020-05-01 07:42:23 -0700989 # For a standalone card with horizontal layout, height is not
990 # customizable, and this field is ignored.
Bu Sun Kim65020912020-05-20 12:08:20 -0700991 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
992 # determines the MIME type of the file from the content-type field in
993 # the HTTP headers when the platform fetches the file. The content-type
994 # field must be present and accurate in the HTTP response from the URL.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700995 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
996 # provide a thumbnail URI, the RBM platform displays a blank
997 # placeholder thumbnail until the user&#x27;s device downloads the file.
998 # Depending on the user&#x27;s setting, the file may not download
999 # automatically and may require the user to tap a download button.
Dan O'Mearadd494642020-05-01 07:42:23 -07001000 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001001 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
1002 #
1003 # At least one of the title, description or media must be set.
1004 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
1005 #
1006 # At least one of the title, description or media must be set.
Bu Sun Kim65020912020-05-20 12:08:20 -07001007 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
Dan O'Mearadd494642020-05-01 07:42:23 -07001008 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
1009 # easily select/click a predefined response or perform an action (like
1010 # opening a web uri).
Bu Sun Kim65020912020-05-20 12:08:20 -07001011 &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 -07001012 # can choose from the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001013 &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
1014 # If the user has an app installed that is
1015 # registered as the default handler for the URL, then this app will be
1016 # opened instead, and its icon will be used in the suggested action UI.
1017 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1018 },
1019 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
1020 # to send back to the agent.
1021 },
1022 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001023 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001024 # but does not dial automatically.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001025 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
1026 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
1027 # format. An example of a correctly formatted phone number:
1028 # +15556767888.
1029 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001030 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1031 # when the user taps the suggested action. This data will be also
1032 # forwarded to webhook to allow performing custom business logic.
Dan O'Mearadd494642020-05-01 07:42:23 -07001033 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001034 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
1035 # instead of typing in their own response.
Bu Sun Kim65020912020-05-20 12:08:20 -07001036 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1037 # when the user taps the suggested reply. This data will be also
1038 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001039 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07001040 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001041 },
1042 ],
1043 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001044 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
1045 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal.
1046 # Image preview alignment for standalone cards with horizontal layout.
1047 },
1048 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
1049 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to
1050 # play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single
1051 # channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz.
Bu Sun Kim65020912020-05-20 12:08:20 -07001052 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001053 # This object must be readable by the `service-&lt;Project
1054 # Number&gt;@gcp-sa-dialogflow.iam.gserviceaccount.com` service account
1055 # where &lt;Project Number&gt; is the number of the Telephony Gateway project
1056 # (usually the same as the Dialogflow agent project). If the Google Cloud
1057 # Storage bucket is in the Telephony Gateway project, this permission is
1058 # added by default when enabling the Dialogflow V2 API.
Bu Sun Kim65020912020-05-20 12:08:20 -07001059 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001060 # For audio from other sources, consider using the
1061 # `TelephonySynthesizeSpeech` message with SSML.
1062 },
1063 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
1064 &quot;items&quot;: [ # Required. Carousel items.
1065 { # An item in the carousel.
1066 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1067 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1068 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1069 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
Bu Sun Kim65020912020-05-20 12:08:20 -07001070 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001071 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
1072 # dialog.
1073 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
1074 # item in dialog.
1075 &quot;A String&quot;,
1076 ],
1077 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
1078 # response is given.
1079 },
1080 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
1081 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
1082 },
1083 ],
1084 },
1085 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # Returns a voice or text-only response for Actions on Google.
1086 # This message in `QueryResult.fulfillment_messages` and
1087 # `WebhookResponse.fulfillment_messages` should contain only one
1088 # `SimpleResponse`.
1089 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
1090 { # The simple response message containing speech or text.
1091 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
1092 # response to the user in the SSML format. Mutually exclusive with
1093 # text_to_speech.
1094 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
1095 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
1096 # speech output. Mutually exclusive with ssml.
1097 },
1098 ],
1099 },
1100 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
1101 # https://developers.google.com/actions/assistant/responses#browsing_carousel
1102 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
1103 # items.
1104 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
1105 # items, maximum of ten.
1106 { # Browsing carousel tile
1107 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
1108 # Card. Maximum of one line of text.
1109 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
1110 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
1111 # text.
1112 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
1113 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1114 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1115 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1116 },
1117 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
1118 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
1119 # the URL. Defaults to opening via web browser.
1120 &quot;url&quot;: &quot;A String&quot;, # Required. URL
Bu Sun Kim65020912020-05-20 12:08:20 -07001121 },
1122 },
1123 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001124 },
1125 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001126 ],
1127 &quot;intent&quot;: { # An intent categorizes an end-user&#x27;s intention for one conversation turn. For # The intent that matched the conversational query. Some, not
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001128 # all fields are filled in this message, including but not limited to:
Dan O'Mearadd494642020-05-01 07:42:23 -07001129 # `name`, `display_name`, `end_interaction` and `is_fallback`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001130 # each agent, you define many intents, where your combined intents can handle a
1131 # complete conversation. When an end-user writes or says something, referred to
1132 # as an end-user expression or end-user input, Dialogflow matches the end-user
1133 # input to the best intent in your agent. Matching an intent is also known as
1134 # intent classification.
1135 #
1136 # For more information, see the [intent
1137 # guide](https://cloud.google.com/dialogflow/docs/intents-overview).
Bu Sun Kim65020912020-05-20 12:08:20 -07001138 &quot;endInteraction&quot;: True or False, # Optional. Indicates that this intent ends an interaction. Some integrations
1139 # (e.g., Actions on Google or Dialogflow phone gateway) use this information
1140 # to close interaction with an end user. Default is false.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001141 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent.
1142 # Note: The action name must not contain whitespaces.
1143 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
Bu Sun Kim65020912020-05-20 12:08:20 -07001144 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent
1145 # is matched. Context messages in this collection should not set the
1146 # parameters field. Setting the `lifespan_count` to 0 will reset the context
1147 # when the intent is matched.
1148 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001149 { # Dialogflow contexts are similar to natural language context. If a person says
1150 # to you &quot;they are orange&quot;, you need context in order to understand what &quot;they&quot;
1151 # is referring to. Similarly, for Dialogflow to handle an end-user expression
1152 # like that, it needs to be provided with context in order to correctly match
1153 # an intent.
1154 #
1155 # Using contexts, you can control the flow of a conversation. You can configure
1156 # contexts for an intent by setting input and output contexts, which are
1157 # identified by string names. When an intent is matched, any configured output
1158 # contexts for that intent become active. While any contexts are active,
1159 # Dialogflow is more likely to match intents that are configured with input
1160 # contexts that correspond to the currently active contexts.
1161 #
1162 # For more information about context, see the
1163 # [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview).
1164 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
1165 #
1166 # Depending on your protocol or client library language, this is a
1167 # map, associative array, symbol table, dictionary, or JSON object
1168 # composed of a collection of (MapKey, MapValue) pairs:
1169 #
1170 # - MapKey type: string
1171 # - MapKey value: parameter name
1172 # - MapValue type:
1173 # - If parameter&#x27;s entity type is a composite entity: map
1174 # - Else: string or number, depending on parameter value type
1175 # - MapValue value:
1176 # - If parameter&#x27;s entity type is a composite entity:
1177 # map from composite entity property names to property values
1178 # - Else: parameter value
1179 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1180 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001181 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
1182 # context expires. The default is `0`. If set to `0`, the context expires
1183 # immediately. Contexts expire automatically after 20 minutes if there
1184 # are no matching queries.
1185 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
1186 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
1187 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
1188 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
1189 #
1190 # The `Context ID` is always converted to lowercase, may only contain
1191 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
1192 #
1193 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
1194 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
1195 #
1196 # The following context names are reserved for internal use by Dialogflow.
1197 # You should not use these contexts or create contexts with these names:
1198 #
1199 # * `__system_counters__`
1200 # * `*_id_dialog_context`
1201 # * `*_dialog_params_size`
Bu Sun Kim65020912020-05-20 12:08:20 -07001202 },
1203 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001204 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
1205 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current
1206 # session when this intent is matched.
1207 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
1208 # Note: If `ml_disabled` setting is set to true, then this intent is not
1209 # taken into account during inference in `ML ONLY` match mode. Also,
1210 # auto-markup in the UI is turned off.
1211 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Output only. The unique identifier of the root intent in the chain of
1212 # followup intents. It identifies the correct followup intents chain for
1213 # this intent.
1214 #
1215 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
1216 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is
1217 # trained on.
1218 { # Represents an example that the agent is trained on.
1219 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
1220 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
1221 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts.
1222 # The parts are concatenated in order to form the training phrase.
1223 #
1224 # Note: The API does not automatically annotate training phrases like the
1225 # Dialogflow Console does.
1226 #
1227 # Note: Do not forget to include whitespace at part boundaries,
1228 # so the training phrase is well formatted when the parts are concatenated.
1229 #
1230 # If the training phrase does not need to be annotated with parameters,
1231 # you just need a single part with only the Part.text field set.
1232 #
1233 # If you want to annotate the training phrase, you must create multiple
1234 # parts, where the fields of each part are populated in one of two ways:
1235 #
1236 # - `Part.text` is set to a part of the phrase that has no parameters.
1237 # - `Part.text` is set to a part of the phrase that you want to annotate,
1238 # and the `entity_type`, `alias`, and `user_defined` fields are all
1239 # set.
1240 { # Represents a part of a training phrase.
1241 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated.
1242 # This field is set to true when the Dialogflow Console is used to
1243 # manually annotate the part. When creating an annotated part with the
1244 # API, you must set this to true.
1245 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the
1246 # annotated part of the example.
1247 # This field is required for annotated parts of the training phrase.
1248 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`.
1249 # This field is required for annotated parts of the training phrase.
1250 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
1251 },
1252 ],
1253 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to
1254 # the intent. Each time a developer adds an existing sample by editing an
1255 # intent or training, this counter is increased.
1256 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001257 ],
1258 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the
1259 # `Response` field in the Dialogflow console.
1260 { # Corresponds to the `Response` field in the Dialogflow console.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001261 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
1262 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
1263 { # The suggestion chip message that the user can tap to quickly post a reply
1264 # to the conversation.
1265 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
1266 },
1267 ],
1268 },
1269 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
1270 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
1271 &quot;mediaObjects&quot;: [ # Required. List of media objects.
1272 { # Response media object for media content card.
1273 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
1274 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
1275 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1276 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1277 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1278 },
1279 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
1280 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
1281 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
1282 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1283 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1284 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1285 },
1286 },
1287 ],
1288 },
1289 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
1290 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to
1291 # in [E.164 format](https://en.wikipedia.org/wiki/E.164).
1292 #
1293 # We currently only allow transferring to US numbers (+1xxxyyyzzzz).
1294 },
1295 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
1296 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in # Synthesizes speech in Telephony Gateway.
1297 # Telephony Gateway.
1298 #
1299 # Telephony Gateway takes the synthesizer settings from
1300 # `DetectIntentResponse.output_audio_config` which can either be set
1301 # at request-level or can come from the agent-level synthesizer config.
1302 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
1303 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see
1304 # [SSML](https://developers.google.com/actions/reference/ssml).
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;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
1309 # suggestion chip.
1310 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
1311 },
1312 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
1313 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
Bu Sun Kim65020912020-05-20 12:08:20 -07001314 &quot;A String&quot;,
1315 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001316 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
1317 },
1318 &quot;card&quot;: { # The card response message. # Displays a card.
1319 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1320 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1321 { # Optional. Contains information about a button.
1322 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
1323 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
1324 # open.
1325 },
1326 ],
1327 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
1328 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1329 },
1330 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
1331 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
1332 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
1333 &quot;items&quot;: [ # Required. List items.
1334 { # An item in the list.
1335 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
1336 # dialog.
1337 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
1338 # item in dialog.
1339 &quot;A String&quot;,
1340 ],
1341 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
1342 # response is given.
1343 },
1344 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
1345 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
1346 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1347 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1348 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1349 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1350 },
1351 },
1352 ],
1353 },
1354 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
1355 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1356 { # The button object that appears at the bottom of a card.
1357 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1358 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1359 },
1360 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1361 },
1362 ],
1363 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1364 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
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 },
1369 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1370 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
1371 },
1372 &quot;image&quot;: { # The image response message. # Displays an image.
1373 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1374 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1375 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
Bu Sun Kim65020912020-05-20 12:08:20 -07001376 },
1377 &quot;rbmCarouselRichCard&quot;: { # Carousel Rich Business Messaging (RBM) rich card. # Rich Business Messaging (RBM) carousel rich card response.
1378 #
1379 # Rich cards allow you to respond to users with more vivid content, e.g.
1380 # with media and suggestions.
1381 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001382 # If you want to show a single card with more control over the layout,
1383 # please use RbmStandaloneCard instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001384 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
Bu Sun Kim65020912020-05-20 12:08:20 -07001385 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least
1386 # 2 cards and at most 10.
1387 { # Rich Business Messaging (RBM) Card content
Bu Sun Kim65020912020-05-20 12:08:20 -07001388 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
1389 # be set. Media (image, GIF or a video) to include in the card.
1390 # The following media-types are currently supported:
1391 #
1392 # Image Types
1393 #
1394 # * image/jpeg
1395 # * image/jpg&#x27;
1396 # * image/gif
1397 # * image/png
1398 #
1399 # Video Types
1400 #
1401 # * video/h263
1402 # * video/m4v
1403 # * video/mp4
1404 # * video/mpeg
1405 # * video/mpeg4
1406 # * video/webm
Bu Sun Kim65020912020-05-20 12:08:20 -07001407 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001408 # within a rich card with a vertical layout.
Bu Sun Kim65020912020-05-20 12:08:20 -07001409 # For a standalone card with horizontal layout, height is not
1410 # customizable, and this field is ignored.
1411 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
1412 # determines the MIME type of the file from the content-type field in
1413 # the HTTP headers when the platform fetches the file. The content-type
1414 # field must be present and accurate in the HTTP response from the URL.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001415 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -07001420 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001421 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
1422 #
1423 # At least one of the title, description or media must be set.
1424 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
1425 #
1426 # At least one of the title, description or media must be set.
Bu Sun Kim65020912020-05-20 12:08:20 -07001427 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
1428 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
1429 # easily select/click a predefined response or perform an action (like
1430 # opening a web uri).
Bu Sun Kim65020912020-05-20 12:08:20 -07001431 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
1432 # can choose from the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001433 &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
1434 # If the user has an app installed that is
1435 # registered as the default handler for the URL, then this app will be
1436 # opened instead, and its icon will be used in the suggested action UI.
1437 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1438 },
1439 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
1440 # to send back to the agent.
1441 },
1442 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001443 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001444 # but does not dial automatically.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001445 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
1446 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
1447 # format. An example of a correctly formatted phone number:
1448 # +15556767888.
1449 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001450 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1451 # when the user taps the suggested action. This data will be also
1452 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001453 },
1454 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
1455 # instead of typing in their own response.
1456 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1457 # when the user taps the suggested reply. This data will be also
1458 # forwarded to webhook to allow performing custom business logic.
1459 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07001460 },
1461 },
1462 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001463 },
1464 ],
1465 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001466 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
1467 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07001468 { # The button object that appears at the bottom of a card.
1469 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1470 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1471 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001472 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -07001473 },
1474 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001475 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
Bu Sun Kim65020912020-05-20 12:08:20 -07001476 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
1477 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1478 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1479 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1480 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001481 &quot;rows&quot;: [ # Optional. Rows in this table of data.
1482 { # Row of TableCard.
1483 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
1484 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
1485 { # Cell of TableCardRow.
1486 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
1487 },
1488 ],
1489 },
1490 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001491 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001492 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
1493 { # Column properties for TableCard.
1494 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
1495 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
1496 },
1497 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001498 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001499 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response.
1500 #
1501 # RBM allows businesses to send enriched and branded versions of SMS. See
1502 # https://jibe.google.com/business-messaging.
1503 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
1504 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
1505 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
1506 # easily select/click a predefined response or perform an action (like
1507 # opening a web uri).
1508 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
1509 # can choose from the card.
1510 &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
1511 # If the user has an app installed that is
1512 # registered as the default handler for the URL, then this app will be
1513 # opened instead, and its icon will be used in the suggested action UI.
1514 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1515 },
1516 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
1517 # to send back to the agent.
1518 },
1519 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1520 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
1521 # but does not dial automatically.
1522 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
1523 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
1524 # format. An example of a correctly formatted phone number:
1525 # +15556767888.
1526 },
1527 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1528 # when the user taps the suggested action. This data will be also
1529 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kim65020912020-05-20 12:08:20 -07001530 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001531 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
1532 # instead of typing in their own response.
1533 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1534 # when the user taps the suggested reply. This data will be also
1535 # forwarded to webhook to allow performing custom business logic.
1536 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001537 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001538 },
1539 ],
1540 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001541 &quot;payload&quot;: { # A custom platform-specific response.
1542 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Bu Sun Kim65020912020-05-20 12:08:20 -07001543 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001544 &quot;text&quot;: { # The text response message. # Returns a text response.
1545 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
1546 &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -07001547 ],
1548 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001549 &quot;rbmStandaloneRichCard&quot;: { # Standalone Rich Business Messaging (RBM) rich card. # Standalone Rich Business Messaging (RBM) rich card response.
1550 #
1551 # Rich cards allow you to respond to users with more vivid content, e.g.
1552 # with media and suggestions.
1553 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001554 # You can group multiple rich cards into one using RbmCarouselCard but
1555 # carousel cards will give you less control over the card layout.
Bu Sun Kim65020912020-05-20 12:08:20 -07001556 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
Bu Sun Kim65020912020-05-20 12:08:20 -07001557 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
1558 # be set. Media (image, GIF or a video) to include in the card.
1559 # The following media-types are currently supported:
1560 #
1561 # Image Types
1562 #
1563 # * image/jpeg
1564 # * image/jpg&#x27;
1565 # * image/gif
1566 # * image/png
1567 #
1568 # Video Types
1569 #
1570 # * video/h263
1571 # * video/m4v
1572 # * video/mp4
1573 # * video/mpeg
1574 # * video/mpeg4
1575 # * video/webm
Bu Sun Kim65020912020-05-20 12:08:20 -07001576 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001577 # within a rich card with a vertical layout.
Bu Sun Kim65020912020-05-20 12:08:20 -07001578 # For a standalone card with horizontal layout, height is not
1579 # customizable, and this field is ignored.
1580 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
1581 # determines the MIME type of the file from the content-type field in
1582 # the HTTP headers when the platform fetches the file. The content-type
1583 # field must be present and accurate in the HTTP response from the URL.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001584 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
1585 # provide a thumbnail URI, the RBM platform displays a blank
1586 # placeholder thumbnail until the user&#x27;s device downloads the file.
1587 # Depending on the user&#x27;s setting, the file may not download
1588 # automatically and may require the user to tap a download button.
Bu Sun Kim65020912020-05-20 12:08:20 -07001589 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001590 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
1591 #
1592 # At least one of the title, description or media must be set.
1593 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
1594 #
1595 # At least one of the title, description or media must be set.
Bu Sun Kim65020912020-05-20 12:08:20 -07001596 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
1597 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
1598 # easily select/click a predefined response or perform an action (like
1599 # opening a web uri).
Bu Sun Kim65020912020-05-20 12:08:20 -07001600 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
1601 # can choose from the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001602 &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
1603 # If the user has an app installed that is
1604 # registered as the default handler for the URL, then this app will be
1605 # opened instead, and its icon will be used in the suggested action UI.
1606 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1607 },
1608 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
1609 # to send back to the agent.
1610 },
1611 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001612 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001613 # but does not dial automatically.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001614 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
1615 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
1616 # format. An example of a correctly formatted phone number:
1617 # +15556767888.
1618 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001619 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1620 # when the user taps the suggested action. This data will be also
1621 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001622 },
1623 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
1624 # instead of typing in their own response.
1625 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1626 # when the user taps the suggested reply. This data will be also
1627 # forwarded to webhook to allow performing custom business logic.
1628 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07001629 },
1630 },
1631 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001632 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001633 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
1634 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal.
1635 # Image preview alignment for standalone cards with horizontal layout.
Bu Sun Kim65020912020-05-20 12:08:20 -07001636 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001637 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
1638 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to
1639 # play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single
1640 # channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz.
1641 #
1642 # This object must be readable by the `service-&lt;Project
1643 # Number&gt;@gcp-sa-dialogflow.iam.gserviceaccount.com` service account
1644 # where &lt;Project Number&gt; is the number of the Telephony Gateway project
1645 # (usually the same as the Dialogflow agent project). If the Google Cloud
1646 # Storage bucket is in the Telephony Gateway project, this permission is
1647 # added by default when enabling the Dialogflow V2 API.
1648 #
1649 # For audio from other sources, consider using the
1650 # `TelephonySynthesizeSpeech` message with SSML.
1651 },
1652 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
1653 &quot;items&quot;: [ # Required. Carousel items.
1654 { # An item in the carousel.
1655 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1656 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1657 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1658 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1659 },
1660 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
1661 # dialog.
1662 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
1663 # item in dialog.
1664 &quot;A String&quot;,
1665 ],
1666 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
1667 # response is given.
1668 },
1669 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
1670 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
1671 },
1672 ],
1673 },
1674 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # Returns a voice or text-only response for Actions on Google.
1675 # This message in `QueryResult.fulfillment_messages` and
1676 # `WebhookResponse.fulfillment_messages` should contain only one
1677 # `SimpleResponse`.
1678 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
1679 { # The simple response message containing speech or text.
1680 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
1681 # response to the user in the SSML format. Mutually exclusive with
1682 # text_to_speech.
1683 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
1684 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
1685 # speech output. Mutually exclusive with ssml.
1686 },
1687 ],
1688 },
1689 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
1690 # https://developers.google.com/actions/assistant/responses#browsing_carousel
1691 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
1692 # items.
1693 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
1694 # items, maximum of ten.
1695 { # Browsing carousel tile
1696 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
1697 # Card. Maximum of one line of text.
1698 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
1699 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
1700 # text.
1701 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
1702 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1703 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1704 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1705 },
1706 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
1707 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
1708 # the URL. Defaults to opening via web browser.
1709 &quot;url&quot;: &quot;A String&quot;, # Required. URL
1710 },
1711 },
1712 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001713 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001714 },
1715 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001716 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Optional. The unique identifier of the parent intent in the
1717 # chain of followup intents. You can set this field when creating an intent,
1718 # for example with CreateIntent or
1719 # BatchUpdateIntents, in order to make this
1720 # intent a followup intent.
1721 #
1722 # It identifies the parent followup intent.
1723 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
1724 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
1725 { # Represents intent parameters.
1726 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
1727 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is,
1728 # whether the intent cannot be completed without collecting the parameter
1729 # value.
1730 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the
1731 # user in order to collect a value for the parameter.
1732 &quot;A String&quot;,
1733 ],
1734 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
1735 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that
1736 # describes values of the parameter. If the parameter is
1737 # required, this must be provided.
1738 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
1739 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be:
1740 #
1741 # - a constant string,
1742 # - a parameter value defined as `$parameter_name`,
1743 # - an original parameter value defined as `$parameter_name.original`,
1744 # - a parameter value from some context defined as
1745 # `#context_name.parameter_name`.
1746 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty
1747 # result.
1748 # Default values can be extracted from contexts by using the following
1749 # syntax: `#context_name.parameter_name`.
1750 },
1751 ],
1752 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent.
1753 # If the collection of input contexts is not empty, all of the contexts must
1754 # be present in the active user session for an event to trigger this intent.
1755 # Event names are limited to 150 characters.
1756 &quot;A String&quot;,
1757 ],
1758 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
Bu Sun Kim65020912020-05-20 12:08:20 -07001759 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent.
1760 # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
1761 # methods.
Dan O'Mearadd494642020-05-01 07:42:23 -07001762 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001763 &quot;mlEnabled&quot;: True or False, # Optional. Indicates whether Machine Learning is enabled for the intent.
1764 # Note: If `ml_enabled` setting is set to false, then this intent is not
1765 # taken into account during inference in `ML ONLY` match mode. Also,
1766 # auto-markup in the UI is turned off.
1767 # DEPRECATED! Please use `ml_disabled` field instead.
1768 # NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false,
1769 # then the default value is determined as follows:
1770 # - Before April 15th, 2018 the default is:
1771 # ml_enabled = false / ml_disabled = true.
1772 # - After April 15th, 2018 the default is:
1773 # ml_enabled = true / ml_disabled = false.
1774 &quot;followupIntentInfo&quot;: [ # Output only. Information about all followup intents that have this intent as
1775 # a direct or indirect parent. We populate this field only in the output.
1776 { # Represents a single followup intent in the chain.
1777 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent.
1778 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
1779 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent.
1780 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
1781 },
1782 ],
1783 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be
1784 # copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
1785 &quot;A String&quot;,
1786 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001787 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001788 # triggered.
Dan O'Mearadd494642020-05-01 07:42:23 -07001789 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001790 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001791 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001792 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher
1793 # priorities.
1794 #
1795 # - If the supplied value is unspecified or 0, the service
1796 # translates the value to 500,000, which corresponds to the
1797 # `Normal` priority in the console.
1798 # - If the supplied value is negative, the intent is ignored
1799 # in runtime detect intent requests.
1800 },
1801 &quot;webhookSource&quot;: &quot;A String&quot;, # If the query was fulfilled by a webhook call, this field is set to the
1802 # value of the `source` field returned in the webhook response.
1803 &quot;knowledgeAnswers&quot;: { # Represents the result of querying a Knowledge base. # The result from Knowledge Connector (if any), ordered by decreasing
1804 # `KnowledgeAnswers.match_confidence`.
1805 &quot;answers&quot;: [ # A list of answers from Knowledge Connector.
1806 { # An answer from Knowledge Connector.
1807 &quot;source&quot;: &quot;A String&quot;, # Indicates which Knowledge Document this answer was extracted from.
1808 # Format: `projects/&lt;Project ID&gt;/knowledgeBases/&lt;Knowledge Base
1809 # ID&gt;/documents/&lt;Document ID&gt;`.
1810 &quot;matchConfidence&quot;: 3.14, # The system&#x27;s confidence score that this Knowledge answer is a good match
1811 # for this conversational query.
1812 # The range is from 0.0 (completely uncertain) to 1.0 (completely certain).
1813 # Note: The confidence score is likely to vary somewhat (possibly even for
1814 # identical requests), as the underlying model is under constant
1815 # improvement. It may be deprecated in the future. We recommend using
1816 # `match_confidence_level` which should be generally more stable.
1817 &quot;answer&quot;: &quot;A String&quot;, # The piece of text from the `source` knowledge base document that answers
1818 # this conversational query.
1819 &quot;faqQuestion&quot;: &quot;A String&quot;, # The corresponding FAQ question if the answer was extracted from a FAQ
1820 # Document, empty otherwise.
1821 &quot;matchConfidenceLevel&quot;: &quot;A String&quot;, # The system&#x27;s confidence level that this knowledge answer is a good match
1822 # for this conversational query.
1823 # NOTE: The confidence level for a given `&lt;query, answer&gt;` pair may change
1824 # without notice, as it depends on models that are constantly being
1825 # improved. However, it will change less frequently than the confidence
1826 # score below, and should be preferred for referencing the quality of an
1827 # answer.
Bu Sun Kim65020912020-05-20 12:08:20 -07001828 },
1829 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001830 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001831 },
1832 ],
1833 &quot;outputAudioConfig&quot;: { # Instructs the speech synthesizer how to generate the output audio content. # The config used by the speech synthesizer to generate the output audio.
1834 # If this audio config is supplied in a request, it overrides all existing
1835 # text-to-speech settings applied to the agent.
1836 &quot;synthesizeSpeechConfig&quot;: { # Configuration of how speech should be synthesized. # Configuration of how speech should be synthesized.
1837 &quot;speakingRate&quot;: 3.14, # Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal
1838 # native speed supported by the specific voice. 2.0 is twice as fast, and
1839 # 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any
1840 # other values &lt; 0.25 or &gt; 4.0 will return an error.
1841 &quot;pitch&quot;: 3.14, # Optional. Speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20
1842 # semitones from the original pitch. -20 means decrease 20 semitones from the
1843 # original pitch.
1844 &quot;volumeGainDb&quot;: 3.14, # Optional. Volume gain (in dB) of the normal native volume supported by the
1845 # specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of
1846 # 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB)
1847 # will play at approximately half the amplitude of the normal native signal
1848 # amplitude. A value of +6.0 (dB) will play at approximately twice the
1849 # amplitude of the normal native signal amplitude. We strongly recommend not
1850 # to exceed +10 (dB) as there&#x27;s usually no effective increase in loudness for
1851 # any value greater than that.
1852 &quot;voice&quot;: { # Description of which voice to use for speech synthesis. # Optional. The desired voice of the synthesized audio.
1853 &quot;ssmlGender&quot;: &quot;A String&quot;, # Optional. The preferred gender of the voice. If not set, the service will
1854 # choose a voice based on the other parameters such as language_code and
1855 # name. Note that this is only a preference, not requirement. If a
1856 # voice of the appropriate gender is not available, the synthesizer should
1857 # substitute a voice with a different gender rather than failing the request.
1858 &quot;name&quot;: &quot;A String&quot;, # Optional. The name of the voice. If not set, the service will choose a
1859 # voice based on the other parameters such as language_code and
1860 # ssml_gender.
1861 },
1862 &quot;effectsProfileId&quot;: [ # Optional. An identifier which selects &#x27;audio effects&#x27; profiles that are
1863 # applied on (post synthesized) text to speech. Effects are applied on top of
1864 # each other in the order they are given.
1865 &quot;A String&quot;,
1866 ],
1867 },
1868 &quot;audioEncoding&quot;: &quot;A String&quot;, # Required. Audio encoding of the synthesized audio content.
1869 &quot;sampleRateHertz&quot;: 42, # The synthesis sample rate (in hertz) for this audio. If not
1870 # provided, then the synthesizer will use the default sample rate based on
1871 # the audio encoding. If this is different from the voice&#x27;s natural sample
1872 # rate, then the synthesizer will honor this request by converting to the
1873 # desired sample rate (which might result in worse audio quality).
1874 },
1875 &quot;outputAudio&quot;: &quot;A String&quot;, # The audio data bytes encoded as specified in the request.
1876 # Note: The output audio is generated based on the values of default platform
1877 # text responses found in the `query_result.fulfillment_messages` field. If
1878 # multiple default text responses exist, they will be concatenated when
1879 # generating audio. If no default platform text responses exist, the
1880 # generated audio content will be empty.
1881 #
1882 # In some scenarios, multiple output audio fields may be present in the
1883 # response structure. In these cases, only the top-most-level audio output
1884 # has content.
1885 &quot;webhookStatus&quot;: { # The `Status` type defines a logical error model that is suitable for # Specifies the status of the webhook request.
1886 # different programming environments, including REST APIs and RPC APIs. It is
1887 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1888 # three pieces of data: error code, error message, and error details.
1889 #
1890 # You can find out more about this error model and how to work with it in the
1891 # [API Design Guide](https://cloud.google.com/apis/design/errors).
1892 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1893 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
1894 # message types for APIs to use.
1895 {
1896 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1897 },
1898 ],
1899 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1900 # user-facing error message should be localized and sent in the
1901 # google.rpc.Status.details field, or localized by the client.
1902 },
1903 &quot;queryResult&quot;: { # Represents the result of conversational query or event processing. # The selected results of the conversational query or event processing.
1904 # See `alternative_query_results` for additional potential results.
1905 &quot;fulfillmentText&quot;: &quot;A String&quot;, # The text to be pronounced to the user or shown on the screen.
1906 # Note: This is a legacy field, `fulfillment_messages` should be preferred.
1907 &quot;parameters&quot;: { # The collection of extracted parameters.
1908 #
1909 # Depending on your protocol or client library language, this is a
1910 # map, associative array, symbol table, dictionary, or JSON object
1911 # composed of a collection of (MapKey, MapValue) pairs:
1912 #
1913 # - MapKey type: string
1914 # - MapKey value: parameter name
1915 # - MapValue type:
1916 # - If parameter&#x27;s entity type is a composite entity: map
1917 # - Else: string or number, depending on parameter value type
1918 # - MapValue value:
1919 # - If parameter&#x27;s entity type is a composite entity:
1920 # map from composite entity property names to property values
1921 # - Else: parameter value
1922 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1923 },
1924 &quot;diagnosticInfo&quot;: { # Free-form diagnostic information for the associated detect intent request.
1925 # The fields of this data can change without notice, so you should not write
1926 # code that depends on its structure.
1927 # The data may contain:
1928 #
1929 # - webhook call latency
1930 # - webhook errors
1931 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1932 },
1933 &quot;languageCode&quot;: &quot;A String&quot;, # The language that was triggered during intent detection.
1934 # See [Language
1935 # Support](https://cloud.google.com/dialogflow/docs/reference/language)
1936 # for a list of the currently supported language codes.
1937 &quot;outputContexts&quot;: [ # The collection of output contexts. If applicable,
1938 # `output_contexts.parameters` contains entries with name
1939 # `&lt;parameter name&gt;.original` containing the original parameter values
1940 # before the query.
1941 { # Dialogflow contexts are similar to natural language context. If a person says
1942 # to you &quot;they are orange&quot;, you need context in order to understand what &quot;they&quot;
1943 # is referring to. Similarly, for Dialogflow to handle an end-user expression
1944 # like that, it needs to be provided with context in order to correctly match
1945 # an intent.
1946 #
1947 # Using contexts, you can control the flow of a conversation. You can configure
1948 # contexts for an intent by setting input and output contexts, which are
1949 # identified by string names. When an intent is matched, any configured output
1950 # contexts for that intent become active. While any contexts are active,
1951 # Dialogflow is more likely to match intents that are configured with input
1952 # contexts that correspond to the currently active contexts.
1953 #
1954 # For more information about context, see the
1955 # [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview).
1956 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
1957 #
1958 # Depending on your protocol or client library language, this is a
1959 # map, associative array, symbol table, dictionary, or JSON object
1960 # composed of a collection of (MapKey, MapValue) pairs:
1961 #
1962 # - MapKey type: string
1963 # - MapKey value: parameter name
1964 # - MapValue type:
1965 # - If parameter&#x27;s entity type is a composite entity: map
1966 # - Else: string or number, depending on parameter value type
1967 # - MapValue value:
1968 # - If parameter&#x27;s entity type is a composite entity:
1969 # map from composite entity property names to property values
1970 # - Else: parameter value
1971 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1972 },
1973 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
1974 # context expires. The default is `0`. If set to `0`, the context expires
1975 # immediately. Contexts expire automatically after 20 minutes if there
1976 # are no matching queries.
1977 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
1978 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
1979 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
1980 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
1981 #
1982 # The `Context ID` is always converted to lowercase, may only contain
1983 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
1984 #
1985 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
1986 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
1987 #
1988 # The following context names are reserved for internal use by Dialogflow.
1989 # You should not use these contexts or create contexts with these names:
1990 #
1991 # * `__system_counters__`
1992 # * `*_id_dialog_context`
1993 # * `*_dialog_params_size`
1994 },
1995 ],
1996 &quot;queryText&quot;: &quot;A String&quot;, # The original conversational query text:
1997 #
1998 # - If natural language text was provided as input, `query_text` contains
1999 # a copy of the input.
2000 # - If natural language speech audio was provided as input, `query_text`
2001 # contains the speech recognition result. If speech recognizer produced
2002 # multiple alternatives, a particular one is picked.
2003 # - If automatic spell correction is enabled, `query_text` will contain the
2004 # corrected user input.
2005 &quot;intentDetectionConfidence&quot;: 3.14, # The intent detection confidence. Values range from 0.0
2006 # (completely uncertain) to 1.0 (completely certain).
2007 # This value is for informational purpose only and is only used to
2008 # help match the best intent within the classification threshold.
2009 # This value may change for the same end-user expression at any time due to a
2010 # model retraining or change in implementation.
2011 # If there are `multiple knowledge_answers` messages, this value is set to
2012 # the greatest `knowledgeAnswers.match_confidence` value in the list.
2013 &quot;webhookPayload&quot;: { # If the query was fulfilled by a webhook call, this field is set to the
2014 # value of the `payload` field returned in the webhook response.
2015 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2016 },
2017 &quot;speechRecognitionConfidence&quot;: 3.14, # The Speech recognition confidence between 0.0 and 1.0. A higher number
2018 # indicates an estimated greater likelihood that the recognized words are
2019 # correct. The default of 0.0 is a sentinel value indicating that confidence
2020 # was not set.
2021 #
2022 # This field is not guaranteed to be accurate or set. In particular this
2023 # field isn&#x27;t set for StreamingDetectIntent since the streaming endpoint has
2024 # separate confidence estimates per portion of the audio in
2025 # StreamingRecognitionResult.
2026 &quot;sentimentAnalysisResult&quot;: { # The result of sentiment analysis. Sentiment analysis inspects user input # The sentiment analysis result, which depends on the
2027 # `sentiment_analysis_request_config` specified in the request.
2028 # and identifies the prevailing subjective opinion, especially to determine a
2029 # user&#x27;s attitude as positive, negative, or neutral.
2030 # For Participants.AnalyzeContent, it needs to be configured in
2031 # DetectIntentRequest.query_params. For
2032 # Participants.StreamingAnalyzeContent, it needs to be configured in
2033 # StreamingDetectIntentRequest.query_params.
2034 # And for Participants.AnalyzeContent and
2035 # Participants.StreamingAnalyzeContent, it needs to be configured in
2036 # ConversationProfile.human_agent_assistant_config
2037 &quot;queryTextSentiment&quot;: { # The sentiment, such as positive/negative feeling or association, for a unit # The sentiment analysis result for `query_text`.
2038 # of analysis, such as the query text.
2039 &quot;magnitude&quot;: 3.14, # A non-negative number in the [0, +inf) range, which represents the absolute
2040 # magnitude of sentiment, regardless of score (positive or negative).
2041 &quot;score&quot;: 3.14, # Sentiment score between -1.0 (negative sentiment) and 1.0 (positive
2042 # sentiment).
2043 },
2044 },
2045 &quot;action&quot;: &quot;A String&quot;, # The action name from the matched intent.
2046 &quot;allRequiredParamsPresent&quot;: True or False, # This field is set to:
2047 #
2048 # - `false` if the matched intent has required parameters and not all of
2049 # the required parameter values have been collected.
2050 # - `true` if all required parameter values have been collected, or if the
2051 # matched intent doesn&#x27;t contain any required parameters.
2052 &quot;fulfillmentMessages&quot;: [ # The collection of rich messages to present to the user.
2053 { # Corresponds to the `Response` field in the Dialogflow console.
2054 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
2055 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
2056 { # The suggestion chip message that the user can tap to quickly post a reply
2057 # to the conversation.
2058 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
2059 },
2060 ],
2061 },
2062 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
2063 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
2064 &quot;mediaObjects&quot;: [ # Required. List of media objects.
2065 { # Response media object for media content card.
2066 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
2067 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
2068 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2069 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2070 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2071 },
2072 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
2073 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
2074 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
2075 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2076 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2077 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2078 },
2079 },
2080 ],
2081 },
2082 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
2083 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to
2084 # in [E.164 format](https://en.wikipedia.org/wiki/E.164).
2085 #
2086 # We currently only allow transferring to US numbers (+1xxxyyyzzzz).
2087 },
2088 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
2089 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in # Synthesizes speech in Telephony Gateway.
2090 # Telephony Gateway.
2091 #
2092 # Telephony Gateway takes the synthesizer settings from
2093 # `DetectIntentResponse.output_audio_config` which can either be set
2094 # at request-level or can come from the agent-level synthesizer config.
2095 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
2096 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see
2097 # [SSML](https://developers.google.com/actions/reference/ssml).
2098 },
2099 &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.
2100 # or website associated with this agent.
2101 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
2102 # suggestion chip.
2103 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
2104 },
2105 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
2106 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
2107 &quot;A String&quot;,
2108 ],
2109 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
2110 },
2111 &quot;card&quot;: { # The card response message. # Displays a card.
2112 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2113 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2114 { # Optional. Contains information about a button.
2115 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
2116 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
2117 # open.
2118 },
2119 ],
2120 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
2121 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
2122 },
2123 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
2124 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
2125 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
2126 &quot;items&quot;: [ # Required. List items.
2127 { # An item in the list.
2128 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
2129 # dialog.
2130 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
2131 # item in dialog.
2132 &quot;A String&quot;,
2133 ],
2134 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
2135 # response is given.
2136 },
2137 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
2138 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
2139 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2140 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2141 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2142 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2143 },
2144 },
2145 ],
2146 },
2147 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
2148 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2149 { # The button object that appears at the bottom of a card.
2150 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2151 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2152 },
2153 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
2154 },
2155 ],
2156 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
2157 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
2158 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2159 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2160 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2161 },
2162 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2163 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
2164 },
2165 &quot;image&quot;: { # The image response message. # Displays an image.
2166 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2167 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2168 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2169 },
2170 &quot;rbmCarouselRichCard&quot;: { # Carousel Rich Business Messaging (RBM) rich card. # Rich Business Messaging (RBM) carousel rich card response.
2171 #
2172 # Rich cards allow you to respond to users with more vivid content, e.g.
2173 # with media and suggestions.
2174 #
2175 # If you want to show a single card with more control over the layout,
2176 # please use RbmStandaloneCard instead.
2177 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
2178 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least
2179 # 2 cards and at most 10.
2180 { # Rich Business Messaging (RBM) Card content
2181 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
2182 # be set. Media (image, GIF or a video) to include in the card.
2183 # The following media-types are currently supported:
2184 #
2185 # Image Types
2186 #
2187 # * image/jpeg
2188 # * image/jpg&#x27;
2189 # * image/gif
2190 # * image/png
2191 #
2192 # Video Types
2193 #
2194 # * video/h263
2195 # * video/m4v
2196 # * video/mp4
2197 # * video/mpeg
2198 # * video/mpeg4
2199 # * video/webm
2200 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
2201 # within a rich card with a vertical layout.
2202 # For a standalone card with horizontal layout, height is not
2203 # customizable, and this field is ignored.
2204 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
2205 # determines the MIME type of the file from the content-type field in
2206 # the HTTP headers when the platform fetches the file. The content-type
2207 # field must be present and accurate in the HTTP response from the URL.
2208 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
2209 # provide a thumbnail URI, the RBM platform displays a blank
2210 # placeholder thumbnail until the user&#x27;s device downloads the file.
2211 # Depending on the user&#x27;s setting, the file may not download
2212 # automatically and may require the user to tap a download button.
2213 },
2214 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
2215 #
2216 # At least one of the title, description or media must be set.
2217 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
2218 #
2219 # At least one of the title, description or media must be set.
2220 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
2221 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
2222 # easily select/click a predefined response or perform an action (like
2223 # opening a web uri).
2224 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
2225 # can choose from the card.
2226 &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
2227 # If the user has an app installed that is
2228 # registered as the default handler for the URL, then this app will be
2229 # opened instead, and its icon will be used in the suggested action UI.
2230 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2231 },
2232 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
2233 # to send back to the agent.
2234 },
2235 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2236 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
2237 # but does not dial automatically.
2238 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
2239 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
2240 # format. An example of a correctly formatted phone number:
2241 # +15556767888.
2242 },
2243 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2244 # when the user taps the suggested action. This data will be also
2245 # forwarded to webhook to allow performing custom business logic.
2246 },
2247 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
2248 # instead of typing in their own response.
2249 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2250 # when the user taps the suggested reply. This data will be also
2251 # forwarded to webhook to allow performing custom business logic.
2252 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
2253 },
2254 },
2255 ],
2256 },
2257 ],
2258 },
2259 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
2260 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
2261 { # The button object that appears at the bottom of a card.
2262 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2263 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2264 },
2265 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
2266 },
2267 ],
2268 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
2269 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
2270 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2271 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2272 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2273 },
2274 &quot;rows&quot;: [ # Optional. Rows in this table of data.
2275 { # Row of TableCard.
2276 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
2277 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
2278 { # Cell of TableCardRow.
2279 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
2280 },
2281 ],
2282 },
2283 ],
2284 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
2285 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
2286 { # Column properties for TableCard.
2287 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
2288 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
2289 },
2290 ],
2291 },
2292 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response.
2293 #
2294 # RBM allows businesses to send enriched and branded versions of SMS. See
2295 # https://jibe.google.com/business-messaging.
2296 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
2297 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
2298 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
2299 # easily select/click a predefined response or perform an action (like
2300 # opening a web uri).
2301 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
2302 # can choose from the card.
2303 &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
2304 # If the user has an app installed that is
2305 # registered as the default handler for the URL, then this app will be
2306 # opened instead, and its icon will be used in the suggested action UI.
2307 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2308 },
2309 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
2310 # to send back to the agent.
2311 },
2312 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2313 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
2314 # but does not dial automatically.
2315 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
2316 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
2317 # format. An example of a correctly formatted phone number:
2318 # +15556767888.
2319 },
2320 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2321 # when the user taps the suggested action. This data will be also
2322 # forwarded to webhook to allow performing custom business logic.
2323 },
2324 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
2325 # instead of typing in their own response.
2326 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2327 # when the user taps the suggested reply. This data will be also
2328 # forwarded to webhook to allow performing custom business logic.
2329 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
2330 },
2331 },
2332 ],
2333 },
2334 &quot;payload&quot;: { # A custom platform-specific response.
2335 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2336 },
2337 &quot;text&quot;: { # The text response message. # Returns a text response.
2338 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
2339 &quot;A String&quot;,
2340 ],
2341 },
2342 &quot;rbmStandaloneRichCard&quot;: { # Standalone Rich Business Messaging (RBM) rich card. # Standalone Rich Business Messaging (RBM) rich card response.
2343 #
2344 # Rich cards allow you to respond to users with more vivid content, e.g.
2345 # with media and suggestions.
2346 #
2347 # You can group multiple rich cards into one using RbmCarouselCard but
2348 # carousel cards will give you less control over the card layout.
2349 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
2350 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
2351 # be set. Media (image, GIF or a video) to include in the card.
2352 # The following media-types are currently supported:
2353 #
2354 # Image Types
2355 #
2356 # * image/jpeg
2357 # * image/jpg&#x27;
2358 # * image/gif
2359 # * image/png
2360 #
2361 # Video Types
2362 #
2363 # * video/h263
2364 # * video/m4v
2365 # * video/mp4
2366 # * video/mpeg
2367 # * video/mpeg4
2368 # * video/webm
2369 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
2370 # within a rich card with a vertical layout.
2371 # For a standalone card with horizontal layout, height is not
2372 # customizable, and this field is ignored.
2373 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
2374 # determines the MIME type of the file from the content-type field in
2375 # the HTTP headers when the platform fetches the file. The content-type
2376 # field must be present and accurate in the HTTP response from the URL.
2377 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
2378 # provide a thumbnail URI, the RBM platform displays a blank
2379 # placeholder thumbnail until the user&#x27;s device downloads the file.
2380 # Depending on the user&#x27;s setting, the file may not download
2381 # automatically and may require the user to tap a download button.
2382 },
2383 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
2384 #
2385 # At least one of the title, description or media must be set.
2386 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
2387 #
2388 # At least one of the title, description or media must be set.
2389 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
2390 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
2391 # easily select/click a predefined response or perform an action (like
2392 # opening a web uri).
2393 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
2394 # can choose from the card.
2395 &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
2396 # If the user has an app installed that is
2397 # registered as the default handler for the URL, then this app will be
2398 # opened instead, and its icon will be used in the suggested action UI.
2399 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2400 },
2401 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
2402 # to send back to the agent.
2403 },
2404 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2405 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
2406 # but does not dial automatically.
2407 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
2408 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
2409 # format. An example of a correctly formatted phone number:
2410 # +15556767888.
2411 },
2412 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2413 # when the user taps the suggested action. This data will be also
2414 # forwarded to webhook to allow performing custom business logic.
2415 },
2416 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
2417 # instead of typing in their own response.
2418 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2419 # when the user taps the suggested reply. This data will be also
2420 # forwarded to webhook to allow performing custom business logic.
2421 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
2422 },
2423 },
2424 ],
2425 },
2426 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
2427 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal.
2428 # Image preview alignment for standalone cards with horizontal layout.
2429 },
2430 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
2431 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to
2432 # play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single
2433 # channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz.
2434 #
2435 # This object must be readable by the `service-&lt;Project
2436 # Number&gt;@gcp-sa-dialogflow.iam.gserviceaccount.com` service account
2437 # where &lt;Project Number&gt; is the number of the Telephony Gateway project
2438 # (usually the same as the Dialogflow agent project). If the Google Cloud
2439 # Storage bucket is in the Telephony Gateway project, this permission is
2440 # added by default when enabling the Dialogflow V2 API.
2441 #
2442 # For audio from other sources, consider using the
2443 # `TelephonySynthesizeSpeech` message with SSML.
2444 },
2445 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
2446 &quot;items&quot;: [ # Required. Carousel items.
2447 { # An item in the carousel.
2448 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2449 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2450 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2451 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2452 },
2453 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
2454 # dialog.
2455 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
2456 # item in dialog.
2457 &quot;A String&quot;,
2458 ],
2459 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
2460 # response is given.
2461 },
2462 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
2463 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
2464 },
2465 ],
2466 },
2467 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # Returns a voice or text-only response for Actions on Google.
2468 # This message in `QueryResult.fulfillment_messages` and
2469 # `WebhookResponse.fulfillment_messages` should contain only one
2470 # `SimpleResponse`.
2471 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
2472 { # The simple response message containing speech or text.
2473 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
2474 # response to the user in the SSML format. Mutually exclusive with
2475 # text_to_speech.
2476 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
2477 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
2478 # speech output. Mutually exclusive with ssml.
2479 },
2480 ],
2481 },
2482 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
2483 # https://developers.google.com/actions/assistant/responses#browsing_carousel
2484 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
2485 # items.
2486 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
2487 # items, maximum of ten.
2488 { # Browsing carousel tile
2489 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
2490 # Card. Maximum of one line of text.
2491 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
2492 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
2493 # text.
2494 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
2495 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2496 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2497 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2498 },
2499 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
2500 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
2501 # the URL. Defaults to opening via web browser.
2502 &quot;url&quot;: &quot;A String&quot;, # Required. URL
2503 },
2504 },
2505 ],
2506 },
2507 },
2508 ],
2509 &quot;intent&quot;: { # An intent categorizes an end-user&#x27;s intention for one conversation turn. For # The intent that matched the conversational query. Some, not
2510 # all fields are filled in this message, including but not limited to:
2511 # `name`, `display_name`, `end_interaction` and `is_fallback`.
2512 # each agent, you define many intents, where your combined intents can handle a
2513 # complete conversation. When an end-user writes or says something, referred to
2514 # as an end-user expression or end-user input, Dialogflow matches the end-user
2515 # input to the best intent in your agent. Matching an intent is also known as
2516 # intent classification.
2517 #
2518 # For more information, see the [intent
2519 # guide](https://cloud.google.com/dialogflow/docs/intents-overview).
2520 &quot;endInteraction&quot;: True or False, # Optional. Indicates that this intent ends an interaction. Some integrations
2521 # (e.g., Actions on Google or Dialogflow phone gateway) use this information
2522 # to close interaction with an end user. Default is false.
2523 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent.
2524 # Note: The action name must not contain whitespaces.
2525 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
2526 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent
2527 # is matched. Context messages in this collection should not set the
2528 # parameters field. Setting the `lifespan_count` to 0 will reset the context
2529 # when the intent is matched.
2530 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
2531 { # Dialogflow contexts are similar to natural language context. If a person says
2532 # to you &quot;they are orange&quot;, you need context in order to understand what &quot;they&quot;
2533 # is referring to. Similarly, for Dialogflow to handle an end-user expression
2534 # like that, it needs to be provided with context in order to correctly match
2535 # an intent.
2536 #
2537 # Using contexts, you can control the flow of a conversation. You can configure
2538 # contexts for an intent by setting input and output contexts, which are
2539 # identified by string names. When an intent is matched, any configured output
2540 # contexts for that intent become active. While any contexts are active,
2541 # Dialogflow is more likely to match intents that are configured with input
2542 # contexts that correspond to the currently active contexts.
2543 #
2544 # For more information about context, see the
2545 # [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview).
2546 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
2547 #
2548 # Depending on your protocol or client library language, this is a
2549 # map, associative array, symbol table, dictionary, or JSON object
2550 # composed of a collection of (MapKey, MapValue) pairs:
2551 #
2552 # - MapKey type: string
2553 # - MapKey value: parameter name
2554 # - MapValue type:
2555 # - If parameter&#x27;s entity type is a composite entity: map
2556 # - Else: string or number, depending on parameter value type
2557 # - MapValue value:
2558 # - If parameter&#x27;s entity type is a composite entity:
2559 # map from composite entity property names to property values
2560 # - Else: parameter value
2561 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2562 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002563 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
2564 # context expires. The default is `0`. If set to `0`, the context expires
2565 # immediately. Contexts expire automatically after 20 minutes if there
2566 # are no matching queries.
2567 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
2568 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
2569 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
2570 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
2571 #
2572 # The `Context ID` is always converted to lowercase, may only contain
2573 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
2574 #
2575 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
2576 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
2577 #
2578 # The following context names are reserved for internal use by Dialogflow.
2579 # You should not use these contexts or create contexts with these names:
2580 #
2581 # * `__system_counters__`
2582 # * `*_id_dialog_context`
2583 # * `*_dialog_params_size`
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002584 },
2585 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002586 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
2587 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current
2588 # session when this intent is matched.
2589 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
2590 # Note: If `ml_disabled` setting is set to true, then this intent is not
2591 # taken into account during inference in `ML ONLY` match mode. Also,
2592 # auto-markup in the UI is turned off.
2593 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Output only. The unique identifier of the root intent in the chain of
2594 # followup intents. It identifies the correct followup intents chain for
2595 # this intent.
2596 #
2597 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
2598 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is
2599 # trained on.
2600 { # Represents an example that the agent is trained on.
2601 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
2602 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
2603 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts.
2604 # The parts are concatenated in order to form the training phrase.
2605 #
2606 # Note: The API does not automatically annotate training phrases like the
2607 # Dialogflow Console does.
2608 #
2609 # Note: Do not forget to include whitespace at part boundaries,
2610 # so the training phrase is well formatted when the parts are concatenated.
2611 #
2612 # If the training phrase does not need to be annotated with parameters,
2613 # you just need a single part with only the Part.text field set.
2614 #
2615 # If you want to annotate the training phrase, you must create multiple
2616 # parts, where the fields of each part are populated in one of two ways:
2617 #
2618 # - `Part.text` is set to a part of the phrase that has no parameters.
2619 # - `Part.text` is set to a part of the phrase that you want to annotate,
2620 # and the `entity_type`, `alias`, and `user_defined` fields are all
2621 # set.
2622 { # Represents a part of a training phrase.
2623 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated.
2624 # This field is set to true when the Dialogflow Console is used to
2625 # manually annotate the part. When creating an annotated part with the
2626 # API, you must set this to true.
2627 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the
2628 # annotated part of the example.
2629 # This field is required for annotated parts of the training phrase.
2630 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`.
2631 # This field is required for annotated parts of the training phrase.
2632 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
2633 },
2634 ],
2635 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to
2636 # the intent. Each time a developer adds an existing sample by editing an
2637 # intent or training, this counter is increased.
2638 },
2639 ],
2640 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the
2641 # `Response` field in the Dialogflow console.
Bu Sun Kim65020912020-05-20 12:08:20 -07002642 { # Corresponds to the `Response` field in the Dialogflow console.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002643 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
2644 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
2645 { # The suggestion chip message that the user can tap to quickly post a reply
2646 # to the conversation.
2647 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
2648 },
2649 ],
2650 },
2651 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
2652 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
2653 &quot;mediaObjects&quot;: [ # Required. List of media objects.
2654 { # Response media object for media content card.
2655 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
2656 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
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;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
2662 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
2663 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
2664 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2665 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2666 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2667 },
2668 },
2669 ],
2670 },
2671 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
2672 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to
2673 # in [E.164 format](https://en.wikipedia.org/wiki/E.164).
2674 #
2675 # We currently only allow transferring to US numbers (+1xxxyyyzzzz).
2676 },
2677 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
2678 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in # Synthesizes speech in Telephony Gateway.
2679 # Telephony Gateway.
2680 #
2681 # Telephony Gateway takes the synthesizer settings from
2682 # `DetectIntentResponse.output_audio_config` which can either be set
2683 # at request-level or can come from the agent-level synthesizer config.
2684 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
2685 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see
2686 # [SSML](https://developers.google.com/actions/reference/ssml).
2687 },
2688 &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.
2689 # or website associated with this agent.
2690 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
2691 # suggestion chip.
2692 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
2693 },
2694 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
2695 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
Bu Sun Kim65020912020-05-20 12:08:20 -07002696 &quot;A String&quot;,
2697 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002698 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
2699 },
2700 &quot;card&quot;: { # The card response message. # Displays a card.
2701 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2702 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2703 { # Optional. Contains information about a button.
2704 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
2705 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
2706 # open.
2707 },
2708 ],
2709 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
2710 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
2711 },
2712 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
2713 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
2714 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
2715 &quot;items&quot;: [ # Required. List items.
2716 { # An item in the list.
2717 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
2718 # dialog.
2719 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
2720 # item in dialog.
2721 &quot;A String&quot;,
2722 ],
2723 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
2724 # response is given.
2725 },
2726 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
2727 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
2728 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2729 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2730 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2731 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2732 },
2733 },
2734 ],
2735 },
2736 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
2737 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2738 { # The button object that appears at the bottom of a card.
2739 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2740 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2741 },
2742 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
2743 },
2744 ],
2745 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
2746 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
2747 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2748 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2749 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2750 },
2751 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2752 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
2753 },
2754 &quot;image&quot;: { # The image response message. # Displays an image.
2755 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2756 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2757 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
Bu Sun Kim65020912020-05-20 12:08:20 -07002758 },
2759 &quot;rbmCarouselRichCard&quot;: { # Carousel Rich Business Messaging (RBM) rich card. # Rich Business Messaging (RBM) carousel rich card response.
2760 #
2761 # Rich cards allow you to respond to users with more vivid content, e.g.
2762 # with media and suggestions.
2763 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002764 # If you want to show a single card with more control over the layout,
2765 # please use RbmStandaloneCard instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002766 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
Bu Sun Kim65020912020-05-20 12:08:20 -07002767 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least
2768 # 2 cards and at most 10.
2769 { # Rich Business Messaging (RBM) Card content
Bu Sun Kim65020912020-05-20 12:08:20 -07002770 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
2771 # be set. Media (image, GIF or a video) to include in the card.
2772 # The following media-types are currently supported:
2773 #
2774 # Image Types
2775 #
2776 # * image/jpeg
2777 # * image/jpg&#x27;
2778 # * image/gif
2779 # * image/png
2780 #
2781 # Video Types
2782 #
2783 # * video/h263
2784 # * video/m4v
2785 # * video/mp4
2786 # * video/mpeg
2787 # * video/mpeg4
2788 # * video/webm
Bu Sun Kim65020912020-05-20 12:08:20 -07002789 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002790 # within a rich card with a vertical layout.
Bu Sun Kim65020912020-05-20 12:08:20 -07002791 # For a standalone card with horizontal layout, height is not
2792 # customizable, and this field is ignored.
2793 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
2794 # determines the MIME type of the file from the content-type field in
2795 # the HTTP headers when the platform fetches the file. The content-type
2796 # field must be present and accurate in the HTTP response from the URL.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002797 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
2798 # provide a thumbnail URI, the RBM platform displays a blank
2799 # placeholder thumbnail until the user&#x27;s device downloads the file.
2800 # Depending on the user&#x27;s setting, the file may not download
2801 # automatically and may require the user to tap a download button.
Bu Sun Kim65020912020-05-20 12:08:20 -07002802 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002803 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
2804 #
2805 # At least one of the title, description or media must be set.
2806 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
2807 #
2808 # At least one of the title, description or media must be set.
Bu Sun Kim65020912020-05-20 12:08:20 -07002809 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
2810 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
2811 # easily select/click a predefined response or perform an action (like
2812 # opening a web uri).
Bu Sun Kim65020912020-05-20 12:08:20 -07002813 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
2814 # can choose from the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002815 &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
2816 # If the user has an app installed that is
2817 # registered as the default handler for the URL, then this app will be
2818 # opened instead, and its icon will be used in the suggested action UI.
2819 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2820 },
2821 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
2822 # to send back to the agent.
2823 },
2824 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002825 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002826 # but does not dial automatically.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002827 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
2828 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
2829 # format. An example of a correctly formatted phone number:
2830 # +15556767888.
2831 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002832 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2833 # when the user taps the suggested action. This data will be also
2834 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002835 },
2836 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
2837 # instead of typing in their own response.
2838 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2839 # when the user taps the suggested reply. This data will be also
2840 # forwarded to webhook to allow performing custom business logic.
2841 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07002842 },
2843 },
2844 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002845 },
2846 ],
2847 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002848 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
2849 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07002850 { # The button object that appears at the bottom of a card.
2851 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2852 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2853 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002854 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -07002855 },
2856 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002857 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
Bu Sun Kim65020912020-05-20 12:08:20 -07002858 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
2859 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2860 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2861 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2862 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002863 &quot;rows&quot;: [ # Optional. Rows in this table of data.
2864 { # Row of TableCard.
2865 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
2866 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
2867 { # Cell of TableCardRow.
2868 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
2869 },
2870 ],
2871 },
2872 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002873 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002874 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
2875 { # Column properties for TableCard.
2876 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
2877 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
2878 },
2879 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002880 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002881 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response.
2882 #
2883 # RBM allows businesses to send enriched and branded versions of SMS. See
2884 # https://jibe.google.com/business-messaging.
2885 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
2886 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
2887 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
2888 # easily select/click a predefined response or perform an action (like
2889 # opening a web uri).
2890 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
2891 # can choose from the card.
2892 &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
2893 # If the user has an app installed that is
2894 # registered as the default handler for the URL, then this app will be
2895 # opened instead, and its icon will be used in the suggested action UI.
2896 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2897 },
2898 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
2899 # to send back to the agent.
2900 },
2901 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2902 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
2903 # but does not dial automatically.
2904 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
2905 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
2906 # format. An example of a correctly formatted phone number:
2907 # +15556767888.
2908 },
2909 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2910 # when the user taps the suggested action. This data will be also
2911 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kim65020912020-05-20 12:08:20 -07002912 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002913 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
2914 # instead of typing in their own response.
2915 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2916 # when the user taps the suggested reply. This data will be also
2917 # forwarded to webhook to allow performing custom business logic.
2918 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002919 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002920 },
2921 ],
2922 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002923 &quot;payload&quot;: { # A custom platform-specific response.
2924 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Bu Sun Kim65020912020-05-20 12:08:20 -07002925 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002926 &quot;text&quot;: { # The text response message. # Returns a text response.
2927 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
2928 &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -07002929 ],
2930 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002931 &quot;rbmStandaloneRichCard&quot;: { # Standalone Rich Business Messaging (RBM) rich card. # Standalone Rich Business Messaging (RBM) rich card response.
2932 #
2933 # Rich cards allow you to respond to users with more vivid content, e.g.
2934 # with media and suggestions.
2935 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002936 # You can group multiple rich cards into one using RbmCarouselCard but
2937 # carousel cards will give you less control over the card layout.
Bu Sun Kim65020912020-05-20 12:08:20 -07002938 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
Bu Sun Kim65020912020-05-20 12:08:20 -07002939 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
2940 # be set. Media (image, GIF or a video) to include in the card.
2941 # The following media-types are currently supported:
2942 #
2943 # Image Types
2944 #
2945 # * image/jpeg
2946 # * image/jpg&#x27;
2947 # * image/gif
2948 # * image/png
2949 #
2950 # Video Types
2951 #
2952 # * video/h263
2953 # * video/m4v
2954 # * video/mp4
2955 # * video/mpeg
2956 # * video/mpeg4
2957 # * video/webm
Bu Sun Kim65020912020-05-20 12:08:20 -07002958 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002959 # within a rich card with a vertical layout.
Bu Sun Kim65020912020-05-20 12:08:20 -07002960 # For a standalone card with horizontal layout, height is not
2961 # customizable, and this field is ignored.
2962 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
2963 # determines the MIME type of the file from the content-type field in
2964 # the HTTP headers when the platform fetches the file. The content-type
2965 # field must be present and accurate in the HTTP response from the URL.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002966 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
2967 # provide a thumbnail URI, the RBM platform displays a blank
2968 # placeholder thumbnail until the user&#x27;s device downloads the file.
2969 # Depending on the user&#x27;s setting, the file may not download
2970 # automatically and may require the user to tap a download button.
Bu Sun Kim65020912020-05-20 12:08:20 -07002971 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002972 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
2973 #
2974 # At least one of the title, description or media must be set.
2975 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
2976 #
2977 # At least one of the title, description or media must be set.
Bu Sun Kim65020912020-05-20 12:08:20 -07002978 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
2979 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
2980 # easily select/click a predefined response or perform an action (like
2981 # opening a web uri).
Bu Sun Kim65020912020-05-20 12:08:20 -07002982 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
2983 # can choose from the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002984 &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
2985 # If the user has an app installed that is
2986 # registered as the default handler for the URL, then this app will be
2987 # opened instead, and its icon will be used in the suggested action UI.
2988 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2989 },
2990 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
2991 # to send back to the agent.
2992 },
2993 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002994 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002995 # but does not dial automatically.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002996 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
2997 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
2998 # format. An example of a correctly formatted phone number:
2999 # +15556767888.
3000 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003001 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
3002 # when the user taps the suggested action. This data will be also
3003 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003004 },
3005 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
3006 # instead of typing in their own response.
3007 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
3008 # when the user taps the suggested reply. This data will be also
3009 # forwarded to webhook to allow performing custom business logic.
3010 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07003011 },
3012 },
3013 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003014 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003015 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
3016 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal.
3017 # Image preview alignment for standalone cards with horizontal layout.
Bu Sun Kim65020912020-05-20 12:08:20 -07003018 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003019 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
3020 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to
3021 # play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single
3022 # channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz.
3023 #
3024 # This object must be readable by the `service-&lt;Project
3025 # Number&gt;@gcp-sa-dialogflow.iam.gserviceaccount.com` service account
3026 # where &lt;Project Number&gt; is the number of the Telephony Gateway project
3027 # (usually the same as the Dialogflow agent project). If the Google Cloud
3028 # Storage bucket is in the Telephony Gateway project, this permission is
3029 # added by default when enabling the Dialogflow V2 API.
3030 #
3031 # For audio from other sources, consider using the
3032 # `TelephonySynthesizeSpeech` message with SSML.
3033 },
3034 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
3035 &quot;items&quot;: [ # Required. Carousel items.
3036 { # An item in the carousel.
3037 &quot;image&quot;: { # The image response message. # Optional. The image to display.
3038 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3039 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
3040 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
3041 },
3042 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
3043 # dialog.
3044 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
3045 # item in dialog.
3046 &quot;A String&quot;,
3047 ],
3048 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
3049 # response is given.
3050 },
3051 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
3052 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
3053 },
3054 ],
3055 },
3056 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # Returns a voice or text-only response for Actions on Google.
3057 # This message in `QueryResult.fulfillment_messages` and
3058 # `WebhookResponse.fulfillment_messages` should contain only one
3059 # `SimpleResponse`.
3060 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
3061 { # The simple response message containing speech or text.
3062 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
3063 # response to the user in the SSML format. Mutually exclusive with
3064 # text_to_speech.
3065 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
3066 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
3067 # speech output. Mutually exclusive with ssml.
3068 },
3069 ],
3070 },
3071 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
3072 # https://developers.google.com/actions/assistant/responses#browsing_carousel
3073 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
3074 # items.
3075 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
3076 # items, maximum of ten.
3077 { # Browsing carousel tile
3078 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
3079 # Card. Maximum of one line of text.
3080 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
3081 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
3082 # text.
3083 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
3084 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3085 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
3086 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
3087 },
3088 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
3089 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
3090 # the URL. Defaults to opening via web browser.
3091 &quot;url&quot;: &quot;A String&quot;, # Required. URL
3092 },
3093 },
3094 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003095 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003096 },
3097 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003098 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Optional. The unique identifier of the parent intent in the
3099 # chain of followup intents. You can set this field when creating an intent,
3100 # for example with CreateIntent or
3101 # BatchUpdateIntents, in order to make this
3102 # intent a followup intent.
Bu Sun Kim65020912020-05-20 12:08:20 -07003103 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003104 # It identifies the parent followup intent.
3105 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
3106 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
3107 { # Represents intent parameters.
3108 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
3109 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is,
3110 # whether the intent cannot be completed without collecting the parameter
3111 # value.
3112 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the
3113 # user in order to collect a value for the parameter.
3114 &quot;A String&quot;,
3115 ],
3116 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
3117 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that
3118 # describes values of the parameter. If the parameter is
3119 # required, this must be provided.
3120 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
3121 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be:
3122 #
3123 # - a constant string,
3124 # - a parameter value defined as `$parameter_name`,
3125 # - an original parameter value defined as `$parameter_name.original`,
3126 # - a parameter value from some context defined as
3127 # `#context_name.parameter_name`.
3128 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty
3129 # result.
3130 # Default values can be extracted from contexts by using the following
3131 # syntax: `#context_name.parameter_name`.
3132 },
3133 ],
3134 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent.
3135 # If the collection of input contexts is not empty, all of the contexts must
3136 # be present in the active user session for an event to trigger this intent.
3137 # Event names are limited to 150 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -07003138 &quot;A String&quot;,
3139 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003140 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
3141 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent.
3142 # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
3143 # methods.
3144 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
3145 &quot;mlEnabled&quot;: True or False, # Optional. Indicates whether Machine Learning is enabled for the intent.
3146 # Note: If `ml_enabled` setting is set to false, then this intent is not
3147 # taken into account during inference in `ML ONLY` match mode. Also,
3148 # auto-markup in the UI is turned off.
3149 # DEPRECATED! Please use `ml_disabled` field instead.
3150 # NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false,
3151 # then the default value is determined as follows:
3152 # - Before April 15th, 2018 the default is:
3153 # ml_enabled = false / ml_disabled = true.
3154 # - After April 15th, 2018 the default is:
3155 # ml_enabled = true / ml_disabled = false.
3156 &quot;followupIntentInfo&quot;: [ # Output only. Information about all followup intents that have this intent as
3157 # a direct or indirect parent. We populate this field only in the output.
3158 { # Represents a single followup intent in the chain.
3159 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent.
3160 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
3161 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent.
3162 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
3163 },
3164 ],
3165 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be
3166 # copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
3167 &quot;A String&quot;,
3168 ],
3169 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be
3170 # triggered.
3171 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
3172 &quot;A String&quot;,
3173 ],
3174 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher
3175 # priorities.
3176 #
3177 # - If the supplied value is unspecified or 0, the service
3178 # translates the value to 500,000, which corresponds to the
3179 # `Normal` priority in the console.
3180 # - If the supplied value is negative, the intent is ignored
3181 # in runtime detect intent requests.
Bu Sun Kim65020912020-05-20 12:08:20 -07003182 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003183 &quot;webhookSource&quot;: &quot;A String&quot;, # If the query was fulfilled by a webhook call, this field is set to the
3184 # value of the `source` field returned in the webhook response.
3185 &quot;knowledgeAnswers&quot;: { # Represents the result of querying a Knowledge base. # The result from Knowledge Connector (if any), ordered by decreasing
3186 # `KnowledgeAnswers.match_confidence`.
3187 &quot;answers&quot;: [ # A list of answers from Knowledge Connector.
3188 { # An answer from Knowledge Connector.
3189 &quot;source&quot;: &quot;A String&quot;, # Indicates which Knowledge Document this answer was extracted from.
3190 # Format: `projects/&lt;Project ID&gt;/knowledgeBases/&lt;Knowledge Base
3191 # ID&gt;/documents/&lt;Document ID&gt;`.
3192 &quot;matchConfidence&quot;: 3.14, # The system&#x27;s confidence score that this Knowledge answer is a good match
3193 # for this conversational query.
3194 # The range is from 0.0 (completely uncertain) to 1.0 (completely certain).
3195 # Note: The confidence score is likely to vary somewhat (possibly even for
3196 # identical requests), as the underlying model is under constant
3197 # improvement. It may be deprecated in the future. We recommend using
3198 # `match_confidence_level` which should be generally more stable.
3199 &quot;answer&quot;: &quot;A String&quot;, # The piece of text from the `source` knowledge base document that answers
3200 # this conversational query.
3201 &quot;faqQuestion&quot;: &quot;A String&quot;, # The corresponding FAQ question if the answer was extracted from a FAQ
3202 # Document, empty otherwise.
3203 &quot;matchConfidenceLevel&quot;: &quot;A String&quot;, # The system&#x27;s confidence level that this knowledge answer is a good match
3204 # for this conversational query.
3205 # NOTE: The confidence level for a given `&lt;query, answer&gt;` pair may change
3206 # without notice, as it depends on models that are constantly being
3207 # improved. However, it will change less frequently than the confidence
3208 # score below, and should be preferred for referencing the quality of an
3209 # answer.
3210 },
3211 ],
3212 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003213 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003214 &quot;responseId&quot;: &quot;A String&quot;, # The unique identifier of the response. It can be used to
3215 # locate a response in the training example set or for reporting issues.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003216 }</pre>
3217</div>
3218
3219</body></html>