From a5dcc8a9ad83345312c27c74ae5a4dc36c4800c2 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 16 Jun 2021 00:58:09 +0000 Subject: [PATCH] feat: added Automated agent reply type and allow cancellation flag for partial response feature (#314) PiperOrigin-RevId: 379370373 Source-Link: https://github.com/googleapis/googleapis/commit/58187afe44fbbe89dec2b70b6c2b405f88b7d295 Source-Link: https://github.com/googleapis/googleapis-gen/commit/6b2c084f0796c518cd101914dbf81ffb923642cf --- .../cloud/dialogflow_v2/types/participant.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/packages/google-cloud-dialogflow/google/cloud/dialogflow_v2/types/participant.py b/packages/google-cloud-dialogflow/google/cloud/dialogflow_v2/types/participant.py index 7f5805c42736..bbc03af91594 100644 --- a/packages/google-cloud-dialogflow/google/cloud/dialogflow_v2/types/participant.py +++ b/packages/google-cloud-dialogflow/google/cloud/dialogflow_v2/types/participant.py @@ -469,11 +469,29 @@ class AutomatedAgentReply(proto.Message): Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call. + automated_agent_reply_type (google.cloud.dialogflow_v2.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, message=session.DetectIntentResponse, ) + automated_agent_reply_type = proto.Field( + proto.ENUM, number=7, enum=AutomatedAgentReplyType, + ) + allow_cancellation = proto.Field(proto.BOOL, number=8,) class ArticleAnswer(proto.Message):