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

Commit

Permalink
feat: added agent level route group (#543)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Aug 10, 2023
1 parent 0a2d797 commit 30e8c2b
Show file tree
Hide file tree
Showing 38 changed files with 475 additions and 92 deletions.
4 changes: 4 additions & 0 deletions google/cloud/dialogflowcx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@
from google.cloud.dialogflowcx_v3.types.flow import ExportFlowRequest
from google.cloud.dialogflowcx_v3.types.flow import ExportFlowResponse
from google.cloud.dialogflowcx_v3.types.flow import Flow
from google.cloud.dialogflowcx_v3.types.flow import FlowImportStrategy
from google.cloud.dialogflowcx_v3.types.flow import FlowValidationResult
from google.cloud.dialogflowcx_v3.types.flow import GetFlowRequest
from google.cloud.dialogflowcx_v3.types.flow import GetFlowValidationResultRequest
Expand All @@ -180,6 +181,7 @@
from google.cloud.dialogflowcx_v3.types.flow import ValidateFlowRequest
from google.cloud.dialogflowcx_v3.types.fulfillment import Fulfillment
from google.cloud.dialogflowcx_v3.types.gcs import GcsDestination
from google.cloud.dialogflowcx_v3.types.import_strategy import ImportStrategy
from google.cloud.dialogflowcx_v3.types.intent import CreateIntentRequest
from google.cloud.dialogflowcx_v3.types.intent import DeleteIntentRequest
from google.cloud.dialogflowcx_v3.types.intent import GetIntentRequest
Expand Down Expand Up @@ -446,6 +448,7 @@
"ExportFlowRequest",
"ExportFlowResponse",
"Flow",
"FlowImportStrategy",
"FlowValidationResult",
"GetFlowRequest",
"GetFlowValidationResultRequest",
Expand All @@ -459,6 +462,7 @@
"ValidateFlowRequest",
"Fulfillment",
"GcsDestination",
"ImportStrategy",
"CreateIntentRequest",
"DeleteIntentRequest",
"GetIntentRequest",
Expand Down
4 changes: 4 additions & 0 deletions google/cloud/dialogflowcx_v3/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@
from .types.flow import ExportFlowRequest
from .types.flow import ExportFlowResponse
from .types.flow import Flow
from .types.flow import FlowImportStrategy
from .types.flow import FlowValidationResult
from .types.flow import GetFlowRequest
from .types.flow import GetFlowValidationResultRequest
Expand All @@ -140,6 +141,7 @@
from .types.flow import ValidateFlowRequest
from .types.fulfillment import Fulfillment
from .types.gcs import GcsDestination
from .types.import_strategy import ImportStrategy
from .types.intent import CreateIntentRequest
from .types.intent import DeleteIntentRequest
from .types.intent import GetIntentRequest
Expand Down Expand Up @@ -345,6 +347,7 @@
"ExportTestCasesRequest",
"ExportTestCasesResponse",
"Flow",
"FlowImportStrategy",
"FlowValidationResult",
"FlowsClient",
"Form",
Expand Down Expand Up @@ -372,6 +375,7 @@
"GetWebhookRequest",
"ImportFlowRequest",
"ImportFlowResponse",
"ImportStrategy",
"ImportTestCasesMetadata",
"ImportTestCasesRequest",
"ImportTestCasesResponse",
Expand Down
9 changes: 6 additions & 3 deletions google/cloud/dialogflowcx_v3/services/agents/async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,8 @@ async def sample_get_agent():
[Flows][google.cloud.dialogflow.cx.v3.Flow],
[Fulfillments][google.cloud.dialogflow.cx.v3.Fulfillment],
[Webhooks][google.cloud.dialogflow.cx.v3.Webhook],
and so on to manage the conversation flows..
[TransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
and so on to manage the conversation flows.
"""
# Create or coerce a protobuf request object.
Expand Down Expand Up @@ -547,7 +548,8 @@ async def sample_create_agent():
[Flows][google.cloud.dialogflow.cx.v3.Flow],
[Fulfillments][google.cloud.dialogflow.cx.v3.Fulfillment],
[Webhooks][google.cloud.dialogflow.cx.v3.Webhook],
and so on to manage the conversation flows..
[TransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
and so on to manage the conversation flows.
"""
# Create or coerce a protobuf request object.
Expand Down Expand Up @@ -688,7 +690,8 @@ async def sample_update_agent():
[Flows][google.cloud.dialogflow.cx.v3.Flow],
[Fulfillments][google.cloud.dialogflow.cx.v3.Fulfillment],
[Webhooks][google.cloud.dialogflow.cx.v3.Webhook],
and so on to manage the conversation flows..
[TransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
and so on to manage the conversation flows.
"""
# Create or coerce a protobuf request object.
Expand Down
9 changes: 6 additions & 3 deletions google/cloud/dialogflowcx_v3/services/agents/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,8 @@ def sample_get_agent():
[Flows][google.cloud.dialogflow.cx.v3.Flow],
[Fulfillments][google.cloud.dialogflow.cx.v3.Fulfillment],
[Webhooks][google.cloud.dialogflow.cx.v3.Webhook],
and so on to manage the conversation flows..
[TransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
and so on to manage the conversation flows.
"""
# Create or coerce a protobuf request object.
Expand Down Expand Up @@ -882,7 +883,8 @@ def sample_create_agent():
[Flows][google.cloud.dialogflow.cx.v3.Flow],
[Fulfillments][google.cloud.dialogflow.cx.v3.Fulfillment],
[Webhooks][google.cloud.dialogflow.cx.v3.Webhook],
and so on to manage the conversation flows..
[TransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
and so on to manage the conversation flows.
"""
# Create or coerce a protobuf request object.
Expand Down Expand Up @@ -1014,7 +1016,8 @@ def sample_update_agent():
[Flows][google.cloud.dialogflow.cx.v3.Flow],
[Fulfillments][google.cloud.dialogflow.cx.v3.Fulfillment],
[Webhooks][google.cloud.dialogflow.cx.v3.Webhook],
and so on to manage the conversation flows..
[TransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
and so on to manage the conversation flows.
"""
# Create or coerce a protobuf request object.
Expand Down
15 changes: 9 additions & 6 deletions google/cloud/dialogflowcx_v3/services/agents/transports/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,8 +640,9 @@ def __call__(
Types][google.cloud.dialogflow.cx.v3.EntityType],
[Flows][google.cloud.dialogflow.cx.v3.Flow],
[Fulfillments][google.cloud.dialogflow.cx.v3.Fulfillment],
[Webhooks][google.cloud.dialogflow.cx.v3.Webhook], and
so on to manage the conversation flows..
[Webhooks][google.cloud.dialogflow.cx.v3.Webhook],
[TransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
and so on to manage the conversation flows.
"""

Expand Down Expand Up @@ -921,8 +922,9 @@ def __call__(
Types][google.cloud.dialogflow.cx.v3.EntityType],
[Flows][google.cloud.dialogflow.cx.v3.Flow],
[Fulfillments][google.cloud.dialogflow.cx.v3.Fulfillment],
[Webhooks][google.cloud.dialogflow.cx.v3.Webhook], and
so on to manage the conversation flows..
[Webhooks][google.cloud.dialogflow.cx.v3.Webhook],
[TransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
and so on to manage the conversation flows.
"""

Expand Down Expand Up @@ -1299,8 +1301,9 @@ def __call__(
Types][google.cloud.dialogflow.cx.v3.EntityType],
[Flows][google.cloud.dialogflow.cx.v3.Flow],
[Fulfillments][google.cloud.dialogflow.cx.v3.Fulfillment],
[Webhooks][google.cloud.dialogflow.cx.v3.Webhook], and
so on to manage the conversation flows..
[Webhooks][google.cloud.dialogflow.cx.v3.Webhook],
[TransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
and so on to manage the conversation flows.
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,8 @@ async def sample_list_transition_route_groups():
parent (:class:`str`):
Required. The flow to list all transition route groups
for. Format:
``projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>``.
``projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>``
or \`projects//locations//agents/.
This corresponds to the ``parent`` field
on the ``request`` instance; if ``request`` is provided, this
Expand Down Expand Up @@ -404,7 +405,9 @@ async def sample_get_transition_route_group():
Required. The name of the
[TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
Format:
``projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>``.
``projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>``
or
``projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/transitionRouteGroups/<Transition Route Group ID>``.
This corresponds to the ``name`` field
on the ``request`` instance; if ``request`` is provided, this
Expand All @@ -417,7 +420,7 @@ async def sample_get_transition_route_group():
Returns:
google.cloud.dialogflowcx_v3.types.TransitionRouteGroup:
An TransitionRouteGroup represents a group of
A TransitionRouteGroup represents a group of
[TransitionRoutes][google.cloud.dialogflow.cx.v3.TransitionRoute]
to be used by a
[Page][google.cloud.dialogflow.cx.v3.Page].
Expand Down Expand Up @@ -525,7 +528,10 @@ async def sample_create_transition_route_group():
Required. The flow to create an
[TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
for. Format:
``projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>``.
``projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>``
or
``projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>``
for agent-level groups.
This corresponds to the ``parent`` field
on the ``request`` instance; if ``request`` is provided, this
Expand All @@ -545,7 +551,7 @@ async def sample_create_transition_route_group():
Returns:
google.cloud.dialogflowcx_v3.types.TransitionRouteGroup:
An TransitionRouteGroup represents a group of
A TransitionRouteGroup represents a group of
[TransitionRoutes][google.cloud.dialogflow.cx.v3.TransitionRoute]
to be used by a
[Page][google.cloud.dialogflow.cx.v3.Page].
Expand Down Expand Up @@ -671,7 +677,7 @@ async def sample_update_transition_route_group():
Returns:
google.cloud.dialogflowcx_v3.types.TransitionRouteGroup:
An TransitionRouteGroup represents a group of
A TransitionRouteGroup represents a group of
[TransitionRoutes][google.cloud.dialogflow.cx.v3.TransitionRoute]
to be used by a
[Page][google.cloud.dialogflow.cx.v3.Page].
Expand Down Expand Up @@ -772,7 +778,9 @@ async def sample_delete_transition_route_group():
Required. The name of the
[TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
to delete. Format:
``projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>``.
``projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>``
or
``projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/transitionRouteGroups/<Transition Route Group ID>``.
This corresponds to the ``name`` field
on the ``request`` instance; if ``request`` is provided, this
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,8 @@ def sample_list_transition_route_groups():
parent (str):
Required. The flow to list all transition route groups
for. Format:
``projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>``.
``projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>``
or \`projects//locations//agents/.
This corresponds to the ``parent`` field
on the ``request`` instance; if ``request`` is provided, this
Expand Down Expand Up @@ -724,7 +725,9 @@ def sample_get_transition_route_group():
Required. The name of the
[TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
Format:
``projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>``.
``projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>``
or
``projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/transitionRouteGroups/<Transition Route Group ID>``.
This corresponds to the ``name`` field
on the ``request`` instance; if ``request`` is provided, this
Expand All @@ -737,7 +740,7 @@ def sample_get_transition_route_group():
Returns:
google.cloud.dialogflowcx_v3.types.TransitionRouteGroup:
An TransitionRouteGroup represents a group of
A TransitionRouteGroup represents a group of
[TransitionRoutes][google.cloud.dialogflow.cx.v3.TransitionRoute]
to be used by a
[Page][google.cloud.dialogflow.cx.v3.Page].
Expand Down Expand Up @@ -849,7 +852,10 @@ def sample_create_transition_route_group():
Required. The flow to create an
[TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
for. Format:
``projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>``.
``projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>``
or
``projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>``
for agent-level groups.
This corresponds to the ``parent`` field
on the ``request`` instance; if ``request`` is provided, this
Expand All @@ -869,7 +875,7 @@ def sample_create_transition_route_group():
Returns:
google.cloud.dialogflowcx_v3.types.TransitionRouteGroup:
An TransitionRouteGroup represents a group of
A TransitionRouteGroup represents a group of
[TransitionRoutes][google.cloud.dialogflow.cx.v3.TransitionRoute]
to be used by a
[Page][google.cloud.dialogflow.cx.v3.Page].
Expand Down Expand Up @@ -1001,7 +1007,7 @@ def sample_update_transition_route_group():
Returns:
google.cloud.dialogflowcx_v3.types.TransitionRouteGroup:
An TransitionRouteGroup represents a group of
A TransitionRouteGroup represents a group of
[TransitionRoutes][google.cloud.dialogflow.cx.v3.TransitionRoute]
to be used by a
[Page][google.cloud.dialogflow.cx.v3.Page].
Expand Down Expand Up @@ -1108,7 +1114,9 @@ def sample_delete_transition_route_group():
Required. The name of the
[TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
to delete. Format:
``projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>``.
``projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>``
or
``projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/transitionRouteGroups/<Transition Route Group ID>``.
This corresponds to the ``name`` field
on the ``request`` instance; if ``request`` is provided, this
Expand Down
Loading

0 comments on commit 30e8c2b

Please sign in to comment.