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

Commit f299378

Browse files
feat: add a way to specify the conversation automatic analysis percentage 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: https://github.com/googleapis/googleapis-gen/commit/7e3cf93300045e9a5cbfb19002d1cd4cb93b06d0 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>
1 parent 5669194 commit f299378

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

google/cloud/contact_center_insights_v1/types/resources.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1697,6 +1697,10 @@ class AnalysisConfig(proto.Message):
16971697
runtime_integration_analysis_percentage (float):
16981698
Percentage of conversations created using Dialogflow runtime
16991699
integration to analyze automatically, between [0, 100].
1700+
upload_conversation_analysis_percentage (float):
1701+
Percentage of conversations created using the
1702+
UploadConversation endpoint to analyze automatically,
1703+
between [0, 100].
17001704
annotator_selector (google.cloud.contact_center_insights_v1.types.AnnotatorSelector):
17011705
To select the annotators to run and the
17021706
phrase matchers to use (if any). If not
@@ -1707,6 +1711,10 @@ class AnalysisConfig(proto.Message):
17071711
proto.DOUBLE,
17081712
number=1,
17091713
)
1714+
upload_conversation_analysis_percentage: float = proto.Field(
1715+
proto.DOUBLE,
1716+
number=6,
1717+
)
17101718
annotator_selector: "AnnotatorSelector" = proto.Field(
17111719
proto.MESSAGE,
17121720
number=5,

samples/generated_samples/snippet_metadata_google.cloud.contactcenterinsights.v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-contact-center-insights",
11-
"version": "1.8.0"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

tests/unit/gapic/contact_center_insights_v1/test_contact_center_insights.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20413,6 +20413,7 @@ def test_update_settings_rest(request_type):
2041320413
"pubsub_notification_settings": {},
2041420414
"analysis_config": {
2041520415
"runtime_integration_analysis_percentage": 0.4167,
20416+
"upload_conversation_analysis_percentage": 0.41590000000000005,
2041620417
"annotator_selector": {
2041720418
"run_interruption_annotator": True,
2041820419
"run_silence_annotator": True,
@@ -20618,6 +20619,7 @@ def test_update_settings_rest_bad_request(
2061820619
"pubsub_notification_settings": {},
2061920620
"analysis_config": {
2062020621
"runtime_integration_analysis_percentage": 0.4167,
20622+
"upload_conversation_analysis_percentage": 0.41590000000000005,
2062120623
"annotator_selector": {
2062220624
"run_interruption_annotator": True,
2062320625
"run_silence_annotator": True,

0 commit comments

Comments
 (0)