Skip to content

Commit 806bd71

Browse files
feat(v3): Add support for generator settings on fulfillment (#14054)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 778681964 Source-Link: googleapis/googleapis@24cab82 Source-Link: googleapis/googleapis-gen@9723ee7 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRpYWxvZ2Zsb3ctY3gvLk93bEJvdC55YW1sIiwiaCI6Ijk3MjNlZTdlZGNhNDE2ZjI2ZWNjYjQyZTQ0MzdkMzlhMGQzNzJmMDMifQ== --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent cde9590 commit 806bd71

File tree

21 files changed

+664
-281
lines changed

21 files changed

+664
-281
lines changed

packages/google-cloud-dialogflow-cx/google/cloud/dialogflowcx/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "1.41.1" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-dialogflow-cx/google/cloud/dialogflowcx_v3/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "1.41.1" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ class FlowsAsyncClient:
9191
parse_flow_validation_result_path = staticmethod(
9292
FlowsClient.parse_flow_validation_result_path
9393
)
94+
generator_path = staticmethod(FlowsClient.generator_path)
95+
parse_generator_path = staticmethod(FlowsClient.parse_generator_path)
9496
intent_path = staticmethod(FlowsClient.intent_path)
9597
parse_intent_path = staticmethod(FlowsClient.parse_intent_path)
9698
page_path = staticmethod(FlowsClient.page_path)

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,30 @@ def parse_flow_validation_result_path(path: str) -> Dict[str, str]:
254254
)
255255
return m.groupdict() if m else {}
256256

257+
@staticmethod
258+
def generator_path(
259+
project: str,
260+
location: str,
261+
agent: str,
262+
generator: str,
263+
) -> str:
264+
"""Returns a fully-qualified generator string."""
265+
return "projects/{project}/locations/{location}/agents/{agent}/generators/{generator}".format(
266+
project=project,
267+
location=location,
268+
agent=agent,
269+
generator=generator,
270+
)
271+
272+
@staticmethod
273+
def parse_generator_path(path: str) -> Dict[str, str]:
274+
"""Parses a generator path into its component segments."""
275+
m = re.match(
276+
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/agents/(?P<agent>.+?)/generators/(?P<generator>.+?)$",
277+
path,
278+
)
279+
return m.groupdict() if m else {}
280+
257281
@staticmethod
258282
def intent_path(
259283
project: str,

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ class PagesAsyncClient:
8383
parse_entity_type_path = staticmethod(PagesClient.parse_entity_type_path)
8484
flow_path = staticmethod(PagesClient.flow_path)
8585
parse_flow_path = staticmethod(PagesClient.parse_flow_path)
86+
generator_path = staticmethod(PagesClient.generator_path)
87+
parse_generator_path = staticmethod(PagesClient.parse_generator_path)
8688
intent_path = staticmethod(PagesClient.intent_path)
8789
parse_intent_path = staticmethod(PagesClient.parse_intent_path)
8890
page_path = staticmethod(PagesClient.page_path)

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,30 @@ def parse_flow_path(path: str) -> Dict[str, str]:
248248
)
249249
return m.groupdict() if m else {}
250250

251+
@staticmethod
252+
def generator_path(
253+
project: str,
254+
location: str,
255+
agent: str,
256+
generator: str,
257+
) -> str:
258+
"""Returns a fully-qualified generator string."""
259+
return "projects/{project}/locations/{location}/agents/{agent}/generators/{generator}".format(
260+
project=project,
261+
location=location,
262+
agent=agent,
263+
generator=generator,
264+
)
265+
266+
@staticmethod
267+
def parse_generator_path(path: str) -> Dict[str, str]:
268+
"""Parses a generator path into its component segments."""
269+
m = re.match(
270+
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/agents/(?P<agent>.+?)/generators/(?P<generator>.+?)$",
271+
path,
272+
)
273+
return m.groupdict() if m else {}
274+
251275
@staticmethod
252276
def intent_path(
253277
project: str,

packages/google-cloud-dialogflow-cx/google/cloud/dialogflowcx_v3/services/sessions/async_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ class SessionsAsyncClient:
8888
parse_entity_type_path = staticmethod(SessionsClient.parse_entity_type_path)
8989
flow_path = staticmethod(SessionsClient.flow_path)
9090
parse_flow_path = staticmethod(SessionsClient.parse_flow_path)
91+
generator_path = staticmethod(SessionsClient.generator_path)
92+
parse_generator_path = staticmethod(SessionsClient.parse_generator_path)
9193
intent_path = staticmethod(SessionsClient.intent_path)
9294
parse_intent_path = staticmethod(SessionsClient.parse_intent_path)
9395
page_path = staticmethod(SessionsClient.page_path)

packages/google-cloud-dialogflow-cx/google/cloud/dialogflowcx_v3/services/sessions/client.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,30 @@ def parse_flow_path(path: str) -> Dict[str, str]:
272272
)
273273
return m.groupdict() if m else {}
274274

275+
@staticmethod
276+
def generator_path(
277+
project: str,
278+
location: str,
279+
agent: str,
280+
generator: str,
281+
) -> str:
282+
"""Returns a fully-qualified generator string."""
283+
return "projects/{project}/locations/{location}/agents/{agent}/generators/{generator}".format(
284+
project=project,
285+
location=location,
286+
agent=agent,
287+
generator=generator,
288+
)
289+
290+
@staticmethod
291+
def parse_generator_path(path: str) -> Dict[str, str]:
292+
"""Parses a generator path into its component segments."""
293+
m = re.match(
294+
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/agents/(?P<agent>.+?)/generators/(?P<generator>.+?)$",
295+
path,
296+
)
297+
return m.groupdict() if m else {}
298+
275299
@staticmethod
276300
def intent_path(
277301
project: str,

packages/google-cloud-dialogflow-cx/google/cloud/dialogflowcx_v3/services/test_cases/async_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ class TestCasesAsyncClient:
9292
parse_environment_path = staticmethod(TestCasesClient.parse_environment_path)
9393
flow_path = staticmethod(TestCasesClient.flow_path)
9494
parse_flow_path = staticmethod(TestCasesClient.parse_flow_path)
95+
generator_path = staticmethod(TestCasesClient.generator_path)
96+
parse_generator_path = staticmethod(TestCasesClient.parse_generator_path)
9597
intent_path = staticmethod(TestCasesClient.intent_path)
9698
parse_intent_path = staticmethod(TestCasesClient.parse_intent_path)
9799
page_path = staticmethod(TestCasesClient.page_path)

packages/google-cloud-dialogflow-cx/google/cloud/dialogflowcx_v3/services/test_cases/client.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,30 @@ def parse_flow_path(path: str) -> Dict[str, str]:
299299
)
300300
return m.groupdict() if m else {}
301301

302+
@staticmethod
303+
def generator_path(
304+
project: str,
305+
location: str,
306+
agent: str,
307+
generator: str,
308+
) -> str:
309+
"""Returns a fully-qualified generator string."""
310+
return "projects/{project}/locations/{location}/agents/{agent}/generators/{generator}".format(
311+
project=project,
312+
location=location,
313+
agent=agent,
314+
generator=generator,
315+
)
316+
317+
@staticmethod
318+
def parse_generator_path(path: str) -> Dict[str, str]:
319+
"""Parses a generator path into its component segments."""
320+
m = re.match(
321+
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/agents/(?P<agent>.+?)/generators/(?P<generator>.+?)$",
322+
path,
323+
)
324+
return m.groupdict() if m else {}
325+
302326
@staticmethod
303327
def intent_path(
304328
project: str,

0 commit comments

Comments
 (0)