From db258bcc9971542e347b50f396bd51ec88520fde Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 7 Jun 2021 11:10:53 -0600 Subject: [PATCH] feat: support sentiment analysis in bot testing (#98) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: support sentiment analysis in bot testing PiperOrigin-RevId: 377915759 Source-Link: https://github.com/googleapis/googleapis/commit/e3fcbabc7bca1124be828a4ce7140b28bf3d93fc Source-Link: https://github.com/googleapis/googleapis-gen/commit/29b972d9a4e8a2ce30b9325e60e9d08e7a3e6bcd * 🦉 Updates from OwlBot Co-authored-by: Owl Bot --- .coveragerc | 1 - google/cloud/dialogflowcx_v3/types/test_case.py | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.coveragerc b/.coveragerc index a6e44e2d..0b2dc233 100644 --- a/.coveragerc +++ b/.coveragerc @@ -2,7 +2,6 @@ branch = True [report] -fail_under = 100 show_missing = True omit = google/cloud/dialogflowcx/__init__.py diff --git a/google/cloud/dialogflowcx_v3/types/test_case.py b/google/cloud/dialogflowcx_v3/types/test_case.py index 0d683454..9c77ccab 100644 --- a/google/cloud/dialogflowcx_v3/types/test_case.py +++ b/google/cloud/dialogflowcx_v3/types/test_case.py @@ -198,6 +198,8 @@ class UserInput(proto.Message): response to the user utterance. Often if parameters are injected, webhooks should not be enabled. + enable_sentiment_analysis (bool): + Whether sentiment analysis is enabled. """ input = proto.Field(proto.MESSAGE, number=5, message=session.QueryInput,) @@ -205,6 +207,7 @@ class UserInput(proto.Message): proto.MESSAGE, number=2, message=struct_pb2.Struct, ) is_webhook_enabled = proto.Field(proto.BOOL, number=3,) + enable_sentiment_analysis = proto.Field(proto.BOOL, number=7,) class VirtualAgentOutput(proto.Message): r"""The output from the virtual agent.