blob: da00997b22a1b1552005eb024c6083b7e5962835 [file] [log] [blame]
Bu Sun Kim65020912020-05-20 12:08:20 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="dialogflow_v2.html">Dialogflow API</a> . <a href="dialogflow_v2.projects.html">projects</a> . <a href="dialogflow_v2.projects.agent.html">agent</a> . <a href="dialogflow_v2.projects.agent.environments.html">environments</a> . <a href="dialogflow_v2.projects.agent.environments.users.html">users</a> . <a href="dialogflow_v2.projects.agent.environments.users.sessions.html">sessions</a> . <a href="dialogflow_v2.projects.agent.environments.users.sessions.contexts.html">contexts</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
79<p class="firstline">Creates a context.</p>
80<p class="toc_element">
81 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
82<p class="firstline">Deletes the specified context.</p>
83<p class="toc_element">
84 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
85<p class="firstline">Retrieves the specified context.</p>
86<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070087 <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
Bu Sun Kim65020912020-05-20 12:08:20 -070088<p class="firstline">Returns the list of all contexts in the specified session.</p>
89<p class="toc_element">
90 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
91<p class="firstline">Retrieves the next page of results.</p>
92<p class="toc_element">
93 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
94<p class="firstline">Updates the specified context.</p>
95<h3>Method Details</h3>
96<div class="method">
97 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
98 <pre>Creates a context.
99
100If the specified context already exists, overrides the context.
101
102Args:
103 parent: string, Required. The session to create a context for.
104Format: `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;` or
105`projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
106ID&gt;/sessions/&lt;Session ID&gt;`.
107If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
108environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user. (required)
109 body: object, The request body.
110 The object takes the form of:
111
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700112{ # Dialogflow contexts are similar to natural language context. If a person says
113 # to you &quot;they are orange&quot;, you need context in order to understand what &quot;they&quot;
114 # is referring to. Similarly, for Dialogflow to handle an end-user expression
115 # like that, it needs to be provided with context in order to correctly match
116 # an intent.
117 #
118 # Using contexts, you can control the flow of a conversation. You can configure
119 # contexts for an intent by setting input and output contexts, which are
120 # identified by string names. When an intent is matched, any configured output
121 # contexts for that intent become active. While any contexts are active,
122 # Dialogflow is more likely to match intents that are configured with input
123 # contexts that correspond to the currently active contexts.
124 #
125 # For more information about context, see the
126 # [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview).
Bu Sun Kim65020912020-05-20 12:08:20 -0700127 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
128 #
129 # Depending on your protocol or client library language, this is a
130 # map, associative array, symbol table, dictionary, or JSON object
131 # composed of a collection of (MapKey, MapValue) pairs:
132 #
133 # - MapKey type: string
134 # - MapKey value: parameter name
135 # - MapValue type:
136 # - If parameter&#x27;s entity type is a composite entity: map
137 # - Else: string or number, depending on parameter value type
138 # - MapValue value:
139 # - If parameter&#x27;s entity type is a composite entity:
140 # map from composite entity property names to property values
141 # - Else: parameter value
142 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
143 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700144 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
145 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
146 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
147 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
148 #
149 # The `Context ID` is always converted to lowercase, may only contain
150 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
151 #
152 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
153 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
154 #
155 # The following context names are reserved for internal use by Dialogflow.
156 # You should not use these contexts or create contexts with these names:
157 #
158 # * `__system_counters__`
159 # * `*_id_dialog_context`
160 # * `*_dialog_params_size`
161 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
162 # context expires. The default is `0`. If set to `0`, the context expires
163 # immediately. Contexts expire automatically after 20 minutes if there
164 # are no matching queries.
Bu Sun Kim65020912020-05-20 12:08:20 -0700165}
166
167 x__xgafv: string, V1 error format.
168 Allowed values
169 1 - v1 error format
170 2 - v2 error format
171
172Returns:
173 An object of the form:
174
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700175 { # Dialogflow contexts are similar to natural language context. If a person says
176 # to you &quot;they are orange&quot;, you need context in order to understand what &quot;they&quot;
177 # is referring to. Similarly, for Dialogflow to handle an end-user expression
178 # like that, it needs to be provided with context in order to correctly match
179 # an intent.
180 #
181 # Using contexts, you can control the flow of a conversation. You can configure
182 # contexts for an intent by setting input and output contexts, which are
183 # identified by string names. When an intent is matched, any configured output
184 # contexts for that intent become active. While any contexts are active,
185 # Dialogflow is more likely to match intents that are configured with input
186 # contexts that correspond to the currently active contexts.
187 #
188 # For more information about context, see the
189 # [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview).
Bu Sun Kim65020912020-05-20 12:08:20 -0700190 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
191 #
192 # Depending on your protocol or client library language, this is a
193 # map, associative array, symbol table, dictionary, or JSON object
194 # composed of a collection of (MapKey, MapValue) pairs:
195 #
196 # - MapKey type: string
197 # - MapKey value: parameter name
198 # - MapValue type:
199 # - If parameter&#x27;s entity type is a composite entity: map
200 # - Else: string or number, depending on parameter value type
201 # - MapValue value:
202 # - If parameter&#x27;s entity type is a composite entity:
203 # map from composite entity property names to property values
204 # - Else: parameter value
205 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
206 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700207 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
208 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
209 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
210 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
211 #
212 # The `Context ID` is always converted to lowercase, may only contain
213 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
214 #
215 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
216 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
217 #
218 # The following context names are reserved for internal use by Dialogflow.
219 # You should not use these contexts or create contexts with these names:
220 #
221 # * `__system_counters__`
222 # * `*_id_dialog_context`
223 # * `*_dialog_params_size`
224 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
225 # context expires. The default is `0`. If set to `0`, the context expires
226 # immediately. Contexts expire automatically after 20 minutes if there
227 # are no matching queries.
Bu Sun Kim65020912020-05-20 12:08:20 -0700228 }</pre>
229</div>
230
231<div class="method">
232 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
233 <pre>Deletes the specified context.
234
235Args:
236 name: string, Required. The name of the context to delete. Format:
237`projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`
238or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
239ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
240If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
241environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user. (required)
242 x__xgafv: string, V1 error format.
243 Allowed values
244 1 - v1 error format
245 2 - v2 error format
246
247Returns:
248 An object of the form:
249
250 { # A generic empty message that you can re-use to avoid defining duplicated
251 # empty messages in your APIs. A typical example is to use it as the request
252 # or the response type of an API method. For instance:
253 #
254 # service Foo {
255 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
256 # }
257 #
258 # The JSON representation for `Empty` is empty JSON object `{}`.
259 }</pre>
260</div>
261
262<div class="method">
263 <code class="details" id="get">get(name, x__xgafv=None)</code>
264 <pre>Retrieves the specified context.
265
266Args:
267 name: string, Required. The name of the context. Format:
268`projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`
269or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
270ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
271If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
272environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user. (required)
273 x__xgafv: string, V1 error format.
274 Allowed values
275 1 - v1 error format
276 2 - v2 error format
277
278Returns:
279 An object of the form:
280
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700281 { # Dialogflow contexts are similar to natural language context. If a person says
282 # to you &quot;they are orange&quot;, you need context in order to understand what &quot;they&quot;
283 # is referring to. Similarly, for Dialogflow to handle an end-user expression
284 # like that, it needs to be provided with context in order to correctly match
285 # an intent.
286 #
287 # Using contexts, you can control the flow of a conversation. You can configure
288 # contexts for an intent by setting input and output contexts, which are
289 # identified by string names. When an intent is matched, any configured output
290 # contexts for that intent become active. While any contexts are active,
291 # Dialogflow is more likely to match intents that are configured with input
292 # contexts that correspond to the currently active contexts.
293 #
294 # For more information about context, see the
295 # [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview).
Bu Sun Kim65020912020-05-20 12:08:20 -0700296 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
297 #
298 # Depending on your protocol or client library language, this is a
299 # map, associative array, symbol table, dictionary, or JSON object
300 # composed of a collection of (MapKey, MapValue) pairs:
301 #
302 # - MapKey type: string
303 # - MapKey value: parameter name
304 # - MapValue type:
305 # - If parameter&#x27;s entity type is a composite entity: map
306 # - Else: string or number, depending on parameter value type
307 # - MapValue value:
308 # - If parameter&#x27;s entity type is a composite entity:
309 # map from composite entity property names to property values
310 # - Else: parameter value
311 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
312 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700313 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
314 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
315 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
316 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
317 #
318 # The `Context ID` is always converted to lowercase, may only contain
319 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
320 #
321 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
322 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
323 #
324 # The following context names are reserved for internal use by Dialogflow.
325 # You should not use these contexts or create contexts with these names:
326 #
327 # * `__system_counters__`
328 # * `*_id_dialog_context`
329 # * `*_dialog_params_size`
330 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
331 # context expires. The default is `0`. If set to `0`, the context expires
332 # immediately. Contexts expire automatically after 20 minutes if there
333 # are no matching queries.
Bu Sun Kim65020912020-05-20 12:08:20 -0700334 }</pre>
335</div>
336
337<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700338 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
Bu Sun Kim65020912020-05-20 12:08:20 -0700339 <pre>Returns the list of all contexts in the specified session.
340
341Args:
342 parent: string, Required. The session to list all contexts from.
343Format: `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;` or
344`projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
345ID&gt;/sessions/&lt;Session ID&gt;`.
346If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
347environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user. (required)
Bu Sun Kim65020912020-05-20 12:08:20 -0700348 pageSize: integer, Optional. The maximum number of items to return in a single page. By
349default 100 and at most 1000.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700350 pageToken: string, Optional. The next_page_token value returned from a previous list request.
Bu Sun Kim65020912020-05-20 12:08:20 -0700351 x__xgafv: string, V1 error format.
352 Allowed values
353 1 - v1 error format
354 2 - v2 error format
355
356Returns:
357 An object of the form:
358
359 { # The response message for Contexts.ListContexts.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700360 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no
361 # more results in the list.
Bu Sun Kim65020912020-05-20 12:08:20 -0700362 &quot;contexts&quot;: [ # The list of contexts. There will be a maximum number of items
363 # returned based on the page_size field in the request.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700364 { # Dialogflow contexts are similar to natural language context. If a person says
365 # to you &quot;they are orange&quot;, you need context in order to understand what &quot;they&quot;
366 # is referring to. Similarly, for Dialogflow to handle an end-user expression
367 # like that, it needs to be provided with context in order to correctly match
368 # an intent.
369 #
370 # Using contexts, you can control the flow of a conversation. You can configure
371 # contexts for an intent by setting input and output contexts, which are
372 # identified by string names. When an intent is matched, any configured output
373 # contexts for that intent become active. While any contexts are active,
374 # Dialogflow is more likely to match intents that are configured with input
375 # contexts that correspond to the currently active contexts.
376 #
377 # For more information about context, see the
378 # [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview).
Bu Sun Kim65020912020-05-20 12:08:20 -0700379 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
380 #
381 # Depending on your protocol or client library language, this is a
382 # map, associative array, symbol table, dictionary, or JSON object
383 # composed of a collection of (MapKey, MapValue) pairs:
384 #
385 # - MapKey type: string
386 # - MapKey value: parameter name
387 # - MapValue type:
388 # - If parameter&#x27;s entity type is a composite entity: map
389 # - Else: string or number, depending on parameter value type
390 # - MapValue value:
391 # - If parameter&#x27;s entity type is a composite entity:
392 # map from composite entity property names to property values
393 # - Else: parameter value
394 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
395 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700396 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
397 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
398 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
399 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
400 #
401 # The `Context ID` is always converted to lowercase, may only contain
402 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
403 #
404 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
405 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
406 #
407 # The following context names are reserved for internal use by Dialogflow.
408 # You should not use these contexts or create contexts with these names:
409 #
410 # * `__system_counters__`
411 # * `*_id_dialog_context`
412 # * `*_dialog_params_size`
413 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
414 # context expires. The default is `0`. If set to `0`, the context expires
415 # immediately. Contexts expire automatically after 20 minutes if there
416 # are no matching queries.
Bu Sun Kim65020912020-05-20 12:08:20 -0700417 },
418 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700419 }</pre>
420</div>
421
422<div class="method">
423 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
424 <pre>Retrieves the next page of results.
425
426Args:
427 previous_request: The request for the previous page. (required)
428 previous_response: The response from the request for the previous page. (required)
429
430Returns:
431 A request object that you can call &#x27;execute()&#x27; on to request the next
432 page. Returns None if there are no more items in the collection.
433 </pre>
434</div>
435
436<div class="method">
437 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
438 <pre>Updates the specified context.
439
440Args:
441 name: string, Required. The unique identifier of the context. Format:
442`projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
443or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
444ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
445
446The `Context ID` is always converted to lowercase, may only contain
447characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
448
449If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
450environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
451
452The following context names are reserved for internal use by Dialogflow.
453You should not use these contexts or create contexts with these names:
454
455* `__system_counters__`
456* `*_id_dialog_context`
457* `*_dialog_params_size` (required)
458 body: object, The request body.
459 The object takes the form of:
460
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700461{ # Dialogflow contexts are similar to natural language context. If a person says
462 # to you &quot;they are orange&quot;, you need context in order to understand what &quot;they&quot;
463 # is referring to. Similarly, for Dialogflow to handle an end-user expression
464 # like that, it needs to be provided with context in order to correctly match
465 # an intent.
466 #
467 # Using contexts, you can control the flow of a conversation. You can configure
468 # contexts for an intent by setting input and output contexts, which are
469 # identified by string names. When an intent is matched, any configured output
470 # contexts for that intent become active. While any contexts are active,
471 # Dialogflow is more likely to match intents that are configured with input
472 # contexts that correspond to the currently active contexts.
473 #
474 # For more information about context, see the
475 # [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview).
Bu Sun Kim65020912020-05-20 12:08:20 -0700476 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
477 #
478 # Depending on your protocol or client library language, this is a
479 # map, associative array, symbol table, dictionary, or JSON object
480 # composed of a collection of (MapKey, MapValue) pairs:
481 #
482 # - MapKey type: string
483 # - MapKey value: parameter name
484 # - MapValue type:
485 # - If parameter&#x27;s entity type is a composite entity: map
486 # - Else: string or number, depending on parameter value type
487 # - MapValue value:
488 # - If parameter&#x27;s entity type is a composite entity:
489 # map from composite entity property names to property values
490 # - Else: parameter value
491 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
492 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700493 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
494 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
495 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
496 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
497 #
498 # The `Context ID` is always converted to lowercase, may only contain
499 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
500 #
501 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
502 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
503 #
504 # The following context names are reserved for internal use by Dialogflow.
505 # You should not use these contexts or create contexts with these names:
506 #
507 # * `__system_counters__`
508 # * `*_id_dialog_context`
509 # * `*_dialog_params_size`
510 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
511 # context expires. The default is `0`. If set to `0`, the context expires
512 # immediately. Contexts expire automatically after 20 minutes if there
513 # are no matching queries.
Bu Sun Kim65020912020-05-20 12:08:20 -0700514}
515
516 updateMask: string, Optional. The mask to control which fields get updated.
517 x__xgafv: string, V1 error format.
518 Allowed values
519 1 - v1 error format
520 2 - v2 error format
521
522Returns:
523 An object of the form:
524
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700525 { # Dialogflow contexts are similar to natural language context. If a person says
526 # to you &quot;they are orange&quot;, you need context in order to understand what &quot;they&quot;
527 # is referring to. Similarly, for Dialogflow to handle an end-user expression
528 # like that, it needs to be provided with context in order to correctly match
529 # an intent.
530 #
531 # Using contexts, you can control the flow of a conversation. You can configure
532 # contexts for an intent by setting input and output contexts, which are
533 # identified by string names. When an intent is matched, any configured output
534 # contexts for that intent become active. While any contexts are active,
535 # Dialogflow is more likely to match intents that are configured with input
536 # contexts that correspond to the currently active contexts.
537 #
538 # For more information about context, see the
539 # [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview).
Bu Sun Kim65020912020-05-20 12:08:20 -0700540 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
541 #
542 # Depending on your protocol or client library language, this is a
543 # map, associative array, symbol table, dictionary, or JSON object
544 # composed of a collection of (MapKey, MapValue) pairs:
545 #
546 # - MapKey type: string
547 # - MapKey value: parameter name
548 # - MapValue type:
549 # - If parameter&#x27;s entity type is a composite entity: map
550 # - Else: string or number, depending on parameter value type
551 # - MapValue value:
552 # - If parameter&#x27;s entity type is a composite entity:
553 # map from composite entity property names to property values
554 # - Else: parameter value
555 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
556 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700557 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
558 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
559 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
560 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
561 #
562 # The `Context ID` is always converted to lowercase, may only contain
563 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
564 #
565 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
566 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
567 #
568 # The following context names are reserved for internal use by Dialogflow.
569 # You should not use these contexts or create contexts with these names:
570 #
571 # * `__system_counters__`
572 # * `*_id_dialog_context`
573 # * `*_dialog_params_size`
574 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
575 # context expires. The default is `0`. If set to `0`, the context expires
576 # immediately. Contexts expire automatically after 20 minutes if there
577 # are no matching queries.
Bu Sun Kim65020912020-05-20 12:08:20 -0700578 }</pre>
579</div>
580
581</body></html>