From 660bb2b83b295e1ed20a42bfd18801bb4519f914 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 10 May 2023 15:51:23 -0700 Subject: [PATCH] feat: add baseline model configuration for conversation summarization (#6209) PiperOrigin-RevId: 530749453 Source-Link: https://github.com/googleapis/googleapis/commit/620a0237207496cefd53296f3528c65be14f0571 Source-Link: https://github.com/googleapis/googleapis-gen/commit/300d63819c2a27ecd7f35edf88051b44ab291828 Copy-Tag: eyJwIjoiRGlhbG9nZmxvdy8uT3dsQm90LnlhbWwiLCJoIjoiMzAwZDYzODE5YzJhMjdlY2Q3ZjM1ZWRmODgwNTFiNDRhYjI5MTgyOCJ9 --- .../metadata/V2/ConversationProfile.php | Bin 11079 -> 11111 bytes .../ConversationModelConfig.php | 62 ++++++++++++++++++ 2 files changed, 62 insertions(+) diff --git a/Dialogflow/metadata/V2/ConversationProfile.php b/Dialogflow/metadata/V2/ConversationProfile.php index 02ca10d9fd81af8e2708627a04dddb00e3979022..ba3382ad786dde8543b30bdc363c7593903e9b76 100644 GIT binary patch delta 80 zcmX>e_B?DuBn#u=%~34tI9VD+xFjbl3Q2BO<-5eeST*^FSd@y89G6&9VsUCtW?pK1 iZhlH?PJCHvQE_H|o&<*iqXwsxHBgT=P*1-24PgL2i5XY` delta 48 zcmaDJc06oDBn#u>%~34tI9VPFb4gBC6q4Mm%6Ex_F>3M;u_zWPYoM4lP^@44hA;q} C3=f?E diff --git a/Dialogflow/src/V2/HumanAgentAssistantConfig/ConversationModelConfig.php b/Dialogflow/src/V2/HumanAgentAssistantConfig/ConversationModelConfig.php index 085396f1f1aa..7370cd9828f0 100644 --- a/Dialogflow/src/V2/HumanAgentAssistantConfig/ConversationModelConfig.php +++ b/Dialogflow/src/V2/HumanAgentAssistantConfig/ConversationModelConfig.php @@ -24,6 +24,19 @@ class ConversationModelConfig extends \Google\Protobuf\Internal\Message * Generated from protobuf field string model = 1 [(.google.api.resource_reference) = { */ private $model = ''; + /** + * Version of current baseline model. It will be ignored if + * [model][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig.model] + * is set. Valid versions are: + * Article Suggestion baseline model: + * - 0.9 + * - 1.0 (default) + * Summarization baseline model: + * - 1.0 + * + * Generated from protobuf field string baseline_model_version = 8; + */ + private $baseline_model_version = ''; /** * Constructor. @@ -34,6 +47,15 @@ class ConversationModelConfig extends \Google\Protobuf\Internal\Message * @type string $model * Conversation model resource name. Format: `projects//conversationModels/`. + * @type string $baseline_model_version + * Version of current baseline model. It will be ignored if + * [model][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig.model] + * is set. Valid versions are: + * Article Suggestion baseline model: + * - 0.9 + * - 1.0 (default) + * Summarization baseline model: + * - 1.0 * } */ public function __construct($data = NULL) { @@ -69,6 +91,46 @@ public function setModel($var) return $this; } + /** + * Version of current baseline model. It will be ignored if + * [model][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig.model] + * is set. Valid versions are: + * Article Suggestion baseline model: + * - 0.9 + * - 1.0 (default) + * Summarization baseline model: + * - 1.0 + * + * Generated from protobuf field string baseline_model_version = 8; + * @return string + */ + public function getBaselineModelVersion() + { + return $this->baseline_model_version; + } + + /** + * Version of current baseline model. It will be ignored if + * [model][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig.model] + * is set. Valid versions are: + * Article Suggestion baseline model: + * - 0.9 + * - 1.0 (default) + * Summarization baseline model: + * - 1.0 + * + * Generated from protobuf field string baseline_model_version = 8; + * @param string $var + * @return $this + */ + public function setBaselineModelVersion($var) + { + GPBUtil::checkString($var, True); + $this->baseline_model_version = $var; + + return $this; + } + }