blob: 49fe25461a147b28cdd3e5cbdd7b0151e260f856 [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
140`User ID` must not exceed 36 characters. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700141 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700142 The object takes the form of:
143
Bu Sun Kim65020912020-05-20 12:08:20 -0700144{ # The request to detect user&#x27;s intent.
145 &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 -0700146 # request-level config should override speech synthesizer settings defined at
147 # agent-level.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700148 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700149 # If unspecified or empty, output_audio_config replaces the agent-level
150 # config in its entirety.
Bu Sun Kim65020912020-05-20 12:08:20 -0700151 &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 -0700152 #
153 # 1. an audio config
154 # which instructs the speech recognizer how to process the speech audio,
155 #
156 # 2. a conversational query in the form of text, or
157 #
158 # 3. an event that specifies which intent to trigger.
159 #
160 # 1. An audio config which
161 # instructs the speech recognizer how to process the speech audio.
162 #
163 # 2. A conversational query in the form of text.
164 #
165 # 3. An event that specifies which intent to trigger.
Bu Sun Kim65020912020-05-20 12:08:20 -0700166 &quot;text&quot;: { # Represents the natural language text to be processed. # The natural language text to be processed.
167 &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 -0700168 # Text length must not exceed 256 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700169 &quot;languageCode&quot;: &quot;A String&quot;, # Required. The language of this conversational query. See [Language
Dan O'Mearadd494642020-05-01 07:42:23 -0700170 # Support](https://cloud.google.com/dialogflow/docs/reference/language)
171 # for a list of the currently supported language codes. Note that queries in
172 # the same session do not necessarily need to specify the same language.
173 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700174 &quot;audioConfig&quot;: { # Instructs the speech recognizer on how to process the audio content. # Instructs the speech recognizer how to process the speech audio.
175 &quot;languageCode&quot;: &quot;A String&quot;, # Required. The language of the supplied audio. Dialogflow does not do
Dan O'Mearadd494642020-05-01 07:42:23 -0700176 # translations. See [Language
177 # Support](https://cloud.google.com/dialogflow/docs/reference/language)
178 # for a list of the currently supported language codes. Note that queries in
179 # the same session do not necessarily need to specify the same language.
Bu Sun Kim65020912020-05-20 12:08:20 -0700180 &quot;speechContexts&quot;: [ # Context information to assist speech recognition.
Dan O'Mearadd494642020-05-01 07:42:23 -0700181 #
182 # See [the Cloud Speech
183 # documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints)
184 # for more details.
185 { # Hints for the speech recognizer to help with recognition in a specific
186 # conversation state.
Bu Sun Kim65020912020-05-20 12:08:20 -0700187 &quot;phrases&quot;: [ # Optional. A list of strings containing words and phrases that the speech
Dan O'Mearadd494642020-05-01 07:42:23 -0700188 # recognizer should recognize with higher likelihood.
189 #
190 # This list can be used to:
191 # * improve accuracy for words and phrases you expect the user to say,
192 # e.g. typical commands for your Dialogflow agent
193 # * add additional words to the speech recognizer vocabulary
194 # * ...
195 #
196 # See the [Cloud Speech
197 # documentation](https://cloud.google.com/speech-to-text/quotas) for usage
198 # limits.
Bu Sun Kim65020912020-05-20 12:08:20 -0700199 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700200 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700201 &quot;boost&quot;: 3.14, # Optional. Boost for this context compared to other contexts:
202 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700203 # * If the boost is positive, Dialogflow will increase the probability that
204 # the phrases in this context are recognized over similar sounding phrases.
205 # * If the boost is unspecified or non-positive, Dialogflow will not apply
206 # any boost.
207 #
208 # Dialogflow recommends that you use boosts in the range (0, 20] and that you
209 # find a value that fits your use case with binary search.
210 },
211 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700212 &quot;phraseHints&quot;: [ # A list of strings containing words and phrases that the speech
213 # recognizer should recognize with higher likelihood.
214 #
215 # See [the Cloud Speech
216 # documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints)
217 # for more details.
218 #
219 # This field is deprecated. Please use [speech_contexts]() instead. If you
220 # specify both [phrase_hints]() and [speech_contexts](), Dialogflow will
221 # treat the [phrase_hints]() as a single additional [SpeechContext]().
222 &quot;A String&quot;,
223 ],
224 &quot;enableWordInfo&quot;: True or False, # If `true`, Dialogflow returns SpeechWordInfo in
225 # StreamingRecognitionResult with information about the recognized speech
226 # words, e.g. start and end time offsets. If false or unspecified, Speech
227 # doesn&#x27;t return any word-level information.
228 &quot;sampleRateHertz&quot;: 42, # Required. Sample rate (in Hertz) of the audio content sent in the query.
229 # Refer to
230 # [Cloud Speech API
231 # documentation](https://cloud.google.com/speech-to-text/docs/basics) for
232 # more details.
233 &quot;model&quot;: &quot;A String&quot;, # Which Speech model to select for the given request. Select the
234 # model best suited to your domain to get best results. If a model is not
235 # explicitly specified, then we auto-select a model based on the parameters
236 # in the InputAudioConfig.
237 # If enhanced speech model is enabled for the agent and an enhanced
238 # version of the specified model for the language does not exist, then the
239 # speech is recognized using the standard version of the specified model.
240 # Refer to
241 # [Cloud Speech API
242 # documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model)
243 # for more details.
244 &quot;modelVariant&quot;: &quot;A String&quot;, # Which variant of the Speech model to use.
245 &quot;audioEncoding&quot;: &quot;A String&quot;, # Required. Audio encoding of the audio content to process.
246 &quot;singleUtterance&quot;: True or False, # If `false` (default), recognition does not cease until the
Dan O'Mearadd494642020-05-01 07:42:23 -0700247 # client closes the stream.
248 # If `true`, the recognizer will detect a single spoken utterance in input
Bu Sun Kim65020912020-05-20 12:08:20 -0700249 # audio. Recognition ceases when it detects the audio&#x27;s voice has
Dan O'Mearadd494642020-05-01 07:42:23 -0700250 # stopped or paused. In this case, once a detected intent is received, the
251 # client should close the stream and start a new request with a new stream as
252 # needed.
253 # Note: This setting is relevant only for streaming methods.
254 # Note: When specified, InputAudioConfig.single_utterance takes precedence
255 # over StreamingDetectIntentRequest.single_utterance.
256 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700257 &quot;event&quot;: { # Events allow for matching intents by event name instead of the natural # The event to be processed.
258 # language input. For instance, input `&lt;event: { name: &quot;welcome_event&quot;,
259 # parameters: { name: &quot;Sam&quot; } }&gt;` can trigger a personalized welcome response.
260 # The parameter `name` may be used by the agent in the response:
261 # `&quot;Hello #welcome_event.name! What can I do for you today?&quot;`.
262 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the event.
263 &quot;parameters&quot;: { # The collection of parameters associated with the event.
264 #
265 # Depending on your protocol or client library language, this is a
266 # map, associative array, symbol table, dictionary, or JSON object
267 # composed of a collection of (MapKey, MapValue) pairs:
268 #
269 # - MapKey type: string
270 # - MapKey value: parameter name
271 # - MapValue type:
272 # - If parameter&#x27;s entity type is a composite entity: map
273 # - Else: string or number, depending on parameter value type
274 # - MapValue value:
275 # - If parameter&#x27;s entity type is a composite entity:
276 # map from composite entity property names to property values
277 # - Else: parameter value
278 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
279 },
280 &quot;languageCode&quot;: &quot;A String&quot;, # Required. The language of this query. See [Language
281 # Support](https://cloud.google.com/dialogflow/docs/reference/language)
282 # for a list of the currently supported language codes. Note that queries in
283 # the same session do not necessarily need to specify the same language.
284 },
Dan O'Mearadd494642020-05-01 07:42:23 -0700285 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700286 &quot;queryParams&quot;: { # Represents the parameters of the conversational query. # The parameters of this query.
287 &quot;resetContexts&quot;: True or False, # Specifies whether to delete all contexts in the current session
288 # before the new ones are activated.
289 &quot;payload&quot;: { # This field can be used to pass custom data to your webhook.
290 # Arbitrary JSON objects are supported.
291 # If supplied, the value is used to populate the
292 # `WebhookRequest.original_detect_intent_request.payload`
293 # field sent to your webhook.
294 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
295 },
296 &quot;geoLocation&quot;: { # An object representing a latitude/longitude pair. This is expressed as a pair # The geo location of this conversational query.
297 # of doubles representing degrees latitude and degrees longitude. Unless
298 # specified otherwise, this must conform to the
299 # &lt;a href=&quot;http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf&quot;&gt;WGS84
300 # standard&lt;/a&gt;. Values must be within normalized ranges.
301 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
302 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
303 },
304 &quot;contexts&quot;: [ # The collection of contexts to be activated before this query is
305 # executed.
306 { # Represents a context.
307 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
308 # context expires. The default is `0`. If set to `0`, the context expires
309 # immediately. Contexts expire automatically after 20 minutes if there
310 # are no matching queries.
311 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
312 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
313 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
314 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
315 #
316 # The `Context ID` is always converted to lowercase, may only contain
317 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
318 #
319 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
320 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
321 #
322 # The following context names are reserved for internal use by Dialogflow.
323 # You should not use these contexts or create contexts with these names:
324 #
325 # * `__system_counters__`
326 # * `*_id_dialog_context`
327 # * `*_dialog_params_size`
328 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
329 #
330 # Depending on your protocol or client library language, this is a
331 # map, associative array, symbol table, dictionary, or JSON object
332 # composed of a collection of (MapKey, MapValue) pairs:
333 #
334 # - MapKey type: string
335 # - MapKey value: parameter name
336 # - MapValue type:
337 # - If parameter&#x27;s entity type is a composite entity: map
338 # - Else: string or number, depending on parameter value type
339 # - MapValue value:
340 # - If parameter&#x27;s entity type is a composite entity:
341 # map from composite entity property names to property values
342 # - Else: parameter value
343 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
344 },
345 },
346 ],
347 &quot;knowledgeBaseNames&quot;: [ # KnowledgeBases to get alternative results from. If not set, the
348 # KnowledgeBases enabled in the agent (through UI) will be used.
349 # Format: `projects/&lt;Project ID&gt;/knowledgeBases/&lt;Knowledge Base ID&gt;`.
350 &quot;A String&quot;,
351 ],
352 &quot;sentimentAnalysisRequestConfig&quot;: { # Configures the types of sentiment analysis to perform. # Configures the type of sentiment analysis to perform. If not
353 # provided, sentiment analysis is not performed.
354 # Note: Sentiment Analysis is only currently available for Enterprise Edition
355 # agents.
356 &quot;analyzeQueryTextSentiment&quot;: True or False, # Instructs the service to perform sentiment analysis on
357 # `query_text`. If not provided, sentiment analysis is not performed on
358 # `query_text`.
359 },
360 &quot;timeZone&quot;: &quot;A String&quot;, # The time zone of this conversational query from the
361 # [time zone database](https://www.iana.org/time-zones), e.g.,
362 # America/New_York, Europe/Paris. If not provided, the time zone specified in
363 # agent settings is used.
364 &quot;sessionEntityTypes&quot;: [ # Additional session entity types to replace or extend developer
365 # entity types with. The entity synonyms apply to all languages and persist
366 # for the session of this query.
367 { # Represents a session entity type.
368 #
369 # Extends or replaces a custom entity type at the user session level (we
370 # refer to the entity types defined at the agent level as &quot;custom entity
371 # types&quot;).
372 #
373 # Note: session entity types apply to all queries, regardless of the language.
374 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of this session entity type. Format:
375 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/entityTypes/&lt;Entity Type
376 # Display Name&gt;`, or
377 # `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
378 # ID&gt;/sessions/&lt;Session ID&gt;/entityTypes/&lt;Entity Type Display Name&gt;`.
379 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
380 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
381 #
382 # `&lt;Entity Type Display Name&gt;` must be the display name of an existing entity
383 # type in the same agent that will be overridden or supplemented.
384 &quot;entityOverrideMode&quot;: &quot;A String&quot;, # Required. Indicates whether the additional data should override or
385 # supplement the custom entity type definition.
386 &quot;entities&quot;: [ # Required. The collection of entities associated with this session entity
387 # type.
388 { # An **entity entry** for an associated entity type.
389 &quot;value&quot;: &quot;A String&quot;, # Required. The primary value associated with this entity entry.
390 # For example, if the entity type is *vegetable*, the value could be
391 # *scallions*.
392 #
393 # For `KIND_MAP` entity types:
394 #
395 # * A reference value to be used in place of synonyms.
396 #
397 # For `KIND_LIST` entity types:
398 #
399 # * A string that can contain references to other entity types (with or
400 # without aliases).
401 &quot;synonyms&quot;: [ # Required. A collection of value synonyms. For example, if the entity type
402 # is *vegetable*, and `value` is *scallions*, a synonym could be *green
403 # onions*.
404 #
405 # For `KIND_LIST` entity types:
406 #
407 # * This collection must contain exactly one synonym equal to `value`.
408 &quot;A String&quot;,
409 ],
410 },
411 ],
412 },
413 ],
414 &quot;webhookHeaders&quot;: { # This field can be used to pass HTTP headers for a webhook
415 # call. These headers will be sent to webhook alone with the headers that
416 # have been configured through Dialogflow web console. The headers defined
417 # within this field will overwrite the headers configured through Dialogflow
418 # console if there is a conflict. Header names are case-insensitive.
419 # Google&#x27;s specified headers are not allowed. Including: &quot;Host&quot;,
420 # &quot;Content-Length&quot;, &quot;Connection&quot;, &quot;From&quot;, &quot;User-Agent&quot;, &quot;Accept-Encoding&quot;,
421 # &quot;If-Modified-Since&quot;, &quot;If-None-Match&quot;, &quot;X-Forwarded-For&quot;, etc.
422 &quot;a_key&quot;: &quot;A String&quot;,
423 },
424 &quot;subAgents&quot;: [ # For mega agent query, directly specify which sub agents to query.
425 # If any specified sub agent is not linked to the mega agent, an error will
426 # be returned. If empty, Dialogflow will decide which sub agents to query.
427 # If specified for a non-mega-agent query, will be silently ignored.
428 { # Contains basic configuration for a sub-agent.
429 &quot;project&quot;: &quot;A String&quot;, # Required. The project of this agent.
430 # Format: `projects/&lt;Project ID&gt;`.
431 &quot;environment&quot;: &quot;A String&quot;, # Optional. The unique identifier (`environment name` in dialogflow console)
432 # of this sub-agent environment. Assumes draft environment if `environment`
433 # is not set.
434 },
435 ],
436 },
437 &quot;outputAudioConfig&quot;: { # Instructs the speech synthesizer how to generate the output audio content. # Instructs the speech synthesizer how to generate the output
438 # audio. If this field is not set and agent-level speech synthesizer is not
439 # configured, no output audio is generated.
440 # If this audio config is supplied in a request, it overrides all existing
441 # text-to-speech settings applied to the agent.
442 &quot;audioEncoding&quot;: &quot;A String&quot;, # Required. Audio encoding of the synthesized audio content.
443 &quot;synthesizeSpeechConfig&quot;: { # Configuration of how speech should be synthesized. # Configuration of how speech should be synthesized.
444 &quot;volumeGainDb&quot;: 3.14, # Optional. Volume gain (in dB) of the normal native volume supported by the
445 # specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of
446 # 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB)
447 # will play at approximately half the amplitude of the normal native signal
448 # amplitude. A value of +6.0 (dB) will play at approximately twice the
449 # amplitude of the normal native signal amplitude. We strongly recommend not
450 # to exceed +10 (dB) as there&#x27;s usually no effective increase in loudness for
451 # any value greater than that.
452 &quot;pitch&quot;: 3.14, # Optional. Speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20
453 # semitones from the original pitch. -20 means decrease 20 semitones from the
454 # original pitch.
455 &quot;voice&quot;: { # Description of which voice to use for speech synthesis. # Optional. The desired voice of the synthesized audio.
456 &quot;name&quot;: &quot;A String&quot;, # Optional. The name of the voice. If not set, the service will choose a
457 # voice based on the other parameters such as language_code and
458 # ssml_gender.
459 &quot;ssmlGender&quot;: &quot;A String&quot;, # Optional. The preferred gender of the voice. If not set, the service will
460 # choose a voice based on the other parameters such as language_code and
461 # name. Note that this is only a preference, not requirement. If a
462 # voice of the appropriate gender is not available, the synthesizer should
463 # substitute a voice with a different gender rather than failing the request.
464 },
465 &quot;speakingRate&quot;: 3.14, # Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal
466 # native speed supported by the specific voice. 2.0 is twice as fast, and
467 # 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any
468 # other values &lt; 0.25 or &gt; 4.0 will return an error.
469 &quot;effectsProfileId&quot;: [ # Optional. An identifier which selects &#x27;audio effects&#x27; profiles that are
470 # applied on (post synthesized) text to speech. Effects are applied on top of
471 # each other in the order they are given.
472 &quot;A String&quot;,
473 ],
474 },
475 &quot;sampleRateHertz&quot;: 42, # The synthesis sample rate (in hertz) for this audio. If not
476 # provided, then the synthesizer will use the default sample rate based on
477 # the audio encoding. If this is different from the voice&#x27;s natural sample
478 # rate, then the synthesizer will honor this request by converting to the
479 # desired sample rate (which might result in worse audio quality).
480 },
481 &quot;inputAudio&quot;: &quot;A String&quot;, # The natural language speech audio to be processed. This field
482 # should be populated iff `query_input` is set to an input audio config.
483 # A single request can contain up to 1 minute of speech audio data.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700484 }
485
486 x__xgafv: string, V1 error format.
487 Allowed values
488 1 - v1 error format
489 2 - v2 error format
490
491Returns:
492 An object of the form:
493
494 { # The message returned from the DetectIntent method.
Bu Sun Kim65020912020-05-20 12:08:20 -0700495 &quot;queryResult&quot;: { # Represents the result of conversational query or event processing. # The selected results of the conversational query or event processing.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700496 # See `alternative_query_results` for additional potential results.
Bu Sun Kim65020912020-05-20 12:08:20 -0700497 &quot;allRequiredParamsPresent&quot;: True or False, # This field is set to:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700498 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700499 # - `false` if the matched intent has required parameters and not all of
500 # the required parameter values have been collected.
501 # - `true` if all required parameter values have been collected, or if the
502 # matched intent doesn&#x27;t contain any required parameters.
503 &quot;queryText&quot;: &quot;A String&quot;, # The original conversational query text:
Dan O'Mearadd494642020-05-01 07:42:23 -0700504 #
505 # - If natural language text was provided as input, `query_text` contains
506 # a copy of the input.
507 # - If natural language speech audio was provided as input, `query_text`
508 # contains the speech recognition result. If speech recognizer produced
509 # multiple alternatives, a particular one is picked.
510 # - If automatic spell correction is enabled, `query_text` will contain the
511 # corrected user input.
Bu Sun Kim65020912020-05-20 12:08:20 -0700512 &quot;speechRecognitionConfidence&quot;: 3.14, # The Speech recognition confidence between 0.0 and 1.0. A higher number
513 # indicates an estimated greater likelihood that the recognized words are
514 # correct. The default of 0.0 is a sentinel value indicating that confidence
515 # was not set.
516 #
517 # This field is not guaranteed to be accurate or set. In particular this
518 # field isn&#x27;t set for StreamingDetectIntent since the streaming endpoint has
519 # separate confidence estimates per portion of the audio in
520 # StreamingRecognitionResult.
521 &quot;diagnosticInfo&quot;: { # Free-form diagnostic information for the associated detect intent request.
522 # The fields of this data can change without notice, so you should not write
523 # code that depends on its structure.
524 # The data may contain:
525 #
526 # - webhook call latency
527 # - webhook errors
528 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
529 },
530 &quot;outputContexts&quot;: [ # The collection of output contexts. If applicable,
531 # `output_contexts.parameters` contains entries with name
532 # `&lt;parameter name&gt;.original` containing the original parameter values
533 # before the query.
534 { # Represents a context.
535 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
536 # context expires. The default is `0`. If set to `0`, the context expires
537 # immediately. Contexts expire automatically after 20 minutes if there
538 # are no matching queries.
539 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
540 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
541 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
542 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
543 #
544 # The `Context ID` is always converted to lowercase, may only contain
545 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
546 #
547 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
548 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
549 #
550 # The following context names are reserved for internal use by Dialogflow.
551 # You should not use these contexts or create contexts with these names:
552 #
553 # * `__system_counters__`
554 # * `*_id_dialog_context`
555 # * `*_dialog_params_size`
556 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
557 #
558 # Depending on your protocol or client library language, this is a
559 # map, associative array, symbol table, dictionary, or JSON object
560 # composed of a collection of (MapKey, MapValue) pairs:
561 #
562 # - MapKey type: string
563 # - MapKey value: parameter name
564 # - MapValue type:
565 # - If parameter&#x27;s entity type is a composite entity: map
566 # - Else: string or number, depending on parameter value type
567 # - MapValue value:
568 # - If parameter&#x27;s entity type is a composite entity:
569 # map from composite entity property names to property values
570 # - Else: parameter value
571 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
572 },
573 },
574 ],
575 &quot;languageCode&quot;: &quot;A String&quot;, # The language that was triggered during intent detection.
576 # See [Language
577 # Support](https://cloud.google.com/dialogflow/docs/reference/language)
578 # for a list of the currently supported language codes.
579 &quot;intent&quot;: { # Represents an intent. # The intent that matched the conversational query. Some, not
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700580 # all fields are filled in this message, including but not limited to:
Dan O'Mearadd494642020-05-01 07:42:23 -0700581 # `name`, `display_name`, `end_interaction` and `is_fallback`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700582 # Intents convert a number of user expressions or patterns into an action. An
583 # action is an extraction of a user command or sentence semantics.
Bu Sun Kim65020912020-05-20 12:08:20 -0700584 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700585 # trained on.
586 { # Represents an example that the agent is trained on.
Bu Sun Kim65020912020-05-20 12:08:20 -0700587 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700588 # The parts are concatenated in order to form the training phrase.
589 #
590 # Note: The API does not automatically annotate training phrases like the
591 # Dialogflow Console does.
592 #
593 # Note: Do not forget to include whitespace at part boundaries,
594 # so the training phrase is well formatted when the parts are concatenated.
595 #
596 # If the training phrase does not need to be annotated with parameters,
597 # you just need a single part with only the Part.text field set.
598 #
599 # If you want to annotate the training phrase, you must create multiple
600 # parts, where the fields of each part are populated in one of two ways:
601 #
602 # - `Part.text` is set to a part of the phrase that has no parameters.
603 # - `Part.text` is set to a part of the phrase that you want to annotate,
604 # and the `entity_type`, `alias`, and `user_defined` fields are all
605 # set.
606 { # Represents a part of a training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -0700607 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the
Dan O'Mearadd494642020-05-01 07:42:23 -0700608 # annotated part of the example.
609 # This field is required for annotated parts of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -0700610 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700611 # This field is set to true when the Dialogflow Console is used to
612 # manually annotate the part. When creating an annotated part with the
613 # API, you must set this to true.
Bu Sun Kim65020912020-05-20 12:08:20 -0700614 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
615 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`.
616 # This field is required for annotated parts of the training phrase.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700617 },
618 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700619 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
620 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700621 # the intent. Each time a developer adds an existing sample by editing an
622 # intent or training, this counter is increased.
Bu Sun Kim65020912020-05-20 12:08:20 -0700623 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700624 },
625 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700626 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current
627 # session when this intent is matched.
628 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
629 { # Represents intent parameters.
630 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
631 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that
632 # describes values of the parameter. If the parameter is
633 # required, this must be provided.
634 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the
635 # user in order to collect a value for the parameter.
636 &quot;A String&quot;,
637 ],
638 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty
639 # result.
640 # Default values can be extracted from contexts by using the following
641 # syntax: `#context_name.parameter_name`.
642 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is,
643 # whether the intent cannot be completed without collecting the parameter
644 # value.
645 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
646 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
647 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be:
648 #
649 # - a constant string,
650 # - a parameter value defined as `$parameter_name`,
651 # - an original parameter value defined as `$parameter_name.original`,
652 # - a parameter value from some context defined as
653 # `#context_name.parameter_name`.
654 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700655 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700656 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent.
657 # If the collection of input contexts is not empty, all of the contexts must
658 # be present in the active user session for an event to trigger this intent.
659 # Event names are limited to 150 characters.
660 &quot;A String&quot;,
661 ],
662 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Optional. The unique identifier of the parent intent in the
663 # chain of followup intents. You can set this field when creating an intent,
664 # for example with CreateIntent or
665 # BatchUpdateIntents, in order to make this
666 # intent a followup intent.
667 #
668 # It identifies the parent followup intent.
669 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
670 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher
Dan O'Mearadd494642020-05-01 07:42:23 -0700671 # priorities.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700672 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700673 # - If the supplied value is unspecified or 0, the service
674 # translates the value to 500,000, which corresponds to the
675 # `Normal` priority in the console.
676 # - If the supplied value is negative, the intent is ignored
677 # in runtime detect intent requests.
Bu Sun Kim65020912020-05-20 12:08:20 -0700678 &quot;endInteraction&quot;: True or False, # Optional. Indicates that this intent ends an interaction. Some integrations
679 # (e.g., Actions on Google or Dialogflow phone gateway) use this information
680 # to close interaction with an end user. Default is false.
681 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700682 # is matched. Context messages in this collection should not set the
683 # parameters field. Setting the `lifespan_count` to 0 will reset the context
684 # when the intent is matched.
Dan O'Mearadd494642020-05-01 07:42:23 -0700685 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700686 { # Represents a context.
Bu Sun Kim65020912020-05-20 12:08:20 -0700687 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
688 # context expires. The default is `0`. If set to `0`, the context expires
689 # immediately. Contexts expire automatically after 20 minutes if there
690 # are no matching queries.
691 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
Dan O'Mearadd494642020-05-01 07:42:23 -0700692 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
693 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
694 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700695 #
696 # The `Context ID` is always converted to lowercase, may only contain
697 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
698 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700699 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
700 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
Dan O'Mearadd494642020-05-01 07:42:23 -0700701 #
702 # The following context names are reserved for internal use by Dialogflow.
703 # You should not use these contexts or create contexts with these names:
704 #
705 # * `__system_counters__`
706 # * `*_id_dialog_context`
707 # * `*_dialog_params_size`
Bu Sun Kim65020912020-05-20 12:08:20 -0700708 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
Dan O'Mearadd494642020-05-01 07:42:23 -0700709 #
710 # Depending on your protocol or client library language, this is a
711 # map, associative array, symbol table, dictionary, or JSON object
712 # composed of a collection of (MapKey, MapValue) pairs:
713 #
714 # - MapKey type: string
715 # - MapKey value: parameter name
716 # - MapValue type:
Bu Sun Kim65020912020-05-20 12:08:20 -0700717 # - If parameter&#x27;s entity type is a composite entity: map
Dan O'Mearadd494642020-05-01 07:42:23 -0700718 # - Else: string or number, depending on parameter value type
719 # - MapValue value:
Bu Sun Kim65020912020-05-20 12:08:20 -0700720 # - If parameter&#x27;s entity type is a composite entity:
Dan O'Mearadd494642020-05-01 07:42:23 -0700721 # map from composite entity property names to property values
722 # - Else: parameter value
Bu Sun Kim65020912020-05-20 12:08:20 -0700723 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Dan O'Mearadd494642020-05-01 07:42:23 -0700724 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700725 },
726 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700727 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be
728 # copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
729 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700730 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700731 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the
732 # `Response` field in the Dialogflow console.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700733 { # Corresponds to the `Response` field in the Dialogflow console.
Bu Sun Kim65020912020-05-20 12:08:20 -0700734 &quot;text&quot;: { # The text response message. # Returns a text response.
735 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
736 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700737 ],
738 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700739 &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 -0700740 #
741 # Rich cards allow you to respond to users with more vivid content, e.g.
742 # with media and suggestions.
743 #
744 # For more details about RBM rich cards, please see:
745 # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards.
746 # If you want to show a single card with more control over the layout,
747 # please use RbmStandaloneCard instead.
Bu Sun Kim65020912020-05-20 12:08:20 -0700748 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
749 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least
Dan O'Mearadd494642020-05-01 07:42:23 -0700750 # 2 cards and at most 10.
751 { # Rich Business Messaging (RBM) Card content
Bu Sun Kim65020912020-05-20 12:08:20 -0700752 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
753 #
754 # At least one of the title, description or media must be set.
755 &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 -0700756 # be set. Media (image, GIF or a video) to include in the card.
757 # The following media-types are currently supported:
758 #
759 # Image Types
760 #
761 # * image/jpeg
Bu Sun Kim65020912020-05-20 12:08:20 -0700762 # * image/jpg&#x27;
Dan O'Mearadd494642020-05-01 07:42:23 -0700763 # * image/gif
764 # * image/png
765 #
766 # Video Types
767 #
768 # * video/h263
769 # * video/m4v
770 # * video/mp4
771 # * video/mpeg
772 # * video/mpeg4
773 # * video/webm
Bu Sun Kim65020912020-05-20 12:08:20 -0700774 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
Dan O'Mearadd494642020-05-01 07:42:23 -0700775 # provide a thumbnail URI, the RBM platform displays a blank
Bu Sun Kim65020912020-05-20 12:08:20 -0700776 # placeholder thumbnail until the user&#x27;s device downloads the file.
777 # Depending on the user&#x27;s setting, the file may not download
Dan O'Mearadd494642020-05-01 07:42:23 -0700778 # automatically and may require the user to tap a download button.
Bu Sun Kim65020912020-05-20 12:08:20 -0700779 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
Dan O'Mearadd494642020-05-01 07:42:23 -0700780 # within a rich card with a vertical layout. (https://goo.gl/NeFCjz).
781 # For a standalone card with horizontal layout, height is not
782 # customizable, and this field is ignored.
Bu Sun Kim65020912020-05-20 12:08:20 -0700783 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
784 # determines the MIME type of the file from the content-type field in
785 # the HTTP headers when the platform fetches the file. The content-type
786 # field must be present and accurate in the HTTP response from the URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700787 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700788 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
Dan O'Mearadd494642020-05-01 07:42:23 -0700789 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
790 # easily select/click a predefined response or perform an action (like
791 # opening a web uri).
Bu Sun Kim65020912020-05-20 12:08:20 -0700792 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
793 # instead of typing in their own response.
794 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
795 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
796 # when the user taps the suggested reply. This data will be also
797 # forwarded to webhook to allow performing custom business logic.
798 },
799 &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 -0700800 # can choose from the card.
Bu Sun Kim65020912020-05-20 12:08:20 -0700801 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
802 # when the user taps the suggested action. This data will be also
803 # forwarded to webhook to allow performing custom business logic.
804 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
Dan O'Mearadd494642020-05-01 07:42:23 -0700805 # to send back to the agent (https://goo.gl/GXotJW).
806 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700807 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
808 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
Dan O'Mearadd494642020-05-01 07:42:23 -0700809 # (https://goo.gl/6GLJD2). If the user has an app installed that is
810 # registered as the default handler for the URL, then this app will be
811 # opened instead, and its icon will be used in the suggested action UI.
Bu Sun Kim65020912020-05-20 12:08:20 -0700812 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
Dan O'Mearadd494642020-05-01 07:42:23 -0700813 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700814 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
Dan O'Mearadd494642020-05-01 07:42:23 -0700815 # but does not dial automatically (https://goo.gl/ergbB2).
Bu Sun Kim65020912020-05-20 12:08:20 -0700816 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
Dan O'Mearadd494642020-05-01 07:42:23 -0700817 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
818 # format. An example of a correctly formatted phone number:
819 # +15556767888.
820 },
Dan O'Mearadd494642020-05-01 07:42:23 -0700821 },
822 },
823 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700824 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
Dan O'Mearadd494642020-05-01 07:42:23 -0700825 #
826 # At least one of the title, description or media must be set.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700827 },
828 ],
829 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700830 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
831 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
832 { # The suggestion chip message that the user can tap to quickly post a reply
833 # to the conversation.
834 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
835 },
836 ],
837 },
838 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
839 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
840 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to
841 # play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700842 # channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz.
843 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700844 # This object must be readable by the `service-&lt;Project
845 # Number&gt;@gcp-sa-dialogflow.iam.gserviceaccount.com` service account
846 # where &lt;Project Number&gt; is the number of the Telephony Gateway project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700847 # (usually the same as the Dialogflow agent project). If the Google Cloud
848 # Storage bucket is in the Telephony Gateway project, this permission is
849 # added by default when enabling the Dialogflow V2 API.
850 #
851 # For audio from other sources, consider using the
852 # `TelephonySynthesizeSpeech` message with SSML.
853 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700854 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
855 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
856 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
857 &quot;items&quot;: [ # Required. List items.
858 { # An item in the list.
859 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
860 # dialog.
861 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
862 # item in dialog.
863 &quot;A String&quot;,
864 ],
865 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
866 # response is given.
867 },
868 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
869 &quot;image&quot;: { # The image response message. # Optional. The image to display.
870 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
871 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
872 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
873 },
874 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
875 },
876 ],
877 },
878 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response.
879 #
880 # RBM allows businesses to send enriched and branded versions of SMS. See
881 # https://jibe.google.com/business-messaging.
882 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
883 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
884 # easily select/click a predefined response or perform an action (like
885 # opening a web uri).
886 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
887 # instead of typing in their own response.
888 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
889 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
890 # when the user taps the suggested reply. This data will be also
891 # forwarded to webhook to allow performing custom business logic.
892 },
893 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
894 # can choose from the card.
895 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
896 # when the user taps the suggested action. This data will be also
897 # forwarded to webhook to allow performing custom business logic.
898 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
899 # to send back to the agent (https://goo.gl/GXotJW).
900 },
901 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
902 &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
903 # (https://goo.gl/6GLJD2). If the user has an app installed that is
904 # registered as the default handler for the URL, then this app will be
905 # opened instead, and its icon will be used in the suggested action UI.
906 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
907 },
908 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
909 # but does not dial automatically (https://goo.gl/ergbB2).
910 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
911 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
912 # format. An example of a correctly formatted phone number:
913 # +15556767888.
914 },
915 },
916 },
917 ],
918 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
919 },
920 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
921 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
922 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
923 &quot;A String&quot;,
924 ],
925 },
926 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in # Synthesizes speech in Telephony Gateway.
927 # Telephony Gateway.
928 #
929 # Telephony Gateway takes the synthesizer settings from
930 # `DetectIntentResponse.output_audio_config` which can either be set
931 # at request-level or can come from the agent-level synthesizer config.
932 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
933 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see
934 # [SSML](https://developers.google.com/actions/reference/ssml).
935 },
936 &quot;card&quot;: { # The card response message. # Displays a card.
937 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
938 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
939 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
940 { # Optional. Contains information about a button.
941 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
942 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
943 # open.
944 },
945 ],
946 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
947 },
948 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
949 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
950 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
951 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
952 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
953 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
954 },
955 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
956 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
957 { # The button object that appears at the bottom of a card.
958 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
959 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
960 },
961 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
962 },
963 ],
964 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
965 },
966 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
967 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
968 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
969 { # Column properties for TableCard.
970 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
971 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
972 },
973 ],
974 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
975 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
976 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
977 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
978 },
979 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
980 { # The button object that appears at the bottom of a card.
981 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
982 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
983 },
984 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
985 },
986 ],
987 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
988 &quot;rows&quot;: [ # Optional. Rows in this table of data.
989 { # Row of TableCard.
990 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
991 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
992 { # Cell of TableCardRow.
993 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
994 },
995 ],
996 },
997 ],
998 },
999 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
1000 &quot;items&quot;: [ # Required. Carousel items.
1001 { # An item in the carousel.
1002 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
1003 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1004 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1005 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1006 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1007 },
1008 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
1009 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
1010 # dialog.
1011 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
1012 # item in dialog.
1013 &quot;A String&quot;,
1014 ],
1015 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
1016 # response is given.
1017 },
1018 },
1019 ],
1020 },
1021 &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.
1022 # or website associated with this agent.
1023 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
1024 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
1025 # suggestion chip.
1026 },
1027 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
1028 # https://developers.google.com/actions/assistant/responses#browsing_carousel
1029 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
1030 # items.
1031 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
1032 # items, maximum of ten.
1033 { # Browsing carousel tile
1034 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
1035 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
1036 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1037 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1038 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1039 },
1040 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
1041 # text.
1042 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
1043 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
1044 # the URL. Defaults to opening via web browser.
1045 &quot;url&quot;: &quot;A String&quot;, # Required. URL
1046 },
1047 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
1048 # Card. Maximum of one line of text.
1049 },
1050 ],
1051 },
1052 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # Returns a voice or text-only response for Actions on Google.
1053 # This message in `QueryResult.fulfillment_messages` and
1054 # `WebhookResponse.fulfillment_messages` should contain only one
1055 # `SimpleResponse`.
1056 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
1057 { # The simple response message containing speech or text.
1058 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
1059 # speech output. Mutually exclusive with ssml.
1060 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
1061 # response to the user in the SSML format. Mutually exclusive with
1062 # text_to_speech.
1063 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
1064 },
1065 ],
1066 },
1067 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
1068 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to
1069 # in [E.164 format](https://en.wikipedia.org/wiki/E.164).
1070 #
1071 # We currently only allow transferring to US numbers (+1xxxyyyzzzz).
1072 },
1073 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
1074 &quot;mediaObjects&quot;: [ # Required. List of media objects.
1075 { # Response media object for media content card.
1076 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
1077 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1078 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1079 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1080 },
1081 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
1082 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
1083 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
1084 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
1085 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1086 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1087 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1088 },
1089 },
1090 ],
1091 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
1092 },
1093 &quot;image&quot;: { # The image response message. # Displays an image.
1094 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1095 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1096 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1097 },
1098 &quot;payload&quot;: { # A custom platform-specific response.
1099 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1100 },
1101 &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 -07001102 #
1103 # Rich cards allow you to respond to users with more vivid content, e.g.
1104 # with media and suggestions.
1105 #
1106 # For more details about RBM rich cards, please see:
1107 # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards.
1108 # You can group multiple rich cards into one using RbmCarouselCard but
1109 # carousel cards will give you less control over the card layout.
Bu Sun Kim65020912020-05-20 12:08:20 -07001110 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal.
Dan O'Mearadd494642020-05-01 07:42:23 -07001111 # Image preview alignment for standalone cards with horizontal layout.
Bu Sun Kim65020912020-05-20 12:08:20 -07001112 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
1113 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
1114 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
1115 #
1116 # At least one of the title, description or media must be set.
1117 &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 -07001118 # be set. Media (image, GIF or a video) to include in the card.
1119 # The following media-types are currently supported:
1120 #
1121 # Image Types
1122 #
1123 # * image/jpeg
Bu Sun Kim65020912020-05-20 12:08:20 -07001124 # * image/jpg&#x27;
Dan O'Mearadd494642020-05-01 07:42:23 -07001125 # * image/gif
1126 # * image/png
1127 #
1128 # Video Types
1129 #
1130 # * video/h263
1131 # * video/m4v
1132 # * video/mp4
1133 # * video/mpeg
1134 # * video/mpeg4
1135 # * video/webm
Bu Sun Kim65020912020-05-20 12:08:20 -07001136 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
Dan O'Mearadd494642020-05-01 07:42:23 -07001137 # provide a thumbnail URI, the RBM platform displays a blank
Bu Sun Kim65020912020-05-20 12:08:20 -07001138 # placeholder thumbnail until the user&#x27;s device downloads the file.
1139 # Depending on the user&#x27;s setting, the file may not download
Dan O'Mearadd494642020-05-01 07:42:23 -07001140 # automatically and may require the user to tap a download button.
Bu Sun Kim65020912020-05-20 12:08:20 -07001141 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
Dan O'Mearadd494642020-05-01 07:42:23 -07001142 # within a rich card with a vertical layout. (https://goo.gl/NeFCjz).
1143 # For a standalone card with horizontal layout, height is not
1144 # customizable, and this field is ignored.
Bu Sun Kim65020912020-05-20 12:08:20 -07001145 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
1146 # determines the MIME type of the file from the content-type field in
1147 # the HTTP headers when the platform fetches the file. The content-type
1148 # field must be present and accurate in the HTTP response from the URL.
Dan O'Mearadd494642020-05-01 07:42:23 -07001149 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001150 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
Dan O'Mearadd494642020-05-01 07:42:23 -07001151 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
1152 # easily select/click a predefined response or perform an action (like
1153 # opening a web uri).
Bu Sun Kim65020912020-05-20 12:08:20 -07001154 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
1155 # instead of typing in their own response.
1156 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
1157 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1158 # when the user taps the suggested reply. This data will be also
1159 # forwarded to webhook to allow performing custom business logic.
1160 },
1161 &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 -07001162 # can choose from the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07001163 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1164 # when the user taps the suggested action. This data will be also
1165 # forwarded to webhook to allow performing custom business logic.
1166 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
Dan O'Mearadd494642020-05-01 07:42:23 -07001167 # to send back to the agent (https://goo.gl/GXotJW).
1168 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001169 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1170 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
Dan O'Mearadd494642020-05-01 07:42:23 -07001171 # (https://goo.gl/6GLJD2). If the user has an app installed that is
1172 # registered as the default handler for the URL, then this app will be
1173 # opened instead, and its icon will be used in the suggested action UI.
Bu Sun Kim65020912020-05-20 12:08:20 -07001174 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
Dan O'Mearadd494642020-05-01 07:42:23 -07001175 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001176 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
Dan O'Mearadd494642020-05-01 07:42:23 -07001177 # but does not dial automatically (https://goo.gl/ergbB2).
Bu Sun Kim65020912020-05-20 12:08:20 -07001178 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
Dan O'Mearadd494642020-05-01 07:42:23 -07001179 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
1180 # format. An example of a correctly formatted phone number:
1181 # +15556767888.
1182 },
Dan O'Mearadd494642020-05-01 07:42:23 -07001183 },
1184 },
1185 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001186 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
Dan O'Mearadd494642020-05-01 07:42:23 -07001187 #
1188 # At least one of the title, description or media must be set.
1189 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001190 },
1191 },
1192 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001193 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent.
1194 # Note: The action name must not contain whitespaces.
1195 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent.
1196 # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
1197 # methods.
1198 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
1199 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
1200 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be
1201 # triggered.
1202 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
1203 &quot;A String&quot;,
1204 ],
1205 &quot;followupIntentInfo&quot;: [ # Output only. Information about all followup intents that have this intent as
1206 # a direct or indirect parent. We populate this field only in the output.
1207 { # Represents a single followup intent in the chain.
1208 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent.
1209 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
1210 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent.
1211 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
1212 },
1213 ],
1214 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
1215 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Output only. The unique identifier of the root intent in the chain of
1216 # followup intents. It identifies the correct followup intents chain for
1217 # this intent.
Dan O'Mearadd494642020-05-01 07:42:23 -07001218 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001219 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
1220 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
1221 # Note: If `ml_disabled` setting is set to true, then this intent is not
1222 # taken into account during inference in `ML ONLY` match mode. Also,
1223 # auto-markup in the UI is turned off.
1224 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
1225 &quot;mlEnabled&quot;: True or False, # Optional. Indicates whether Machine Learning is enabled for the intent.
1226 # Note: If `ml_enabled` setting is set to false, then this intent is not
1227 # taken into account during inference in `ML ONLY` match mode. Also,
1228 # auto-markup in the UI is turned off.
1229 # DEPRECATED! Please use `ml_disabled` field instead.
1230 # NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false,
1231 # then the default value is determined as follows:
1232 # - Before April 15th, 2018 the default is:
1233 # ml_enabled = false / ml_disabled = true.
1234 # - After April 15th, 2018 the default is:
1235 # ml_enabled = true / ml_disabled = false.
1236 },
1237 &quot;fulfillmentMessages&quot;: [ # The collection of rich messages to present to the user.
1238 { # Corresponds to the `Response` field in the Dialogflow console.
1239 &quot;text&quot;: { # The text response message. # Returns a text response.
1240 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
1241 &quot;A String&quot;,
1242 ],
1243 },
1244 &quot;rbmCarouselRichCard&quot;: { # Carousel Rich Business Messaging (RBM) rich card. # Rich Business Messaging (RBM) carousel rich card response.
1245 #
1246 # Rich cards allow you to respond to users with more vivid content, e.g.
1247 # with media and suggestions.
1248 #
1249 # For more details about RBM rich cards, please see:
1250 # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards.
1251 # If you want to show a single card with more control over the layout,
1252 # please use RbmStandaloneCard instead.
1253 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
1254 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least
1255 # 2 cards and at most 10.
1256 { # Rich Business Messaging (RBM) Card content
1257 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
1258 #
1259 # At least one of the title, description or media must be set.
1260 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
1261 # be set. Media (image, GIF or a video) to include in the card.
1262 # The following media-types are currently supported:
1263 #
1264 # Image Types
1265 #
1266 # * image/jpeg
1267 # * image/jpg&#x27;
1268 # * image/gif
1269 # * image/png
1270 #
1271 # Video Types
1272 #
1273 # * video/h263
1274 # * video/m4v
1275 # * video/mp4
1276 # * video/mpeg
1277 # * video/mpeg4
1278 # * video/webm
1279 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
1280 # provide a thumbnail URI, the RBM platform displays a blank
1281 # placeholder thumbnail until the user&#x27;s device downloads the file.
1282 # Depending on the user&#x27;s setting, the file may not download
1283 # automatically and may require the user to tap a download button.
1284 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
1285 # within a rich card with a vertical layout. (https://goo.gl/NeFCjz).
1286 # For a standalone card with horizontal layout, height is not
1287 # customizable, and this field is ignored.
1288 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
1289 # determines the MIME type of the file from the content-type field in
1290 # the HTTP headers when the platform fetches the file. The content-type
1291 # field must be present and accurate in the HTTP response from the URL.
1292 },
1293 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
1294 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
1295 # easily select/click a predefined response or perform an action (like
1296 # opening a web uri).
1297 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
1298 # instead of typing in their own response.
1299 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
1300 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1301 # when the user taps the suggested reply. This data will be also
1302 # forwarded to webhook to allow performing custom business logic.
1303 },
1304 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
1305 # can choose from the card.
1306 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1307 # when the user taps the suggested action. This data will be also
1308 # forwarded to webhook to allow performing custom business logic.
1309 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
1310 # to send back to the agent (https://goo.gl/GXotJW).
1311 },
1312 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1313 &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
1314 # (https://goo.gl/6GLJD2). If the user has an app installed that is
1315 # registered as the default handler for the URL, then this app will be
1316 # opened instead, and its icon will be used in the suggested action UI.
1317 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1318 },
1319 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
1320 # but does not dial automatically (https://goo.gl/ergbB2).
1321 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
1322 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
1323 # format. An example of a correctly formatted phone number:
1324 # +15556767888.
1325 },
1326 },
1327 },
1328 ],
1329 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
1330 #
1331 # At least one of the title, description or media must be set.
1332 },
1333 ],
1334 },
1335 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
1336 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
1337 { # The suggestion chip message that the user can tap to quickly post a reply
1338 # to the conversation.
1339 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
1340 },
1341 ],
1342 },
1343 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
1344 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
1345 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to
1346 # play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single
1347 # channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz.
1348 #
1349 # This object must be readable by the `service-&lt;Project
1350 # Number&gt;@gcp-sa-dialogflow.iam.gserviceaccount.com` service account
1351 # where &lt;Project Number&gt; is the number of the Telephony Gateway project
1352 # (usually the same as the Dialogflow agent project). If the Google Cloud
1353 # Storage bucket is in the Telephony Gateway project, this permission is
1354 # added by default when enabling the Dialogflow V2 API.
1355 #
1356 # For audio from other sources, consider using the
1357 # `TelephonySynthesizeSpeech` message with SSML.
1358 },
1359 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
1360 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
1361 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
1362 &quot;items&quot;: [ # Required. List items.
1363 { # An item in the list.
1364 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
1365 # dialog.
1366 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
1367 # item in dialog.
1368 &quot;A String&quot;,
1369 ],
1370 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
1371 # response is given.
1372 },
1373 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
1374 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1375 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1376 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1377 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1378 },
1379 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
1380 },
1381 ],
1382 },
1383 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response.
1384 #
1385 # RBM allows businesses to send enriched and branded versions of SMS. See
1386 # https://jibe.google.com/business-messaging.
1387 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
1388 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
1389 # easily select/click a predefined response or perform an action (like
1390 # opening a web uri).
1391 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
1392 # instead of typing in their own response.
1393 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
1394 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1395 # when the user taps the suggested reply. This data will be also
1396 # forwarded to webhook to allow performing custom business logic.
1397 },
1398 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
1399 # can choose from the card.
1400 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1401 # when the user taps the suggested action. This data will be also
1402 # forwarded to webhook to allow performing custom business logic.
1403 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
1404 # to send back to the agent (https://goo.gl/GXotJW).
1405 },
1406 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1407 &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
1408 # (https://goo.gl/6GLJD2). If the user has an app installed that is
1409 # registered as the default handler for the URL, then this app will be
1410 # opened instead, and its icon will be used in the suggested action UI.
1411 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1412 },
1413 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
1414 # but does not dial automatically (https://goo.gl/ergbB2).
1415 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
1416 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
1417 # format. An example of a correctly formatted phone number:
1418 # +15556767888.
1419 },
1420 },
1421 },
1422 ],
1423 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
1424 },
1425 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
1426 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
1427 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
1428 &quot;A String&quot;,
1429 ],
1430 },
1431 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in # Synthesizes speech in Telephony Gateway.
1432 # Telephony Gateway.
1433 #
1434 # Telephony Gateway takes the synthesizer settings from
1435 # `DetectIntentResponse.output_audio_config` which can either be set
1436 # at request-level or can come from the agent-level synthesizer config.
1437 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
1438 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see
1439 # [SSML](https://developers.google.com/actions/reference/ssml).
1440 },
1441 &quot;card&quot;: { # The card response message. # Displays a card.
1442 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
1443 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1444 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1445 { # Optional. Contains information about a button.
1446 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
1447 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
1448 # open.
1449 },
1450 ],
1451 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1452 },
1453 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
1454 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1455 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
1456 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1457 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1458 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1459 },
1460 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
1461 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1462 { # The button object that appears at the bottom of a card.
1463 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1464 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1465 },
1466 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1467 },
1468 ],
1469 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1470 },
1471 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
1472 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
1473 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
1474 { # Column properties for TableCard.
1475 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
1476 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
1477 },
1478 ],
1479 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
1480 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1481 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1482 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1483 },
1484 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
1485 { # The button object that appears at the bottom of a card.
1486 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1487 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1488 },
1489 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1490 },
1491 ],
1492 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
1493 &quot;rows&quot;: [ # Optional. Rows in this table of data.
1494 { # Row of TableCard.
1495 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
1496 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
1497 { # Cell of TableCardRow.
1498 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
1499 },
1500 ],
1501 },
1502 ],
1503 },
1504 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
1505 &quot;items&quot;: [ # Required. Carousel items.
1506 { # An item in the carousel.
1507 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
1508 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1509 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1510 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1511 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1512 },
1513 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
1514 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
1515 # dialog.
1516 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
1517 # item in dialog.
1518 &quot;A String&quot;,
1519 ],
1520 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
1521 # response is given.
1522 },
1523 },
1524 ],
1525 },
1526 &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.
1527 # or website associated with this agent.
1528 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
1529 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
1530 # suggestion chip.
1531 },
1532 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
1533 # https://developers.google.com/actions/assistant/responses#browsing_carousel
1534 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
1535 # items.
1536 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
1537 # items, maximum of ten.
1538 { # Browsing carousel tile
1539 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
1540 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
1541 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1542 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1543 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1544 },
1545 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
1546 # text.
1547 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
1548 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
1549 # the URL. Defaults to opening via web browser.
1550 &quot;url&quot;: &quot;A String&quot;, # Required. URL
1551 },
1552 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
1553 # Card. Maximum of one line of text.
1554 },
1555 ],
1556 },
1557 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # Returns a voice or text-only response for Actions on Google.
1558 # This message in `QueryResult.fulfillment_messages` and
1559 # `WebhookResponse.fulfillment_messages` should contain only one
1560 # `SimpleResponse`.
1561 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
1562 { # The simple response message containing speech or text.
1563 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
1564 # speech output. Mutually exclusive with ssml.
1565 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
1566 # response to the user in the SSML format. Mutually exclusive with
1567 # text_to_speech.
1568 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
1569 },
1570 ],
1571 },
1572 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
1573 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to
1574 # in [E.164 format](https://en.wikipedia.org/wiki/E.164).
1575 #
1576 # We currently only allow transferring to US numbers (+1xxxyyyzzzz).
1577 },
1578 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
1579 &quot;mediaObjects&quot;: [ # Required. List of media objects.
1580 { # Response media object for media content card.
1581 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
1582 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1583 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1584 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1585 },
1586 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
1587 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
1588 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
1589 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
1590 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1591 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1592 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1593 },
1594 },
1595 ],
1596 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
1597 },
1598 &quot;image&quot;: { # The image response message. # Displays an image.
1599 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1600 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1601 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1602 },
1603 &quot;payload&quot;: { # A custom platform-specific response.
1604 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1605 },
1606 &quot;rbmStandaloneRichCard&quot;: { # Standalone Rich Business Messaging (RBM) rich card. # Standalone Rich Business Messaging (RBM) rich card response.
1607 #
1608 # Rich cards allow you to respond to users with more vivid content, e.g.
1609 # with media and suggestions.
1610 #
1611 # For more details about RBM rich cards, please see:
1612 # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards.
1613 # You can group multiple rich cards into one using RbmCarouselCard but
1614 # carousel cards will give you less control over the card layout.
1615 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal.
1616 # Image preview alignment for standalone cards with horizontal layout.
1617 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
1618 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
1619 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
1620 #
1621 # At least one of the title, description or media must be set.
1622 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
1623 # be set. Media (image, GIF or a video) to include in the card.
1624 # The following media-types are currently supported:
1625 #
1626 # Image Types
1627 #
1628 # * image/jpeg
1629 # * image/jpg&#x27;
1630 # * image/gif
1631 # * image/png
1632 #
1633 # Video Types
1634 #
1635 # * video/h263
1636 # * video/m4v
1637 # * video/mp4
1638 # * video/mpeg
1639 # * video/mpeg4
1640 # * video/webm
1641 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
1642 # provide a thumbnail URI, the RBM platform displays a blank
1643 # placeholder thumbnail until the user&#x27;s device downloads the file.
1644 # Depending on the user&#x27;s setting, the file may not download
1645 # automatically and may require the user to tap a download button.
1646 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
1647 # within a rich card with a vertical layout. (https://goo.gl/NeFCjz).
1648 # For a standalone card with horizontal layout, height is not
1649 # customizable, and this field is ignored.
1650 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
1651 # determines the MIME type of the file from the content-type field in
1652 # the HTTP headers when the platform fetches the file. The content-type
1653 # field must be present and accurate in the HTTP response from the URL.
1654 },
1655 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
1656 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
1657 # easily select/click a predefined response or perform an action (like
1658 # opening a web uri).
1659 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
1660 # instead of typing in their own response.
1661 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
1662 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1663 # when the user taps the suggested reply. This data will be also
1664 # forwarded to webhook to allow performing custom business logic.
1665 },
1666 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
1667 # can choose from the card.
1668 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1669 # when the user taps the suggested action. This data will be also
1670 # forwarded to webhook to allow performing custom business logic.
1671 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
1672 # to send back to the agent (https://goo.gl/GXotJW).
1673 },
1674 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1675 &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
1676 # (https://goo.gl/6GLJD2). If the user has an app installed that is
1677 # registered as the default handler for the URL, then this app will be
1678 # opened instead, and its icon will be used in the suggested action UI.
1679 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1680 },
1681 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
1682 # but does not dial automatically (https://goo.gl/ergbB2).
1683 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
1684 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
1685 # format. An example of a correctly formatted phone number:
1686 # +15556767888.
1687 },
1688 },
1689 },
1690 ],
1691 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
1692 #
1693 # At least one of the title, description or media must be set.
1694 },
1695 },
1696 },
1697 ],
1698 &quot;webhookPayload&quot;: { # If the query was fulfilled by a webhook call, this field is set to the
1699 # value of the `payload` field returned in the webhook response.
1700 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1701 },
1702 &quot;action&quot;: &quot;A String&quot;, # The action name from the matched intent.
1703 &quot;webhookSource&quot;: &quot;A String&quot;, # If the query was fulfilled by a webhook call, this field is set to the
1704 # value of the `source` field returned in the webhook response.
1705 &quot;fulfillmentText&quot;: &quot;A String&quot;, # The text to be pronounced to the user or shown on the screen.
1706 # Note: This is a legacy field, `fulfillment_messages` should be preferred.
1707 &quot;parameters&quot;: { # The collection of extracted parameters.
1708 #
1709 # Depending on your protocol or client library language, this is a
1710 # map, associative array, symbol table, dictionary, or JSON object
1711 # composed of a collection of (MapKey, MapValue) pairs:
1712 #
1713 # - MapKey type: string
1714 # - MapKey value: parameter name
1715 # - MapValue type:
1716 # - If parameter&#x27;s entity type is a composite entity: map
1717 # - Else: string or number, depending on parameter value type
1718 # - MapValue value:
1719 # - If parameter&#x27;s entity type is a composite entity:
1720 # map from composite entity property names to property values
1721 # - Else: parameter value
1722 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1723 },
1724 &quot;knowledgeAnswers&quot;: { # Represents the result of querying a Knowledge base. # The result from Knowledge Connector (if any), ordered by decreasing
1725 # `KnowledgeAnswers.match_confidence`.
1726 &quot;answers&quot;: [ # A list of answers from Knowledge Connector.
1727 { # An answer from Knowledge Connector.
1728 &quot;source&quot;: &quot;A String&quot;, # Indicates which Knowledge Document this answer was extracted from.
1729 # Format: `projects/&lt;Project ID&gt;/knowledgeBases/&lt;Knowledge Base
1730 # ID&gt;/documents/&lt;Document ID&gt;`.
1731 &quot;answer&quot;: &quot;A String&quot;, # The piece of text from the `source` knowledge base document that answers
1732 # this conversational query.
1733 &quot;faqQuestion&quot;: &quot;A String&quot;, # The corresponding FAQ question if the answer was extracted from a FAQ
1734 # Document, empty otherwise.
1735 &quot;matchConfidenceLevel&quot;: &quot;A String&quot;, # The system&#x27;s confidence level that this knowledge answer is a good match
1736 # for this conversational query.
1737 # NOTE: The confidence level for a given `&lt;query, answer&gt;` pair may change
1738 # without notice, as it depends on models that are constantly being
1739 # improved. However, it will change less frequently than the confidence
1740 # score below, and should be preferred for referencing the quality of an
1741 # answer.
1742 &quot;matchConfidence&quot;: 3.14, # The system&#x27;s confidence score that this Knowledge answer is a good match
1743 # for this conversational query.
1744 # The range is from 0.0 (completely uncertain) to 1.0 (completely certain).
1745 # Note: The confidence score is likely to vary somewhat (possibly even for
1746 # identical requests), as the underlying model is under constant
1747 # improvement. It may be deprecated in the future. We recommend using
1748 # `match_confidence_level` which should be generally more stable.
1749 },
1750 ],
1751 },
1752 &quot;sentimentAnalysisResult&quot;: { # The result of sentiment analysis as configured by # The sentiment analysis result, which depends on the
1753 # `sentiment_analysis_request_config` specified in the request.
1754 # `sentiment_analysis_request_config`.
1755 &quot;queryTextSentiment&quot;: { # The sentiment, such as positive/negative feeling or association, for a unit # The sentiment analysis result for `query_text`.
1756 # of analysis, such as the query text.
1757 &quot;score&quot;: 3.14, # Sentiment score between -1.0 (negative sentiment) and 1.0 (positive
1758 # sentiment).
1759 &quot;magnitude&quot;: 3.14, # A non-negative number in the [0, +inf) range, which represents the absolute
1760 # magnitude of sentiment, regardless of score (positive or negative).
1761 },
1762 },
1763 &quot;intentDetectionConfidence&quot;: 3.14, # The intent detection confidence. Values range from 0.0
1764 # (completely uncertain) to 1.0 (completely certain).
1765 # This value is for informational purpose only and is only used to
1766 # help match the best intent within the classification threshold.
1767 # This value may change for the same end-user expression at any time due to a
1768 # model retraining or change in implementation.
1769 # If there are `multiple knowledge_answers` messages, this value is set to
1770 # the greatest `knowledgeAnswers.match_confidence` value in the list.
1771 },
1772 &quot;webhookStatus&quot;: { # The `Status` type defines a logical error model that is suitable for # Specifies the status of the webhook request.
1773 # different programming environments, including REST APIs and RPC APIs. It is
1774 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1775 # three pieces of data: error code, error message, and error details.
1776 #
1777 # You can find out more about this error model and how to work with it in the
1778 # [API Design Guide](https://cloud.google.com/apis/design/errors).
1779 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
1780 # message types for APIs to use.
1781 {
1782 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1783 },
1784 ],
1785 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1786 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1787 # user-facing error message should be localized and sent in the
1788 # google.rpc.Status.details field, or localized by the client.
1789 },
1790 &quot;alternativeQueryResults&quot;: [ # If Knowledge Connectors are enabled, there could be more than one result
1791 # returned for a given query or event, and this field will contain all
1792 # results except for the top one, which is captured in query_result. The
1793 # alternative results are ordered by decreasing
1794 # `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
1795 # disabled, this field will be empty until multiple responses for regular
1796 # intents are supported, at which point those additional results will be
1797 # surfaced here.
1798 { # Represents the result of conversational query or event processing.
1799 &quot;allRequiredParamsPresent&quot;: True or False, # This field is set to:
1800 #
1801 # - `false` if the matched intent has required parameters and not all of
1802 # the required parameter values have been collected.
1803 # - `true` if all required parameter values have been collected, or if the
1804 # matched intent doesn&#x27;t contain any required parameters.
1805 &quot;queryText&quot;: &quot;A String&quot;, # The original conversational query text:
Dan O'Mearadd494642020-05-01 07:42:23 -07001806 #
1807 # - If natural language text was provided as input, `query_text` contains
1808 # a copy of the input.
1809 # - If natural language speech audio was provided as input, `query_text`
1810 # contains the speech recognition result. If speech recognizer produced
1811 # multiple alternatives, a particular one is picked.
1812 # - If automatic spell correction is enabled, `query_text` will contain the
1813 # corrected user input.
Bu Sun Kim65020912020-05-20 12:08:20 -07001814 &quot;speechRecognitionConfidence&quot;: 3.14, # The Speech recognition confidence between 0.0 and 1.0. A higher number
1815 # indicates an estimated greater likelihood that the recognized words are
1816 # correct. The default of 0.0 is a sentinel value indicating that confidence
1817 # was not set.
1818 #
1819 # This field is not guaranteed to be accurate or set. In particular this
1820 # field isn&#x27;t set for StreamingDetectIntent since the streaming endpoint has
1821 # separate confidence estimates per portion of the audio in
1822 # StreamingRecognitionResult.
1823 &quot;diagnosticInfo&quot;: { # Free-form diagnostic information for the associated detect intent request.
1824 # The fields of this data can change without notice, so you should not write
1825 # code that depends on its structure.
1826 # The data may contain:
1827 #
1828 # - webhook call latency
1829 # - webhook errors
1830 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1831 },
1832 &quot;outputContexts&quot;: [ # The collection of output contexts. If applicable,
1833 # `output_contexts.parameters` contains entries with name
1834 # `&lt;parameter name&gt;.original` containing the original parameter values
1835 # before the query.
1836 { # Represents a context.
1837 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
1838 # context expires. The default is `0`. If set to `0`, the context expires
1839 # immediately. Contexts expire automatically after 20 minutes if there
1840 # are no matching queries.
1841 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
1842 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
1843 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
1844 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
1845 #
1846 # The `Context ID` is always converted to lowercase, may only contain
1847 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
1848 #
1849 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
1850 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
1851 #
1852 # The following context names are reserved for internal use by Dialogflow.
1853 # You should not use these contexts or create contexts with these names:
1854 #
1855 # * `__system_counters__`
1856 # * `*_id_dialog_context`
1857 # * `*_dialog_params_size`
1858 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
1859 #
1860 # Depending on your protocol or client library language, this is a
1861 # map, associative array, symbol table, dictionary, or JSON object
1862 # composed of a collection of (MapKey, MapValue) pairs:
1863 #
1864 # - MapKey type: string
1865 # - MapKey value: parameter name
1866 # - MapValue type:
1867 # - If parameter&#x27;s entity type is a composite entity: map
1868 # - Else: string or number, depending on parameter value type
1869 # - MapValue value:
1870 # - If parameter&#x27;s entity type is a composite entity:
1871 # map from composite entity property names to property values
1872 # - Else: parameter value
1873 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1874 },
1875 },
1876 ],
1877 &quot;languageCode&quot;: &quot;A String&quot;, # The language that was triggered during intent detection.
1878 # See [Language
1879 # Support](https://cloud.google.com/dialogflow/docs/reference/language)
1880 # for a list of the currently supported language codes.
1881 &quot;intent&quot;: { # Represents an intent. # The intent that matched the conversational query. Some, not
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001882 # all fields are filled in this message, including but not limited to:
Dan O'Mearadd494642020-05-01 07:42:23 -07001883 # `name`, `display_name`, `end_interaction` and `is_fallback`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001884 # Intents convert a number of user expressions or patterns into an action. An
1885 # action is an extraction of a user command or sentence semantics.
Bu Sun Kim65020912020-05-20 12:08:20 -07001886 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is
Dan O'Mearadd494642020-05-01 07:42:23 -07001887 # trained on.
1888 { # Represents an example that the agent is trained on.
Bu Sun Kim65020912020-05-20 12:08:20 -07001889 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts.
Dan O'Mearadd494642020-05-01 07:42:23 -07001890 # The parts are concatenated in order to form the training phrase.
1891 #
1892 # Note: The API does not automatically annotate training phrases like the
1893 # Dialogflow Console does.
1894 #
1895 # Note: Do not forget to include whitespace at part boundaries,
1896 # so the training phrase is well formatted when the parts are concatenated.
1897 #
1898 # If the training phrase does not need to be annotated with parameters,
1899 # you just need a single part with only the Part.text field set.
1900 #
1901 # If you want to annotate the training phrase, you must create multiple
1902 # parts, where the fields of each part are populated in one of two ways:
1903 #
1904 # - `Part.text` is set to a part of the phrase that has no parameters.
1905 # - `Part.text` is set to a part of the phrase that you want to annotate,
1906 # and the `entity_type`, `alias`, and `user_defined` fields are all
1907 # set.
1908 { # Represents a part of a training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07001909 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the
Dan O'Mearadd494642020-05-01 07:42:23 -07001910 # annotated part of the example.
1911 # This field is required for annotated parts of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07001912 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated.
Dan O'Mearadd494642020-05-01 07:42:23 -07001913 # This field is set to true when the Dialogflow Console is used to
1914 # manually annotate the part. When creating an annotated part with the
1915 # API, you must set this to true.
Bu Sun Kim65020912020-05-20 12:08:20 -07001916 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
1917 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`.
1918 # This field is required for annotated parts of the training phrase.
Dan O'Mearadd494642020-05-01 07:42:23 -07001919 },
1920 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001921 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
1922 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to
Dan O'Mearadd494642020-05-01 07:42:23 -07001923 # the intent. Each time a developer adds an existing sample by editing an
1924 # intent or training, this counter is increased.
Bu Sun Kim65020912020-05-20 12:08:20 -07001925 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
Dan O'Mearadd494642020-05-01 07:42:23 -07001926 },
1927 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001928 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current
1929 # session when this intent is matched.
1930 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
1931 { # Represents intent parameters.
1932 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
1933 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that
1934 # describes values of the parameter. If the parameter is
1935 # required, this must be provided.
1936 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the
1937 # user in order to collect a value for the parameter.
1938 &quot;A String&quot;,
1939 ],
1940 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty
1941 # result.
1942 # Default values can be extracted from contexts by using the following
1943 # syntax: `#context_name.parameter_name`.
1944 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is,
1945 # whether the intent cannot be completed without collecting the parameter
1946 # value.
1947 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
1948 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
1949 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be:
1950 #
1951 # - a constant string,
1952 # - a parameter value defined as `$parameter_name`,
1953 # - an original parameter value defined as `$parameter_name.original`,
1954 # - a parameter value from some context defined as
1955 # `#context_name.parameter_name`.
1956 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001957 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001958 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent.
1959 # If the collection of input contexts is not empty, all of the contexts must
1960 # be present in the active user session for an event to trigger this intent.
1961 # Event names are limited to 150 characters.
1962 &quot;A String&quot;,
1963 ],
1964 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Optional. The unique identifier of the parent intent in the
1965 # chain of followup intents. You can set this field when creating an intent,
1966 # for example with CreateIntent or
1967 # BatchUpdateIntents, in order to make this
1968 # intent a followup intent.
1969 #
1970 # It identifies the parent followup intent.
1971 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
1972 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher
Dan O'Mearadd494642020-05-01 07:42:23 -07001973 # priorities.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001974 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001975 # - If the supplied value is unspecified or 0, the service
1976 # translates the value to 500,000, which corresponds to the
1977 # `Normal` priority in the console.
1978 # - If the supplied value is negative, the intent is ignored
1979 # in runtime detect intent requests.
Bu Sun Kim65020912020-05-20 12:08:20 -07001980 &quot;endInteraction&quot;: True or False, # Optional. Indicates that this intent ends an interaction. Some integrations
1981 # (e.g., Actions on Google or Dialogflow phone gateway) use this information
1982 # to close interaction with an end user. Default is false.
1983 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent
1984 # is matched. Context messages in this collection should not set the
1985 # parameters field. Setting the `lifespan_count` to 0 will reset the context
1986 # when the intent is matched.
1987 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
1988 { # Represents a context.
1989 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
1990 # context expires. The default is `0`. If set to `0`, the context expires
1991 # immediately. Contexts expire automatically after 20 minutes if there
1992 # are no matching queries.
1993 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
1994 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
1995 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
1996 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
1997 #
1998 # The `Context ID` is always converted to lowercase, may only contain
1999 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
2000 #
2001 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
2002 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
2003 #
2004 # The following context names are reserved for internal use by Dialogflow.
2005 # You should not use these contexts or create contexts with these names:
2006 #
2007 # * `__system_counters__`
2008 # * `*_id_dialog_context`
2009 # * `*_dialog_params_size`
2010 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
2011 #
2012 # Depending on your protocol or client library language, this is a
2013 # map, associative array, symbol table, dictionary, or JSON object
2014 # composed of a collection of (MapKey, MapValue) pairs:
2015 #
2016 # - MapKey type: string
2017 # - MapKey value: parameter name
2018 # - MapValue type:
2019 # - If parameter&#x27;s entity type is a composite entity: map
2020 # - Else: string or number, depending on parameter value type
2021 # - MapValue value:
2022 # - If parameter&#x27;s entity type is a composite entity:
2023 # map from composite entity property names to property values
2024 # - Else: parameter value
2025 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2026 },
2027 },
2028 ],
2029 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be
2030 # copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
2031 &quot;A String&quot;,
2032 ],
2033 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the
2034 # `Response` field in the Dialogflow console.
2035 { # Corresponds to the `Response` field in the Dialogflow console.
2036 &quot;text&quot;: { # The text response message. # Returns a text response.
2037 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
2038 &quot;A String&quot;,
2039 ],
2040 },
2041 &quot;rbmCarouselRichCard&quot;: { # Carousel Rich Business Messaging (RBM) rich card. # Rich Business Messaging (RBM) carousel rich card response.
2042 #
2043 # Rich cards allow you to respond to users with more vivid content, e.g.
2044 # with media and suggestions.
2045 #
2046 # For more details about RBM rich cards, please see:
2047 # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards.
2048 # If you want to show a single card with more control over the layout,
2049 # please use RbmStandaloneCard instead.
2050 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
2051 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least
2052 # 2 cards and at most 10.
2053 { # Rich Business Messaging (RBM) Card content
2054 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
2055 #
2056 # At least one of the title, description or media must be set.
2057 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
2058 # be set. Media (image, GIF or a video) to include in the card.
2059 # The following media-types are currently supported:
2060 #
2061 # Image Types
2062 #
2063 # * image/jpeg
2064 # * image/jpg&#x27;
2065 # * image/gif
2066 # * image/png
2067 #
2068 # Video Types
2069 #
2070 # * video/h263
2071 # * video/m4v
2072 # * video/mp4
2073 # * video/mpeg
2074 # * video/mpeg4
2075 # * video/webm
2076 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
2077 # provide a thumbnail URI, the RBM platform displays a blank
2078 # placeholder thumbnail until the user&#x27;s device downloads the file.
2079 # Depending on the user&#x27;s setting, the file may not download
2080 # automatically and may require the user to tap a download button.
2081 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
2082 # within a rich card with a vertical layout. (https://goo.gl/NeFCjz).
2083 # For a standalone card with horizontal layout, height is not
2084 # customizable, and this field is ignored.
2085 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
2086 # determines the MIME type of the file from the content-type field in
2087 # the HTTP headers when the platform fetches the file. The content-type
2088 # field must be present and accurate in the HTTP response from the URL.
2089 },
2090 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
2091 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
2092 # easily select/click a predefined response or perform an action (like
2093 # opening a web uri).
2094 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
2095 # instead of typing in their own response.
2096 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
2097 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2098 # when the user taps the suggested reply. This data will be also
2099 # forwarded to webhook to allow performing custom business logic.
2100 },
2101 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
2102 # can choose from the card.
2103 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2104 # when the user taps the suggested action. This data will be also
2105 # forwarded to webhook to allow performing custom business logic.
2106 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
2107 # to send back to the agent (https://goo.gl/GXotJW).
2108 },
2109 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2110 &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
2111 # (https://goo.gl/6GLJD2). If the user has an app installed that is
2112 # registered as the default handler for the URL, then this app will be
2113 # opened instead, and its icon will be used in the suggested action UI.
2114 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2115 },
2116 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
2117 # but does not dial automatically (https://goo.gl/ergbB2).
2118 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
2119 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
2120 # format. An example of a correctly formatted phone number:
2121 # +15556767888.
2122 },
2123 },
2124 },
2125 ],
2126 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
2127 #
2128 # At least one of the title, description or media must be set.
2129 },
2130 ],
2131 },
2132 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
2133 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
2134 { # The suggestion chip message that the user can tap to quickly post a reply
2135 # to the conversation.
2136 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
2137 },
2138 ],
2139 },
2140 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
2141 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
2142 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to
2143 # play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single
2144 # channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz.
2145 #
2146 # This object must be readable by the `service-&lt;Project
2147 # Number&gt;@gcp-sa-dialogflow.iam.gserviceaccount.com` service account
2148 # where &lt;Project Number&gt; is the number of the Telephony Gateway project
2149 # (usually the same as the Dialogflow agent project). If the Google Cloud
2150 # Storage bucket is in the Telephony Gateway project, this permission is
2151 # added by default when enabling the Dialogflow V2 API.
2152 #
2153 # For audio from other sources, consider using the
2154 # `TelephonySynthesizeSpeech` message with SSML.
2155 },
2156 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
2157 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
2158 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
2159 &quot;items&quot;: [ # Required. List items.
2160 { # An item in the list.
2161 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
2162 # dialog.
2163 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
2164 # item in dialog.
2165 &quot;A String&quot;,
2166 ],
2167 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
2168 # response is given.
2169 },
2170 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
2171 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2172 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2173 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2174 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2175 },
2176 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
2177 },
2178 ],
2179 },
2180 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response.
2181 #
2182 # RBM allows businesses to send enriched and branded versions of SMS. See
2183 # https://jibe.google.com/business-messaging.
2184 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
2185 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
2186 # easily select/click a predefined response or perform an action (like
2187 # opening a web uri).
2188 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
2189 # instead of typing in their own response.
2190 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
2191 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2192 # when the user taps the suggested reply. This data will be also
2193 # forwarded to webhook to allow performing custom business logic.
2194 },
2195 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
2196 # can choose from the card.
2197 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2198 # when the user taps the suggested action. This data will be also
2199 # forwarded to webhook to allow performing custom business logic.
2200 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
2201 # to send back to the agent (https://goo.gl/GXotJW).
2202 },
2203 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2204 &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
2205 # (https://goo.gl/6GLJD2). If the user has an app installed that is
2206 # registered as the default handler for the URL, then this app will be
2207 # opened instead, and its icon will be used in the suggested action UI.
2208 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2209 },
2210 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
2211 # but does not dial automatically (https://goo.gl/ergbB2).
2212 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
2213 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
2214 # format. An example of a correctly formatted phone number:
2215 # +15556767888.
2216 },
2217 },
2218 },
2219 ],
2220 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
2221 },
2222 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
2223 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
2224 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
2225 &quot;A String&quot;,
2226 ],
2227 },
2228 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in # Synthesizes speech in Telephony Gateway.
2229 # Telephony Gateway.
2230 #
2231 # Telephony Gateway takes the synthesizer settings from
2232 # `DetectIntentResponse.output_audio_config` which can either be set
2233 # at request-level or can come from the agent-level synthesizer config.
2234 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
2235 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see
2236 # [SSML](https://developers.google.com/actions/reference/ssml).
2237 },
2238 &quot;card&quot;: { # The card response message. # Displays a card.
2239 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
2240 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
2241 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2242 { # Optional. Contains information about a button.
2243 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
2244 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
2245 # open.
2246 },
2247 ],
2248 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2249 },
2250 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
2251 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
2252 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
2253 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2254 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2255 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2256 },
2257 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
2258 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2259 { # The button object that appears at the bottom of a card.
2260 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2261 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2262 },
2263 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
2264 },
2265 ],
2266 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2267 },
2268 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
2269 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
2270 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
2271 { # Column properties for TableCard.
2272 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
2273 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
2274 },
2275 ],
2276 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
2277 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2278 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2279 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2280 },
2281 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
2282 { # The button object that appears at the bottom of a card.
2283 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2284 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2285 },
2286 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
2287 },
2288 ],
2289 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
2290 &quot;rows&quot;: [ # Optional. Rows in this table of data.
2291 { # Row of TableCard.
2292 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
2293 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
2294 { # Cell of TableCardRow.
2295 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
2296 },
2297 ],
2298 },
2299 ],
2300 },
2301 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
2302 &quot;items&quot;: [ # Required. Carousel items.
2303 { # An item in the carousel.
2304 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
2305 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2306 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2307 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2308 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2309 },
2310 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
2311 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
2312 # dialog.
2313 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
2314 # item in dialog.
2315 &quot;A String&quot;,
2316 ],
2317 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
2318 # response is given.
2319 },
2320 },
2321 ],
2322 },
2323 &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.
2324 # or website associated with this agent.
2325 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
2326 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
2327 # suggestion chip.
2328 },
2329 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
2330 # https://developers.google.com/actions/assistant/responses#browsing_carousel
2331 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
2332 # items.
2333 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
2334 # items, maximum of ten.
2335 { # Browsing carousel tile
2336 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
2337 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
2338 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2339 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2340 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2341 },
2342 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
2343 # text.
2344 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
2345 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
2346 # the URL. Defaults to opening via web browser.
2347 &quot;url&quot;: &quot;A String&quot;, # Required. URL
2348 },
2349 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
2350 # Card. Maximum of one line of text.
2351 },
2352 ],
2353 },
2354 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # Returns a voice or text-only response for Actions on Google.
2355 # This message in `QueryResult.fulfillment_messages` and
2356 # `WebhookResponse.fulfillment_messages` should contain only one
2357 # `SimpleResponse`.
2358 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
2359 { # The simple response message containing speech or text.
2360 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
2361 # speech output. Mutually exclusive with ssml.
2362 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
2363 # response to the user in the SSML format. Mutually exclusive with
2364 # text_to_speech.
2365 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
2366 },
2367 ],
2368 },
2369 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
2370 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to
2371 # in [E.164 format](https://en.wikipedia.org/wiki/E.164).
2372 #
2373 # We currently only allow transferring to US numbers (+1xxxyyyzzzz).
2374 },
2375 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
2376 &quot;mediaObjects&quot;: [ # Required. List of media objects.
2377 { # Response media object for media content card.
2378 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
2379 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2380 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2381 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2382 },
2383 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
2384 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
2385 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
2386 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
2387 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2388 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2389 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2390 },
2391 },
2392 ],
2393 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
2394 },
2395 &quot;image&quot;: { # The image response message. # Displays an image.
2396 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2397 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2398 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2399 },
2400 &quot;payload&quot;: { # A custom platform-specific response.
2401 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2402 },
2403 &quot;rbmStandaloneRichCard&quot;: { # Standalone Rich Business Messaging (RBM) rich card. # Standalone Rich Business Messaging (RBM) rich card response.
2404 #
2405 # Rich cards allow you to respond to users with more vivid content, e.g.
2406 # with media and suggestions.
2407 #
2408 # For more details about RBM rich cards, please see:
2409 # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards.
2410 # You can group multiple rich cards into one using RbmCarouselCard but
2411 # carousel cards will give you less control over the card layout.
2412 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal.
2413 # Image preview alignment for standalone cards with horizontal layout.
2414 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
2415 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
2416 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
2417 #
2418 # At least one of the title, description or media must be set.
2419 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
2420 # be set. Media (image, GIF or a video) to include in the card.
2421 # The following media-types are currently supported:
2422 #
2423 # Image Types
2424 #
2425 # * image/jpeg
2426 # * image/jpg&#x27;
2427 # * image/gif
2428 # * image/png
2429 #
2430 # Video Types
2431 #
2432 # * video/h263
2433 # * video/m4v
2434 # * video/mp4
2435 # * video/mpeg
2436 # * video/mpeg4
2437 # * video/webm
2438 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
2439 # provide a thumbnail URI, the RBM platform displays a blank
2440 # placeholder thumbnail until the user&#x27;s device downloads the file.
2441 # Depending on the user&#x27;s setting, the file may not download
2442 # automatically and may require the user to tap a download button.
2443 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
2444 # within a rich card with a vertical layout. (https://goo.gl/NeFCjz).
2445 # For a standalone card with horizontal layout, height is not
2446 # customizable, and this field is ignored.
2447 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
2448 # determines the MIME type of the file from the content-type field in
2449 # the HTTP headers when the platform fetches the file. The content-type
2450 # field must be present and accurate in the HTTP response from the URL.
2451 },
2452 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
2453 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
2454 # easily select/click a predefined response or perform an action (like
2455 # opening a web uri).
2456 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
2457 # instead of typing in their own response.
2458 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
2459 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2460 # when the user taps the suggested reply. This data will be also
2461 # forwarded to webhook to allow performing custom business logic.
2462 },
2463 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
2464 # can choose from the card.
2465 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2466 # when the user taps the suggested action. This data will be also
2467 # forwarded to webhook to allow performing custom business logic.
2468 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
2469 # to send back to the agent (https://goo.gl/GXotJW).
2470 },
2471 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2472 &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
2473 # (https://goo.gl/6GLJD2). If the user has an app installed that is
2474 # registered as the default handler for the URL, then this app will be
2475 # opened instead, and its icon will be used in the suggested action UI.
2476 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2477 },
2478 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
2479 # but does not dial automatically (https://goo.gl/ergbB2).
2480 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
2481 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
2482 # format. An example of a correctly formatted phone number:
2483 # +15556767888.
2484 },
2485 },
2486 },
2487 ],
2488 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
2489 #
2490 # At least one of the title, description or media must be set.
2491 },
2492 },
2493 },
2494 ],
2495 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent.
2496 # Note: The action name must not contain whitespaces.
2497 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent.
2498 # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
2499 # methods.
Dan O'Mearadd494642020-05-01 07:42:23 -07002500 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002501 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
2502 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002503 # triggered.
Dan O'Mearadd494642020-05-01 07:42:23 -07002504 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002505 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002506 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002507 &quot;followupIntentInfo&quot;: [ # Output only. Information about all followup intents that have this intent as
2508 # a direct or indirect parent. We populate this field only in the output.
2509 { # Represents a single followup intent in the chain.
2510 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent.
2511 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
2512 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent.
2513 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
2514 },
2515 ],
2516 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
2517 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Output only. The unique identifier of the root intent in the chain of
2518 # followup intents. It identifies the correct followup intents chain for
2519 # this intent.
2520 #
2521 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
2522 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
2523 # Note: If `ml_disabled` setting is set to true, then this intent is not
2524 # taken into account during inference in `ML ONLY` match mode. Also,
2525 # auto-markup in the UI is turned off.
2526 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
2527 &quot;mlEnabled&quot;: True or False, # Optional. Indicates whether Machine Learning is enabled for the intent.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002528 # Note: If `ml_enabled` setting is set to false, then this intent is not
2529 # taken into account during inference in `ML ONLY` match mode. Also,
2530 # auto-markup in the UI is turned off.
2531 # DEPRECATED! Please use `ml_disabled` field instead.
2532 # NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false,
2533 # then the default value is determined as follows:
2534 # - Before April 15th, 2018 the default is:
2535 # ml_enabled = false / ml_disabled = true.
2536 # - After April 15th, 2018 the default is:
2537 # ml_enabled = true / ml_disabled = false.
Bu Sun Kim65020912020-05-20 12:08:20 -07002538 },
2539 &quot;fulfillmentMessages&quot;: [ # The collection of rich messages to present to the user.
2540 { # Corresponds to the `Response` field in the Dialogflow console.
2541 &quot;text&quot;: { # The text response message. # Returns a text response.
2542 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
2543 &quot;A String&quot;,
2544 ],
2545 },
2546 &quot;rbmCarouselRichCard&quot;: { # Carousel Rich Business Messaging (RBM) rich card. # Rich Business Messaging (RBM) carousel rich card response.
2547 #
2548 # Rich cards allow you to respond to users with more vivid content, e.g.
2549 # with media and suggestions.
2550 #
2551 # For more details about RBM rich cards, please see:
2552 # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards.
2553 # If you want to show a single card with more control over the layout,
2554 # please use RbmStandaloneCard instead.
2555 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
2556 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least
2557 # 2 cards and at most 10.
2558 { # Rich Business Messaging (RBM) Card content
2559 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
2560 #
2561 # At least one of the title, description or media must be set.
2562 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
2563 # be set. Media (image, GIF or a video) to include in the card.
2564 # The following media-types are currently supported:
2565 #
2566 # Image Types
2567 #
2568 # * image/jpeg
2569 # * image/jpg&#x27;
2570 # * image/gif
2571 # * image/png
2572 #
2573 # Video Types
2574 #
2575 # * video/h263
2576 # * video/m4v
2577 # * video/mp4
2578 # * video/mpeg
2579 # * video/mpeg4
2580 # * video/webm
2581 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
2582 # provide a thumbnail URI, the RBM platform displays a blank
2583 # placeholder thumbnail until the user&#x27;s device downloads the file.
2584 # Depending on the user&#x27;s setting, the file may not download
2585 # automatically and may require the user to tap a download button.
2586 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
2587 # within a rich card with a vertical layout. (https://goo.gl/NeFCjz).
2588 # For a standalone card with horizontal layout, height is not
2589 # customizable, and this field is ignored.
2590 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
2591 # determines the MIME type of the file from the content-type field in
2592 # the HTTP headers when the platform fetches the file. The content-type
2593 # field must be present and accurate in the HTTP response from the URL.
2594 },
2595 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
2596 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
2597 # easily select/click a predefined response or perform an action (like
2598 # opening a web uri).
2599 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
2600 # instead of typing in their own response.
2601 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
2602 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2603 # when the user taps the suggested reply. This data will be also
2604 # forwarded to webhook to allow performing custom business logic.
2605 },
2606 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
2607 # can choose from the card.
2608 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2609 # when the user taps the suggested action. This data will be also
2610 # forwarded to webhook to allow performing custom business logic.
2611 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
2612 # to send back to the agent (https://goo.gl/GXotJW).
2613 },
2614 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2615 &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
2616 # (https://goo.gl/6GLJD2). If the user has an app installed that is
2617 # registered as the default handler for the URL, then this app will be
2618 # opened instead, and its icon will be used in the suggested action UI.
2619 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2620 },
2621 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
2622 # but does not dial automatically (https://goo.gl/ergbB2).
2623 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
2624 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
2625 # format. An example of a correctly formatted phone number:
2626 # +15556767888.
2627 },
2628 },
2629 },
2630 ],
2631 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
2632 #
2633 # At least one of the title, description or media must be set.
2634 },
2635 ],
2636 },
2637 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
2638 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
2639 { # The suggestion chip message that the user can tap to quickly post a reply
2640 # to the conversation.
2641 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
2642 },
2643 ],
2644 },
2645 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
2646 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
2647 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to
2648 # play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single
2649 # channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002650 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002651 # This object must be readable by the `service-&lt;Project
2652 # Number&gt;@gcp-sa-dialogflow.iam.gserviceaccount.com` service account
2653 # where &lt;Project Number&gt; is the number of the Telephony Gateway project
2654 # (usually the same as the Dialogflow agent project). If the Google Cloud
2655 # Storage bucket is in the Telephony Gateway project, this permission is
2656 # added by default when enabling the Dialogflow V2 API.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002657 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002658 # For audio from other sources, consider using the
2659 # `TelephonySynthesizeSpeech` message with SSML.
2660 },
2661 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
2662 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
2663 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
2664 &quot;items&quot;: [ # Required. List items.
2665 { # An item in the list.
2666 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
2667 # dialog.
2668 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
2669 # item in dialog.
2670 &quot;A String&quot;,
2671 ],
2672 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
2673 # response is given.
2674 },
2675 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
2676 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2677 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2678 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2679 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2680 },
2681 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
2682 },
2683 ],
2684 },
2685 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response.
2686 #
2687 # RBM allows businesses to send enriched and branded versions of SMS. See
2688 # https://jibe.google.com/business-messaging.
2689 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
2690 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
2691 # easily select/click a predefined response or perform an action (like
2692 # opening a web uri).
2693 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
2694 # instead of typing in their own response.
2695 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
2696 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2697 # when the user taps the suggested reply. This data will be also
2698 # forwarded to webhook to allow performing custom business logic.
2699 },
2700 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
2701 # can choose from the card.
2702 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2703 # when the user taps the suggested action. This data will be also
2704 # forwarded to webhook to allow performing custom business logic.
2705 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
2706 # to send back to the agent (https://goo.gl/GXotJW).
2707 },
2708 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2709 &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
2710 # (https://goo.gl/6GLJD2). If the user has an app installed that is
2711 # registered as the default handler for the URL, then this app will be
2712 # opened instead, and its icon will be used in the suggested action UI.
2713 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2714 },
2715 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
2716 # but does not dial automatically (https://goo.gl/ergbB2).
2717 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
2718 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
2719 # format. An example of a correctly formatted phone number:
2720 # +15556767888.
2721 },
2722 },
2723 },
2724 ],
2725 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
2726 },
2727 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
2728 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
2729 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
2730 &quot;A String&quot;,
2731 ],
2732 },
2733 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in # Synthesizes speech in Telephony Gateway.
2734 # Telephony Gateway.
2735 #
2736 # Telephony Gateway takes the synthesizer settings from
2737 # `DetectIntentResponse.output_audio_config` which can either be set
2738 # at request-level or can come from the agent-level synthesizer config.
2739 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
2740 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see
2741 # [SSML](https://developers.google.com/actions/reference/ssml).
2742 },
2743 &quot;card&quot;: { # The card response message. # Displays a card.
2744 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
2745 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
2746 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2747 { # Optional. Contains information about a button.
2748 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
2749 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
2750 # open.
2751 },
2752 ],
2753 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2754 },
2755 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
2756 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
2757 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
2758 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2759 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2760 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
Dan O'Mearadd494642020-05-01 07:42:23 -07002761 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002762 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
2763 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2764 { # The button object that appears at the bottom of a card.
2765 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2766 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2767 },
2768 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
2769 },
2770 ],
2771 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2772 },
2773 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
2774 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
2775 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
2776 { # Column properties for TableCard.
2777 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
2778 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
2779 },
2780 ],
2781 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
2782 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2783 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2784 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2785 },
2786 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
2787 { # The button object that appears at the bottom of a card.
2788 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2789 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2790 },
2791 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
2792 },
2793 ],
2794 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
2795 &quot;rows&quot;: [ # Optional. Rows in this table of data.
2796 { # Row of TableCard.
2797 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
2798 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
2799 { # Cell of TableCardRow.
2800 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
2801 },
2802 ],
2803 },
2804 ],
2805 },
2806 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
2807 &quot;items&quot;: [ # Required. Carousel items.
2808 { # An item in the carousel.
2809 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
2810 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2811 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2812 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2813 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2814 },
2815 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
2816 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
2817 # dialog.
2818 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
2819 # item in dialog.
2820 &quot;A String&quot;,
2821 ],
2822 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
2823 # response is given.
2824 },
2825 },
2826 ],
2827 },
2828 &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.
2829 # or website associated with this agent.
2830 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
2831 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
2832 # suggestion chip.
2833 },
2834 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
2835 # https://developers.google.com/actions/assistant/responses#browsing_carousel
2836 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
2837 # items.
2838 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
2839 # items, maximum of ten.
2840 { # Browsing carousel tile
2841 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
2842 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
2843 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2844 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2845 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2846 },
2847 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
2848 # text.
2849 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
2850 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
2851 # the URL. Defaults to opening via web browser.
2852 &quot;url&quot;: &quot;A String&quot;, # Required. URL
2853 },
2854 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
2855 # Card. Maximum of one line of text.
2856 },
2857 ],
2858 },
2859 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # Returns a voice or text-only response for Actions on Google.
2860 # This message in `QueryResult.fulfillment_messages` and
2861 # `WebhookResponse.fulfillment_messages` should contain only one
2862 # `SimpleResponse`.
2863 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
2864 { # The simple response message containing speech or text.
2865 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
2866 # speech output. Mutually exclusive with ssml.
2867 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
2868 # response to the user in the SSML format. Mutually exclusive with
2869 # text_to_speech.
2870 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
2871 },
2872 ],
2873 },
2874 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
2875 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to
2876 # in [E.164 format](https://en.wikipedia.org/wiki/E.164).
2877 #
2878 # We currently only allow transferring to US numbers (+1xxxyyyzzzz).
2879 },
2880 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
2881 &quot;mediaObjects&quot;: [ # Required. List of media objects.
2882 { # Response media object for media content card.
2883 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
2884 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2885 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2886 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2887 },
2888 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
2889 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
2890 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
2891 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
2892 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2893 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2894 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2895 },
2896 },
2897 ],
2898 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
2899 },
2900 &quot;image&quot;: { # The image response message. # Displays an image.
2901 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2902 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2903 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2904 },
2905 &quot;payload&quot;: { # A custom platform-specific response.
2906 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2907 },
2908 &quot;rbmStandaloneRichCard&quot;: { # Standalone Rich Business Messaging (RBM) rich card. # Standalone Rich Business Messaging (RBM) rich card response.
2909 #
2910 # Rich cards allow you to respond to users with more vivid content, e.g.
2911 # with media and suggestions.
2912 #
2913 # For more details about RBM rich cards, please see:
2914 # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards.
2915 # You can group multiple rich cards into one using RbmCarouselCard but
2916 # carousel cards will give you less control over the card layout.
2917 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal.
2918 # Image preview alignment for standalone cards with horizontal layout.
2919 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
2920 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
2921 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
2922 #
2923 # At least one of the title, description or media must be set.
2924 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
2925 # be set. Media (image, GIF or a video) to include in the card.
2926 # The following media-types are currently supported:
2927 #
2928 # Image Types
2929 #
2930 # * image/jpeg
2931 # * image/jpg&#x27;
2932 # * image/gif
2933 # * image/png
2934 #
2935 # Video Types
2936 #
2937 # * video/h263
2938 # * video/m4v
2939 # * video/mp4
2940 # * video/mpeg
2941 # * video/mpeg4
2942 # * video/webm
2943 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
2944 # provide a thumbnail URI, the RBM platform displays a blank
2945 # placeholder thumbnail until the user&#x27;s device downloads the file.
2946 # Depending on the user&#x27;s setting, the file may not download
2947 # automatically and may require the user to tap a download button.
2948 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
2949 # within a rich card with a vertical layout. (https://goo.gl/NeFCjz).
2950 # For a standalone card with horizontal layout, height is not
2951 # customizable, and this field is ignored.
2952 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
2953 # determines the MIME type of the file from the content-type field in
2954 # the HTTP headers when the platform fetches the file. The content-type
2955 # field must be present and accurate in the HTTP response from the URL.
2956 },
2957 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
2958 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
2959 # easily select/click a predefined response or perform an action (like
2960 # opening a web uri).
2961 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
2962 # instead of typing in their own response.
2963 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
2964 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2965 # when the user taps the suggested reply. This data will be also
2966 # forwarded to webhook to allow performing custom business logic.
2967 },
2968 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
2969 # can choose from the card.
2970 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2971 # when the user taps the suggested action. This data will be also
2972 # forwarded to webhook to allow performing custom business logic.
2973 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
2974 # to send back to the agent (https://goo.gl/GXotJW).
2975 },
2976 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2977 &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
2978 # (https://goo.gl/6GLJD2). If the user has an app installed that is
2979 # registered as the default handler for the URL, then this app will be
2980 # opened instead, and its icon will be used in the suggested action UI.
2981 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2982 },
2983 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
2984 # but does not dial automatically (https://goo.gl/ergbB2).
2985 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
2986 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
2987 # format. An example of a correctly formatted phone number:
2988 # +15556767888.
2989 },
2990 },
2991 },
2992 ],
2993 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
2994 #
2995 # At least one of the title, description or media must be set.
2996 },
2997 },
2998 },
2999 ],
3000 &quot;webhookPayload&quot;: { # If the query was fulfilled by a webhook call, this field is set to the
3001 # value of the `payload` field returned in the webhook response.
3002 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3003 },
3004 &quot;action&quot;: &quot;A String&quot;, # The action name from the matched intent.
3005 &quot;webhookSource&quot;: &quot;A String&quot;, # If the query was fulfilled by a webhook call, this field is set to the
3006 # value of the `source` field returned in the webhook response.
3007 &quot;fulfillmentText&quot;: &quot;A String&quot;, # The text to be pronounced to the user or shown on the screen.
3008 # Note: This is a legacy field, `fulfillment_messages` should be preferred.
3009 &quot;parameters&quot;: { # The collection of extracted parameters.
3010 #
3011 # Depending on your protocol or client library language, this is a
3012 # map, associative array, symbol table, dictionary, or JSON object
3013 # composed of a collection of (MapKey, MapValue) pairs:
3014 #
3015 # - MapKey type: string
3016 # - MapKey value: parameter name
3017 # - MapValue type:
3018 # - If parameter&#x27;s entity type is a composite entity: map
3019 # - Else: string or number, depending on parameter value type
3020 # - MapValue value:
3021 # - If parameter&#x27;s entity type is a composite entity:
3022 # map from composite entity property names to property values
3023 # - Else: parameter value
3024 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3025 },
3026 &quot;knowledgeAnswers&quot;: { # Represents the result of querying a Knowledge base. # The result from Knowledge Connector (if any), ordered by decreasing
3027 # `KnowledgeAnswers.match_confidence`.
3028 &quot;answers&quot;: [ # A list of answers from Knowledge Connector.
3029 { # An answer from Knowledge Connector.
3030 &quot;source&quot;: &quot;A String&quot;, # Indicates which Knowledge Document this answer was extracted from.
3031 # Format: `projects/&lt;Project ID&gt;/knowledgeBases/&lt;Knowledge Base
3032 # ID&gt;/documents/&lt;Document ID&gt;`.
3033 &quot;answer&quot;: &quot;A String&quot;, # The piece of text from the `source` knowledge base document that answers
3034 # this conversational query.
3035 &quot;faqQuestion&quot;: &quot;A String&quot;, # The corresponding FAQ question if the answer was extracted from a FAQ
3036 # Document, empty otherwise.
3037 &quot;matchConfidenceLevel&quot;: &quot;A String&quot;, # The system&#x27;s confidence level that this knowledge answer is a good match
3038 # for this conversational query.
3039 # NOTE: The confidence level for a given `&lt;query, answer&gt;` pair may change
3040 # without notice, as it depends on models that are constantly being
3041 # improved. However, it will change less frequently than the confidence
3042 # score below, and should be preferred for referencing the quality of an
3043 # answer.
3044 &quot;matchConfidence&quot;: 3.14, # The system&#x27;s confidence score that this Knowledge answer is a good match
3045 # for this conversational query.
3046 # The range is from 0.0 (completely uncertain) to 1.0 (completely certain).
3047 # Note: The confidence score is likely to vary somewhat (possibly even for
3048 # identical requests), as the underlying model is under constant
3049 # improvement. It may be deprecated in the future. We recommend using
3050 # `match_confidence_level` which should be generally more stable.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003051 },
3052 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003053 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003054 &quot;sentimentAnalysisResult&quot;: { # The result of sentiment analysis as configured by # The sentiment analysis result, which depends on the
3055 # `sentiment_analysis_request_config` specified in the request.
3056 # `sentiment_analysis_request_config`.
3057 &quot;queryTextSentiment&quot;: { # The sentiment, such as positive/negative feeling or association, for a unit # The sentiment analysis result for `query_text`.
3058 # of analysis, such as the query text.
3059 &quot;score&quot;: 3.14, # Sentiment score between -1.0 (negative sentiment) and 1.0 (positive
3060 # sentiment).
3061 &quot;magnitude&quot;: 3.14, # A non-negative number in the [0, +inf) range, which represents the absolute
3062 # magnitude of sentiment, regardless of score (positive or negative).
3063 },
3064 },
3065 &quot;intentDetectionConfidence&quot;: 3.14, # The intent detection confidence. Values range from 0.0
Dan O'Mearadd494642020-05-01 07:42:23 -07003066 # (completely uncertain) to 1.0 (completely certain).
3067 # This value is for informational purpose only and is only used to
3068 # help match the best intent within the classification threshold.
3069 # This value may change for the same end-user expression at any time due to a
3070 # model retraining or change in implementation.
3071 # If there are `multiple knowledge_answers` messages, this value is set to
3072 # the greatest `knowledgeAnswers.match_confidence` value in the list.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003073 },
3074 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003075 &quot;responseId&quot;: &quot;A String&quot;, # The unique identifier of the response. It can be used to
3076 # locate a response in the training example set or for reporting issues.
3077 &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.
3078 # If this audio config is supplied in a request, it overrides all existing
3079 # text-to-speech settings applied to the agent.
3080 &quot;audioEncoding&quot;: &quot;A String&quot;, # Required. Audio encoding of the synthesized audio content.
3081 &quot;synthesizeSpeechConfig&quot;: { # Configuration of how speech should be synthesized. # Configuration of how speech should be synthesized.
3082 &quot;volumeGainDb&quot;: 3.14, # Optional. Volume gain (in dB) of the normal native volume supported by the
3083 # specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of
3084 # 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB)
3085 # will play at approximately half the amplitude of the normal native signal
3086 # amplitude. A value of +6.0 (dB) will play at approximately twice the
3087 # amplitude of the normal native signal amplitude. We strongly recommend not
3088 # to exceed +10 (dB) as there&#x27;s usually no effective increase in loudness for
3089 # any value greater than that.
3090 &quot;pitch&quot;: 3.14, # Optional. Speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20
3091 # semitones from the original pitch. -20 means decrease 20 semitones from the
3092 # original pitch.
3093 &quot;voice&quot;: { # Description of which voice to use for speech synthesis. # Optional. The desired voice of the synthesized audio.
3094 &quot;name&quot;: &quot;A String&quot;, # Optional. The name of the voice. If not set, the service will choose a
3095 # voice based on the other parameters such as language_code and
3096 # ssml_gender.
3097 &quot;ssmlGender&quot;: &quot;A String&quot;, # Optional. The preferred gender of the voice. If not set, the service will
3098 # choose a voice based on the other parameters such as language_code and
3099 # name. Note that this is only a preference, not requirement. If a
3100 # voice of the appropriate gender is not available, the synthesizer should
3101 # substitute a voice with a different gender rather than failing the request.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003102 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003103 &quot;speakingRate&quot;: 3.14, # Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal
3104 # native speed supported by the specific voice. 2.0 is twice as fast, and
3105 # 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any
3106 # other values &lt; 0.25 or &gt; 4.0 will return an error.
3107 &quot;effectsProfileId&quot;: [ # Optional. An identifier which selects &#x27;audio effects&#x27; profiles that are
3108 # applied on (post synthesized) text to speech. Effects are applied on top of
3109 # each other in the order they are given.
3110 &quot;A String&quot;,
3111 ],
3112 },
3113 &quot;sampleRateHertz&quot;: 42, # The synthesis sample rate (in hertz) for this audio. If not
3114 # provided, then the synthesizer will use the default sample rate based on
3115 # the audio encoding. If this is different from the voice&#x27;s natural sample
3116 # rate, then the synthesizer will honor this request by converting to the
3117 # desired sample rate (which might result in worse audio quality).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003118 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003119 &quot;outputAudio&quot;: &quot;A String&quot;, # The audio data bytes encoded as specified in the request.
3120 # Note: The output audio is generated based on the values of default platform
3121 # text responses found in the `query_result.fulfillment_messages` field. If
3122 # multiple default text responses exist, they will be concatenated when
3123 # generating audio. If no default platform text responses exist, the
3124 # generated audio content will be empty.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003125 }</pre>
3126</div>
3127
3128</body></html>