blob: 0214733b38a9932d8de7f3794675fce4830e71d6 [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 Kim4ed7d3f2020-05-27 12:20:54 -0700166 &quot;event&quot;: { # Events allow for matching intents by event name instead of the natural # The event to be processed.
167 # language input. For instance, input `&lt;event: { name: &quot;welcome_event&quot;,
168 # parameters: { name: &quot;Sam&quot; } }&gt;` can trigger a personalized welcome response.
169 # The parameter `name` may be used by the agent in the response:
170 # `&quot;Hello #welcome_event.name! What can I do for you today?&quot;`.
171 &quot;languageCode&quot;: &quot;A String&quot;, # Required. The language of this query. See [Language
172 # Support](https://cloud.google.com/dialogflow/docs/reference/language)
173 # for a list of the currently supported language codes. Note that queries in
174 # the same session do not necessarily need to specify the same language.
175 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the event.
176 &quot;parameters&quot;: { # The collection of parameters associated with the event.
177 #
178 # Depending on your protocol or client library language, this is a
179 # map, associative array, symbol table, dictionary, or JSON object
180 # composed of a collection of (MapKey, MapValue) pairs:
181 #
182 # - MapKey type: string
183 # - MapKey value: parameter name
184 # - MapValue type:
185 # - If parameter&#x27;s entity type is a composite entity: map
186 # - Else: string or number, depending on parameter value type
187 # - MapValue value:
188 # - If parameter&#x27;s entity type is a composite entity:
189 # map from composite entity property names to property values
190 # - Else: parameter value
191 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
192 },
193 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700194 &quot;text&quot;: { # Represents the natural language text to be processed. # The natural language text to be processed.
195 &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 -0700196 # Text length must not exceed 256 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700197 &quot;languageCode&quot;: &quot;A String&quot;, # Required. The language of this conversational query. See [Language
Dan O'Mearadd494642020-05-01 07:42:23 -0700198 # Support](https://cloud.google.com/dialogflow/docs/reference/language)
199 # for a list of the currently supported language codes. Note that queries in
200 # the same session do not necessarily need to specify the same language.
201 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700202 &quot;audioConfig&quot;: { # Instructs the speech recognizer on how to process the audio content. # Instructs the speech recognizer how to process the speech audio.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700203 &quot;audioEncoding&quot;: &quot;A String&quot;, # Required. Audio encoding of the audio content to process.
204 &quot;singleUtterance&quot;: True or False, # If `false` (default), recognition does not cease until the
205 # client closes the stream.
206 # If `true`, the recognizer will detect a single spoken utterance in input
207 # audio. Recognition ceases when it detects the audio&#x27;s voice has
208 # stopped or paused. In this case, once a detected intent is received, the
209 # client should close the stream and start a new request with a new stream as
210 # needed.
211 # Note: This setting is relevant only for streaming methods.
212 # Note: When specified, InputAudioConfig.single_utterance takes precedence
213 # over StreamingDetectIntentRequest.single_utterance.
Bu Sun Kim65020912020-05-20 12:08:20 -0700214 &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 -0700215 # translations. See [Language
216 # Support](https://cloud.google.com/dialogflow/docs/reference/language)
217 # for a list of the currently supported language codes. Note that queries in
218 # the same session do not necessarily need to specify the same language.
Bu Sun Kim65020912020-05-20 12:08:20 -0700219 &quot;speechContexts&quot;: [ # Context information to assist speech recognition.
Dan O'Mearadd494642020-05-01 07:42:23 -0700220 #
221 # See [the Cloud Speech
222 # documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints)
223 # for more details.
224 { # Hints for the speech recognizer to help with recognition in a specific
225 # conversation state.
Bu Sun Kim65020912020-05-20 12:08:20 -0700226 &quot;phrases&quot;: [ # Optional. A list of strings containing words and phrases that the speech
Dan O'Mearadd494642020-05-01 07:42:23 -0700227 # recognizer should recognize with higher likelihood.
228 #
229 # This list can be used to:
230 # * improve accuracy for words and phrases you expect the user to say,
231 # e.g. typical commands for your Dialogflow agent
232 # * add additional words to the speech recognizer vocabulary
233 # * ...
234 #
235 # See the [Cloud Speech
236 # documentation](https://cloud.google.com/speech-to-text/quotas) for usage
237 # limits.
Bu Sun Kim65020912020-05-20 12:08:20 -0700238 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700239 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700240 &quot;boost&quot;: 3.14, # Optional. Boost for this context compared to other contexts:
241 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700242 # * If the boost is positive, Dialogflow will increase the probability that
243 # the phrases in this context are recognized over similar sounding phrases.
244 # * If the boost is unspecified or non-positive, Dialogflow will not apply
245 # any boost.
246 #
247 # Dialogflow recommends that you use boosts in the range (0, 20] and that you
248 # find a value that fits your use case with binary search.
249 },
250 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700251 &quot;phraseHints&quot;: [ # A list of strings containing words and phrases that the speech
252 # recognizer should recognize with higher likelihood.
253 #
254 # See [the Cloud Speech
255 # documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints)
256 # for more details.
257 #
258 # This field is deprecated. Please use [speech_contexts]() instead. If you
259 # specify both [phrase_hints]() and [speech_contexts](), Dialogflow will
260 # treat the [phrase_hints]() as a single additional [SpeechContext]().
261 &quot;A String&quot;,
262 ],
263 &quot;enableWordInfo&quot;: True or False, # If `true`, Dialogflow returns SpeechWordInfo in
264 # StreamingRecognitionResult with information about the recognized speech
265 # words, e.g. start and end time offsets. If false or unspecified, Speech
266 # doesn&#x27;t return any word-level information.
267 &quot;sampleRateHertz&quot;: 42, # Required. Sample rate (in Hertz) of the audio content sent in the query.
268 # Refer to
269 # [Cloud Speech API
270 # documentation](https://cloud.google.com/speech-to-text/docs/basics) for
271 # more details.
272 &quot;model&quot;: &quot;A String&quot;, # Which Speech model to select for the given request. Select the
273 # model best suited to your domain to get best results. If a model is not
274 # explicitly specified, then we auto-select a model based on the parameters
275 # in the InputAudioConfig.
276 # If enhanced speech model is enabled for the agent and an enhanced
277 # version of the specified model for the language does not exist, then the
278 # speech is recognized using the standard version of the specified model.
279 # Refer to
280 # [Cloud Speech API
281 # documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model)
282 # for more details.
283 &quot;modelVariant&quot;: &quot;A String&quot;, # Which variant of the Speech model to use.
Bu Sun Kim65020912020-05-20 12:08:20 -0700284 },
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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700287 &quot;payload&quot;: { # This field can be used to pass custom data to your webhook.
288 # Arbitrary JSON objects are supported.
289 # If supplied, the value is used to populate the
290 # `WebhookRequest.original_detect_intent_request.payload`
291 # field sent to your webhook.
292 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
293 },
294 &quot;geoLocation&quot;: { # An object representing a latitude/longitude pair. This is expressed as a pair # The geo location of this conversational query.
295 # of doubles representing degrees latitude and degrees longitude. Unless
296 # specified otherwise, this must conform to the
297 # &lt;a href=&quot;http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf&quot;&gt;WGS84
298 # standard&lt;/a&gt;. Values must be within normalized ranges.
Bu Sun Kim65020912020-05-20 12:08:20 -0700299 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700300 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
Bu Sun Kim65020912020-05-20 12:08:20 -0700301 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700302 &quot;resetContexts&quot;: True or False, # Specifies whether to delete all contexts in the current session
303 # before the new ones are activated.
304 &quot;knowledgeBaseNames&quot;: [ # KnowledgeBases to get alternative results from. If not set, the
305 # KnowledgeBases enabled in the agent (through UI) will be used.
306 # Format: `projects/&lt;Project ID&gt;/knowledgeBases/&lt;Knowledge Base ID&gt;`.
307 &quot;A String&quot;,
308 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700309 &quot;contexts&quot;: [ # The collection of contexts to be activated before this query is
310 # executed.
311 { # Represents a context.
312 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
313 # context expires. The default is `0`. If set to `0`, the context expires
314 # immediately. Contexts expire automatically after 20 minutes if there
315 # are no matching queries.
316 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
317 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
318 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
319 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
320 #
321 # The `Context ID` is always converted to lowercase, may only contain
322 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
323 #
324 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
325 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
326 #
327 # The following context names are reserved for internal use by Dialogflow.
328 # You should not use these contexts or create contexts with these names:
329 #
330 # * `__system_counters__`
331 # * `*_id_dialog_context`
332 # * `*_dialog_params_size`
333 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
334 #
335 # Depending on your protocol or client library language, this is a
336 # map, associative array, symbol table, dictionary, or JSON object
337 # composed of a collection of (MapKey, MapValue) pairs:
338 #
339 # - MapKey type: string
340 # - MapKey value: parameter name
341 # - MapValue type:
342 # - If parameter&#x27;s entity type is a composite entity: map
343 # - Else: string or number, depending on parameter value type
344 # - MapValue value:
345 # - If parameter&#x27;s entity type is a composite entity:
346 # map from composite entity property names to property values
347 # - Else: parameter value
348 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
349 },
350 },
351 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700352 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700429 &quot;environment&quot;: &quot;A String&quot;, # Optional. The unique identifier (`environment name` in dialogflow console)
430 # of this sub-agent environment. Assumes draft environment if `environment`
431 # is not set.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700432 &quot;project&quot;: &quot;A String&quot;, # Required. The project of this agent.
433 # Format: `projects/&lt;Project ID&gt;`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700434 },
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 Kim4ed7d3f2020-05-27 12:20:54 -0700495 &quot;outputAudio&quot;: &quot;A String&quot;, # The audio data bytes encoded as specified in the request.
496 # Note: The output audio is generated based on the values of default platform
497 # text responses found in the `query_result.fulfillment_messages` field. If
498 # multiple default text responses exist, they will be concatenated when
499 # generating audio. If no default platform text responses exist, the
500 # generated audio content will be empty.
501 #
502 # In some scenarios, multiple output audio fields may be present in the
503 # response structure. In these cases, only the top-most-level audio output
504 # has content.
Bu Sun Kim65020912020-05-20 12:08:20 -0700505 &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 -0700506 # See `alternative_query_results` for additional potential results.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700507 &quot;knowledgeAnswers&quot;: { # Represents the result of querying a Knowledge base. # The result from Knowledge Connector (if any), ordered by decreasing
508 # `KnowledgeAnswers.match_confidence`.
509 &quot;answers&quot;: [ # A list of answers from Knowledge Connector.
510 { # An answer from Knowledge Connector.
511 &quot;source&quot;: &quot;A String&quot;, # Indicates which Knowledge Document this answer was extracted from.
512 # Format: `projects/&lt;Project ID&gt;/knowledgeBases/&lt;Knowledge Base
513 # ID&gt;/documents/&lt;Document ID&gt;`.
514 &quot;answer&quot;: &quot;A String&quot;, # The piece of text from the `source` knowledge base document that answers
515 # this conversational query.
516 &quot;faqQuestion&quot;: &quot;A String&quot;, # The corresponding FAQ question if the answer was extracted from a FAQ
517 # Document, empty otherwise.
518 &quot;matchConfidenceLevel&quot;: &quot;A String&quot;, # The system&#x27;s confidence level that this knowledge answer is a good match
519 # for this conversational query.
520 # NOTE: The confidence level for a given `&lt;query, answer&gt;` pair may change
521 # without notice, as it depends on models that are constantly being
522 # improved. However, it will change less frequently than the confidence
523 # score below, and should be preferred for referencing the quality of an
524 # answer.
525 &quot;matchConfidence&quot;: 3.14, # The system&#x27;s confidence score that this Knowledge answer is a good match
526 # for this conversational query.
527 # The range is from 0.0 (completely uncertain) to 1.0 (completely certain).
528 # Note: The confidence score is likely to vary somewhat (possibly even for
529 # identical requests), as the underlying model is under constant
530 # improvement. It may be deprecated in the future. We recommend using
531 # `match_confidence_level` which should be generally more stable.
532 },
533 ],
534 },
535 &quot;sentimentAnalysisResult&quot;: { # The result of sentiment analysis as configured by # The sentiment analysis result, which depends on the
536 # `sentiment_analysis_request_config` specified in the request.
537 # `sentiment_analysis_request_config`.
538 &quot;queryTextSentiment&quot;: { # The sentiment, such as positive/negative feeling or association, for a unit # The sentiment analysis result for `query_text`.
539 # of analysis, such as the query text.
540 &quot;score&quot;: 3.14, # Sentiment score between -1.0 (negative sentiment) and 1.0 (positive
541 # sentiment).
542 &quot;magnitude&quot;: 3.14, # A non-negative number in the [0, +inf) range, which represents the absolute
543 # magnitude of sentiment, regardless of score (positive or negative).
544 },
545 },
546 &quot;intentDetectionConfidence&quot;: 3.14, # The intent detection confidence. Values range from 0.0
547 # (completely uncertain) to 1.0 (completely certain).
548 # This value is for informational purpose only and is only used to
549 # help match the best intent within the classification threshold.
550 # This value may change for the same end-user expression at any time due to a
551 # model retraining or change in implementation.
552 # If there are `multiple knowledge_answers` messages, this value is set to
553 # the greatest `knowledgeAnswers.match_confidence` value in the list.
Bu Sun Kim65020912020-05-20 12:08:20 -0700554 &quot;allRequiredParamsPresent&quot;: True or False, # This field is set to:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700555 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700556 # - `false` if the matched intent has required parameters and not all of
557 # the required parameter values have been collected.
558 # - `true` if all required parameter values have been collected, or if the
559 # matched intent doesn&#x27;t contain any required parameters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700560 &quot;speechRecognitionConfidence&quot;: 3.14, # The Speech recognition confidence between 0.0 and 1.0. A higher number
561 # indicates an estimated greater likelihood that the recognized words are
562 # correct. The default of 0.0 is a sentinel value indicating that confidence
563 # was not set.
564 #
565 # This field is not guaranteed to be accurate or set. In particular this
566 # field isn&#x27;t set for StreamingDetectIntent since the streaming endpoint has
567 # separate confidence estimates per portion of the audio in
568 # StreamingRecognitionResult.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700569 &quot;queryText&quot;: &quot;A String&quot;, # The original conversational query text:
570 #
571 # - If natural language text was provided as input, `query_text` contains
572 # a copy of the input.
573 # - If natural language speech audio was provided as input, `query_text`
574 # contains the speech recognition result. If speech recognizer produced
575 # multiple alternatives, a particular one is picked.
576 # - If automatic spell correction is enabled, `query_text` will contain the
577 # corrected user input.
Bu Sun Kim65020912020-05-20 12:08:20 -0700578 &quot;diagnosticInfo&quot;: { # Free-form diagnostic information for the associated detect intent request.
579 # The fields of this data can change without notice, so you should not write
580 # code that depends on its structure.
581 # The data may contain:
582 #
583 # - webhook call latency
584 # - webhook errors
585 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
586 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700587 &quot;intent&quot;: { # Represents an intent. # The intent that matched the conversational query. Some, not
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700588 # all fields are filled in this message, including but not limited to:
Dan O'Mearadd494642020-05-01 07:42:23 -0700589 # `name`, `display_name`, `end_interaction` and `is_fallback`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700590 # Intents convert a number of user expressions or patterns into an action. An
591 # action is an extraction of a user command or sentence semantics.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700592 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
593 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Output only. The unique identifier of the root intent in the chain of
594 # followup intents. It identifies the correct followup intents chain for
595 # this intent.
596 #
597 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
598 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
599 # Note: If `ml_disabled` setting is set to true, then this intent is not
600 # taken into account during inference in `ML ONLY` match mode. Also,
601 # auto-markup in the UI is turned off.
602 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
603 &quot;mlEnabled&quot;: True or False, # Optional. Indicates whether Machine Learning is enabled for the intent.
604 # Note: If `ml_enabled` setting is set to false, then this intent is not
605 # taken into account during inference in `ML ONLY` match mode. Also,
606 # auto-markup in the UI is turned off.
607 # DEPRECATED! Please use `ml_disabled` field instead.
608 # NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false,
609 # then the default value is determined as follows:
610 # - Before April 15th, 2018 the default is:
611 # ml_enabled = false / ml_disabled = true.
612 # - After April 15th, 2018 the default is:
613 # ml_enabled = true / ml_disabled = false.
Bu Sun Kim65020912020-05-20 12:08:20 -0700614 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700615 # trained on.
616 { # Represents an example that the agent is trained on.
Bu Sun Kim65020912020-05-20 12:08:20 -0700617 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700618 # The parts are concatenated in order to form the training phrase.
619 #
620 # Note: The API does not automatically annotate training phrases like the
621 # Dialogflow Console does.
622 #
623 # Note: Do not forget to include whitespace at part boundaries,
624 # so the training phrase is well formatted when the parts are concatenated.
625 #
626 # If the training phrase does not need to be annotated with parameters,
627 # you just need a single part with only the Part.text field set.
628 #
629 # If you want to annotate the training phrase, you must create multiple
630 # parts, where the fields of each part are populated in one of two ways:
631 #
632 # - `Part.text` is set to a part of the phrase that has no parameters.
633 # - `Part.text` is set to a part of the phrase that you want to annotate,
634 # and the `entity_type`, `alias`, and `user_defined` fields are all
635 # set.
636 { # Represents a part of a training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -0700637 &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 -0700638 # annotated part of the example.
639 # This field is required for annotated parts of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -0700640 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700641 # This field is set to true when the Dialogflow Console is used to
642 # manually annotate the part. When creating an annotated part with the
643 # API, you must set this to true.
Bu Sun Kim65020912020-05-20 12:08:20 -0700644 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
645 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`.
646 # This field is required for annotated parts of the training phrase.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700647 },
648 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700649 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
650 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700651 # the intent. Each time a developer adds an existing sample by editing an
652 # intent or training, this counter is increased.
Bu Sun Kim65020912020-05-20 12:08:20 -0700653 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700654 },
655 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700656 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current
657 # session when this intent is matched.
658 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
659 { # Represents intent parameters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700660 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that
661 # describes values of the parameter. If the parameter is
662 # required, this must be provided.
663 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the
664 # user in order to collect a value for the parameter.
665 &quot;A String&quot;,
666 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700667 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is,
668 # whether the intent cannot be completed without collecting the parameter
669 # value.
Bu Sun Kim65020912020-05-20 12:08:20 -0700670 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty
671 # result.
672 # Default values can be extracted from contexts by using the following
673 # syntax: `#context_name.parameter_name`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700674 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
675 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
676 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be:
677 #
678 # - a constant string,
679 # - a parameter value defined as `$parameter_name`,
680 # - an original parameter value defined as `$parameter_name.original`,
681 # - a parameter value from some context defined as
682 # `#context_name.parameter_name`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700683 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
Bu Sun Kim65020912020-05-20 12:08:20 -0700684 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700685 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700686 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent.
687 # If the collection of input contexts is not empty, all of the contexts must
688 # be present in the active user session for an event to trigger this intent.
689 # Event names are limited to 150 characters.
690 &quot;A String&quot;,
691 ],
692 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Optional. The unique identifier of the parent intent in the
693 # chain of followup intents. You can set this field when creating an intent,
694 # for example with CreateIntent or
695 # BatchUpdateIntents, in order to make this
696 # intent a followup intent.
697 #
698 # It identifies the parent followup intent.
699 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
700 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher
Dan O'Mearadd494642020-05-01 07:42:23 -0700701 # priorities.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700702 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700703 # - If the supplied value is unspecified or 0, the service
704 # translates the value to 500,000, which corresponds to the
705 # `Normal` priority in the console.
706 # - If the supplied value is negative, the intent is ignored
707 # in runtime detect intent requests.
Bu Sun Kim65020912020-05-20 12:08:20 -0700708 &quot;endInteraction&quot;: True or False, # Optional. Indicates that this intent ends an interaction. Some integrations
709 # (e.g., Actions on Google or Dialogflow phone gateway) use this information
710 # to close interaction with an end user. Default is false.
711 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700712 # is matched. Context messages in this collection should not set the
713 # parameters field. Setting the `lifespan_count` to 0 will reset the context
714 # when the intent is matched.
Dan O'Mearadd494642020-05-01 07:42:23 -0700715 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700716 { # Represents a context.
Bu Sun Kim65020912020-05-20 12:08:20 -0700717 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
718 # context expires. The default is `0`. If set to `0`, the context expires
719 # immediately. Contexts expire automatically after 20 minutes if there
720 # are no matching queries.
721 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
Dan O'Mearadd494642020-05-01 07:42:23 -0700722 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
723 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
724 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700725 #
726 # The `Context ID` is always converted to lowercase, may only contain
727 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
728 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700729 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
730 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
Dan O'Mearadd494642020-05-01 07:42:23 -0700731 #
732 # The following context names are reserved for internal use by Dialogflow.
733 # You should not use these contexts or create contexts with these names:
734 #
735 # * `__system_counters__`
736 # * `*_id_dialog_context`
737 # * `*_dialog_params_size`
Bu Sun Kim65020912020-05-20 12:08:20 -0700738 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
Dan O'Mearadd494642020-05-01 07:42:23 -0700739 #
740 # Depending on your protocol or client library language, this is a
741 # map, associative array, symbol table, dictionary, or JSON object
742 # composed of a collection of (MapKey, MapValue) pairs:
743 #
744 # - MapKey type: string
745 # - MapKey value: parameter name
746 # - MapValue type:
Bu Sun Kim65020912020-05-20 12:08:20 -0700747 # - If parameter&#x27;s entity type is a composite entity: map
Dan O'Mearadd494642020-05-01 07:42:23 -0700748 # - Else: string or number, depending on parameter value type
749 # - MapValue value:
Bu Sun Kim65020912020-05-20 12:08:20 -0700750 # - If parameter&#x27;s entity type is a composite entity:
Dan O'Mearadd494642020-05-01 07:42:23 -0700751 # map from composite entity property names to property values
752 # - Else: parameter value
Bu Sun Kim65020912020-05-20 12:08:20 -0700753 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Dan O'Mearadd494642020-05-01 07:42:23 -0700754 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700755 },
756 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700757 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be
758 # copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
759 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700760 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700761 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the
762 # `Response` field in the Dialogflow console.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700763 { # Corresponds to the `Response` field in the Dialogflow console.
Bu Sun Kim65020912020-05-20 12:08:20 -0700764 &quot;text&quot;: { # The text response message. # Returns a text response.
765 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
766 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700767 ],
768 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700769 &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 -0700770 #
771 # Rich cards allow you to respond to users with more vivid content, e.g.
772 # with media and suggestions.
773 #
774 # For more details about RBM rich cards, please see:
775 # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards.
776 # If you want to show a single card with more control over the layout,
777 # please use RbmStandaloneCard instead.
Bu Sun Kim65020912020-05-20 12:08:20 -0700778 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least
Dan O'Mearadd494642020-05-01 07:42:23 -0700779 # 2 cards and at most 10.
780 { # Rich Business Messaging (RBM) Card content
Bu Sun Kim65020912020-05-20 12:08:20 -0700781 &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 -0700782 # be set. Media (image, GIF or a video) to include in the card.
783 # The following media-types are currently supported:
784 #
785 # Image Types
786 #
787 # * image/jpeg
Bu Sun Kim65020912020-05-20 12:08:20 -0700788 # * image/jpg&#x27;
Dan O'Mearadd494642020-05-01 07:42:23 -0700789 # * image/gif
790 # * image/png
791 #
792 # Video Types
793 #
794 # * video/h263
795 # * video/m4v
796 # * video/mp4
797 # * video/mpeg
798 # * video/mpeg4
799 # * video/webm
Bu Sun Kim65020912020-05-20 12:08:20 -0700800 &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 -0700801 # provide a thumbnail URI, the RBM platform displays a blank
Bu Sun Kim65020912020-05-20 12:08:20 -0700802 # placeholder thumbnail until the user&#x27;s device downloads the file.
803 # Depending on the user&#x27;s setting, the file may not download
Dan O'Mearadd494642020-05-01 07:42:23 -0700804 # automatically and may require the user to tap a download button.
Bu Sun Kim65020912020-05-20 12:08:20 -0700805 &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 -0700806 # within a rich card with a vertical layout. (https://goo.gl/NeFCjz).
807 # For a standalone card with horizontal layout, height is not
808 # customizable, and this field is ignored.
Bu Sun Kim65020912020-05-20 12:08:20 -0700809 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
810 # determines the MIME type of the file from the content-type field in
811 # the HTTP headers when the platform fetches the file. The content-type
812 # field must be present and accurate in the HTTP response from the URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700813 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700814 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
Dan O'Mearadd494642020-05-01 07:42:23 -0700815 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
816 # easily select/click a predefined response or perform an action (like
817 # opening a web uri).
Bu Sun Kim65020912020-05-20 12:08:20 -0700818 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
819 # instead of typing in their own response.
Bu Sun Kim65020912020-05-20 12:08:20 -0700820 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
821 # when the user taps the suggested reply. This data will be also
822 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700823 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -0700824 },
825 &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 -0700826 # can choose from the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700827 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
828 # but does not dial automatically (https://goo.gl/ergbB2).
829 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
830 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
831 # format. An example of a correctly formatted phone number:
832 # +15556767888.
833 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700834 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
835 # when the user taps the suggested action. This data will be also
836 # forwarded to webhook to allow performing custom business logic.
837 &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 -0700838 # to send back to the agent (https://goo.gl/GXotJW).
839 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700840 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
841 &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 -0700842 # (https://goo.gl/6GLJD2). If the user has an app installed that is
843 # registered as the default handler for the URL, then this app will be
844 # opened instead, and its icon will be used in the suggested action UI.
Bu Sun Kim65020912020-05-20 12:08:20 -0700845 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
Dan O'Mearadd494642020-05-01 07:42:23 -0700846 },
Dan O'Mearadd494642020-05-01 07:42:23 -0700847 },
848 },
849 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700850 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
Dan O'Mearadd494642020-05-01 07:42:23 -0700851 #
852 # At least one of the title, description or media must be set.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700853 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
854 #
855 # At least one of the title, description or media must be set.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700856 },
857 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700858 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700859 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700860 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
861 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
862 { # The suggestion chip message that the user can tap to quickly post a reply
863 # to the conversation.
864 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
865 },
866 ],
867 },
868 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
869 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
870 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to
871 # play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700872 # channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz.
873 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700874 # This object must be readable by the `service-&lt;Project
875 # Number&gt;@gcp-sa-dialogflow.iam.gserviceaccount.com` service account
876 # where &lt;Project Number&gt; is the number of the Telephony Gateway project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700877 # (usually the same as the Dialogflow agent project). If the Google Cloud
878 # Storage bucket is in the Telephony Gateway project, this permission is
879 # added by default when enabling the Dialogflow V2 API.
880 #
881 # For audio from other sources, consider using the
882 # `TelephonySynthesizeSpeech` message with SSML.
883 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700884 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
885 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
886 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
887 &quot;items&quot;: [ # Required. List items.
888 { # An item in the list.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700889 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
Bu Sun Kim65020912020-05-20 12:08:20 -0700890 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
891 # dialog.
892 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
893 # item in dialog.
894 &quot;A String&quot;,
895 ],
896 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
897 # response is given.
898 },
899 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
900 &quot;image&quot;: { # The image response message. # Optional. The image to display.
901 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
902 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
903 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
904 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700905 },
906 ],
907 },
908 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response.
909 #
910 # RBM allows businesses to send enriched and branded versions of SMS. See
911 # https://jibe.google.com/business-messaging.
912 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
913 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
914 # easily select/click a predefined response or perform an action (like
915 # opening a web uri).
916 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
917 # instead of typing in their own response.
Bu Sun Kim65020912020-05-20 12:08:20 -0700918 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
919 # when the user taps the suggested reply. This data will be also
920 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700921 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -0700922 },
923 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
924 # can choose from the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700925 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
926 # but does not dial automatically (https://goo.gl/ergbB2).
927 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
928 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
929 # format. An example of a correctly formatted phone number:
930 # +15556767888.
931 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700932 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
933 # when the user taps the suggested action. This data will be also
934 # forwarded to webhook to allow performing custom business logic.
935 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
936 # to send back to the agent (https://goo.gl/GXotJW).
937 },
938 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
939 &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
940 # (https://goo.gl/6GLJD2). If the user has an app installed that is
941 # registered as the default handler for the URL, then this app will be
942 # opened instead, and its icon will be used in the suggested action UI.
943 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
944 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700945 },
946 },
947 ],
948 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
949 },
950 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
951 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
952 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
953 &quot;A String&quot;,
954 ],
955 },
956 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in # Synthesizes speech in Telephony Gateway.
957 # Telephony Gateway.
958 #
959 # Telephony Gateway takes the synthesizer settings from
960 # `DetectIntentResponse.output_audio_config` which can either be set
961 # at request-level or can come from the agent-level synthesizer config.
962 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
963 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see
964 # [SSML](https://developers.google.com/actions/reference/ssml).
965 },
966 &quot;card&quot;: { # The card response message. # Displays a card.
Bu Sun Kim65020912020-05-20 12:08:20 -0700967 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
968 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
969 { # Optional. Contains information about a button.
970 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
971 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
972 # open.
973 },
974 ],
975 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700976 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
Bu Sun Kim65020912020-05-20 12:08:20 -0700977 },
978 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
979 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
980 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
981 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
982 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
983 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
984 },
985 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
986 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
987 { # The button object that appears at the bottom of a card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700988 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -0700989 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
990 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
991 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700992 },
993 ],
994 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
995 },
996 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Bu Sun Kim65020912020-05-20 12:08:20 -0700997 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
998 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
999 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1000 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1001 },
1002 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
1003 { # The button object that appears at the bottom of a card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001004 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -07001005 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1006 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1007 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001008 },
1009 ],
1010 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
1011 &quot;rows&quot;: [ # Optional. Rows in this table of data.
1012 { # Row of TableCard.
1013 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
1014 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
1015 { # Cell of TableCardRow.
1016 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
1017 },
1018 ],
1019 },
1020 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001021 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
1022 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
1023 { # Column properties for TableCard.
1024 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
1025 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
1026 },
1027 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001028 },
1029 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
1030 &quot;items&quot;: [ # Required. Carousel items.
1031 { # An item in the carousel.
Bu Sun Kim65020912020-05-20 12:08:20 -07001032 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
1033 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
1034 # dialog.
1035 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
1036 # item in dialog.
1037 &quot;A String&quot;,
1038 ],
1039 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
1040 # response is given.
1041 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001042 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
1043 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1044 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1045 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1046 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1047 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001048 },
1049 ],
1050 },
1051 &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.
1052 # or website associated with this agent.
1053 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
1054 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
1055 # suggestion chip.
1056 },
1057 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
1058 # https://developers.google.com/actions/assistant/responses#browsing_carousel
1059 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
1060 # items.
1061 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
1062 # items, maximum of ten.
1063 { # Browsing carousel tile
Bu Sun Kim65020912020-05-20 12:08:20 -07001064 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
1065 # text.
1066 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
1067 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
1068 # the URL. Defaults to opening via web browser.
1069 &quot;url&quot;: &quot;A String&quot;, # Required. URL
1070 },
1071 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
1072 # Card. Maximum of one line of text.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001073 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
1074 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
1075 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1076 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1077 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1078 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001079 },
1080 ],
1081 },
1082 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # Returns a voice or text-only response for Actions on Google.
1083 # This message in `QueryResult.fulfillment_messages` and
1084 # `WebhookResponse.fulfillment_messages` should contain only one
1085 # `SimpleResponse`.
1086 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
1087 { # The simple response message containing speech or text.
Bu Sun Kim65020912020-05-20 12:08:20 -07001088 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
1089 # response to the user in the SSML format. Mutually exclusive with
1090 # text_to_speech.
1091 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001092 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
1093 # speech output. Mutually exclusive with ssml.
Bu Sun Kim65020912020-05-20 12:08:20 -07001094 },
1095 ],
1096 },
1097 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
1098 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to
1099 # in [E.164 format](https://en.wikipedia.org/wiki/E.164).
1100 #
1101 # We currently only allow transferring to US numbers (+1xxxyyyzzzz).
1102 },
1103 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
1104 &quot;mediaObjects&quot;: [ # Required. List of media objects.
1105 { # Response media object for media content card.
Bu Sun Kim65020912020-05-20 12:08:20 -07001106 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
1107 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
1108 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
1109 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
1110 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1111 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1112 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1113 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001114 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
1115 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1116 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1117 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1118 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001119 },
1120 ],
1121 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
1122 },
1123 &quot;image&quot;: { # The image response message. # Displays an image.
1124 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1125 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1126 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1127 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001128 &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 -07001129 #
1130 # Rich cards allow you to respond to users with more vivid content, e.g.
1131 # with media and suggestions.
1132 #
1133 # For more details about RBM rich cards, please see:
1134 # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards.
1135 # You can group multiple rich cards into one using RbmCarouselCard but
1136 # carousel cards will give you less control over the card layout.
Bu Sun Kim65020912020-05-20 12:08:20 -07001137 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal.
Dan O'Mearadd494642020-05-01 07:42:23 -07001138 # Image preview alignment for standalone cards with horizontal layout.
Bu Sun Kim65020912020-05-20 12:08:20 -07001139 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
1140 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
Bu Sun Kim65020912020-05-20 12:08:20 -07001141 &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 -07001142 # be set. Media (image, GIF or a video) to include in the card.
1143 # The following media-types are currently supported:
1144 #
1145 # Image Types
1146 #
1147 # * image/jpeg
Bu Sun Kim65020912020-05-20 12:08:20 -07001148 # * image/jpg&#x27;
Dan O'Mearadd494642020-05-01 07:42:23 -07001149 # * image/gif
1150 # * image/png
1151 #
1152 # Video Types
1153 #
1154 # * video/h263
1155 # * video/m4v
1156 # * video/mp4
1157 # * video/mpeg
1158 # * video/mpeg4
1159 # * video/webm
Bu Sun Kim65020912020-05-20 12:08:20 -07001160 &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 -07001161 # provide a thumbnail URI, the RBM platform displays a blank
Bu Sun Kim65020912020-05-20 12:08:20 -07001162 # placeholder thumbnail until the user&#x27;s device downloads the file.
1163 # Depending on the user&#x27;s setting, the file may not download
Dan O'Mearadd494642020-05-01 07:42:23 -07001164 # automatically and may require the user to tap a download button.
Bu Sun Kim65020912020-05-20 12:08:20 -07001165 &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 -07001166 # within a rich card with a vertical layout. (https://goo.gl/NeFCjz).
1167 # For a standalone card with horizontal layout, height is not
1168 # customizable, and this field is ignored.
Bu Sun Kim65020912020-05-20 12:08:20 -07001169 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
1170 # determines the MIME type of the file from the content-type field in
1171 # the HTTP headers when the platform fetches the file. The content-type
1172 # field must be present and accurate in the HTTP response from the URL.
Dan O'Mearadd494642020-05-01 07:42:23 -07001173 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001174 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
Dan O'Mearadd494642020-05-01 07:42:23 -07001175 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
1176 # easily select/click a predefined response or perform an action (like
1177 # opening a web uri).
Bu Sun Kim65020912020-05-20 12:08:20 -07001178 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
1179 # instead of typing in their own response.
Bu Sun Kim65020912020-05-20 12:08:20 -07001180 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1181 # when the user taps the suggested reply. This data will be also
1182 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001183 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07001184 },
1185 &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 -07001186 # can choose from the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001187 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
1188 # but does not dial automatically (https://goo.gl/ergbB2).
1189 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
1190 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
1191 # format. An example of a correctly formatted phone number:
1192 # +15556767888.
1193 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001194 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1195 # when the user taps the suggested action. This data will be also
1196 # forwarded to webhook to allow performing custom business logic.
1197 &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 -07001198 # to send back to the agent (https://goo.gl/GXotJW).
1199 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001200 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1201 &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 -07001202 # (https://goo.gl/6GLJD2). If the user has an app installed that is
1203 # registered as the default handler for the URL, then this app will be
1204 # opened instead, and its icon will be used in the suggested action UI.
Bu Sun Kim65020912020-05-20 12:08:20 -07001205 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
Dan O'Mearadd494642020-05-01 07:42:23 -07001206 },
Dan O'Mearadd494642020-05-01 07:42:23 -07001207 },
1208 },
1209 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001210 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
Dan O'Mearadd494642020-05-01 07:42:23 -07001211 #
1212 # At least one of the title, description or media must be set.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001213 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
1214 #
1215 # At least one of the title, description or media must be set.
Dan O'Mearadd494642020-05-01 07:42:23 -07001216 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001217 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001218 &quot;payload&quot;: { # A custom platform-specific response.
1219 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1220 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001221 },
1222 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001223 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent.
1224 # Note: The action name must not contain whitespaces.
1225 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent.
1226 # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
1227 # methods.
1228 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
1229 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
1230 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be
1231 # triggered.
1232 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
1233 &quot;A String&quot;,
1234 ],
1235 &quot;followupIntentInfo&quot;: [ # Output only. Information about all followup intents that have this intent as
1236 # a direct or indirect parent. We populate this field only in the output.
1237 { # Represents a single followup intent in the chain.
1238 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent.
1239 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
1240 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent.
1241 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
1242 },
1243 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001244 },
1245 &quot;languageCode&quot;: &quot;A String&quot;, # The language that was triggered during intent detection.
1246 # See [Language
1247 # Support](https://cloud.google.com/dialogflow/docs/reference/language)
1248 # for a list of the currently supported language codes.
1249 &quot;outputContexts&quot;: [ # The collection of output contexts. If applicable,
1250 # `output_contexts.parameters` contains entries with name
1251 # `&lt;parameter name&gt;.original` containing the original parameter values
1252 # before the query.
1253 { # Represents a context.
1254 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
1255 # context expires. The default is `0`. If set to `0`, the context expires
1256 # immediately. Contexts expire automatically after 20 minutes if there
1257 # are no matching queries.
1258 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
1259 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
1260 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
1261 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
1262 #
1263 # The `Context ID` is always converted to lowercase, may only contain
1264 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
1265 #
1266 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
1267 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
1268 #
1269 # The following context names are reserved for internal use by Dialogflow.
1270 # You should not use these contexts or create contexts with these names:
1271 #
1272 # * `__system_counters__`
1273 # * `*_id_dialog_context`
1274 # * `*_dialog_params_size`
1275 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
1276 #
1277 # Depending on your protocol or client library language, this is a
1278 # map, associative array, symbol table, dictionary, or JSON object
1279 # composed of a collection of (MapKey, MapValue) pairs:
1280 #
1281 # - MapKey type: string
1282 # - MapKey value: parameter name
1283 # - MapValue type:
1284 # - If parameter&#x27;s entity type is a composite entity: map
1285 # - Else: string or number, depending on parameter value type
1286 # - MapValue value:
1287 # - If parameter&#x27;s entity type is a composite entity:
1288 # map from composite entity property names to property values
1289 # - Else: parameter value
1290 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1291 },
1292 },
1293 ],
1294 &quot;webhookPayload&quot;: { # If the query was fulfilled by a webhook call, this field is set to the
1295 # value of the `payload` field returned in the webhook response.
1296 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Bu Sun Kim65020912020-05-20 12:08:20 -07001297 },
1298 &quot;fulfillmentMessages&quot;: [ # The collection of rich messages to present to the user.
1299 { # Corresponds to the `Response` field in the Dialogflow console.
1300 &quot;text&quot;: { # The text response message. # Returns a text response.
1301 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
1302 &quot;A String&quot;,
1303 ],
1304 },
1305 &quot;rbmCarouselRichCard&quot;: { # Carousel Rich Business Messaging (RBM) rich card. # Rich Business Messaging (RBM) carousel rich card response.
1306 #
1307 # Rich cards allow you to respond to users with more vivid content, e.g.
1308 # with media and suggestions.
1309 #
1310 # For more details about RBM rich cards, please see:
1311 # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards.
1312 # If you want to show a single card with more control over the layout,
1313 # please use RbmStandaloneCard instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07001314 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least
1315 # 2 cards and at most 10.
1316 { # Rich Business Messaging (RBM) Card content
Bu Sun Kim65020912020-05-20 12:08:20 -07001317 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
1318 # be set. Media (image, GIF or a video) to include in the card.
1319 # The following media-types are currently supported:
1320 #
1321 # Image Types
1322 #
1323 # * image/jpeg
1324 # * image/jpg&#x27;
1325 # * image/gif
1326 # * image/png
1327 #
1328 # Video Types
1329 #
1330 # * video/h263
1331 # * video/m4v
1332 # * video/mp4
1333 # * video/mpeg
1334 # * video/mpeg4
1335 # * video/webm
1336 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
1337 # provide a thumbnail URI, the RBM platform displays a blank
1338 # placeholder thumbnail until the user&#x27;s device downloads the file.
1339 # Depending on the user&#x27;s setting, the file may not download
1340 # automatically and may require the user to tap a download button.
1341 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
1342 # within a rich card with a vertical layout. (https://goo.gl/NeFCjz).
1343 # For a standalone card with horizontal layout, height is not
1344 # customizable, and this field is ignored.
1345 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
1346 # determines the MIME type of the file from the content-type field in
1347 # the HTTP headers when the platform fetches the file. The content-type
1348 # field must be present and accurate in the HTTP response from the URL.
1349 },
1350 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
1351 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
1352 # easily select/click a predefined response or perform an action (like
1353 # opening a web uri).
1354 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
1355 # instead of typing in their own response.
Bu Sun Kim65020912020-05-20 12:08:20 -07001356 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1357 # when the user taps the suggested reply. This data will be also
1358 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001359 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07001360 },
1361 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
1362 # can choose from the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001363 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
1364 # but does not dial automatically (https://goo.gl/ergbB2).
1365 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
1366 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
1367 # format. An example of a correctly formatted phone number:
1368 # +15556767888.
1369 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001370 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1371 # when the user taps the suggested action. This data will be also
1372 # forwarded to webhook to allow performing custom business logic.
1373 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
1374 # to send back to the agent (https://goo.gl/GXotJW).
1375 },
1376 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1377 &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
1378 # (https://goo.gl/6GLJD2). If the user has an app installed that is
1379 # registered as the default handler for the URL, then this app will be
1380 # opened instead, and its icon will be used in the suggested action UI.
1381 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1382 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001383 },
1384 },
1385 ],
1386 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
1387 #
1388 # At least one of the title, description or media must be set.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001389 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
1390 #
1391 # At least one of the title, description or media must be set.
Bu Sun Kim65020912020-05-20 12:08:20 -07001392 },
1393 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001394 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
Bu Sun Kim65020912020-05-20 12:08:20 -07001395 },
1396 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
1397 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
1398 { # The suggestion chip message that the user can tap to quickly post a reply
1399 # to the conversation.
1400 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
1401 },
1402 ],
1403 },
1404 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
1405 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
1406 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to
1407 # play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single
1408 # channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz.
1409 #
1410 # This object must be readable by the `service-&lt;Project
1411 # Number&gt;@gcp-sa-dialogflow.iam.gserviceaccount.com` service account
1412 # where &lt;Project Number&gt; is the number of the Telephony Gateway project
1413 # (usually the same as the Dialogflow agent project). If the Google Cloud
1414 # Storage bucket is in the Telephony Gateway project, this permission is
1415 # added by default when enabling the Dialogflow V2 API.
1416 #
1417 # For audio from other sources, consider using the
1418 # `TelephonySynthesizeSpeech` message with SSML.
1419 },
1420 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
1421 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
1422 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
1423 &quot;items&quot;: [ # Required. List items.
1424 { # An item in the list.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001425 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
Bu Sun Kim65020912020-05-20 12:08:20 -07001426 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
1427 # dialog.
1428 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
1429 # item in dialog.
1430 &quot;A String&quot;,
1431 ],
1432 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
1433 # response is given.
1434 },
1435 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
1436 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1437 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1438 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1439 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1440 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001441 },
1442 ],
1443 },
1444 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response.
1445 #
1446 # RBM allows businesses to send enriched and branded versions of SMS. See
1447 # https://jibe.google.com/business-messaging.
1448 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
1449 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
1450 # easily select/click a predefined response or perform an action (like
1451 # opening a web uri).
1452 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
1453 # instead of typing in their own response.
Bu Sun Kim65020912020-05-20 12:08:20 -07001454 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1455 # when the user taps the suggested reply. This data will be also
1456 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001457 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07001458 },
1459 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
1460 # can choose from the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001461 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
1462 # but does not dial automatically (https://goo.gl/ergbB2).
1463 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
1464 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
1465 # format. An example of a correctly formatted phone number:
1466 # +15556767888.
1467 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001468 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1469 # when the user taps the suggested action. This data will be also
1470 # forwarded to webhook to allow performing custom business logic.
1471 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
1472 # to send back to the agent (https://goo.gl/GXotJW).
1473 },
1474 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1475 &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
1476 # (https://goo.gl/6GLJD2). If the user has an app installed that is
1477 # registered as the default handler for the URL, then this app will be
1478 # opened instead, and its icon will be used in the suggested action UI.
1479 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1480 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001481 },
1482 },
1483 ],
1484 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
1485 },
1486 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
1487 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
1488 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
1489 &quot;A String&quot;,
1490 ],
1491 },
1492 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in # Synthesizes speech in Telephony Gateway.
1493 # Telephony Gateway.
1494 #
1495 # Telephony Gateway takes the synthesizer settings from
1496 # `DetectIntentResponse.output_audio_config` which can either be set
1497 # at request-level or can come from the agent-level synthesizer config.
1498 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
1499 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see
1500 # [SSML](https://developers.google.com/actions/reference/ssml).
1501 },
1502 &quot;card&quot;: { # The card response message. # Displays a card.
Bu Sun Kim65020912020-05-20 12:08:20 -07001503 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1504 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1505 { # Optional. Contains information about a button.
1506 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
1507 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
1508 # open.
1509 },
1510 ],
1511 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001512 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07001513 },
1514 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
1515 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1516 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
1517 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1518 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1519 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1520 },
1521 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
1522 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1523 { # The button object that appears at the bottom of a card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001524 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -07001525 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1526 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1527 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001528 },
1529 ],
1530 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1531 },
1532 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Bu Sun Kim65020912020-05-20 12:08:20 -07001533 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
1534 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1535 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1536 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1537 },
1538 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
1539 { # The button object that appears at the bottom of a card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001540 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -07001541 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1542 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1543 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001544 },
1545 ],
1546 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
1547 &quot;rows&quot;: [ # Optional. Rows in this table of data.
1548 { # Row of TableCard.
1549 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
1550 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
1551 { # Cell of TableCardRow.
1552 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
1553 },
1554 ],
1555 },
1556 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001557 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
1558 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
1559 { # Column properties for TableCard.
1560 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
1561 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
1562 },
1563 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001564 },
1565 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
1566 &quot;items&quot;: [ # Required. Carousel items.
1567 { # An item in the carousel.
Bu Sun Kim65020912020-05-20 12:08:20 -07001568 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
1569 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
1570 # dialog.
1571 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
1572 # item in dialog.
1573 &quot;A String&quot;,
1574 ],
1575 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
1576 # response is given.
1577 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001578 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
1579 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1580 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1581 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1582 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1583 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001584 },
1585 ],
1586 },
1587 &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.
1588 # or website associated with this agent.
1589 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
1590 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
1591 # suggestion chip.
1592 },
1593 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
1594 # https://developers.google.com/actions/assistant/responses#browsing_carousel
1595 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
1596 # items.
1597 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
1598 # items, maximum of ten.
1599 { # Browsing carousel tile
Bu Sun Kim65020912020-05-20 12:08:20 -07001600 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
1601 # text.
1602 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
1603 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
1604 # the URL. Defaults to opening via web browser.
1605 &quot;url&quot;: &quot;A String&quot;, # Required. URL
1606 },
1607 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
1608 # Card. Maximum of one line of text.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001609 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
1610 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
1611 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1612 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1613 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1614 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001615 },
1616 ],
1617 },
1618 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # Returns a voice or text-only response for Actions on Google.
1619 # This message in `QueryResult.fulfillment_messages` and
1620 # `WebhookResponse.fulfillment_messages` should contain only one
1621 # `SimpleResponse`.
1622 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
1623 { # The simple response message containing speech or text.
Bu Sun Kim65020912020-05-20 12:08:20 -07001624 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
1625 # response to the user in the SSML format. Mutually exclusive with
1626 # text_to_speech.
1627 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001628 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
1629 # speech output. Mutually exclusive with ssml.
Bu Sun Kim65020912020-05-20 12:08:20 -07001630 },
1631 ],
1632 },
1633 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
1634 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to
1635 # in [E.164 format](https://en.wikipedia.org/wiki/E.164).
1636 #
1637 # We currently only allow transferring to US numbers (+1xxxyyyzzzz).
1638 },
1639 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
1640 &quot;mediaObjects&quot;: [ # Required. List of media objects.
1641 { # Response media object for media content card.
Bu Sun Kim65020912020-05-20 12:08:20 -07001642 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
1643 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
1644 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
1645 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
1646 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1647 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1648 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1649 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001650 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
1651 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1652 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1653 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1654 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001655 },
1656 ],
1657 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
1658 },
1659 &quot;image&quot;: { # The image response message. # Displays an image.
1660 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1661 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1662 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1663 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001664 &quot;rbmStandaloneRichCard&quot;: { # Standalone Rich Business Messaging (RBM) rich card. # Standalone Rich Business Messaging (RBM) rich card response.
1665 #
1666 # Rich cards allow you to respond to users with more vivid content, e.g.
1667 # with media and suggestions.
1668 #
1669 # For more details about RBM rich cards, please see:
1670 # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards.
1671 # You can group multiple rich cards into one using RbmCarouselCard but
1672 # carousel cards will give you less control over the card layout.
1673 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal.
1674 # Image preview alignment for standalone cards with horizontal layout.
1675 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
1676 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
Bu Sun Kim65020912020-05-20 12:08:20 -07001677 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
1678 # be set. Media (image, GIF or a video) to include in the card.
1679 # The following media-types are currently supported:
1680 #
1681 # Image Types
1682 #
1683 # * image/jpeg
1684 # * image/jpg&#x27;
1685 # * image/gif
1686 # * image/png
1687 #
1688 # Video Types
1689 #
1690 # * video/h263
1691 # * video/m4v
1692 # * video/mp4
1693 # * video/mpeg
1694 # * video/mpeg4
1695 # * video/webm
1696 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
1697 # provide a thumbnail URI, the RBM platform displays a blank
1698 # placeholder thumbnail until the user&#x27;s device downloads the file.
1699 # Depending on the user&#x27;s setting, the file may not download
1700 # automatically and may require the user to tap a download button.
1701 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
1702 # within a rich card with a vertical layout. (https://goo.gl/NeFCjz).
1703 # For a standalone card with horizontal layout, height is not
1704 # customizable, and this field is ignored.
1705 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
1706 # determines the MIME type of the file from the content-type field in
1707 # the HTTP headers when the platform fetches the file. The content-type
1708 # field must be present and accurate in the HTTP response from the URL.
1709 },
1710 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
1711 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
1712 # easily select/click a predefined response or perform an action (like
1713 # opening a web uri).
1714 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
1715 # instead of typing in their own response.
Bu Sun Kim65020912020-05-20 12:08:20 -07001716 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1717 # when the user taps the suggested reply. This data will be also
1718 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001719 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07001720 },
1721 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
1722 # can choose from the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001723 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
1724 # but does not dial automatically (https://goo.gl/ergbB2).
1725 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
1726 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
1727 # format. An example of a correctly formatted phone number:
1728 # +15556767888.
1729 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001730 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1731 # when the user taps the suggested action. This data will be also
1732 # forwarded to webhook to allow performing custom business logic.
1733 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
1734 # to send back to the agent (https://goo.gl/GXotJW).
1735 },
1736 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1737 &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
1738 # (https://goo.gl/6GLJD2). If the user has an app installed that is
1739 # registered as the default handler for the URL, then this app will be
1740 # opened instead, and its icon will be used in the suggested action UI.
1741 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1742 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001743 },
1744 },
1745 ],
1746 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
1747 #
1748 # At least one of the title, description or media must be set.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001749 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
1750 #
1751 # At least one of the title, description or media must be set.
Bu Sun Kim65020912020-05-20 12:08:20 -07001752 },
1753 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001754 &quot;payload&quot;: { # A custom platform-specific response.
1755 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1756 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001757 },
1758 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001759 &quot;action&quot;: &quot;A String&quot;, # The action name from the matched intent.
1760 &quot;webhookSource&quot;: &quot;A String&quot;, # If the query was fulfilled by a webhook call, this field is set to the
1761 # value of the `source` field returned in the webhook response.
1762 &quot;fulfillmentText&quot;: &quot;A String&quot;, # The text to be pronounced to the user or shown on the screen.
1763 # Note: This is a legacy field, `fulfillment_messages` should be preferred.
1764 &quot;parameters&quot;: { # The collection of extracted parameters.
1765 #
1766 # Depending on your protocol or client library language, this is a
1767 # map, associative array, symbol table, dictionary, or JSON object
1768 # composed of a collection of (MapKey, MapValue) pairs:
1769 #
1770 # - MapKey type: string
1771 # - MapKey value: parameter name
1772 # - MapValue type:
1773 # - If parameter&#x27;s entity type is a composite entity: map
1774 # - Else: string or number, depending on parameter value type
1775 # - MapValue value:
1776 # - If parameter&#x27;s entity type is a composite entity:
1777 # map from composite entity property names to property values
1778 # - Else: parameter value
1779 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1780 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001781 },
1782 &quot;webhookStatus&quot;: { # The `Status` type defines a logical error model that is suitable for # Specifies the status of the webhook request.
1783 # different programming environments, including REST APIs and RPC APIs. It is
1784 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1785 # three pieces of data: error code, error message, and error details.
1786 #
1787 # You can find out more about this error model and how to work with it in the
1788 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001789 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1790 # user-facing error message should be localized and sent in the
1791 # google.rpc.Status.details field, or localized by the client.
Bu Sun Kim65020912020-05-20 12:08:20 -07001792 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
1793 # message types for APIs to use.
1794 {
1795 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1796 },
1797 ],
1798 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Bu Sun Kim65020912020-05-20 12:08:20 -07001799 },
1800 &quot;alternativeQueryResults&quot;: [ # If Knowledge Connectors are enabled, there could be more than one result
1801 # returned for a given query or event, and this field will contain all
1802 # results except for the top one, which is captured in query_result. The
1803 # alternative results are ordered by decreasing
1804 # `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
1805 # disabled, this field will be empty until multiple responses for regular
1806 # intents are supported, at which point those additional results will be
1807 # surfaced here.
1808 { # Represents the result of conversational query or event processing.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001809 &quot;knowledgeAnswers&quot;: { # Represents the result of querying a Knowledge base. # The result from Knowledge Connector (if any), ordered by decreasing
1810 # `KnowledgeAnswers.match_confidence`.
1811 &quot;answers&quot;: [ # A list of answers from Knowledge Connector.
1812 { # An answer from Knowledge Connector.
1813 &quot;source&quot;: &quot;A String&quot;, # Indicates which Knowledge Document this answer was extracted from.
1814 # Format: `projects/&lt;Project ID&gt;/knowledgeBases/&lt;Knowledge Base
1815 # ID&gt;/documents/&lt;Document ID&gt;`.
1816 &quot;answer&quot;: &quot;A String&quot;, # The piece of text from the `source` knowledge base document that answers
1817 # this conversational query.
1818 &quot;faqQuestion&quot;: &quot;A String&quot;, # The corresponding FAQ question if the answer was extracted from a FAQ
1819 # Document, empty otherwise.
1820 &quot;matchConfidenceLevel&quot;: &quot;A String&quot;, # The system&#x27;s confidence level that this knowledge answer is a good match
1821 # for this conversational query.
1822 # NOTE: The confidence level for a given `&lt;query, answer&gt;` pair may change
1823 # without notice, as it depends on models that are constantly being
1824 # improved. However, it will change less frequently than the confidence
1825 # score below, and should be preferred for referencing the quality of an
1826 # answer.
1827 &quot;matchConfidence&quot;: 3.14, # The system&#x27;s confidence score that this Knowledge answer is a good match
1828 # for this conversational query.
1829 # The range is from 0.0 (completely uncertain) to 1.0 (completely certain).
1830 # Note: The confidence score is likely to vary somewhat (possibly even for
1831 # identical requests), as the underlying model is under constant
1832 # improvement. It may be deprecated in the future. We recommend using
1833 # `match_confidence_level` which should be generally more stable.
1834 },
1835 ],
1836 },
1837 &quot;sentimentAnalysisResult&quot;: { # The result of sentiment analysis as configured by # The sentiment analysis result, which depends on the
1838 # `sentiment_analysis_request_config` specified in the request.
1839 # `sentiment_analysis_request_config`.
1840 &quot;queryTextSentiment&quot;: { # The sentiment, such as positive/negative feeling or association, for a unit # The sentiment analysis result for `query_text`.
1841 # of analysis, such as the query text.
1842 &quot;score&quot;: 3.14, # Sentiment score between -1.0 (negative sentiment) and 1.0 (positive
1843 # sentiment).
1844 &quot;magnitude&quot;: 3.14, # A non-negative number in the [0, +inf) range, which represents the absolute
1845 # magnitude of sentiment, regardless of score (positive or negative).
1846 },
1847 },
1848 &quot;intentDetectionConfidence&quot;: 3.14, # The intent detection confidence. Values range from 0.0
1849 # (completely uncertain) to 1.0 (completely certain).
1850 # This value is for informational purpose only and is only used to
1851 # help match the best intent within the classification threshold.
1852 # This value may change for the same end-user expression at any time due to a
1853 # model retraining or change in implementation.
1854 # If there are `multiple knowledge_answers` messages, this value is set to
1855 # the greatest `knowledgeAnswers.match_confidence` value in the list.
Bu Sun Kim65020912020-05-20 12:08:20 -07001856 &quot;allRequiredParamsPresent&quot;: True or False, # This field is set to:
1857 #
1858 # - `false` if the matched intent has required parameters and not all of
1859 # the required parameter values have been collected.
1860 # - `true` if all required parameter values have been collected, or if the
1861 # matched intent doesn&#x27;t contain any required parameters.
Bu Sun Kim65020912020-05-20 12:08:20 -07001862 &quot;speechRecognitionConfidence&quot;: 3.14, # The Speech recognition confidence between 0.0 and 1.0. A higher number
1863 # indicates an estimated greater likelihood that the recognized words are
1864 # correct. The default of 0.0 is a sentinel value indicating that confidence
1865 # was not set.
1866 #
1867 # This field is not guaranteed to be accurate or set. In particular this
1868 # field isn&#x27;t set for StreamingDetectIntent since the streaming endpoint has
1869 # separate confidence estimates per portion of the audio in
1870 # StreamingRecognitionResult.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001871 &quot;queryText&quot;: &quot;A String&quot;, # The original conversational query text:
1872 #
1873 # - If natural language text was provided as input, `query_text` contains
1874 # a copy of the input.
1875 # - If natural language speech audio was provided as input, `query_text`
1876 # contains the speech recognition result. If speech recognizer produced
1877 # multiple alternatives, a particular one is picked.
1878 # - If automatic spell correction is enabled, `query_text` will contain the
1879 # corrected user input.
Bu Sun Kim65020912020-05-20 12:08:20 -07001880 &quot;diagnosticInfo&quot;: { # Free-form diagnostic information for the associated detect intent request.
1881 # The fields of this data can change without notice, so you should not write
1882 # code that depends on its structure.
1883 # The data may contain:
1884 #
1885 # - webhook call latency
1886 # - webhook errors
1887 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1888 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001889 &quot;intent&quot;: { # Represents an intent. # The intent that matched the conversational query. Some, not
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001890 # all fields are filled in this message, including but not limited to:
Dan O'Mearadd494642020-05-01 07:42:23 -07001891 # `name`, `display_name`, `end_interaction` and `is_fallback`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001892 # Intents convert a number of user expressions or patterns into an action. An
1893 # action is an extraction of a user command or sentence semantics.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001894 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
1895 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Output only. The unique identifier of the root intent in the chain of
1896 # followup intents. It identifies the correct followup intents chain for
1897 # this intent.
1898 #
1899 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
1900 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
1901 # Note: If `ml_disabled` setting is set to true, then this intent is not
1902 # taken into account during inference in `ML ONLY` match mode. Also,
1903 # auto-markup in the UI is turned off.
1904 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
1905 &quot;mlEnabled&quot;: True or False, # Optional. Indicates whether Machine Learning is enabled for the intent.
1906 # Note: If `ml_enabled` setting is set to false, then this intent is not
1907 # taken into account during inference in `ML ONLY` match mode. Also,
1908 # auto-markup in the UI is turned off.
1909 # DEPRECATED! Please use `ml_disabled` field instead.
1910 # NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false,
1911 # then the default value is determined as follows:
1912 # - Before April 15th, 2018 the default is:
1913 # ml_enabled = false / ml_disabled = true.
1914 # - After April 15th, 2018 the default is:
1915 # ml_enabled = true / ml_disabled = false.
Bu Sun Kim65020912020-05-20 12:08:20 -07001916 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is
Dan O'Mearadd494642020-05-01 07:42:23 -07001917 # trained on.
1918 { # Represents an example that the agent is trained on.
Bu Sun Kim65020912020-05-20 12:08:20 -07001919 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts.
Dan O'Mearadd494642020-05-01 07:42:23 -07001920 # The parts are concatenated in order to form the training phrase.
1921 #
1922 # Note: The API does not automatically annotate training phrases like the
1923 # Dialogflow Console does.
1924 #
1925 # Note: Do not forget to include whitespace at part boundaries,
1926 # so the training phrase is well formatted when the parts are concatenated.
1927 #
1928 # If the training phrase does not need to be annotated with parameters,
1929 # you just need a single part with only the Part.text field set.
1930 #
1931 # If you want to annotate the training phrase, you must create multiple
1932 # parts, where the fields of each part are populated in one of two ways:
1933 #
1934 # - `Part.text` is set to a part of the phrase that has no parameters.
1935 # - `Part.text` is set to a part of the phrase that you want to annotate,
1936 # and the `entity_type`, `alias`, and `user_defined` fields are all
1937 # set.
1938 { # Represents a part of a training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07001939 &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 -07001940 # annotated part of the example.
1941 # This field is required for annotated parts of the training phrase.
Bu Sun Kim65020912020-05-20 12:08:20 -07001942 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated.
Dan O'Mearadd494642020-05-01 07:42:23 -07001943 # This field is set to true when the Dialogflow Console is used to
1944 # manually annotate the part. When creating an annotated part with the
1945 # API, you must set this to true.
Bu Sun Kim65020912020-05-20 12:08:20 -07001946 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
1947 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`.
1948 # This field is required for annotated parts of the training phrase.
Dan O'Mearadd494642020-05-01 07:42:23 -07001949 },
1950 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001951 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
1952 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to
Dan O'Mearadd494642020-05-01 07:42:23 -07001953 # the intent. Each time a developer adds an existing sample by editing an
1954 # intent or training, this counter is increased.
Bu Sun Kim65020912020-05-20 12:08:20 -07001955 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
Dan O'Mearadd494642020-05-01 07:42:23 -07001956 },
1957 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001958 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current
1959 # session when this intent is matched.
1960 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
1961 { # Represents intent parameters.
Bu Sun Kim65020912020-05-20 12:08:20 -07001962 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that
1963 # describes values of the parameter. If the parameter is
1964 # required, this must be provided.
1965 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the
1966 # user in order to collect a value for the parameter.
1967 &quot;A String&quot;,
1968 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001969 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is,
1970 # whether the intent cannot be completed without collecting the parameter
1971 # value.
Bu Sun Kim65020912020-05-20 12:08:20 -07001972 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty
1973 # result.
1974 # Default values can be extracted from contexts by using the following
1975 # syntax: `#context_name.parameter_name`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001976 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
1977 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
1978 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be:
1979 #
1980 # - a constant string,
1981 # - a parameter value defined as `$parameter_name`,
1982 # - an original parameter value defined as `$parameter_name.original`,
1983 # - a parameter value from some context defined as
1984 # `#context_name.parameter_name`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001985 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
Bu Sun Kim65020912020-05-20 12:08:20 -07001986 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001987 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001988 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent.
1989 # If the collection of input contexts is not empty, all of the contexts must
1990 # be present in the active user session for an event to trigger this intent.
1991 # Event names are limited to 150 characters.
1992 &quot;A String&quot;,
1993 ],
1994 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Optional. The unique identifier of the parent intent in the
1995 # chain of followup intents. You can set this field when creating an intent,
1996 # for example with CreateIntent or
1997 # BatchUpdateIntents, in order to make this
1998 # intent a followup intent.
1999 #
2000 # It identifies the parent followup intent.
2001 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
2002 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher
Dan O'Mearadd494642020-05-01 07:42:23 -07002003 # priorities.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002004 #
Dan O'Mearadd494642020-05-01 07:42:23 -07002005 # - If the supplied value is unspecified or 0, the service
2006 # translates the value to 500,000, which corresponds to the
2007 # `Normal` priority in the console.
2008 # - If the supplied value is negative, the intent is ignored
2009 # in runtime detect intent requests.
Bu Sun Kim65020912020-05-20 12:08:20 -07002010 &quot;endInteraction&quot;: True or False, # Optional. Indicates that this intent ends an interaction. Some integrations
2011 # (e.g., Actions on Google or Dialogflow phone gateway) use this information
2012 # to close interaction with an end user. Default is false.
2013 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent
2014 # is matched. Context messages in this collection should not set the
2015 # parameters field. Setting the `lifespan_count` to 0 will reset the context
2016 # when the intent is matched.
2017 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
2018 { # Represents a context.
2019 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
2020 # context expires. The default is `0`. If set to `0`, the context expires
2021 # immediately. Contexts expire automatically after 20 minutes if there
2022 # are no matching queries.
2023 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
2024 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
2025 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
2026 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
2027 #
2028 # The `Context ID` is always converted to lowercase, may only contain
2029 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
2030 #
2031 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
2032 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
2033 #
2034 # The following context names are reserved for internal use by Dialogflow.
2035 # You should not use these contexts or create contexts with these names:
2036 #
2037 # * `__system_counters__`
2038 # * `*_id_dialog_context`
2039 # * `*_dialog_params_size`
2040 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
2041 #
2042 # Depending on your protocol or client library language, this is a
2043 # map, associative array, symbol table, dictionary, or JSON object
2044 # composed of a collection of (MapKey, MapValue) pairs:
2045 #
2046 # - MapKey type: string
2047 # - MapKey value: parameter name
2048 # - MapValue type:
2049 # - If parameter&#x27;s entity type is a composite entity: map
2050 # - Else: string or number, depending on parameter value type
2051 # - MapValue value:
2052 # - If parameter&#x27;s entity type is a composite entity:
2053 # map from composite entity property names to property values
2054 # - Else: parameter value
2055 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2056 },
2057 },
2058 ],
2059 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be
2060 # copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
2061 &quot;A String&quot;,
2062 ],
2063 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the
2064 # `Response` field in the Dialogflow console.
2065 { # Corresponds to the `Response` field in the Dialogflow console.
2066 &quot;text&quot;: { # The text response message. # Returns a text response.
2067 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
2068 &quot;A String&quot;,
2069 ],
2070 },
2071 &quot;rbmCarouselRichCard&quot;: { # Carousel Rich Business Messaging (RBM) rich card. # Rich Business Messaging (RBM) carousel rich card response.
2072 #
2073 # Rich cards allow you to respond to users with more vivid content, e.g.
2074 # with media and suggestions.
2075 #
2076 # For more details about RBM rich cards, please see:
2077 # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards.
2078 # If you want to show a single card with more control over the layout,
2079 # please use RbmStandaloneCard instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07002080 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least
2081 # 2 cards and at most 10.
2082 { # Rich Business Messaging (RBM) Card content
Bu Sun Kim65020912020-05-20 12:08:20 -07002083 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
2084 # be set. Media (image, GIF or a video) to include in the card.
2085 # The following media-types are currently supported:
2086 #
2087 # Image Types
2088 #
2089 # * image/jpeg
2090 # * image/jpg&#x27;
2091 # * image/gif
2092 # * image/png
2093 #
2094 # Video Types
2095 #
2096 # * video/h263
2097 # * video/m4v
2098 # * video/mp4
2099 # * video/mpeg
2100 # * video/mpeg4
2101 # * video/webm
2102 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
2103 # provide a thumbnail URI, the RBM platform displays a blank
2104 # placeholder thumbnail until the user&#x27;s device downloads the file.
2105 # Depending on the user&#x27;s setting, the file may not download
2106 # automatically and may require the user to tap a download button.
2107 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
2108 # within a rich card with a vertical layout. (https://goo.gl/NeFCjz).
2109 # For a standalone card with horizontal layout, height is not
2110 # customizable, and this field is ignored.
2111 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
2112 # determines the MIME type of the file from the content-type field in
2113 # the HTTP headers when the platform fetches the file. The content-type
2114 # field must be present and accurate in the HTTP response from the URL.
2115 },
2116 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
2117 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
2118 # easily select/click a predefined response or perform an action (like
2119 # opening a web uri).
2120 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
2121 # instead of typing in their own response.
Bu Sun Kim65020912020-05-20 12:08:20 -07002122 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2123 # when the user taps the suggested reply. This data will be also
2124 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002125 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07002126 },
2127 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
2128 # can choose from the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002129 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
2130 # but does not dial automatically (https://goo.gl/ergbB2).
2131 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
2132 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
2133 # format. An example of a correctly formatted phone number:
2134 # +15556767888.
2135 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002136 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2137 # when the user taps the suggested action. This data will be also
2138 # forwarded to webhook to allow performing custom business logic.
2139 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
2140 # to send back to the agent (https://goo.gl/GXotJW).
2141 },
2142 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2143 &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
2144 # (https://goo.gl/6GLJD2). If the user has an app installed that is
2145 # registered as the default handler for the URL, then this app will be
2146 # opened instead, and its icon will be used in the suggested action UI.
2147 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2148 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002149 },
2150 },
2151 ],
2152 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
2153 #
2154 # At least one of the title, description or media must be set.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002155 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
2156 #
2157 # At least one of the title, description or media must be set.
Bu Sun Kim65020912020-05-20 12:08:20 -07002158 },
2159 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002160 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
Bu Sun Kim65020912020-05-20 12:08:20 -07002161 },
2162 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
2163 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
2164 { # The suggestion chip message that the user can tap to quickly post a reply
2165 # to the conversation.
2166 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
2167 },
2168 ],
2169 },
2170 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
2171 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
2172 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to
2173 # play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single
2174 # channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz.
2175 #
2176 # This object must be readable by the `service-&lt;Project
2177 # Number&gt;@gcp-sa-dialogflow.iam.gserviceaccount.com` service account
2178 # where &lt;Project Number&gt; is the number of the Telephony Gateway project
2179 # (usually the same as the Dialogflow agent project). If the Google Cloud
2180 # Storage bucket is in the Telephony Gateway project, this permission is
2181 # added by default when enabling the Dialogflow V2 API.
2182 #
2183 # For audio from other sources, consider using the
2184 # `TelephonySynthesizeSpeech` message with SSML.
2185 },
2186 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
2187 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
2188 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
2189 &quot;items&quot;: [ # Required. List items.
2190 { # An item in the list.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002191 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
Bu Sun Kim65020912020-05-20 12:08:20 -07002192 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
2193 # dialog.
2194 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
2195 # item in dialog.
2196 &quot;A String&quot;,
2197 ],
2198 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
2199 # response is given.
2200 },
2201 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
2202 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2203 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2204 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2205 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2206 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002207 },
2208 ],
2209 },
2210 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response.
2211 #
2212 # RBM allows businesses to send enriched and branded versions of SMS. See
2213 # https://jibe.google.com/business-messaging.
2214 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
2215 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
2216 # easily select/click a predefined response or perform an action (like
2217 # opening a web uri).
2218 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
2219 # instead of typing in their own response.
Bu Sun Kim65020912020-05-20 12:08:20 -07002220 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2221 # when the user taps the suggested reply. This data will be also
2222 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002223 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07002224 },
2225 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
2226 # can choose from the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002227 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
2228 # but does not dial automatically (https://goo.gl/ergbB2).
2229 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
2230 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
2231 # format. An example of a correctly formatted phone number:
2232 # +15556767888.
2233 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002234 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2235 # when the user taps the suggested action. This data will be also
2236 # forwarded to webhook to allow performing custom business logic.
2237 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
2238 # to send back to the agent (https://goo.gl/GXotJW).
2239 },
2240 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2241 &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
2242 # (https://goo.gl/6GLJD2). If the user has an app installed that is
2243 # registered as the default handler for the URL, then this app will be
2244 # opened instead, and its icon will be used in the suggested action UI.
2245 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2246 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002247 },
2248 },
2249 ],
2250 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
2251 },
2252 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
2253 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
2254 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
2255 &quot;A String&quot;,
2256 ],
2257 },
2258 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in # Synthesizes speech in Telephony Gateway.
2259 # Telephony Gateway.
2260 #
2261 # Telephony Gateway takes the synthesizer settings from
2262 # `DetectIntentResponse.output_audio_config` which can either be set
2263 # at request-level or can come from the agent-level synthesizer config.
2264 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
2265 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see
2266 # [SSML](https://developers.google.com/actions/reference/ssml).
2267 },
2268 &quot;card&quot;: { # The card response message. # Displays a card.
Bu Sun Kim65020912020-05-20 12:08:20 -07002269 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
2270 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2271 { # Optional. Contains information about a button.
2272 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
2273 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
2274 # open.
2275 },
2276 ],
2277 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002278 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07002279 },
2280 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
2281 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
2282 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
2283 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2284 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2285 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2286 },
2287 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
2288 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2289 { # The button object that appears at the bottom of a card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002290 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -07002291 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2292 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2293 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002294 },
2295 ],
2296 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2297 },
2298 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Bu Sun Kim65020912020-05-20 12:08:20 -07002299 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
2300 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2301 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2302 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2303 },
2304 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
2305 { # The button object that appears at the bottom of a card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002306 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -07002307 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2308 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2309 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002310 },
2311 ],
2312 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
2313 &quot;rows&quot;: [ # Optional. Rows in this table of data.
2314 { # Row of TableCard.
2315 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
2316 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
2317 { # Cell of TableCardRow.
2318 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
2319 },
2320 ],
2321 },
2322 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002323 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
2324 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
2325 { # Column properties for TableCard.
2326 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
2327 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
2328 },
2329 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002330 },
2331 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
2332 &quot;items&quot;: [ # Required. Carousel items.
2333 { # An item in the carousel.
Bu Sun Kim65020912020-05-20 12:08:20 -07002334 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
2335 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
2336 # dialog.
2337 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
2338 # item in dialog.
2339 &quot;A String&quot;,
2340 ],
2341 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
2342 # response is given.
2343 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002344 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
2345 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2346 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2347 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2348 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2349 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002350 },
2351 ],
2352 },
2353 &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.
2354 # or website associated with this agent.
2355 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
2356 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
2357 # suggestion chip.
2358 },
2359 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
2360 # https://developers.google.com/actions/assistant/responses#browsing_carousel
2361 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
2362 # items.
2363 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
2364 # items, maximum of ten.
2365 { # Browsing carousel tile
Bu Sun Kim65020912020-05-20 12:08:20 -07002366 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
2367 # text.
2368 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
2369 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
2370 # the URL. Defaults to opening via web browser.
2371 &quot;url&quot;: &quot;A String&quot;, # Required. URL
2372 },
2373 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
2374 # Card. Maximum of one line of text.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002375 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
2376 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
2377 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2378 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2379 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2380 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002381 },
2382 ],
2383 },
2384 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # Returns a voice or text-only response for Actions on Google.
2385 # This message in `QueryResult.fulfillment_messages` and
2386 # `WebhookResponse.fulfillment_messages` should contain only one
2387 # `SimpleResponse`.
2388 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
2389 { # The simple response message containing speech or text.
Bu Sun Kim65020912020-05-20 12:08:20 -07002390 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
2391 # response to the user in the SSML format. Mutually exclusive with
2392 # text_to_speech.
2393 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002394 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
2395 # speech output. Mutually exclusive with ssml.
Bu Sun Kim65020912020-05-20 12:08:20 -07002396 },
2397 ],
2398 },
2399 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
2400 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to
2401 # in [E.164 format](https://en.wikipedia.org/wiki/E.164).
2402 #
2403 # We currently only allow transferring to US numbers (+1xxxyyyzzzz).
2404 },
2405 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
2406 &quot;mediaObjects&quot;: [ # Required. List of media objects.
2407 { # Response media object for media content card.
Bu Sun Kim65020912020-05-20 12:08:20 -07002408 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
2409 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
2410 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
2411 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
2412 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2413 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2414 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2415 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002416 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
2417 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2418 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2419 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2420 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002421 },
2422 ],
2423 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
2424 },
2425 &quot;image&quot;: { # The image response message. # Displays an image.
2426 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2427 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2428 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2429 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002430 &quot;rbmStandaloneRichCard&quot;: { # Standalone Rich Business Messaging (RBM) rich card. # Standalone Rich Business Messaging (RBM) rich card response.
2431 #
2432 # Rich cards allow you to respond to users with more vivid content, e.g.
2433 # with media and suggestions.
2434 #
2435 # For more details about RBM rich cards, please see:
2436 # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards.
2437 # You can group multiple rich cards into one using RbmCarouselCard but
2438 # carousel cards will give you less control over the card layout.
2439 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal.
2440 # Image preview alignment for standalone cards with horizontal layout.
2441 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
2442 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
Bu Sun Kim65020912020-05-20 12:08:20 -07002443 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
2444 # be set. Media (image, GIF or a video) to include in the card.
2445 # The following media-types are currently supported:
2446 #
2447 # Image Types
2448 #
2449 # * image/jpeg
2450 # * image/jpg&#x27;
2451 # * image/gif
2452 # * image/png
2453 #
2454 # Video Types
2455 #
2456 # * video/h263
2457 # * video/m4v
2458 # * video/mp4
2459 # * video/mpeg
2460 # * video/mpeg4
2461 # * video/webm
2462 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
2463 # provide a thumbnail URI, the RBM platform displays a blank
2464 # placeholder thumbnail until the user&#x27;s device downloads the file.
2465 # Depending on the user&#x27;s setting, the file may not download
2466 # automatically and may require the user to tap a download button.
2467 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
2468 # within a rich card with a vertical layout. (https://goo.gl/NeFCjz).
2469 # For a standalone card with horizontal layout, height is not
2470 # customizable, and this field is ignored.
2471 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
2472 # determines the MIME type of the file from the content-type field in
2473 # the HTTP headers when the platform fetches the file. The content-type
2474 # field must be present and accurate in the HTTP response from the URL.
2475 },
2476 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
2477 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
2478 # easily select/click a predefined response or perform an action (like
2479 # opening a web uri).
2480 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
2481 # instead of typing in their own response.
Bu Sun Kim65020912020-05-20 12:08:20 -07002482 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2483 # when the user taps the suggested reply. This data will be also
2484 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002485 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07002486 },
2487 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
2488 # can choose from the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002489 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
2490 # but does not dial automatically (https://goo.gl/ergbB2).
2491 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
2492 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
2493 # format. An example of a correctly formatted phone number:
2494 # +15556767888.
2495 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002496 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2497 # when the user taps the suggested action. This data will be also
2498 # forwarded to webhook to allow performing custom business logic.
2499 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
2500 # to send back to the agent (https://goo.gl/GXotJW).
2501 },
2502 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2503 &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
2504 # (https://goo.gl/6GLJD2). If the user has an app installed that is
2505 # registered as the default handler for the URL, then this app will be
2506 # opened instead, and its icon will be used in the suggested action UI.
2507 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2508 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002509 },
2510 },
2511 ],
2512 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
2513 #
2514 # At least one of the title, description or media must be set.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002515 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
2516 #
2517 # At least one of the title, description or media must be set.
Bu Sun Kim65020912020-05-20 12:08:20 -07002518 },
2519 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002520 &quot;payload&quot;: { # A custom platform-specific response.
2521 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2522 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002523 },
2524 ],
2525 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent.
2526 # Note: The action name must not contain whitespaces.
2527 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent.
2528 # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
2529 # methods.
Dan O'Mearadd494642020-05-01 07:42:23 -07002530 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002531 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
2532 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002533 # triggered.
Dan O'Mearadd494642020-05-01 07:42:23 -07002534 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002535 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002536 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002537 &quot;followupIntentInfo&quot;: [ # Output only. Information about all followup intents that have this intent as
2538 # a direct or indirect parent. We populate this field only in the output.
2539 { # Represents a single followup intent in the chain.
2540 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent.
2541 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
2542 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent.
2543 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
2544 },
2545 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002546 },
2547 &quot;languageCode&quot;: &quot;A String&quot;, # The language that was triggered during intent detection.
2548 # See [Language
2549 # Support](https://cloud.google.com/dialogflow/docs/reference/language)
2550 # for a list of the currently supported language codes.
2551 &quot;outputContexts&quot;: [ # The collection of output contexts. If applicable,
2552 # `output_contexts.parameters` contains entries with name
2553 # `&lt;parameter name&gt;.original` containing the original parameter values
2554 # before the query.
2555 { # Represents a context.
2556 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
2557 # context expires. The default is `0`. If set to `0`, the context expires
2558 # immediately. Contexts expire automatically after 20 minutes if there
2559 # are no matching queries.
2560 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
2561 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
2562 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
2563 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
2564 #
2565 # The `Context ID` is always converted to lowercase, may only contain
2566 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
2567 #
2568 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
2569 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
2570 #
2571 # The following context names are reserved for internal use by Dialogflow.
2572 # You should not use these contexts or create contexts with these names:
2573 #
2574 # * `__system_counters__`
2575 # * `*_id_dialog_context`
2576 # * `*_dialog_params_size`
2577 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
2578 #
2579 # Depending on your protocol or client library language, this is a
2580 # map, associative array, symbol table, dictionary, or JSON object
2581 # composed of a collection of (MapKey, MapValue) pairs:
2582 #
2583 # - MapKey type: string
2584 # - MapKey value: parameter name
2585 # - MapValue type:
2586 # - If parameter&#x27;s entity type is a composite entity: map
2587 # - Else: string or number, depending on parameter value type
2588 # - MapValue value:
2589 # - If parameter&#x27;s entity type is a composite entity:
2590 # map from composite entity property names to property values
2591 # - Else: parameter value
2592 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2593 },
2594 },
2595 ],
2596 &quot;webhookPayload&quot;: { # If the query was fulfilled by a webhook call, this field is set to the
2597 # value of the `payload` field returned in the webhook response.
2598 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Bu Sun Kim65020912020-05-20 12:08:20 -07002599 },
2600 &quot;fulfillmentMessages&quot;: [ # The collection of rich messages to present to the user.
2601 { # Corresponds to the `Response` field in the Dialogflow console.
2602 &quot;text&quot;: { # The text response message. # Returns a text response.
2603 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
2604 &quot;A String&quot;,
2605 ],
2606 },
2607 &quot;rbmCarouselRichCard&quot;: { # Carousel Rich Business Messaging (RBM) rich card. # Rich Business Messaging (RBM) carousel rich card response.
2608 #
2609 # Rich cards allow you to respond to users with more vivid content, e.g.
2610 # with media and suggestions.
2611 #
2612 # For more details about RBM rich cards, please see:
2613 # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards.
2614 # If you want to show a single card with more control over the layout,
2615 # please use RbmStandaloneCard instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07002616 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least
2617 # 2 cards and at most 10.
2618 { # Rich Business Messaging (RBM) Card content
Bu Sun Kim65020912020-05-20 12:08:20 -07002619 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
2620 # be set. Media (image, GIF or a video) to include in the card.
2621 # The following media-types are currently supported:
2622 #
2623 # Image Types
2624 #
2625 # * image/jpeg
2626 # * image/jpg&#x27;
2627 # * image/gif
2628 # * image/png
2629 #
2630 # Video Types
2631 #
2632 # * video/h263
2633 # * video/m4v
2634 # * video/mp4
2635 # * video/mpeg
2636 # * video/mpeg4
2637 # * video/webm
2638 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
2639 # provide a thumbnail URI, the RBM platform displays a blank
2640 # placeholder thumbnail until the user&#x27;s device downloads the file.
2641 # Depending on the user&#x27;s setting, the file may not download
2642 # automatically and may require the user to tap a download button.
2643 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
2644 # within a rich card with a vertical layout. (https://goo.gl/NeFCjz).
2645 # For a standalone card with horizontal layout, height is not
2646 # customizable, and this field is ignored.
2647 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
2648 # determines the MIME type of the file from the content-type field in
2649 # the HTTP headers when the platform fetches the file. The content-type
2650 # field must be present and accurate in the HTTP response from the URL.
2651 },
2652 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
2653 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
2654 # easily select/click a predefined response or perform an action (like
2655 # opening a web uri).
2656 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
2657 # instead of typing in their own response.
Bu Sun Kim65020912020-05-20 12:08:20 -07002658 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2659 # when the user taps the suggested reply. This data will be also
2660 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002661 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07002662 },
2663 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
2664 # can choose from the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002665 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
2666 # but does not dial automatically (https://goo.gl/ergbB2).
2667 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
2668 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
2669 # format. An example of a correctly formatted phone number:
2670 # +15556767888.
2671 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002672 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2673 # when the user taps the suggested action. This data will be also
2674 # forwarded to webhook to allow performing custom business logic.
2675 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
2676 # to send back to the agent (https://goo.gl/GXotJW).
2677 },
2678 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2679 &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
2680 # (https://goo.gl/6GLJD2). If the user has an app installed that is
2681 # registered as the default handler for the URL, then this app will be
2682 # opened instead, and its icon will be used in the suggested action UI.
2683 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2684 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002685 },
2686 },
2687 ],
2688 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
2689 #
2690 # At least one of the title, description or media must be set.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002691 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
2692 #
2693 # At least one of the title, description or media must be set.
Bu Sun Kim65020912020-05-20 12:08:20 -07002694 },
2695 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002696 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
Bu Sun Kim65020912020-05-20 12:08:20 -07002697 },
2698 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
2699 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
2700 { # The suggestion chip message that the user can tap to quickly post a reply
2701 # to the conversation.
2702 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
2703 },
2704 ],
2705 },
2706 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
2707 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
2708 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to
2709 # play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single
2710 # channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002711 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002712 # This object must be readable by the `service-&lt;Project
2713 # Number&gt;@gcp-sa-dialogflow.iam.gserviceaccount.com` service account
2714 # where &lt;Project Number&gt; is the number of the Telephony Gateway project
2715 # (usually the same as the Dialogflow agent project). If the Google Cloud
2716 # Storage bucket is in the Telephony Gateway project, this permission is
2717 # added by default when enabling the Dialogflow V2 API.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002718 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002719 # For audio from other sources, consider using the
2720 # `TelephonySynthesizeSpeech` message with SSML.
2721 },
2722 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
2723 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
2724 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
2725 &quot;items&quot;: [ # Required. List items.
2726 { # An item in the list.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002727 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
Bu Sun Kim65020912020-05-20 12:08:20 -07002728 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
2729 # dialog.
2730 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
2731 # item in dialog.
2732 &quot;A String&quot;,
2733 ],
2734 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
2735 # response is given.
2736 },
2737 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
2738 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2739 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2740 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2741 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2742 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002743 },
2744 ],
2745 },
2746 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response.
2747 #
2748 # RBM allows businesses to send enriched and branded versions of SMS. See
2749 # https://jibe.google.com/business-messaging.
2750 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
2751 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
2752 # easily select/click a predefined response or perform an action (like
2753 # opening a web uri).
2754 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
2755 # instead of typing in their own response.
Bu Sun Kim65020912020-05-20 12:08:20 -07002756 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2757 # when the user taps the suggested reply. This data will be also
2758 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002759 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07002760 },
2761 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
2762 # can choose from the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002763 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
2764 # but does not dial automatically (https://goo.gl/ergbB2).
2765 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
2766 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
2767 # format. An example of a correctly formatted phone number:
2768 # +15556767888.
2769 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002770 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2771 # when the user taps the suggested action. This data will be also
2772 # forwarded to webhook to allow performing custom business logic.
2773 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
2774 # to send back to the agent (https://goo.gl/GXotJW).
2775 },
2776 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2777 &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
2778 # (https://goo.gl/6GLJD2). If the user has an app installed that is
2779 # registered as the default handler for the URL, then this app will be
2780 # opened instead, and its icon will be used in the suggested action UI.
2781 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2782 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002783 },
2784 },
2785 ],
2786 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
2787 },
2788 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
2789 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
2790 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
2791 &quot;A String&quot;,
2792 ],
2793 },
2794 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in # Synthesizes speech in Telephony Gateway.
2795 # Telephony Gateway.
2796 #
2797 # Telephony Gateway takes the synthesizer settings from
2798 # `DetectIntentResponse.output_audio_config` which can either be set
2799 # at request-level or can come from the agent-level synthesizer config.
2800 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
2801 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see
2802 # [SSML](https://developers.google.com/actions/reference/ssml).
2803 },
2804 &quot;card&quot;: { # The card response message. # Displays a card.
Bu Sun Kim65020912020-05-20 12:08:20 -07002805 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
2806 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2807 { # Optional. Contains information about a button.
2808 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
2809 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
2810 # open.
2811 },
2812 ],
2813 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002814 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07002815 },
2816 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
2817 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
2818 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
2819 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2820 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2821 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
Dan O'Mearadd494642020-05-01 07:42:23 -07002822 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002823 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
2824 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2825 { # The button object that appears at the bottom of a card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002826 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -07002827 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2828 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2829 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002830 },
2831 ],
2832 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2833 },
2834 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Bu Sun Kim65020912020-05-20 12:08:20 -07002835 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
2836 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2837 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2838 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2839 },
2840 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
2841 { # The button object that appears at the bottom of a card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002842 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -07002843 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2844 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2845 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002846 },
2847 ],
2848 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
2849 &quot;rows&quot;: [ # Optional. Rows in this table of data.
2850 { # Row of TableCard.
2851 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
2852 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
2853 { # Cell of TableCardRow.
2854 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
2855 },
2856 ],
2857 },
2858 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002859 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
2860 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
2861 { # Column properties for TableCard.
2862 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
2863 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
2864 },
2865 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002866 },
2867 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
2868 &quot;items&quot;: [ # Required. Carousel items.
2869 { # An item in the carousel.
Bu Sun Kim65020912020-05-20 12:08:20 -07002870 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
2871 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
2872 # dialog.
2873 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
2874 # item in dialog.
2875 &quot;A String&quot;,
2876 ],
2877 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
2878 # response is given.
2879 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002880 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
2881 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2882 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2883 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2884 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2885 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002886 },
2887 ],
2888 },
2889 &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.
2890 # or website associated with this agent.
2891 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
2892 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
2893 # suggestion chip.
2894 },
2895 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
2896 # https://developers.google.com/actions/assistant/responses#browsing_carousel
2897 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
2898 # items.
2899 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
2900 # items, maximum of ten.
2901 { # Browsing carousel tile
Bu Sun Kim65020912020-05-20 12:08:20 -07002902 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
2903 # text.
2904 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
2905 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
2906 # the URL. Defaults to opening via web browser.
2907 &quot;url&quot;: &quot;A String&quot;, # Required. URL
2908 },
2909 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
2910 # Card. Maximum of one line of text.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002911 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
2912 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
2913 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2914 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2915 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2916 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002917 },
2918 ],
2919 },
2920 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # Returns a voice or text-only response for Actions on Google.
2921 # This message in `QueryResult.fulfillment_messages` and
2922 # `WebhookResponse.fulfillment_messages` should contain only one
2923 # `SimpleResponse`.
2924 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
2925 { # The simple response message containing speech or text.
Bu Sun Kim65020912020-05-20 12:08:20 -07002926 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
2927 # response to the user in the SSML format. Mutually exclusive with
2928 # text_to_speech.
2929 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002930 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
2931 # speech output. Mutually exclusive with ssml.
Bu Sun Kim65020912020-05-20 12:08:20 -07002932 },
2933 ],
2934 },
2935 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
2936 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to
2937 # in [E.164 format](https://en.wikipedia.org/wiki/E.164).
2938 #
2939 # We currently only allow transferring to US numbers (+1xxxyyyzzzz).
2940 },
2941 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
2942 &quot;mediaObjects&quot;: [ # Required. List of media objects.
2943 { # Response media object for media content card.
Bu Sun Kim65020912020-05-20 12:08:20 -07002944 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
2945 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
2946 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
2947 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
2948 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2949 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2950 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2951 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002952 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
2953 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2954 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2955 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2956 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002957 },
2958 ],
2959 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
2960 },
2961 &quot;image&quot;: { # The image response message. # Displays an image.
2962 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2963 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2964 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2965 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002966 &quot;rbmStandaloneRichCard&quot;: { # Standalone Rich Business Messaging (RBM) rich card. # Standalone Rich Business Messaging (RBM) rich card response.
2967 #
2968 # Rich cards allow you to respond to users with more vivid content, e.g.
2969 # with media and suggestions.
2970 #
2971 # For more details about RBM rich cards, please see:
2972 # https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards.
2973 # You can group multiple rich cards into one using RbmCarouselCard but
2974 # carousel cards will give you less control over the card layout.
2975 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal.
2976 # Image preview alignment for standalone cards with horizontal layout.
2977 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
2978 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
Bu Sun Kim65020912020-05-20 12:08:20 -07002979 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
2980 # be set. Media (image, GIF or a video) to include in the card.
2981 # The following media-types are currently supported:
2982 #
2983 # Image Types
2984 #
2985 # * image/jpeg
2986 # * image/jpg&#x27;
2987 # * image/gif
2988 # * image/png
2989 #
2990 # Video Types
2991 #
2992 # * video/h263
2993 # * video/m4v
2994 # * video/mp4
2995 # * video/mpeg
2996 # * video/mpeg4
2997 # * video/webm
2998 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
2999 # provide a thumbnail URI, the RBM platform displays a blank
3000 # placeholder thumbnail until the user&#x27;s device downloads the file.
3001 # Depending on the user&#x27;s setting, the file may not download
3002 # automatically and may require the user to tap a download button.
3003 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
3004 # within a rich card with a vertical layout. (https://goo.gl/NeFCjz).
3005 # For a standalone card with horizontal layout, height is not
3006 # customizable, and this field is ignored.
3007 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
3008 # determines the MIME type of the file from the content-type field in
3009 # the HTTP headers when the platform fetches the file. The content-type
3010 # field must be present and accurate in the HTTP response from the URL.
3011 },
3012 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
3013 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
3014 # easily select/click a predefined response or perform an action (like
3015 # opening a web uri).
3016 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
3017 # instead of typing in their own response.
Bu Sun Kim65020912020-05-20 12:08:20 -07003018 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
3019 # when the user taps the suggested reply. This data will be also
3020 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003021 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07003022 },
3023 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
3024 # can choose from the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003025 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
3026 # but does not dial automatically (https://goo.gl/ergbB2).
3027 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
3028 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
3029 # format. An example of a correctly formatted phone number:
3030 # +15556767888.
3031 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003032 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
3033 # when the user taps the suggested action. This data will be also
3034 # forwarded to webhook to allow performing custom business logic.
3035 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
3036 # to send back to the agent (https://goo.gl/GXotJW).
3037 },
3038 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
3039 &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
3040 # (https://goo.gl/6GLJD2). If the user has an app installed that is
3041 # registered as the default handler for the URL, then this app will be
3042 # opened instead, and its icon will be used in the suggested action UI.
3043 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
3044 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003045 },
3046 },
3047 ],
3048 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
3049 #
3050 # At least one of the title, description or media must be set.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003051 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
3052 #
3053 # At least one of the title, description or media must be set.
Bu Sun Kim65020912020-05-20 12:08:20 -07003054 },
3055 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003056 &quot;payload&quot;: { # A custom platform-specific response.
3057 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3058 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003059 },
3060 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003061 &quot;action&quot;: &quot;A String&quot;, # The action name from the matched intent.
3062 &quot;webhookSource&quot;: &quot;A String&quot;, # If the query was fulfilled by a webhook call, this field is set to the
3063 # value of the `source` field returned in the webhook response.
3064 &quot;fulfillmentText&quot;: &quot;A String&quot;, # The text to be pronounced to the user or shown on the screen.
3065 # Note: This is a legacy field, `fulfillment_messages` should be preferred.
3066 &quot;parameters&quot;: { # The collection of extracted parameters.
3067 #
3068 # Depending on your protocol or client library language, this is a
3069 # map, associative array, symbol table, dictionary, or JSON object
3070 # composed of a collection of (MapKey, MapValue) pairs:
3071 #
3072 # - MapKey type: string
3073 # - MapKey value: parameter name
3074 # - MapValue type:
3075 # - If parameter&#x27;s entity type is a composite entity: map
3076 # - Else: string or number, depending on parameter value type
3077 # - MapValue value:
3078 # - If parameter&#x27;s entity type is a composite entity:
3079 # map from composite entity property names to property values
3080 # - Else: parameter value
3081 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3082 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003083 },
3084 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003085 &quot;responseId&quot;: &quot;A String&quot;, # The unique identifier of the response. It can be used to
3086 # locate a response in the training example set or for reporting issues.
3087 &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.
3088 # If this audio config is supplied in a request, it overrides all existing
3089 # text-to-speech settings applied to the agent.
3090 &quot;audioEncoding&quot;: &quot;A String&quot;, # Required. Audio encoding of the synthesized audio content.
3091 &quot;synthesizeSpeechConfig&quot;: { # Configuration of how speech should be synthesized. # Configuration of how speech should be synthesized.
3092 &quot;volumeGainDb&quot;: 3.14, # Optional. Volume gain (in dB) of the normal native volume supported by the
3093 # specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of
3094 # 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB)
3095 # will play at approximately half the amplitude of the normal native signal
3096 # amplitude. A value of +6.0 (dB) will play at approximately twice the
3097 # amplitude of the normal native signal amplitude. We strongly recommend not
3098 # to exceed +10 (dB) as there&#x27;s usually no effective increase in loudness for
3099 # any value greater than that.
3100 &quot;pitch&quot;: 3.14, # Optional. Speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20
3101 # semitones from the original pitch. -20 means decrease 20 semitones from the
3102 # original pitch.
3103 &quot;voice&quot;: { # Description of which voice to use for speech synthesis. # Optional. The desired voice of the synthesized audio.
3104 &quot;name&quot;: &quot;A String&quot;, # Optional. The name of the voice. If not set, the service will choose a
3105 # voice based on the other parameters such as language_code and
3106 # ssml_gender.
3107 &quot;ssmlGender&quot;: &quot;A String&quot;, # Optional. The preferred gender of the voice. If not set, the service will
3108 # choose a voice based on the other parameters such as language_code and
3109 # name. Note that this is only a preference, not requirement. If a
3110 # voice of the appropriate gender is not available, the synthesizer should
3111 # substitute a voice with a different gender rather than failing the request.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003112 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003113 &quot;speakingRate&quot;: 3.14, # Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal
3114 # native speed supported by the specific voice. 2.0 is twice as fast, and
3115 # 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any
3116 # other values &lt; 0.25 or &gt; 4.0 will return an error.
3117 &quot;effectsProfileId&quot;: [ # Optional. An identifier which selects &#x27;audio effects&#x27; profiles that are
3118 # applied on (post synthesized) text to speech. Effects are applied on top of
3119 # each other in the order they are given.
3120 &quot;A String&quot;,
3121 ],
3122 },
3123 &quot;sampleRateHertz&quot;: 42, # The synthesis sample rate (in hertz) for this audio. If not
3124 # provided, then the synthesizer will use the default sample rate based on
3125 # the audio encoding. If this is different from the voice&#x27;s natural sample
3126 # rate, then the synthesizer will honor this request by converting to the
3127 # desired sample rate (which might result in worse audio quality).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003128 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003129 }</pre>
3130</div>
3131
3132</body></html>