diff --git a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/participant.proto b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/participant.proto index bdfaad14076..61cd3135272 100644 --- a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/participant.proto +++ b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/participant.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -1044,6 +1044,11 @@ message StreamingAnalyzeContentRequest { bool enable_partial_automated_agent_reply = 12 [(google.api.field_behavior) = OPTIONAL]; + // Optional. If multiple utterances are detected in the audio stream, process + // them individually instead of stitching them together to form a single + // utterance. + bool output_multiple_utterances = 18 [(google.api.field_behavior) = OPTIONAL]; + // if true, `StreamingAnalyzeContentResponse.debugging_info` will get // populated. bool enable_debugging_info = 19; diff --git a/packages/google-cloud-dialogflow/protos/protos.d.ts b/packages/google-cloud-dialogflow/protos/protos.d.ts index 4d4b88a415b..b0b42fa3bd3 100644 --- a/packages/google-cloud-dialogflow/protos/protos.d.ts +++ b/packages/google-cloud-dialogflow/protos/protos.d.ts @@ -60205,6 +60205,9 @@ export namespace google { /** StreamingAnalyzeContentRequest enablePartialAutomatedAgentReply */ enablePartialAutomatedAgentReply?: (boolean|null); + /** StreamingAnalyzeContentRequest outputMultipleUtterances */ + outputMultipleUtterances?: (boolean|null); + /** StreamingAnalyzeContentRequest enableDebuggingInfo */ enableDebuggingInfo?: (boolean|null); } @@ -60263,6 +60266,9 @@ export namespace google { /** StreamingAnalyzeContentRequest enablePartialAutomatedAgentReply. */ public enablePartialAutomatedAgentReply: boolean; + /** StreamingAnalyzeContentRequest outputMultipleUtterances. */ + public outputMultipleUtterances: boolean; + /** StreamingAnalyzeContentRequest enableDebuggingInfo. */ public enableDebuggingInfo: boolean; diff --git a/packages/google-cloud-dialogflow/protos/protos.js b/packages/google-cloud-dialogflow/protos/protos.js index 3df4cde0ec2..1d7ea5f2967 100644 --- a/packages/google-cloud-dialogflow/protos/protos.js +++ b/packages/google-cloud-dialogflow/protos/protos.js @@ -148009,6 +148009,7 @@ * @property {string|null} [cxCurrentPage] StreamingAnalyzeContentRequest cxCurrentPage * @property {boolean|null} [enableExtendedStreaming] StreamingAnalyzeContentRequest enableExtendedStreaming * @property {boolean|null} [enablePartialAutomatedAgentReply] StreamingAnalyzeContentRequest enablePartialAutomatedAgentReply + * @property {boolean|null} [outputMultipleUtterances] StreamingAnalyzeContentRequest outputMultipleUtterances * @property {boolean|null} [enableDebuggingInfo] StreamingAnalyzeContentRequest enableDebuggingInfo */ @@ -148147,6 +148148,14 @@ */ StreamingAnalyzeContentRequest.prototype.enablePartialAutomatedAgentReply = false; + /** + * StreamingAnalyzeContentRequest outputMultipleUtterances. + * @member {boolean} outputMultipleUtterances + * @memberof google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest + * @instance + */ + StreamingAnalyzeContentRequest.prototype.outputMultipleUtterances = false; + /** * StreamingAnalyzeContentRequest enableDebuggingInfo. * @member {boolean} enableDebuggingInfo @@ -148232,6 +148241,8 @@ writer.uint32(/* id 15, wireType 2 =*/122).string(message.cxCurrentPage); if (message.inputIntent != null && Object.hasOwnProperty.call(message, "inputIntent")) writer.uint32(/* id 17, wireType 2 =*/138).string(message.inputIntent); + if (message.outputMultipleUtterances != null && Object.hasOwnProperty.call(message, "outputMultipleUtterances")) + writer.uint32(/* id 18, wireType 0 =*/144).bool(message.outputMultipleUtterances); if (message.enableDebuggingInfo != null && Object.hasOwnProperty.call(message, "enableDebuggingInfo")) writer.uint32(/* id 19, wireType 0 =*/152).bool(message.enableDebuggingInfo); if (message.inputEvent != null && Object.hasOwnProperty.call(message, "inputEvent")) @@ -148332,6 +148343,10 @@ message.enablePartialAutomatedAgentReply = reader.bool(); break; } + case 18: { + message.outputMultipleUtterances = reader.bool(); + break; + } case 19: { message.enableDebuggingInfo = reader.bool(); break; @@ -148458,6 +148473,9 @@ if (message.enablePartialAutomatedAgentReply != null && message.hasOwnProperty("enablePartialAutomatedAgentReply")) if (typeof message.enablePartialAutomatedAgentReply !== "boolean") return "enablePartialAutomatedAgentReply: boolean expected"; + if (message.outputMultipleUtterances != null && message.hasOwnProperty("outputMultipleUtterances")) + if (typeof message.outputMultipleUtterances !== "boolean") + return "outputMultipleUtterances: boolean expected"; if (message.enableDebuggingInfo != null && message.hasOwnProperty("enableDebuggingInfo")) if (typeof message.enableDebuggingInfo !== "boolean") return "enableDebuggingInfo: boolean expected"; @@ -148530,6 +148548,8 @@ message.enableExtendedStreaming = Boolean(object.enableExtendedStreaming); if (object.enablePartialAutomatedAgentReply != null) message.enablePartialAutomatedAgentReply = Boolean(object.enablePartialAutomatedAgentReply); + if (object.outputMultipleUtterances != null) + message.outputMultipleUtterances = Boolean(object.outputMultipleUtterances); if (object.enableDebuggingInfo != null) message.enableDebuggingInfo = Boolean(object.enableDebuggingInfo); return message; @@ -148557,6 +148577,7 @@ object.enablePartialAutomatedAgentReply = false; object.cxParameters = null; object.cxCurrentPage = ""; + object.outputMultipleUtterances = false; object.enableDebuggingInfo = false; } if (message.participant != null && message.hasOwnProperty("participant")) @@ -148605,6 +148626,8 @@ if (options.oneofs) object.input = "inputIntent"; } + if (message.outputMultipleUtterances != null && message.hasOwnProperty("outputMultipleUtterances")) + object.outputMultipleUtterances = message.outputMultipleUtterances; if (message.enableDebuggingInfo != null && message.hasOwnProperty("enableDebuggingInfo")) object.enableDebuggingInfo = message.enableDebuggingInfo; if (message.inputEvent != null && message.hasOwnProperty("inputEvent")) { diff --git a/packages/google-cloud-dialogflow/protos/protos.json b/packages/google-cloud-dialogflow/protos/protos.json index 79b0623091a..f6f1fbcf287 100644 --- a/packages/google-cloud-dialogflow/protos/protos.json +++ b/packages/google-cloud-dialogflow/protos/protos.json @@ -17799,6 +17799,13 @@ "(google.api.field_behavior)": "OPTIONAL" } }, + "outputMultipleUtterances": { + "type": "bool", + "id": 18, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, "enableDebuggingInfo": { "type": "bool", "id": 19 diff --git a/packages/google-cloud-dialogflow/samples/generated/v2beta1/participants.streaming_analyze_content.js b/packages/google-cloud-dialogflow/samples/generated/v2beta1/participants.streaming_analyze_content.js index 9d799f481f9..f15e3da831d 100644 --- a/packages/google-cloud-dialogflow/samples/generated/v2beta1/participants.streaming_analyze_content.js +++ b/packages/google-cloud-dialogflow/samples/generated/v2beta1/participants.streaming_analyze_content.js @@ -138,6 +138,12 @@ function main(participant) { * return partial responses. */ // const enablePartialAutomatedAgentReply = true + /** + * Optional. If multiple utterances are detected in the audio stream, process + * them individually instead of stitching them together to form a single + * utterance. + */ + // const outputMultipleUtterances = true /** * if true, `StreamingAnalyzeContentResponse.debugging_info` will get * populated. diff --git a/packages/google-cloud-dialogflow/samples/generated/v2beta1/snippet_metadata_google.cloud.dialogflow.v2beta1.json b/packages/google-cloud-dialogflow/samples/generated/v2beta1/snippet_metadata_google.cloud.dialogflow.v2beta1.json index 4ea4f32b26d..488d4fbe216 100644 --- a/packages/google-cloud-dialogflow/samples/generated/v2beta1/snippet_metadata_google.cloud.dialogflow.v2beta1.json +++ b/packages/google-cloud-dialogflow/samples/generated/v2beta1/snippet_metadata_google.cloud.dialogflow.v2beta1.json @@ -4206,7 +4206,7 @@ "segments": [ { "start": 25, - "end": 168, + "end": 174, "type": "FULL" } ], @@ -4275,6 +4275,10 @@ "name": "enable_partial_automated_agent_reply", "type": "TYPE_BOOL" }, + { + "name": "output_multiple_utterances", + "type": "TYPE_BOOL" + }, { "name": "enable_debugging_info", "type": "TYPE_BOOL"