Skip to content
This repository has been archived by the owner on Jul 6, 2023. It is now read-only.

Commit

Permalink
feat: add a way to specify the conversation automatic analysis percen…
Browse files Browse the repository at this point in the history
…tage for the UploadConversation API when creating Analyses in Insights (#296)

* feat: add a way to specify the conversation automatic analysis percentage for the UploadConversation API when creating Analyses in Insights

PiperOrigin-RevId: 513416013

Source-Link: googleapis/googleapis@dacdbc8

Source-Link: googleapis/googleapis-gen@7e3cf93
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiN2UzY2Y5MzMwMDA0NWU5YTVjYmZiMTkwMDJkMWNkNGNiOTNiMDZkMCJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed Mar 2, 2023
1 parent 5669194 commit f299378
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
8 changes: 8 additions & 0 deletions google/cloud/contact_center_insights_v1/types/resources.py
Expand Up @@ -1697,6 +1697,10 @@ class AnalysisConfig(proto.Message):
runtime_integration_analysis_percentage (float):
Percentage of conversations created using Dialogflow runtime
integration to analyze automatically, between [0, 100].
upload_conversation_analysis_percentage (float):
Percentage of conversations created using the
UploadConversation endpoint to analyze automatically,
between [0, 100].
annotator_selector (google.cloud.contact_center_insights_v1.types.AnnotatorSelector):
To select the annotators to run and the
phrase matchers to use (if any). If not
Expand All @@ -1707,6 +1711,10 @@ class AnalysisConfig(proto.Message):
proto.DOUBLE,
number=1,
)
upload_conversation_analysis_percentage: float = proto.Field(
proto.DOUBLE,
number=6,
)
annotator_selector: "AnnotatorSelector" = proto.Field(
proto.MESSAGE,
number=5,
Expand Down
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-contact-center-insights",
"version": "1.8.0"
"version": "0.1.0"
},
"snippets": [
{
Expand Down
Expand Up @@ -20413,6 +20413,7 @@ def test_update_settings_rest(request_type):
"pubsub_notification_settings": {},
"analysis_config": {
"runtime_integration_analysis_percentage": 0.4167,
"upload_conversation_analysis_percentage": 0.41590000000000005,
"annotator_selector": {
"run_interruption_annotator": True,
"run_silence_annotator": True,
Expand Down Expand Up @@ -20618,6 +20619,7 @@ def test_update_settings_rest_bad_request(
"pubsub_notification_settings": {},
"analysis_config": {
"runtime_integration_analysis_percentage": 0.4167,
"upload_conversation_analysis_percentage": 0.41590000000000005,
"annotator_selector": {
"run_interruption_annotator": True,
"run_silence_annotator": True,
Expand Down

0 comments on commit f299378

Please sign in to comment.