From 5e21ed454ad6a5d687e634ad4e697f1921104c47 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 14 Jun 2021 21:18:06 +0000 Subject: [PATCH] fix(v3beta1): Set agent default language code as required (#103) PiperOrigin-RevId: 378978212 Source-Link: https://github.com/googleapis/googleapis/commit/ecc3ac67807074d85054694a0574d387c862502d Source-Link: https://github.com/googleapis/googleapis-gen/commit/398a922b805f32f61d3267232f5d2f66081fa980 feat(v3beta1): Support partial response feature docs(v3beta1): Update docs of Agents, Fulfillments, SecuritySettings and Sessions --- .../cloud/dialogflowcx_v3beta1/types/agent.py | 4 ++-- .../dialogflowcx_v3beta1/types/fulfillment.py | 14 +++++++++++ .../types/security_settings.py | 6 +++-- .../dialogflowcx_v3beta1/types/session.py | 23 ++++++++++++++++++- .../dialogflowcx_v3beta1/test_sessions.py | 14 +++++++++-- 5 files changed, 54 insertions(+), 7 deletions(-) diff --git a/google/cloud/dialogflowcx_v3beta1/types/agent.py b/google/cloud/dialogflowcx_v3beta1/types/agent.py index 6dbf1caf..dd156b88 100644 --- a/google/cloud/dialogflowcx_v3beta1/types/agent.py +++ b/google/cloud/dialogflowcx_v3beta1/types/agent.py @@ -77,8 +77,8 @@ class Agent(proto.Message): Required. The human-readable name of the agent, unique within the location. default_language_code (str): - Immutable. The default language of the agent as a language - tag. See `Language + Required. Immutable. The default language of the agent as a + language tag. See `Language Support `__ for a list of the currently supported language codes. This field cannot be set by the diff --git a/google/cloud/dialogflowcx_v3beta1/types/fulfillment.py b/google/cloud/dialogflowcx_v3beta1/types/fulfillment.py index e3da30ba..f08b3d8c 100644 --- a/google/cloud/dialogflowcx_v3beta1/types/fulfillment.py +++ b/google/cloud/dialogflowcx_v3beta1/types/fulfillment.py @@ -52,6 +52,19 @@ class Fulfillment(proto.Message): webhook (str): The webhook to call. Format: ``projects//locations//agents//webhooks/``. + return_partial_responses (bool): + Whether Dialogflow should return currently + queued fulfillment response messages in + streaming APIs. If a webhook is specified, it + happens before Dialogflow invokes webhook. + Warning: + 1) This flag only affects streaming API. + Responses are still queued and returned once in + non-streaming API. + 2) The flag can be enabled in any fulfillment + but only the first 3 partial responses will be + returned. You may only want to apply it to + fulfillments that have slow webhooks. tag (str): The tag used by the webhook to identify which fulfillment is being called. This field is required if ``webhook`` is @@ -143,6 +156,7 @@ class CaseContent(proto.Message): proto.MESSAGE, number=1, message=response_message.ResponseMessage, ) webhook = proto.Field(proto.STRING, number=2,) + return_partial_responses = proto.Field(proto.BOOL, number=8,) tag = proto.Field(proto.STRING, number=3,) set_parameter_actions = proto.RepeatedField( proto.MESSAGE, number=4, message=SetParameterAction, diff --git a/google/cloud/dialogflowcx_v3beta1/types/security_settings.py b/google/cloud/dialogflowcx_v3beta1/types/security_settings.py index df231806..140249e6 100644 --- a/google/cloud/dialogflowcx_v3beta1/types/security_settings.py +++ b/google/cloud/dialogflowcx_v3beta1/types/security_settings.py @@ -165,8 +165,10 @@ class SecuritySettings(proto.Message): If empty, we use the default DLP inspect config. The template name will have one of the following formats: - ``projects/PROJECT_ID/inspectTemplates/TEMPLATE_ID`` OR - ``organizations/ORGANIZATION_ID/inspectTemplates/TEMPLATE_ID`` + ``projects//inspectTemplates/