-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add the enable_partial_automated_agent_reply flag (#11766)
BEGIN_COMMIT_OVERRIDE feat: Add the enable_partial_automated_agent_reply flag feat: Remove backend API deadline END_COMMIT_OVERRIDE - [ ] Regenerate this pull request now. chore: remove extraneous backend config PiperOrigin-RevId: 569315665 Source-Link: googleapis/googleapis@a24bc56 Source-Link: googleapis/googleapis-gen@afd0643 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRpYWxvZ2Zsb3cvLk93bEJvdC55YW1sIiwiaCI6ImFmZDA2NDM2NWY5YTI2NmIzMjk1MDA2ODA1NGIzYzJjNWRhMzc0YmQifQ== BEGIN_NESTED_COMMIT feat: Add the enable_partial_automated_agent_reply flag feat: Remove backend API deadline PiperOrigin-RevId: 568908437 Source-Link: googleapis/googleapis@56f0766 Source-Link: googleapis/googleapis-gen@5949657 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRpYWxvZ2Zsb3cvLk93bEJvdC55YW1sIiwiaCI6IjU5NDk2NTc1MTlmOGYwYjc1MmUwZTg4N2M2MWU3MzdlYjViN2JiMjIifQ== END_NESTED_COMMIT --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: ohmayr <omairnaveed@ymail.com>
- Loading branch information
1 parent
64cb74e
commit 2996e9b
Showing
409 changed files
with
54,166 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
...dialogflow/samples/generated_samples/dialogflow_v2_generated_agents_delete_agent_async.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2023 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# Generated code. DO NOT EDIT! | ||
# | ||
# Snippet for DeleteAgent | ||
# NOTE: This snippet has been automatically generated for illustrative purposes only. | ||
# It may require modifications to work in your environment. | ||
|
||
# To install the latest published package dependency, execute the following: | ||
# python3 -m pip install google-cloud-dialogflow | ||
|
||
|
||
# [START dialogflow_v2_generated_Agents_DeleteAgent_async] | ||
# This snippet has been automatically generated and should be regarded as a | ||
# code template only. | ||
# It will require modifications to work: | ||
# - It may require correct/in-range values for request initialization. | ||
# - It may require specifying regional endpoints when creating the service | ||
# client as shown in: | ||
# https://googleapis.dev/python/google-api-core/latest/client_options.html | ||
from google.cloud import dialogflow_v2 | ||
|
||
|
||
async def sample_delete_agent(): | ||
# Create a client | ||
client = dialogflow_v2.AgentsAsyncClient() | ||
|
||
# Initialize request argument(s) | ||
request = dialogflow_v2.DeleteAgentRequest( | ||
parent="parent_value", | ||
) | ||
|
||
# Make the request | ||
await client.delete_agent(request=request) | ||
|
||
|
||
# [END dialogflow_v2_generated_Agents_DeleteAgent_async] |
50 changes: 50 additions & 0 deletions
50
...-dialogflow/samples/generated_samples/dialogflow_v2_generated_agents_delete_agent_sync.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2023 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# Generated code. DO NOT EDIT! | ||
# | ||
# Snippet for DeleteAgent | ||
# NOTE: This snippet has been automatically generated for illustrative purposes only. | ||
# It may require modifications to work in your environment. | ||
|
||
# To install the latest published package dependency, execute the following: | ||
# python3 -m pip install google-cloud-dialogflow | ||
|
||
|
||
# [START dialogflow_v2_generated_Agents_DeleteAgent_sync] | ||
# This snippet has been automatically generated and should be regarded as a | ||
# code template only. | ||
# It will require modifications to work: | ||
# - It may require correct/in-range values for request initialization. | ||
# - It may require specifying regional endpoints when creating the service | ||
# client as shown in: | ||
# https://googleapis.dev/python/google-api-core/latest/client_options.html | ||
from google.cloud import dialogflow_v2 | ||
|
||
|
||
def sample_delete_agent(): | ||
# Create a client | ||
client = dialogflow_v2.AgentsClient() | ||
|
||
# Initialize request argument(s) | ||
request = dialogflow_v2.DeleteAgentRequest( | ||
parent="parent_value", | ||
) | ||
|
||
# Make the request | ||
client.delete_agent(request=request) | ||
|
||
|
||
# [END dialogflow_v2_generated_Agents_DeleteAgent_sync] |
57 changes: 57 additions & 0 deletions
57
...dialogflow/samples/generated_samples/dialogflow_v2_generated_agents_export_agent_async.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2023 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# Generated code. DO NOT EDIT! | ||
# | ||
# Snippet for ExportAgent | ||
# NOTE: This snippet has been automatically generated for illustrative purposes only. | ||
# It may require modifications to work in your environment. | ||
|
||
# To install the latest published package dependency, execute the following: | ||
# python3 -m pip install google-cloud-dialogflow | ||
|
||
|
||
# [START dialogflow_v2_generated_Agents_ExportAgent_async] | ||
# This snippet has been automatically generated and should be regarded as a | ||
# code template only. | ||
# It will require modifications to work: | ||
# - It may require correct/in-range values for request initialization. | ||
# - It may require specifying regional endpoints when creating the service | ||
# client as shown in: | ||
# https://googleapis.dev/python/google-api-core/latest/client_options.html | ||
from google.cloud import dialogflow_v2 | ||
|
||
|
||
async def sample_export_agent(): | ||
# Create a client | ||
client = dialogflow_v2.AgentsAsyncClient() | ||
|
||
# Initialize request argument(s) | ||
request = dialogflow_v2.ExportAgentRequest( | ||
parent="parent_value", | ||
agent_uri="agent_uri_value", | ||
) | ||
|
||
# Make the request | ||
operation = client.export_agent(request=request) | ||
|
||
print("Waiting for operation to complete...") | ||
|
||
response = (await operation).result() | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END dialogflow_v2_generated_Agents_ExportAgent_async] |
57 changes: 57 additions & 0 deletions
57
...-dialogflow/samples/generated_samples/dialogflow_v2_generated_agents_export_agent_sync.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2023 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# Generated code. DO NOT EDIT! | ||
# | ||
# Snippet for ExportAgent | ||
# NOTE: This snippet has been automatically generated for illustrative purposes only. | ||
# It may require modifications to work in your environment. | ||
|
||
# To install the latest published package dependency, execute the following: | ||
# python3 -m pip install google-cloud-dialogflow | ||
|
||
|
||
# [START dialogflow_v2_generated_Agents_ExportAgent_sync] | ||
# This snippet has been automatically generated and should be regarded as a | ||
# code template only. | ||
# It will require modifications to work: | ||
# - It may require correct/in-range values for request initialization. | ||
# - It may require specifying regional endpoints when creating the service | ||
# client as shown in: | ||
# https://googleapis.dev/python/google-api-core/latest/client_options.html | ||
from google.cloud import dialogflow_v2 | ||
|
||
|
||
def sample_export_agent(): | ||
# Create a client | ||
client = dialogflow_v2.AgentsClient() | ||
|
||
# Initialize request argument(s) | ||
request = dialogflow_v2.ExportAgentRequest( | ||
parent="parent_value", | ||
agent_uri="agent_uri_value", | ||
) | ||
|
||
# Make the request | ||
operation = client.export_agent(request=request) | ||
|
||
print("Waiting for operation to complete...") | ||
|
||
response = operation.result() | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END dialogflow_v2_generated_Agents_ExportAgent_sync] |
Oops, something went wrong.