Skip to content

Commit 119b895

Browse files
chore: [google-cloud-dialogflow-cx] update gapic-generator-go to 0.44.0 (#12818)
BEGIN_COMMIT_OVERRIDE chore: update gapic-generator-go to 0.44.0 END_COMMIT_OVERRIDE - [ ] Regenerate this pull request now. PiperOrigin-RevId: 645058871 Source-Link: googleapis/googleapis@d6c05f6 Source-Link: googleapis/googleapis-gen@41f9dc9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRpYWxvZ2Zsb3ctY3gvLk93bEJvdC55YW1sIiwiaCI6IjQxZjlkYzlhYzA4ZTljYjg0YTk1MWNmODUzZTZlNzFmMDQzZTJkMGQifQ== --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: ohmayr <omairnaveed@ymail.com>
1 parent 9264874 commit 119b895

33 files changed

+529
-349
lines changed

packages/google-cloud-dialogflow-cx/google/cloud/dialogflowcx_v3beta1/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@
144144
)
145145
from .types.example import (
146146
Action,
147-
ActionParameter,
148147
AgentUtterance,
149148
CreateExampleRequest,
150149
DeleteExampleRequest,
@@ -352,7 +351,7 @@
352351
Tool,
353352
UpdateToolRequest,
354353
)
355-
from .types.tool_call import ToolCallResult
354+
from .types.tool_call import ToolCall, ToolCallResult
356355
from .types.transition_route_group import (
357356
CreateTransitionRouteGroupRequest,
358357
DeleteTransitionRouteGroupRequest,
@@ -414,7 +413,6 @@
414413
"VersionsAsyncClient",
415414
"WebhooksAsyncClient",
416415
"Action",
417-
"ActionParameter",
418416
"AdvancedSettings",
419417
"Agent",
420418
"AgentUtterance",
@@ -690,6 +688,7 @@
690688
"TextInput",
691689
"TextToSpeechSettings",
692690
"Tool",
691+
"ToolCall",
693692
"ToolCallResult",
694693
"ToolUse",
695694
"ToolsClient",

packages/google-cloud-dialogflow-cx/google/cloud/dialogflowcx_v3beta1/services/agents/async_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,7 @@ async def sample_create_agent():
563563
564564
# Initialize request argument(s)
565565
agent = dialogflowcx_v3beta1.Agent()
566+
agent.start_flow = "start_flow_value"
566567
agent.display_name = "display_name_value"
567568
agent.default_language_code = "default_language_code_value"
568569
agent.time_zone = "time_zone_value"
@@ -700,6 +701,7 @@ async def sample_update_agent():
700701
701702
# Initialize request argument(s)
702703
agent = dialogflowcx_v3beta1.Agent()
704+
agent.start_flow = "start_flow_value"
703705
agent.display_name = "display_name_value"
704706
agent.default_language_code = "default_language_code_value"
705707
agent.time_zone = "time_zone_value"

packages/google-cloud-dialogflow-cx/google/cloud/dialogflowcx_v3beta1/services/agents/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1118,6 +1118,7 @@ def sample_create_agent():
11181118
11191119
# Initialize request argument(s)
11201120
agent = dialogflowcx_v3beta1.Agent()
1121+
agent.start_flow = "start_flow_value"
11211122
agent.display_name = "display_name_value"
11221123
agent.default_language_code = "default_language_code_value"
11231124
agent.time_zone = "time_zone_value"
@@ -1252,6 +1253,7 @@ def sample_update_agent():
12521253
12531254
# Initialize request argument(s)
12541255
agent = dialogflowcx_v3beta1.Agent()
1256+
agent.start_flow = "start_flow_value"
12551257
agent.display_name = "display_name_value"
12561258
agent.default_language_code = "default_language_code_value"
12571259
agent.time_zone = "time_zone_value"

packages/google-cloud-dialogflow-cx/google/cloud/dialogflowcx_v3beta1/services/flows/async_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ class FlowsAsyncClient:
8787
parse_intent_path = staticmethod(FlowsClient.parse_intent_path)
8888
page_path = staticmethod(FlowsClient.page_path)
8989
parse_page_path = staticmethod(FlowsClient.parse_page_path)
90+
tool_path = staticmethod(FlowsClient.tool_path)
91+
parse_tool_path = staticmethod(FlowsClient.parse_tool_path)
9092
transition_route_group_path = staticmethod(FlowsClient.transition_route_group_path)
9193
parse_transition_route_group_path = staticmethod(
9294
FlowsClient.parse_transition_route_group_path

packages/google-cloud-dialogflow-cx/google/cloud/dialogflowcx_v3beta1/services/flows/client.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,30 @@ def parse_page_path(path: str) -> Dict[str, str]:
293293
)
294294
return m.groupdict() if m else {}
295295

296+
@staticmethod
297+
def tool_path(
298+
project: str,
299+
location: str,
300+
agent: str,
301+
tool: str,
302+
) -> str:
303+
"""Returns a fully-qualified tool string."""
304+
return "projects/{project}/locations/{location}/agents/{agent}/tools/{tool}".format(
305+
project=project,
306+
location=location,
307+
agent=agent,
308+
tool=tool,
309+
)
310+
311+
@staticmethod
312+
def parse_tool_path(path: str) -> Dict[str, str]:
313+
"""Parses a tool path into its component segments."""
314+
m = re.match(
315+
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/agents/(?P<agent>.+?)/tools/(?P<tool>.+?)$",
316+
path,
317+
)
318+
return m.groupdict() if m else {}
319+
296320
@staticmethod
297321
def transition_route_group_path(
298322
project: str,

packages/google-cloud-dialogflow-cx/google/cloud/dialogflowcx_v3beta1/services/pages/async_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ class PagesAsyncClient:
7979
parse_intent_path = staticmethod(PagesClient.parse_intent_path)
8080
page_path = staticmethod(PagesClient.page_path)
8181
parse_page_path = staticmethod(PagesClient.parse_page_path)
82+
tool_path = staticmethod(PagesClient.tool_path)
83+
parse_tool_path = staticmethod(PagesClient.parse_tool_path)
8284
transition_route_group_path = staticmethod(PagesClient.transition_route_group_path)
8385
parse_transition_route_group_path = staticmethod(
8486
PagesClient.parse_transition_route_group_path

packages/google-cloud-dialogflow-cx/google/cloud/dialogflowcx_v3beta1/services/pages/client.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,30 @@ def parse_page_path(path: str) -> Dict[str, str]:
287287
)
288288
return m.groupdict() if m else {}
289289

290+
@staticmethod
291+
def tool_path(
292+
project: str,
293+
location: str,
294+
agent: str,
295+
tool: str,
296+
) -> str:
297+
"""Returns a fully-qualified tool string."""
298+
return "projects/{project}/locations/{location}/agents/{agent}/tools/{tool}".format(
299+
project=project,
300+
location=location,
301+
agent=agent,
302+
tool=tool,
303+
)
304+
305+
@staticmethod
306+
def parse_tool_path(path: str) -> Dict[str, str]:
307+
"""Parses a tool path into its component segments."""
308+
m = re.match(
309+
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/agents/(?P<agent>.+?)/tools/(?P<tool>.+?)$",
310+
path,
311+
)
312+
return m.groupdict() if m else {}
313+
290314
@staticmethod
291315
def transition_route_group_path(
292316
project: str,

packages/google-cloud-dialogflow-cx/google/cloud/dialogflowcx_v3beta1/services/transition_route_groups/async_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ class TransitionRouteGroupsAsyncClient:
7979
parse_intent_path = staticmethod(TransitionRouteGroupsClient.parse_intent_path)
8080
page_path = staticmethod(TransitionRouteGroupsClient.page_path)
8181
parse_page_path = staticmethod(TransitionRouteGroupsClient.parse_page_path)
82+
tool_path = staticmethod(TransitionRouteGroupsClient.tool_path)
83+
parse_tool_path = staticmethod(TransitionRouteGroupsClient.parse_tool_path)
8284
transition_route_group_path = staticmethod(
8385
TransitionRouteGroupsClient.transition_route_group_path
8486
)

packages/google-cloud-dialogflow-cx/google/cloud/dialogflowcx_v3beta1/services/transition_route_groups/client.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,30 @@ def parse_page_path(path: str) -> Dict[str, str]:
267267
)
268268
return m.groupdict() if m else {}
269269

270+
@staticmethod
271+
def tool_path(
272+
project: str,
273+
location: str,
274+
agent: str,
275+
tool: str,
276+
) -> str:
277+
"""Returns a fully-qualified tool string."""
278+
return "projects/{project}/locations/{location}/agents/{agent}/tools/{tool}".format(
279+
project=project,
280+
location=location,
281+
agent=agent,
282+
tool=tool,
283+
)
284+
285+
@staticmethod
286+
def parse_tool_path(path: str) -> Dict[str, str]:
287+
"""Parses a tool path into its component segments."""
288+
m = re.match(
289+
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/agents/(?P<agent>.+?)/tools/(?P<tool>.+?)$",
290+
path,
291+
)
292+
return m.groupdict() if m else {}
293+
270294
@staticmethod
271295
def transition_route_group_path(
272296
project: str,

packages/google-cloud-dialogflow-cx/google/cloud/dialogflowcx_v3beta1/types/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@
106106
)
107107
from .example import (
108108
Action,
109-
ActionParameter,
110109
AgentUtterance,
111110
CreateExampleRequest,
112111
DeleteExampleRequest,
@@ -314,7 +313,7 @@
314313
Tool,
315314
UpdateToolRequest,
316315
)
317-
from .tool_call import ToolCallResult
316+
from .tool_call import ToolCall, ToolCallResult
318317
from .transition_route_group import (
319318
CreateTransitionRouteGroupRequest,
320319
DeleteTransitionRouteGroupRequest,
@@ -430,7 +429,6 @@
430429
"RunContinuousTestResponse",
431430
"UpdateEnvironmentRequest",
432431
"Action",
433-
"ActionParameter",
434432
"AgentUtterance",
435433
"CreateExampleRequest",
436434
"DeleteExampleRequest",
@@ -617,6 +615,7 @@
617615
"ListToolsResponse",
618616
"Tool",
619617
"UpdateToolRequest",
618+
"ToolCall",
620619
"ToolCallResult",
621620
"CreateTransitionRouteGroupRequest",
622621
"DeleteTransitionRouteGroupRequest",

0 commit comments

Comments
 (0)