From 1afdab3b50c98cc082b150ff408d0f07f11f9cf3 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Sat, 9 Oct 2021 14:46:29 +0000 Subject: [PATCH] docs(v2beta1): recommend AnalyzeContent for future users (#420) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 401877120 Source-Link: https://github.com/googleapis/googleapis/commit/9af371c81218f31a66f95023415ff381e56b959c Source-Link: https://github.com/googleapis/googleapis-gen/commit/0db2e0b8656681fb10f186f44e87440ba3e9d873 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMGRiMmUwYjg2NTY2ODFmYjEwZjE4NmY0NGU4NzQ0MGJhM2U5ZDg3MyJ9 --- .../services/sessions/async_client.py | 15 +++++++++++++++ .../services/sessions/client.py | 15 +++++++++++++++ .../services/sessions/transports/grpc.py | 15 +++++++++++++++ .../services/sessions/transports/grpc_asyncio.py | 15 +++++++++++++++ 4 files changed, 60 insertions(+) diff --git a/google/cloud/dialogflow_v2beta1/services/sessions/async_client.py b/google/cloud/dialogflow_v2beta1/services/sessions/async_client.py index 1ea4f0601..809a6cc66 100644 --- a/google/cloud/dialogflow_v2beta1/services/sessions/async_client.py +++ b/google/cloud/dialogflow_v2beta1/services/sessions/async_client.py @@ -193,6 +193,13 @@ async def detect_intent( because it may cause contexts and session entity types to be updated, which in turn might affect results of future queries. + If you might use `Agent + Assist `__ or + other CCAI products now or in the future, consider using + [AnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.AnalyzeContent] + instead of ``DetectIntent``. ``AnalyzeContent`` has additional + functionality for Agent Assist and other CCAI products. + Note: Always use agent versions for production traffic. See `Versions and environments `__. @@ -318,6 +325,14 @@ def streaming_detect_intent( result. This method is only available via the gRPC API (not REST). + If you might use `Agent + Assist `__ or + other CCAI products now or in the future, consider using + [StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.StreamingAnalyzeContent] + instead of ``StreamingDetectIntent``. + ``StreamingAnalyzeContent`` has additional functionality for + Agent Assist and other CCAI products. + Note: Always use agent versions for production traffic. See `Versions and environments `__. diff --git a/google/cloud/dialogflow_v2beta1/services/sessions/client.py b/google/cloud/dialogflow_v2beta1/services/sessions/client.py index 251ead75f..c65e7f3b0 100644 --- a/google/cloud/dialogflow_v2beta1/services/sessions/client.py +++ b/google/cloud/dialogflow_v2beta1/services/sessions/client.py @@ -426,6 +426,13 @@ def detect_intent( because it may cause contexts and session entity types to be updated, which in turn might affect results of future queries. + If you might use `Agent + Assist `__ or + other CCAI products now or in the future, consider using + [AnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.AnalyzeContent] + instead of ``DetectIntent``. ``AnalyzeContent`` has additional + functionality for Agent Assist and other CCAI products. + Note: Always use agent versions for production traffic. See `Versions and environments `__. @@ -542,6 +549,14 @@ def streaming_detect_intent( result. This method is only available via the gRPC API (not REST). + If you might use `Agent + Assist `__ or + other CCAI products now or in the future, consider using + [StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.StreamingAnalyzeContent] + instead of ``StreamingDetectIntent``. + ``StreamingAnalyzeContent`` has additional functionality for + Agent Assist and other CCAI products. + Note: Always use agent versions for production traffic. See `Versions and environments `__. diff --git a/google/cloud/dialogflow_v2beta1/services/sessions/transports/grpc.py b/google/cloud/dialogflow_v2beta1/services/sessions/transports/grpc.py index 818880a72..8eeec483d 100644 --- a/google/cloud/dialogflow_v2beta1/services/sessions/transports/grpc.py +++ b/google/cloud/dialogflow_v2beta1/services/sessions/transports/grpc.py @@ -240,6 +240,13 @@ def detect_intent( because it may cause contexts and session entity types to be updated, which in turn might affect results of future queries. + If you might use `Agent + Assist `__ or + other CCAI products now or in the future, consider using + [AnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.AnalyzeContent] + instead of ``DetectIntent``. ``AnalyzeContent`` has additional + functionality for Agent Assist and other CCAI products. + Note: Always use agent versions for production traffic. See `Versions and environments `__. @@ -275,6 +282,14 @@ def streaming_detect_intent( result. This method is only available via the gRPC API (not REST). + If you might use `Agent + Assist `__ or + other CCAI products now or in the future, consider using + [StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.StreamingAnalyzeContent] + instead of ``StreamingDetectIntent``. + ``StreamingAnalyzeContent`` has additional functionality for + Agent Assist and other CCAI products. + Note: Always use agent versions for production traffic. See `Versions and environments `__. diff --git a/google/cloud/dialogflow_v2beta1/services/sessions/transports/grpc_asyncio.py b/google/cloud/dialogflow_v2beta1/services/sessions/transports/grpc_asyncio.py index 26fe23a9c..6bcd2247a 100644 --- a/google/cloud/dialogflow_v2beta1/services/sessions/transports/grpc_asyncio.py +++ b/google/cloud/dialogflow_v2beta1/services/sessions/transports/grpc_asyncio.py @@ -245,6 +245,13 @@ def detect_intent( because it may cause contexts and session entity types to be updated, which in turn might affect results of future queries. + If you might use `Agent + Assist `__ or + other CCAI products now or in the future, consider using + [AnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.AnalyzeContent] + instead of ``DetectIntent``. ``AnalyzeContent`` has additional + functionality for Agent Assist and other CCAI products. + Note: Always use agent versions for production traffic. See `Versions and environments `__. @@ -281,6 +288,14 @@ def streaming_detect_intent( result. This method is only available via the gRPC API (not REST). + If you might use `Agent + Assist `__ or + other CCAI products now or in the future, consider using + [StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.StreamingAnalyzeContent] + instead of ``StreamingDetectIntent``. + ``StreamingAnalyzeContent`` has additional functionality for + Agent Assist and other CCAI products. + Note: Always use agent versions for production traffic. See `Versions and environments `__.