|
38 | 38 | from dialogflow_v2.proto import agent_pb2_grpc
|
39 | 39 | from dialogflow_v2.proto import context_pb2
|
40 | 40 | from dialogflow_v2.proto import context_pb2_grpc
|
| 41 | +from dialogflow_v2.proto import validation_result_pb2 |
41 | 42 | from google.longrunning import operations_pb2
|
42 | 43 | from google.protobuf import empty_pb2
|
43 | 44 | from google.protobuf import field_mask_pb2
|
@@ -260,7 +261,11 @@ def list_contexts(
|
260 | 261 |
|
261 | 262 | Args:
|
262 | 263 | parent (str): Required. The session to list all contexts from. Format:
|
263 |
| - ``projects/<Project ID>/agent/sessions/<Session ID>``. |
| 264 | + ``projects/<Project ID>/agent/sessions/<Session ID>`` or |
| 265 | + ``projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>``. |
| 266 | + If ``Environment ID`` is not specified, we assume default 'draft' |
| 267 | + environment. If ``User ID`` is not specified, we assume default '-' |
| 268 | + user. |
264 | 269 | page_size (int): The maximum number of resources contained in the
|
265 | 270 | underlying API response. If page streaming is performed per-
|
266 | 271 | resource, this parameter does not affect the return value. If page
|
@@ -349,7 +354,12 @@ def get_context(
|
349 | 354 |
|
350 | 355 | Args:
|
351 | 356 | name (str): Required. The name of the context. Format:
|
352 |
| - ``projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>``. |
| 357 | + ``projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`` |
| 358 | + or |
| 359 | + ``projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>/contexts/<Context ID>``. |
| 360 | + If ``Environment ID`` is not specified, we assume default 'draft' |
| 361 | + environment. If ``User ID`` is not specified, we assume default '-' |
| 362 | + user. |
353 | 363 | retry (Optional[google.api_core.retry.Retry]): A retry object used
|
354 | 364 | to retry requests. If ``None`` is specified, requests will
|
355 | 365 | be retried using a default configuration.
|
@@ -425,7 +435,11 @@ def create_context(
|
425 | 435 |
|
426 | 436 | Args:
|
427 | 437 | parent (str): Required. The session to create a context for. Format:
|
428 |
| - ``projects/<Project ID>/agent/sessions/<Session ID>``. |
| 438 | + ``projects/<Project ID>/agent/sessions/<Session ID>`` or |
| 439 | + ``projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>``. |
| 440 | + If ``Environment ID`` is not specified, we assume default 'draft' |
| 441 | + environment. If ``User ID`` is not specified, we assume default '-' |
| 442 | + user. |
429 | 443 | context (Union[dict, ~google.cloud.dialogflow_v2.types.Context]): Required. The context to create.
|
430 | 444 |
|
431 | 445 | If a dict is provided, it must be of the same form as the protobuf
|
@@ -579,7 +593,12 @@ def delete_context(
|
579 | 593 |
|
580 | 594 | Args:
|
581 | 595 | name (str): Required. The name of the context to delete. Format:
|
582 |
| - ``projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>``. |
| 596 | + ``projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`` |
| 597 | + or |
| 598 | + ``projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>/contexts/<Context ID>``. |
| 599 | + If ``Environment ID`` is not specified, we assume default 'draft' |
| 600 | + environment. If ``User ID`` is not specified, we assume default '-' |
| 601 | + user. |
583 | 602 | retry (Optional[google.api_core.retry.Retry]): A retry object used
|
584 | 603 | to retry requests. If ``None`` is specified, requests will
|
585 | 604 | be retried using a default configuration.
|
@@ -646,7 +665,11 @@ def delete_all_contexts(
|
646 | 665 |
|
647 | 666 | Args:
|
648 | 667 | parent (str): Required. The name of the session to delete all contexts from. Format:
|
649 |
| - ``projects/<Project ID>/agent/sessions/<Session ID>``. |
| 668 | + ``projects/<Project ID>/agent/sessions/<Session ID>`` or |
| 669 | + ``projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>``. |
| 670 | + If ``Environment ID`` is not specified we assume default 'draft' |
| 671 | + environment. If ``User ID`` is not specified, we assume default '-' |
| 672 | + user. |
650 | 673 | retry (Optional[google.api_core.retry.Retry]): A retry object used
|
651 | 674 | to retry requests. If ``None`` is specified, requests will
|
652 | 675 | be retried using a default configuration.
|
|
0 commit comments