From 8996bbeebbb3dcc43d627630986892147c962cd9 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 18 Dec 2024 12:19:42 -0800 Subject: [PATCH] feat: A new resource pattern value `projects/{project}/locations/{location}/authorizedViewSets/{authorized_view_set}/authorizedViews/{authorized_view}/conversations/{conversation}` added to the resource definition `contactcenter... (#7952) * feat: A new resource pattern value `projects/{project}/locations/{location}/authorizedViewSets/{authorized_view_set}/authorizedViews/{authorized_view}/conversations/{conversation}` added to the resource definition `contactcenterinsights.googleapis.com/Conversation` feat: A new field `agent_type` is added to message `.google.cloud.contactcenterinsights.v1.Conversation` feat: A new resource pattern value `projects/{project}/locations/{location}/authorizedViewSets/{authorized_view_set}/authorizedViews/{authorized_view}/conversations/{conversation}/analyses/{analysis}` added to the resource definition `contactcenterinsights.googleapis.com/Analysis` feat: A new resource pattern value `projects/{project}/locations/{location}/authorizedViewSets/{authorized_view_set}/authorizedViews/{authorized_view}/conversations/{conversation}/feedbackLabels/{feedback_label}` added to the resource definition `contactcenterinsights.googleapis.com/FeedbackLabel` PiperOrigin-RevId: 707203752 Source-Link: https://github.com/googleapis/googleapis/commit/5546362a78d82f8307eb1af4b2ac178a90cd9271 Source-Link: https://github.com/googleapis/googleapis-gen/commit/f7186d14b43d7fa905c7f64b4a2886b695667f03 Copy-Tag: eyJwIjoiQ29udGFjdENlbnRlckluc2lnaHRzLy5Pd2xCb3QueWFtbCIsImgiOiJmNzE4NmQxNGI0M2Q3ZmE5MDVjN2Y2NGI0YTI4ODZiNjk1NjY3ZjAzIn0= --- .../metadata/V1/ContactCenterInsights.php | Bin 45376 -> 45568 bytes .../metadata/V1/Resources.php | Bin 24611 -> 25191 bytes .../V1/Client/ContactCenterInsightsClient.php | 172 ++++++++++++++++++ .../QualityMetadata/AgentInfo.php | 34 ++++ ...tact_center_insights_descriptor_config.php | 6 + ...act_center_insights_rest_client_config.php | 13 ++ 6 files changed, 225 insertions(+) diff --git a/ContactCenterInsights/metadata/V1/ContactCenterInsights.php b/ContactCenterInsights/metadata/V1/ContactCenterInsights.php index f59ebb18cacdf9180d309670fe7051cc4634539c..3a19014a818bc296d881d389a25641b452fd69ae 100644 GIT binary patch delta 188 zcmX@`h^gTT(}r6ttmkeraXC+3z^b;HmDMzz=|sn7o1C|@Ooy2!Yj^dDY-YUW$dQwu zoLG{XpVxHx$z-O5jFV4yxv)e<3q?*o+ohtWpIBOwkzbTqm6{TknOYv4TB5IoCZ?}d yyQ#a5n`t}KV?V)8vx^M3c>mM6+&-Zwms~0h8aBY5{DMOP4eOHQs)#Prm> zlK7I!f>a6C$@6tQH&<|Fu&}LRdgZu+Y4V3KlgU#2uFOLHjFT6bYI>BGWaJlRR;8wd zWu}$~r7;>&=7@x`enwfYD_kU~sVlO6fPnEtbDp2=^<$Z;HK*I_0u-N}uv zs+0c+Bryvurm}4pCFM7J3kt9^O=R61Dlo1C_I;O@>kCP<$s)+(Uh` Mo^OlN0AG74rT_o{ diff --git a/ContactCenterInsights/src/V1/Client/ContactCenterInsightsClient.php b/ContactCenterInsights/src/V1/Client/ContactCenterInsightsClient.php index 0b139d236e4b..2e761a0880bc 100644 --- a/ContactCenterInsights/src/V1/Client/ContactCenterInsightsClient.php +++ b/ContactCenterInsights/src/V1/Client/ContactCenterInsightsClient.php @@ -558,6 +558,172 @@ public static function projectConversationParticipantName( ]); } + /** + * Formats a string containing the fully-qualified path to represent a + * project_location_authorized_view_set_authorized_view_conversation resource. + * + * @param string $project + * @param string $location + * @param string $authorizedViewSet + * @param string $authorizedView + * @param string $conversation + * + * @return string The formatted project_location_authorized_view_set_authorized_view_conversation resource. + */ + public static function projectLocationAuthorizedViewSetAuthorizedViewConversationName( + string $project, + string $location, + string $authorizedViewSet, + string $authorizedView, + string $conversation + ): string { + return self::getPathTemplate('projectLocationAuthorizedViewSetAuthorizedViewConversation')->render([ + 'project' => $project, + 'location' => $location, + 'authorized_view_set' => $authorizedViewSet, + 'authorized_view' => $authorizedView, + 'conversation' => $conversation, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * project_location_authorized_view_set_authorized_view_conversation_analysis + * resource. + * + * @param string $project + * @param string $location + * @param string $authorizedViewSet + * @param string $authorizedView + * @param string $conversation + * @param string $analysis + * + * @return string The formatted project_location_authorized_view_set_authorized_view_conversation_analysis resource. + */ + public static function projectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisName( + string $project, + string $location, + string $authorizedViewSet, + string $authorizedView, + string $conversation, + string $analysis + ): string { + return self::getPathTemplate('projectLocationAuthorizedViewSetAuthorizedViewConversationAnalysis')->render([ + 'project' => $project, + 'location' => $location, + 'authorized_view_set' => $authorizedViewSet, + 'authorized_view' => $authorizedView, + 'conversation' => $conversation, + 'analysis' => $analysis, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * project_location_authorized_view_set_authorized_view_conversation_feedback_label + * resource. + * + * @param string $project + * @param string $location + * @param string $authorizedViewSet + * @param string $authorizedView + * @param string $conversation + * @param string $feedbackLabel + * + * @return string The formatted project_location_authorized_view_set_authorized_view_conversation_feedback_label resource. + */ + public static function projectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelName( + string $project, + string $location, + string $authorizedViewSet, + string $authorizedView, + string $conversation, + string $feedbackLabel + ): string { + return self::getPathTemplate('projectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabel')->render( + [ + 'project' => $project, + 'location' => $location, + 'authorized_view_set' => $authorizedViewSet, + 'authorized_view' => $authorizedView, + 'conversation' => $conversation, + 'feedback_label' => $feedbackLabel, + ] + ); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * project_location_conversation resource. + * + * @param string $project + * @param string $location + * @param string $conversation + * + * @return string The formatted project_location_conversation resource. + */ + public static function projectLocationConversationName( + string $project, + string $location, + string $conversation + ): string { + return self::getPathTemplate('projectLocationConversation')->render([ + 'project' => $project, + 'location' => $location, + 'conversation' => $conversation, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * project_location_conversation_analysis resource. + * + * @param string $project + * @param string $location + * @param string $conversation + * @param string $analysis + * + * @return string The formatted project_location_conversation_analysis resource. + */ + public static function projectLocationConversationAnalysisName( + string $project, + string $location, + string $conversation, + string $analysis + ): string { + return self::getPathTemplate('projectLocationConversationAnalysis')->render([ + 'project' => $project, + 'location' => $location, + 'conversation' => $conversation, + 'analysis' => $analysis, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * project_location_conversation_feedback_label resource. + * + * @param string $project + * @param string $location + * @param string $conversation + * @param string $feedbackLabel + * + * @return string The formatted project_location_conversation_feedback_label resource. + */ + public static function projectLocationConversationFeedbackLabelName( + string $project, + string $location, + string $conversation, + string $feedbackLabel + ): string { + return self::getPathTemplate('projectLocationConversationFeedbackLabel')->render([ + 'project' => $project, + 'location' => $location, + 'conversation' => $conversation, + 'feedback_label' => $feedbackLabel, + ]); + } + /** * Formats a string containing the fully-qualified path to represent a * project_location_conversation_participant resource. @@ -745,6 +911,12 @@ public static function viewName(string $project, string $location, string $view) * - participant: projects/{project}/conversations/{conversation}/participants/{participant} * - phraseMatcher: projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher} * - projectConversationParticipant: projects/{project}/conversations/{conversation}/participants/{participant} + * - projectLocationAuthorizedViewSetAuthorizedViewConversation: projects/{project}/locations/{location}/authorizedViewSets/{authorized_view_set}/authorizedViews/{authorized_view}/conversations/{conversation} + * - projectLocationAuthorizedViewSetAuthorizedViewConversationAnalysis: projects/{project}/locations/{location}/authorizedViewSets/{authorized_view_set}/authorizedViews/{authorized_view}/conversations/{conversation}/analyses/{analysis} + * - projectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabel: projects/{project}/locations/{location}/authorizedViewSets/{authorized_view_set}/authorizedViews/{authorized_view}/conversations/{conversation}/feedbackLabels/{feedback_label} + * - projectLocationConversation: projects/{project}/locations/{location}/conversations/{conversation} + * - projectLocationConversationAnalysis: projects/{project}/locations/{location}/conversations/{conversation}/analyses/{analysis} + * - projectLocationConversationFeedbackLabel: projects/{project}/locations/{location}/conversations/{conversation}/feedbackLabels/{feedback_label} * - projectLocationConversationParticipant: projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant} * - qaQuestion: projects/{project}/locations/{location}/qaScorecards/{qa_scorecard}/revisions/{revision}/qaQuestions/{qa_question} * - qaScorecard: projects/{project}/locations/{location}/qaScorecards/{qa_scorecard} diff --git a/ContactCenterInsights/src/V1/Conversation/QualityMetadata/AgentInfo.php b/ContactCenterInsights/src/V1/Conversation/QualityMetadata/AgentInfo.php index ac0dbc6bc718..a677c3a0b866 100644 --- a/ContactCenterInsights/src/V1/Conversation/QualityMetadata/AgentInfo.php +++ b/ContactCenterInsights/src/V1/Conversation/QualityMetadata/AgentInfo.php @@ -40,6 +40,12 @@ class AgentInfo extends \Google\Protobuf\Internal\Message * Generated from protobuf field string disposition_code = 4; */ protected $disposition_code = ''; + /** + * The agent type, e.g. HUMAN_AGENT. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.ConversationParticipant.Role agent_type = 5; + */ + protected $agent_type = 0; /** * Constructor. @@ -56,6 +62,8 @@ class AgentInfo extends \Google\Protobuf\Internal\Message * @type string $disposition_code * A user-provided string indicating the outcome of the agent's segment of * the call. + * @type int $agent_type + * The agent type, e.g. HUMAN_AGENT. * } */ public function __construct($data = NULL) { @@ -169,6 +177,32 @@ public function setDispositionCode($var) return $this; } + /** + * The agent type, e.g. HUMAN_AGENT. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.ConversationParticipant.Role agent_type = 5; + * @return int + */ + public function getAgentType() + { + return $this->agent_type; + } + + /** + * The agent type, e.g. HUMAN_AGENT. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.ConversationParticipant.Role agent_type = 5; + * @param int $var + * @return $this + */ + public function setAgentType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\ContactCenterInsights\V1\ConversationParticipant\Role::class); + $this->agent_type = $var; + + return $this; + } + } diff --git a/ContactCenterInsights/src/V1/resources/contact_center_insights_descriptor_config.php b/ContactCenterInsights/src/V1/resources/contact_center_insights_descriptor_config.php index 482951657a19..d4c32359db92 100644 --- a/ContactCenterInsights/src/V1/resources/contact_center_insights_descriptor_config.php +++ b/ContactCenterInsights/src/V1/resources/contact_center_insights_descriptor_config.php @@ -1134,6 +1134,12 @@ 'participant' => 'projects/{project}/conversations/{conversation}/participants/{participant}', 'phraseMatcher' => 'projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}', 'projectConversationParticipant' => 'projects/{project}/conversations/{conversation}/participants/{participant}', + 'projectLocationAuthorizedViewSetAuthorizedViewConversation' => 'projects/{project}/locations/{location}/authorizedViewSets/{authorized_view_set}/authorizedViews/{authorized_view}/conversations/{conversation}', + 'projectLocationAuthorizedViewSetAuthorizedViewConversationAnalysis' => 'projects/{project}/locations/{location}/authorizedViewSets/{authorized_view_set}/authorizedViews/{authorized_view}/conversations/{conversation}/analyses/{analysis}', + 'projectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabel' => 'projects/{project}/locations/{location}/authorizedViewSets/{authorized_view_set}/authorizedViews/{authorized_view}/conversations/{conversation}/feedbackLabels/{feedback_label}', + 'projectLocationConversation' => 'projects/{project}/locations/{location}/conversations/{conversation}', + 'projectLocationConversationAnalysis' => 'projects/{project}/locations/{location}/conversations/{conversation}/analyses/{analysis}', + 'projectLocationConversationFeedbackLabel' => 'projects/{project}/locations/{location}/conversations/{conversation}/feedbackLabels/{feedback_label}', 'projectLocationConversationParticipant' => 'projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant}', 'qaQuestion' => 'projects/{project}/locations/{location}/qaScorecards/{qa_scorecard}/revisions/{revision}/qaQuestions/{qa_question}', 'qaScorecard' => 'projects/{project}/locations/{location}/qaScorecards/{qa_scorecard}', diff --git a/ContactCenterInsights/src/V1/resources/contact_center_insights_rest_client_config.php b/ContactCenterInsights/src/V1/resources/contact_center_insights_rest_client_config.php index 0f0f4be5ef00..868ef5aa4bdf 100644 --- a/ContactCenterInsights/src/V1/resources/contact_center_insights_rest_client_config.php +++ b/ContactCenterInsights/src/V1/resources/contact_center_insights_rest_client_config.php @@ -85,6 +85,12 @@ 'CalculateStats' => [ 'method' => 'get', 'uriTemplate' => '/v1/{location=projects/*/locations/*}/conversations:calculateStats', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{location=projects/*/locations/*/authorizedViewSet/*/authorizedView/*}:calculateStats', + ], + ], 'placeholders' => [ 'location' => [ 'getters' => [ @@ -698,6 +704,13 @@ 'method' => 'post', 'uriTemplate' => '/v1/{location=projects/*/locations/*}:queryMetrics', 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{location=projects/*/locations/*/authorizedViewSet/*/authorizedView/*}:queryMetrics', + 'body' => '*', + ], + ], 'placeholders' => [ 'location' => [ 'getters' => [