Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jan 6, 2024. It is now read-only.

Commit 30e8c2b

Browse files
feat: added agent level route group (#543)
* feat: added agent level route group feat: added flow import strategy PiperOrigin-RevId: 555319706 Source-Link: googleapis/googleapis@2eec4fc Source-Link: https://github.com/googleapis/googleapis-gen/commit/ef192733e2b7434a5e442f9a5e82ce0880377fbf Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZWYxOTI3MzNlMmI3NDM0YTVlNDQyZjlhNWU4MmNlMDg4MDM3N2ZiZiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: added agent level route group feat: added flow import strategy PiperOrigin-RevId: 555341760 Source-Link: googleapis/googleapis@713b3e7 Source-Link: https://github.com/googleapis/googleapis-gen/commit/7d3c46cb7d82393b4a583ea85a45b9b483629596 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiN2QzYzQ2Y2I3ZDgyMzkzYjRhNTgzZWE4NWE0NWI5YjQ4MzYyOTU5NiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 0a2d797 commit 30e8c2b

38 files changed

+475
-92
lines changed

google/cloud/dialogflowcx/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@
167167
from google.cloud.dialogflowcx_v3.types.flow import ExportFlowRequest
168168
from google.cloud.dialogflowcx_v3.types.flow import ExportFlowResponse
169169
from google.cloud.dialogflowcx_v3.types.flow import Flow
170+
from google.cloud.dialogflowcx_v3.types.flow import FlowImportStrategy
170171
from google.cloud.dialogflowcx_v3.types.flow import FlowValidationResult
171172
from google.cloud.dialogflowcx_v3.types.flow import GetFlowRequest
172173
from google.cloud.dialogflowcx_v3.types.flow import GetFlowValidationResultRequest
@@ -180,6 +181,7 @@
180181
from google.cloud.dialogflowcx_v3.types.flow import ValidateFlowRequest
181182
from google.cloud.dialogflowcx_v3.types.fulfillment import Fulfillment
182183
from google.cloud.dialogflowcx_v3.types.gcs import GcsDestination
184+
from google.cloud.dialogflowcx_v3.types.import_strategy import ImportStrategy
183185
from google.cloud.dialogflowcx_v3.types.intent import CreateIntentRequest
184186
from google.cloud.dialogflowcx_v3.types.intent import DeleteIntentRequest
185187
from google.cloud.dialogflowcx_v3.types.intent import GetIntentRequest
@@ -446,6 +448,7 @@
446448
"ExportFlowRequest",
447449
"ExportFlowResponse",
448450
"Flow",
451+
"FlowImportStrategy",
449452
"FlowValidationResult",
450453
"GetFlowRequest",
451454
"GetFlowValidationResultRequest",
@@ -459,6 +462,7 @@
459462
"ValidateFlowRequest",
460463
"Fulfillment",
461464
"GcsDestination",
465+
"ImportStrategy",
462466
"CreateIntentRequest",
463467
"DeleteIntentRequest",
464468
"GetIntentRequest",

google/cloud/dialogflowcx_v3/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@
127127
from .types.flow import ExportFlowRequest
128128
from .types.flow import ExportFlowResponse
129129
from .types.flow import Flow
130+
from .types.flow import FlowImportStrategy
130131
from .types.flow import FlowValidationResult
131132
from .types.flow import GetFlowRequest
132133
from .types.flow import GetFlowValidationResultRequest
@@ -140,6 +141,7 @@
140141
from .types.flow import ValidateFlowRequest
141142
from .types.fulfillment import Fulfillment
142143
from .types.gcs import GcsDestination
144+
from .types.import_strategy import ImportStrategy
143145
from .types.intent import CreateIntentRequest
144146
from .types.intent import DeleteIntentRequest
145147
from .types.intent import GetIntentRequest
@@ -345,6 +347,7 @@
345347
"ExportTestCasesRequest",
346348
"ExportTestCasesResponse",
347349
"Flow",
350+
"FlowImportStrategy",
348351
"FlowValidationResult",
349352
"FlowsClient",
350353
"Form",
@@ -372,6 +375,7 @@
372375
"GetWebhookRequest",
373376
"ImportFlowRequest",
374377
"ImportFlowResponse",
378+
"ImportStrategy",
375379
"ImportTestCasesMetadata",
376380
"ImportTestCasesRequest",
377381
"ImportTestCasesResponse",

google/cloud/dialogflowcx_v3/services/agents/async_client.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,8 @@ async def sample_get_agent():
417417
[Flows][google.cloud.dialogflow.cx.v3.Flow],
418418
[Fulfillments][google.cloud.dialogflow.cx.v3.Fulfillment],
419419
[Webhooks][google.cloud.dialogflow.cx.v3.Webhook],
420-
and so on to manage the conversation flows..
420+
[TransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
421+
and so on to manage the conversation flows.
421422
422423
"""
423424
# Create or coerce a protobuf request object.
@@ -547,7 +548,8 @@ async def sample_create_agent():
547548
[Flows][google.cloud.dialogflow.cx.v3.Flow],
548549
[Fulfillments][google.cloud.dialogflow.cx.v3.Fulfillment],
549550
[Webhooks][google.cloud.dialogflow.cx.v3.Webhook],
550-
and so on to manage the conversation flows..
551+
[TransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
552+
and so on to manage the conversation flows.
551553
552554
"""
553555
# Create or coerce a protobuf request object.
@@ -688,7 +690,8 @@ async def sample_update_agent():
688690
[Flows][google.cloud.dialogflow.cx.v3.Flow],
689691
[Fulfillments][google.cloud.dialogflow.cx.v3.Fulfillment],
690692
[Webhooks][google.cloud.dialogflow.cx.v3.Webhook],
691-
and so on to manage the conversation flows..
693+
[TransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
694+
and so on to manage the conversation flows.
692695
693696
"""
694697
# Create or coerce a protobuf request object.

google/cloud/dialogflowcx_v3/services/agents/client.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,8 @@ def sample_get_agent():
752752
[Flows][google.cloud.dialogflow.cx.v3.Flow],
753753
[Fulfillments][google.cloud.dialogflow.cx.v3.Fulfillment],
754754
[Webhooks][google.cloud.dialogflow.cx.v3.Webhook],
755-
and so on to manage the conversation flows..
755+
[TransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
756+
and so on to manage the conversation flows.
756757
757758
"""
758759
# Create or coerce a protobuf request object.
@@ -882,7 +883,8 @@ def sample_create_agent():
882883
[Flows][google.cloud.dialogflow.cx.v3.Flow],
883884
[Fulfillments][google.cloud.dialogflow.cx.v3.Fulfillment],
884885
[Webhooks][google.cloud.dialogflow.cx.v3.Webhook],
885-
and so on to manage the conversation flows..
886+
[TransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
887+
and so on to manage the conversation flows.
886888
887889
"""
888890
# Create or coerce a protobuf request object.
@@ -1014,7 +1016,8 @@ def sample_update_agent():
10141016
[Flows][google.cloud.dialogflow.cx.v3.Flow],
10151017
[Fulfillments][google.cloud.dialogflow.cx.v3.Fulfillment],
10161018
[Webhooks][google.cloud.dialogflow.cx.v3.Webhook],
1017-
and so on to manage the conversation flows..
1019+
[TransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
1020+
and so on to manage the conversation flows.
10181021
10191022
"""
10201023
# Create or coerce a protobuf request object.

google/cloud/dialogflowcx_v3/services/agents/transports/rest.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -640,8 +640,9 @@ def __call__(
640640
Types][google.cloud.dialogflow.cx.v3.EntityType],
641641
[Flows][google.cloud.dialogflow.cx.v3.Flow],
642642
[Fulfillments][google.cloud.dialogflow.cx.v3.Fulfillment],
643-
[Webhooks][google.cloud.dialogflow.cx.v3.Webhook], and
644-
so on to manage the conversation flows..
643+
[Webhooks][google.cloud.dialogflow.cx.v3.Webhook],
644+
[TransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
645+
and so on to manage the conversation flows.
645646
646647
"""
647648

@@ -921,8 +922,9 @@ def __call__(
921922
Types][google.cloud.dialogflow.cx.v3.EntityType],
922923
[Flows][google.cloud.dialogflow.cx.v3.Flow],
923924
[Fulfillments][google.cloud.dialogflow.cx.v3.Fulfillment],
924-
[Webhooks][google.cloud.dialogflow.cx.v3.Webhook], and
925-
so on to manage the conversation flows..
925+
[Webhooks][google.cloud.dialogflow.cx.v3.Webhook],
926+
[TransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
927+
and so on to manage the conversation flows.
926928
927929
"""
928930

@@ -1299,8 +1301,9 @@ def __call__(
12991301
Types][google.cloud.dialogflow.cx.v3.EntityType],
13001302
[Flows][google.cloud.dialogflow.cx.v3.Flow],
13011303
[Fulfillments][google.cloud.dialogflow.cx.v3.Fulfillment],
1302-
[Webhooks][google.cloud.dialogflow.cx.v3.Webhook], and
1303-
so on to manage the conversation flows..
1304+
[Webhooks][google.cloud.dialogflow.cx.v3.Webhook],
1305+
[TransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
1306+
and so on to manage the conversation flows.
13041307
13051308
"""
13061309

google/cloud/dialogflowcx_v3/services/transition_route_groups/async_client.py

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,8 @@ async def sample_list_transition_route_groups():
285285
parent (:class:`str`):
286286
Required. The flow to list all transition route groups
287287
for. Format:
288-
``projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>``.
288+
``projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>``
289+
or \`projects//locations//agents/.
289290
290291
This corresponds to the ``parent`` field
291292
on the ``request`` instance; if ``request`` is provided, this
@@ -404,7 +405,9 @@ async def sample_get_transition_route_group():
404405
Required. The name of the
405406
[TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
406407
Format:
407-
``projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>``.
408+
``projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>``
409+
or
410+
``projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/transitionRouteGroups/<Transition Route Group ID>``.
408411
409412
This corresponds to the ``name`` field
410413
on the ``request`` instance; if ``request`` is provided, this
@@ -417,7 +420,7 @@ async def sample_get_transition_route_group():
417420
418421
Returns:
419422
google.cloud.dialogflowcx_v3.types.TransitionRouteGroup:
420-
An TransitionRouteGroup represents a group of
423+
A TransitionRouteGroup represents a group of
421424
[TransitionRoutes][google.cloud.dialogflow.cx.v3.TransitionRoute]
422425
to be used by a
423426
[Page][google.cloud.dialogflow.cx.v3.Page].
@@ -525,7 +528,10 @@ async def sample_create_transition_route_group():
525528
Required. The flow to create an
526529
[TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
527530
for. Format:
528-
``projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>``.
531+
``projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>``
532+
or
533+
``projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>``
534+
for agent-level groups.
529535
530536
This corresponds to the ``parent`` field
531537
on the ``request`` instance; if ``request`` is provided, this
@@ -545,7 +551,7 @@ async def sample_create_transition_route_group():
545551
546552
Returns:
547553
google.cloud.dialogflowcx_v3.types.TransitionRouteGroup:
548-
An TransitionRouteGroup represents a group of
554+
A TransitionRouteGroup represents a group of
549555
[TransitionRoutes][google.cloud.dialogflow.cx.v3.TransitionRoute]
550556
to be used by a
551557
[Page][google.cloud.dialogflow.cx.v3.Page].
@@ -671,7 +677,7 @@ async def sample_update_transition_route_group():
671677
672678
Returns:
673679
google.cloud.dialogflowcx_v3.types.TransitionRouteGroup:
674-
An TransitionRouteGroup represents a group of
680+
A TransitionRouteGroup represents a group of
675681
[TransitionRoutes][google.cloud.dialogflow.cx.v3.TransitionRoute]
676682
to be used by a
677683
[Page][google.cloud.dialogflow.cx.v3.Page].
@@ -772,7 +778,9 @@ async def sample_delete_transition_route_group():
772778
Required. The name of the
773779
[TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
774780
to delete. Format:
775-
``projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>``.
781+
``projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>``
782+
or
783+
``projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/transitionRouteGroups/<Transition Route Group ID>``.
776784
777785
This corresponds to the ``name`` field
778786
on the ``request`` instance; if ``request`` is provided, this

google/cloud/dialogflowcx_v3/services/transition_route_groups/client.py

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,8 @@ def sample_list_transition_route_groups():
601601
parent (str):
602602
Required. The flow to list all transition route groups
603603
for. Format:
604-
``projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>``.
604+
``projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>``
605+
or \`projects//locations//agents/.
605606
606607
This corresponds to the ``parent`` field
607608
on the ``request`` instance; if ``request`` is provided, this
@@ -724,7 +725,9 @@ def sample_get_transition_route_group():
724725
Required. The name of the
725726
[TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
726727
Format:
727-
``projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>``.
728+
``projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>``
729+
or
730+
``projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/transitionRouteGroups/<Transition Route Group ID>``.
728731
729732
This corresponds to the ``name`` field
730733
on the ``request`` instance; if ``request`` is provided, this
@@ -737,7 +740,7 @@ def sample_get_transition_route_group():
737740
738741
Returns:
739742
google.cloud.dialogflowcx_v3.types.TransitionRouteGroup:
740-
An TransitionRouteGroup represents a group of
743+
A TransitionRouteGroup represents a group of
741744
[TransitionRoutes][google.cloud.dialogflow.cx.v3.TransitionRoute]
742745
to be used by a
743746
[Page][google.cloud.dialogflow.cx.v3.Page].
@@ -849,7 +852,10 @@ def sample_create_transition_route_group():
849852
Required. The flow to create an
850853
[TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
851854
for. Format:
852-
``projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>``.
855+
``projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>``
856+
or
857+
``projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>``
858+
for agent-level groups.
853859
854860
This corresponds to the ``parent`` field
855861
on the ``request`` instance; if ``request`` is provided, this
@@ -869,7 +875,7 @@ def sample_create_transition_route_group():
869875
870876
Returns:
871877
google.cloud.dialogflowcx_v3.types.TransitionRouteGroup:
872-
An TransitionRouteGroup represents a group of
878+
A TransitionRouteGroup represents a group of
873879
[TransitionRoutes][google.cloud.dialogflow.cx.v3.TransitionRoute]
874880
to be used by a
875881
[Page][google.cloud.dialogflow.cx.v3.Page].
@@ -1001,7 +1007,7 @@ def sample_update_transition_route_group():
10011007
10021008
Returns:
10031009
google.cloud.dialogflowcx_v3.types.TransitionRouteGroup:
1004-
An TransitionRouteGroup represents a group of
1010+
A TransitionRouteGroup represents a group of
10051011
[TransitionRoutes][google.cloud.dialogflow.cx.v3.TransitionRoute]
10061012
to be used by a
10071013
[Page][google.cloud.dialogflow.cx.v3.Page].
@@ -1108,7 +1114,9 @@ def sample_delete_transition_route_group():
11081114
Required. The name of the
11091115
[TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
11101116
to delete. Format:
1111-
``projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>``.
1117+
``projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>``
1118+
or
1119+
``projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/transitionRouteGroups/<Transition Route Group ID>``.
11121120
11131121
This corresponds to the ``name`` field
11141122
on the ``request`` instance; if ``request`` is provided, this

0 commit comments

Comments
 (0)