blob: 58113a7edb41e2898a52a1ca9c025f83360e0e9c [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.sessions.html">sessions</a> . <a href="dialogflow_v2beta1.projects.agent.sessions.contexts.html">contexts</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070079<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 Kim715bd7f2019-06-14 16:50:42 -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">
Dan O'Mearadd494642020-05-01 07:42:23 -070093 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070094<p class="firstline">Updates the specified context.</p>
95<h3>Method Details</h3>
96<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -070097 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070098 <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.
Dan O'Mearadd494642020-05-01 07:42:23 -0700104Format: `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;`. If `Environment ID` is not specified, we assume
Bu Sun Kim65020912020-05-20 12:08:20 -0700107default &#x27;draft&#x27; environment. If `User ID` is not specified, we assume
108default &#x27;-&#x27; user. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700109 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700110 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).
127 &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 Kim65020912020-05-20 12:08:20 -0700144 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
145 # context expires. The default is `0`. If set to `0`, the context expires
146 # immediately. Contexts expire automatically after 20 minutes if there
147 # are no matching queries.
148 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
Dan O'Mearadd494642020-05-01 07:42:23 -0700149 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
150 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
151 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700152 #
153 # The `Context ID` is always converted to lowercase, may only contain
154 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
155 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700156 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
157 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
Dan O'Mearadd494642020-05-01 07:42:23 -0700158 #
159 # The following context names are reserved for internal use by Dialogflow.
160 # You should not use these contexts or create contexts with these names:
161 #
162 # * `__system_counters__`
163 # * `*_id_dialog_context`
164 # * `*_dialog_params_size`
Bu Sun Kim715bd7f2019-06-14 16:50:42 -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).
190 &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 Kim65020912020-05-20 12:08:20 -0700207 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
208 # context expires. The default is `0`. If set to `0`, the context expires
209 # immediately. Contexts expire automatically after 20 minutes if there
210 # are no matching queries.
211 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
Dan O'Mearadd494642020-05-01 07:42:23 -0700212 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
213 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
214 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700215 #
216 # The `Context ID` is always converted to lowercase, may only contain
217 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
218 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700219 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
220 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
Dan O'Mearadd494642020-05-01 07:42:23 -0700221 #
222 # The following context names are reserved for internal use by Dialogflow.
223 # You should not use these contexts or create contexts with these names:
224 #
225 # * `__system_counters__`
226 # * `*_id_dialog_context`
227 # * `*_dialog_params_size`
Bu Sun Kim715bd7f2019-06-14 16:50:42 -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:
Dan O'Mearadd494642020-05-01 07:42:23 -0700237`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;`. If `Environment ID` is
Bu Sun Kim65020912020-05-20 12:08:20 -0700240not specified, we assume default &#x27;draft&#x27; environment. If `User ID` is not
241specified, we assume default &#x27;-&#x27; user. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700242 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:
Dan O'Mearadd494642020-05-01 07:42:23 -0700268`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;`. If `Environment ID` is
Bu Sun Kim65020912020-05-20 12:08:20 -0700271not specified, we assume default &#x27;draft&#x27; environment. If `User ID` is not
272specified, we assume default &#x27;-&#x27; user. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700273 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).
296 &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 Kim65020912020-05-20 12:08:20 -0700313 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
314 # context expires. The default is `0`. If set to `0`, the context expires
315 # immediately. Contexts expire automatically after 20 minutes if there
316 # are no matching queries.
317 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
Dan O'Mearadd494642020-05-01 07:42:23 -0700318 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
319 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
320 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700321 #
322 # The `Context ID` is always converted to lowercase, may only contain
323 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
324 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700325 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
326 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
Dan O'Mearadd494642020-05-01 07:42:23 -0700327 #
328 # The following context names are reserved for internal use by Dialogflow.
329 # You should not use these contexts or create contexts with these names:
330 #
331 # * `__system_counters__`
332 # * `*_id_dialog_context`
333 # * `*_dialog_params_size`
Bu Sun Kim715bd7f2019-06-14 16:50:42 -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 Kim715bd7f2019-06-14 16:50:42 -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.
Dan O'Mearadd494642020-05-01 07:42:23 -0700343Format: `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;`. If `Environment ID` is not specified, we assume
Bu Sun Kim65020912020-05-20 12:08:20 -0700346default &#x27;draft&#x27; environment. If `User ID` is not specified, we assume
347default &#x27;-&#x27; user. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -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 Kim715bd7f2019-06-14 16:50:42 -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 Kim65020912020-05-20 12:08:20 -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.
362 &quot;contexts&quot;: [ # The list of contexts. There will be a maximum number of items
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700363 # 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).
379 &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 Kim65020912020-05-20 12:08:20 -0700396 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
397 # context expires. The default is `0`. If set to `0`, the context expires
398 # immediately. Contexts expire automatically after 20 minutes if there
399 # are no matching queries.
400 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
Dan O'Mearadd494642020-05-01 07:42:23 -0700401 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
402 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
403 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700404 #
405 # The `Context ID` is always converted to lowercase, may only contain
406 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
407 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700408 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
409 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
Dan O'Mearadd494642020-05-01 07:42:23 -0700410 #
411 # The following context names are reserved for internal use by Dialogflow.
412 # You should not use these contexts or create contexts with these names:
413 #
414 # * `__system_counters__`
415 # * `*_id_dialog_context`
416 # * `*_dialog_params_size`
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700417 },
418 ],
419 }</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:
Bu Sun Kim65020912020-05-20 12:08:20 -0700431 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700432 page. Returns None if there are no more items in the collection.
433 </pre>
434</div>
435
436<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700437 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700438 <pre>Updates the specified context.
439
440Args:
441 name: string, Required. The unique identifier of the context. Format:
Dan O'Mearadd494642020-05-01 07:42:23 -0700442`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;`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700445
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
Bu Sun Kim65020912020-05-20 12:08:20 -0700449If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
450environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
Dan O'Mearadd494642020-05-01 07:42:23 -0700451
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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700459 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).
476 &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 Kim65020912020-05-20 12:08:20 -0700493 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
494 # context expires. The default is `0`. If set to `0`, the context expires
495 # immediately. Contexts expire automatically after 20 minutes if there
496 # are no matching queries.
497 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
Dan O'Mearadd494642020-05-01 07:42:23 -0700498 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
499 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
500 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700501 #
502 # The `Context ID` is always converted to lowercase, may only contain
503 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
504 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700505 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
506 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
Dan O'Mearadd494642020-05-01 07:42:23 -0700507 #
508 # The following context names are reserved for internal use by Dialogflow.
509 # You should not use these contexts or create contexts with these names:
510 #
511 # * `__system_counters__`
512 # * `*_id_dialog_context`
513 # * `*_dialog_params_size`
Bu Sun Kim715bd7f2019-06-14 16:50:42 -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).
540 &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 Kim65020912020-05-20 12:08:20 -0700557 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
558 # context expires. The default is `0`. If set to `0`, the context expires
559 # immediately. Contexts expire automatically after 20 minutes if there
560 # are no matching queries.
561 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
Dan O'Mearadd494642020-05-01 07:42:23 -0700562 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
563 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
564 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700565 #
566 # The `Context ID` is always converted to lowercase, may only contain
567 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
568 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700569 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
570 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
Dan O'Mearadd494642020-05-01 07:42:23 -0700571 #
572 # The following context names are reserved for internal use by Dialogflow.
573 # You should not use these contexts or create contexts with these names:
574 #
575 # * `__system_counters__`
576 # * `*_id_dialog_context`
577 # * `*_dialog_params_size`
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700578 }</pre>
579</div>
580
581</body></html>