Skip to content

Commit

Permalink
feat: [dialogflow] Add the enable_extended_streaming flag (#4724)
Browse files Browse the repository at this point in the history
* feat: Add the enable_extended_streaming flag
chore: remove extraneous backend config

PiperOrigin-RevId: 569315665

Source-Link: googleapis/googleapis@a24bc56

Source-Link: googleapis/googleapis-gen@afd0643
Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRpYWxvZ2Zsb3cvLk93bEJvdC55YW1sIiwiaCI6ImFmZDA2NDM2NWY5YTI2NmIzMjk1MDA2ODA1NGIzYzJjNWRhMzc0YmQifQ==

* 🦉 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] authored Oct 2, 2023
1 parent 4e65f0a commit 5ef2787
Show file tree
Hide file tree
Showing 6 changed files with 80 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,27 @@ message StreamingAnalyzeContentRequest {
// CX agent.
google.protobuf.Struct cx_parameters = 13;

// Optional. Enable full bidirectional streaming. You can keep streaming the
// audio until timeout, and there's no need to half close the stream to get
// the response.
//
// Restrictions:
//
// - Timeout: 3 mins.
// - Audio Encoding: only supports
// [AudioEncoding.AUDIO_ENCODING_LINEAR_16][google.cloud.dialogflow.v2.AudioEncoding.AUDIO_ENCODING_LINEAR_16]
// and
// [AudioEncoding.AUDIO_ENCODING_MULAW][google.cloud.dialogflow.v2.AudioEncoding.AUDIO_ENCODING_MULAW]
// - Lifecycle: conversation should be in `Assist Stage`, go to
// [Conversation.CreateConversation][] for more information.
//
// InvalidArgument Error will be returned if the one of restriction checks
// failed.
//
// You can find more details in
// https://cloud.google.com/agent-assist/docs/extended-streaming
bool enable_extended_streaming = 11 [(google.api.field_behavior) = OPTIONAL];

// Enable partial virtual agent responses. If this flag is not enabled,
// response stream still contains only one final response even if some
// `Fulfillment`s in Dialogflow virtual agent have been configured to return
Expand Down
6 changes: 6 additions & 0 deletions packages/google-cloud-dialogflow/protos/protos.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions packages/google-cloud-dialogflow/protos/protos.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions packages/google-cloud-dialogflow/protos/protos.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,24 @@ function main(participant) {
* CX agent.
*/
// const cxParameters = {}
/**
* Optional. Enable full bidirectional streaming. You can keep streaming the
* audio until timeout, and there's no need to half close the stream to get
* the response.
* Restrictions:
* - Timeout: 3 mins.
* - Audio Encoding: only supports
* AudioEncoding.AUDIO_ENCODING_LINEAR_16 google.cloud.dialogflow.v2.AudioEncoding.AUDIO_ENCODING_LINEAR_16
* and
* AudioEncoding.AUDIO_ENCODING_MULAW google.cloud.dialogflow.v2.AudioEncoding.AUDIO_ENCODING_MULAW
* - Lifecycle: conversation should be in `Assist Stage`, go to
* Conversation.CreateConversation for more information.
* InvalidArgument Error will be returned if the one of restriction checks
* failed.
* You can find more details in
* https://cloud.google.com/agent-assist/docs/extended-streaming
*/
// const enableExtendedStreaming = true
/**
* Enable partial virtual agent responses. If this flag is not enabled,
* response stream still contains only one final response even if some
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4114,7 +4114,7 @@
"segments": [
{
"start": 25,
"end": 122,
"end": 140,
"type": "FULL"
}
],
Expand Down Expand Up @@ -4163,6 +4163,10 @@
"name": "cx_parameters",
"type": ".google.protobuf.Struct"
},
{
"name": "enable_extended_streaming",
"type": "TYPE_BOOL"
},
{
"name": "enable_partial_automated_agent_reply",
"type": "TYPE_BOOL"
Expand Down

0 comments on commit 5ef2787

Please sign in to comment.