From 1d34763b13902162f567fac7768d08619f77f81e 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 19:18:03 +0000 Subject: [PATCH] feat(v2beta1): added Automated agent reply type and allow cancellation flag for partial response feature (#311) PiperOrigin-RevId: 378977785 Source-Link: https://github.com/googleapis/googleapis/commit/018bc85c797c8e7f5243b9531a7cd2e6a1bc72b4 Source-Link: https://github.com/googleapis/googleapis-gen/commit/fa7371cc1e7d5749294bc21e101aca14afb39e85 --- .coveragerc | 1 - .../dialogflow_v2beta1/types/participant.py | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/.coveragerc b/.coveragerc index 3ce461881..09666453e 100644 --- a/.coveragerc +++ b/.coveragerc @@ -2,7 +2,6 @@ branch = True [report] -fail_under = 100 show_missing = True omit = google/cloud/dialogflow/__init__.py diff --git a/google/cloud/dialogflow_v2beta1/types/participant.py b/google/cloud/dialogflow_v2beta1/types/participant.py index caba6e7a3..df355b71c 100644 --- a/google/cloud/dialogflow_v2beta1/types/participant.py +++ b/google/cloud/dialogflow_v2beta1/types/participant.py @@ -314,8 +314,22 @@ class AutomatedAgentReply(proto.Message): The collection of current Dialogflow CX agent session parameters at the time of this response. Deprecated: Use ``parameters`` instead. + automated_agent_reply_type (google.cloud.dialogflow_v2beta1.types.AutomatedAgentReply.AutomatedAgentReplyType): + AutomatedAgentReply type. + allow_cancellation (bool): + Indicates whether the partial automated agent + reply is interruptible when a later reply + message arrives. e.g. if the agent specified + some music as partial response, it can be + cancelled. """ + class AutomatedAgentReplyType(proto.Enum): + r"""Represents different automated agent reply types.""" + AUTOMATED_AGENT_REPLY_TYPE_UNSPECIFIED = 0 + PARTIAL = 1 + FINAL = 2 + detect_intent_response = proto.Field( proto.MESSAGE, number=1, oneof="response", message=session.DetectIntentResponse, ) @@ -329,6 +343,10 @@ class AutomatedAgentReply(proto.Message): cx_session_parameters = proto.Field( proto.MESSAGE, number=6, message=struct_pb2.Struct, ) + automated_agent_reply_type = proto.Field( + proto.ENUM, number=7, enum=AutomatedAgentReplyType, + ) + allow_cancellation = proto.Field(proto.BOOL, number=8,) class SuggestionFeature(proto.Message):