From 117ae7293c8cf472e900d56c90225c49d6ca2dbc Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 2 Mar 2023 10:43:45 -0500 Subject: [PATCH] feat: [contactcenterinsights] add a way to specify the conversation automatic analysis percentage for the UploadConversation API when creating Analyses in Insights (#4041) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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: https://github.com/googleapis/googleapis/commit/dacdbc86a108e19ce9363bf66b10385741936d92 Source-Link: https://github.com/googleapis/googleapis-gen/commit/7e3cf93300045e9a5cbfb19002d1cd4cb93b06d0 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbnRhY3RjZW50ZXJpbnNpZ2h0cy8uT3dsQm90LnlhbWwiLCJoIjoiN2UzY2Y5MzMwMDA0NWU5YTVjYmZiMTkwMDJkMWNkNGNiOTNiMDZkMCJ9 * 🦉 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 Co-authored-by: danieljbruce --- .../contactcenterinsights/v1/resources.proto | 4 ++++ .../protos/protos.d.ts | 6 +++++ .../protos/protos.js | 23 +++++++++++++++++++ .../protos/protos.json | 4 ++++ ...google.cloud.contactcenterinsights.v1.json | 2 +- 5 files changed, 38 insertions(+), 1 deletion(-) diff --git a/packages/google-cloud-contactcenterinsights/protos/google/cloud/contactcenterinsights/v1/resources.proto b/packages/google-cloud-contactcenterinsights/protos/google/cloud/contactcenterinsights/v1/resources.proto index 9c0802b77f1..966680be169 100644 --- a/packages/google-cloud-contactcenterinsights/protos/google/cloud/contactcenterinsights/v1/resources.proto +++ b/packages/google-cloud-contactcenterinsights/protos/google/cloud/contactcenterinsights/v1/resources.proto @@ -865,6 +865,10 @@ message Settings { // to analyze automatically, between [0, 100]. double runtime_integration_analysis_percentage = 1; + // Percentage of conversations created using the UploadConversation endpoint + // to analyze automatically, between [0, 100]. + double upload_conversation_analysis_percentage = 6; + // To select the annotators to run and the phrase matchers to use // (if any). If not specified, all annotators will be run. AnnotatorSelector annotator_selector = 5; diff --git a/packages/google-cloud-contactcenterinsights/protos/protos.d.ts b/packages/google-cloud-contactcenterinsights/protos/protos.d.ts index 85f57b366ab..83fa0f133de 100644 --- a/packages/google-cloud-contactcenterinsights/protos/protos.d.ts +++ b/packages/google-cloud-contactcenterinsights/protos/protos.d.ts @@ -12117,6 +12117,9 @@ export namespace google { /** AnalysisConfig runtimeIntegrationAnalysisPercentage */ runtimeIntegrationAnalysisPercentage?: (number|null); + /** AnalysisConfig uploadConversationAnalysisPercentage */ + uploadConversationAnalysisPercentage?: (number|null); + /** AnalysisConfig annotatorSelector */ annotatorSelector?: (google.cloud.contactcenterinsights.v1.IAnnotatorSelector|null); } @@ -12133,6 +12136,9 @@ export namespace google { /** AnalysisConfig runtimeIntegrationAnalysisPercentage. */ public runtimeIntegrationAnalysisPercentage: number; + /** AnalysisConfig uploadConversationAnalysisPercentage. */ + public uploadConversationAnalysisPercentage: number; + /** AnalysisConfig annotatorSelector. */ public annotatorSelector?: (google.cloud.contactcenterinsights.v1.IAnnotatorSelector|null); diff --git a/packages/google-cloud-contactcenterinsights/protos/protos.js b/packages/google-cloud-contactcenterinsights/protos/protos.js index 635c9d96435..e38950c30ed 100644 --- a/packages/google-cloud-contactcenterinsights/protos/protos.js +++ b/packages/google-cloud-contactcenterinsights/protos/protos.js @@ -28707,6 +28707,7 @@ * @memberof google.cloud.contactcenterinsights.v1.Settings * @interface IAnalysisConfig * @property {number|null} [runtimeIntegrationAnalysisPercentage] AnalysisConfig runtimeIntegrationAnalysisPercentage + * @property {number|null} [uploadConversationAnalysisPercentage] AnalysisConfig uploadConversationAnalysisPercentage * @property {google.cloud.contactcenterinsights.v1.IAnnotatorSelector|null} [annotatorSelector] AnalysisConfig annotatorSelector */ @@ -28733,6 +28734,14 @@ */ AnalysisConfig.prototype.runtimeIntegrationAnalysisPercentage = 0; + /** + * AnalysisConfig uploadConversationAnalysisPercentage. + * @member {number} uploadConversationAnalysisPercentage + * @memberof google.cloud.contactcenterinsights.v1.Settings.AnalysisConfig + * @instance + */ + AnalysisConfig.prototype.uploadConversationAnalysisPercentage = 0; + /** * AnalysisConfig annotatorSelector. * @member {google.cloud.contactcenterinsights.v1.IAnnotatorSelector|null|undefined} annotatorSelector @@ -28769,6 +28778,8 @@ writer.uint32(/* id 1, wireType 1 =*/9).double(message.runtimeIntegrationAnalysisPercentage); if (message.annotatorSelector != null && Object.hasOwnProperty.call(message, "annotatorSelector")) $root.google.cloud.contactcenterinsights.v1.AnnotatorSelector.encode(message.annotatorSelector, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.uploadConversationAnalysisPercentage != null && Object.hasOwnProperty.call(message, "uploadConversationAnalysisPercentage")) + writer.uint32(/* id 6, wireType 1 =*/49).double(message.uploadConversationAnalysisPercentage); return writer; }; @@ -28807,6 +28818,10 @@ message.runtimeIntegrationAnalysisPercentage = reader.double(); break; } + case 6: { + message.uploadConversationAnalysisPercentage = reader.double(); + break; + } case 5: { message.annotatorSelector = $root.google.cloud.contactcenterinsights.v1.AnnotatorSelector.decode(reader, reader.uint32()); break; @@ -28849,6 +28864,9 @@ if (message.runtimeIntegrationAnalysisPercentage != null && message.hasOwnProperty("runtimeIntegrationAnalysisPercentage")) if (typeof message.runtimeIntegrationAnalysisPercentage !== "number") return "runtimeIntegrationAnalysisPercentage: number expected"; + if (message.uploadConversationAnalysisPercentage != null && message.hasOwnProperty("uploadConversationAnalysisPercentage")) + if (typeof message.uploadConversationAnalysisPercentage !== "number") + return "uploadConversationAnalysisPercentage: number expected"; if (message.annotatorSelector != null && message.hasOwnProperty("annotatorSelector")) { var error = $root.google.cloud.contactcenterinsights.v1.AnnotatorSelector.verify(message.annotatorSelector); if (error) @@ -28871,6 +28889,8 @@ var message = new $root.google.cloud.contactcenterinsights.v1.Settings.AnalysisConfig(); if (object.runtimeIntegrationAnalysisPercentage != null) message.runtimeIntegrationAnalysisPercentage = Number(object.runtimeIntegrationAnalysisPercentage); + if (object.uploadConversationAnalysisPercentage != null) + message.uploadConversationAnalysisPercentage = Number(object.uploadConversationAnalysisPercentage); if (object.annotatorSelector != null) { if (typeof object.annotatorSelector !== "object") throw TypeError(".google.cloud.contactcenterinsights.v1.Settings.AnalysisConfig.annotatorSelector: object expected"); @@ -28895,11 +28915,14 @@ if (options.defaults) { object.runtimeIntegrationAnalysisPercentage = 0; object.annotatorSelector = null; + object.uploadConversationAnalysisPercentage = 0; } if (message.runtimeIntegrationAnalysisPercentage != null && message.hasOwnProperty("runtimeIntegrationAnalysisPercentage")) object.runtimeIntegrationAnalysisPercentage = options.json && !isFinite(message.runtimeIntegrationAnalysisPercentage) ? String(message.runtimeIntegrationAnalysisPercentage) : message.runtimeIntegrationAnalysisPercentage; if (message.annotatorSelector != null && message.hasOwnProperty("annotatorSelector")) object.annotatorSelector = $root.google.cloud.contactcenterinsights.v1.AnnotatorSelector.toObject(message.annotatorSelector, options); + if (message.uploadConversationAnalysisPercentage != null && message.hasOwnProperty("uploadConversationAnalysisPercentage")) + object.uploadConversationAnalysisPercentage = options.json && !isFinite(message.uploadConversationAnalysisPercentage) ? String(message.uploadConversationAnalysisPercentage) : message.uploadConversationAnalysisPercentage; return object; }; diff --git a/packages/google-cloud-contactcenterinsights/protos/protos.json b/packages/google-cloud-contactcenterinsights/protos/protos.json index d7cc1d18d16..f535fe676b7 100644 --- a/packages/google-cloud-contactcenterinsights/protos/protos.json +++ b/packages/google-cloud-contactcenterinsights/protos/protos.json @@ -2919,6 +2919,10 @@ "type": "double", "id": 1 }, + "uploadConversationAnalysisPercentage": { + "type": "double", + "id": 6 + }, "annotatorSelector": { "type": "AnnotatorSelector", "id": 5 diff --git a/packages/google-cloud-contactcenterinsights/samples/generated/v1/snippet_metadata.google.cloud.contactcenterinsights.v1.json b/packages/google-cloud-contactcenterinsights/samples/generated/v1/snippet_metadata.google.cloud.contactcenterinsights.v1.json index f24b128bccd..5e9ed6823d5 100644 --- a/packages/google-cloud-contactcenterinsights/samples/generated/v1/snippet_metadata.google.cloud.contactcenterinsights.v1.json +++ b/packages/google-cloud-contactcenterinsights/samples/generated/v1/snippet_metadata.google.cloud.contactcenterinsights.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-contactcenterinsights", - "version": "2.4.0", + "version": "2.4.1", "language": "TYPESCRIPT", "apis": [ {