Skip to content

Commit

Permalink
feat: added text sections to the submitted summary
Browse files Browse the repository at this point in the history
feat: added conformer model migration opt out flag
feat: added intent input to StreamingAnalyzeContentRequest
docs: clarified wording around END_OF_SINGLE_UTTERANCE

PiperOrigin-RevId: 615454974
  • Loading branch information
Google APIs authored and Copybara-Service committed Mar 13, 2024
1 parent 7dab3de commit bce5e83
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 7 deletions.
14 changes: 12 additions & 2 deletions google/cloud/dialogflow/v2beta1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,17 @@
# * extra_protoc_file_parameters
# The complete list of preserved parameters can be found in the source code.

# buildifier: disable=load-on-top

# This is an API workspace, having public visibility by default makes perfect sense.
package(default_visibility = ["//visibility:public"])

##############################################################################
# Common
##############################################################################
load("@rules_proto//proto:defs.bzl", "proto_library")
# buildifier: disable=same-origin-load
load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
load("@rules_proto//proto:defs.bzl", "proto_library")

proto_library(
name = "dialogflow_proto",
Expand Down Expand Up @@ -71,6 +74,7 @@ proto_library_with_info(
##############################################################################
# Java
##############################################################################
# buildifier: disable=same-origin-load
load(
"@com_google_googleapis_imports//:imports.bzl",
"java_gapic_assembly_gradle_pkg",
Expand Down Expand Up @@ -163,6 +167,7 @@ java_gapic_assembly_gradle_pkg(
##############################################################################
# Go
##############################################################################
# buildifier: disable=same-origin-load
load(
"@com_google_googleapis_imports//:imports.bzl",
"go_gapic_assembly_pkg",
Expand Down Expand Up @@ -219,6 +224,7 @@ go_gapic_assembly_pkg(
##############################################################################
# Python
##############################################################################
# buildifier: disable=same-origin-load
load(
"@com_google_googleapis_imports//:imports.bzl",
"py_gapic_assembly_pkg",
Expand Down Expand Up @@ -258,6 +264,7 @@ py_gapic_assembly_pkg(
##############################################################################
# PHP
##############################################################################
# buildifier: disable=same-origin-load
load(
"@com_google_googleapis_imports//:imports.bzl",
"php_gapic_assembly_pkg",
Expand Down Expand Up @@ -295,6 +302,7 @@ php_gapic_assembly_pkg(
##############################################################################
# Node.js
##############################################################################
# buildifier: disable=same-origin-load
load(
"@com_google_googleapis_imports//:imports.bzl",
"nodejs_gapic_assembly_pkg",
Expand Down Expand Up @@ -326,6 +334,7 @@ nodejs_gapic_assembly_pkg(
##############################################################################
# Ruby
##############################################################################
# buildifier: disable=same-origin-load
load(
"@com_google_googleapis_imports//:imports.bzl",
"ruby_cloud_gapic_library",
Expand Down Expand Up @@ -380,6 +389,7 @@ ruby_gapic_assembly_pkg(
##############################################################################
# C#
##############################################################################
# buildifier: disable=same-origin-load
load(
"@com_google_googleapis_imports//:imports.bzl",
"csharp_gapic_assembly_pkg",
Expand All @@ -390,7 +400,6 @@ load(

csharp_proto_library(
name = "dialogflow_csharp_proto",
extra_opts = [],
deps = [":dialogflow_proto"],
)

Expand Down Expand Up @@ -427,6 +436,7 @@ csharp_gapic_assembly_pkg(
##############################################################################
# C++
##############################################################################
# buildifier: disable=same-origin-load
load(
"@com_google_googleapis_imports//:imports.bzl",
"cc_grpc_library",
Expand Down
4 changes: 4 additions & 0 deletions google/cloud/dialogflow/v2beta1/answer_record.proto
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,10 @@ message AgentAssistantFeedback {

// Text of actual submitted summary.
string summary_text = 3;

// Optional. Actual text sections of submitted summary.
map<string, string> text_sections = 4
[(google.api.field_behavior) = OPTIONAL];
}

// Feedback for knowledge search.
Expand Down
8 changes: 7 additions & 1 deletion google/cloud/dialogflow/v2beta1/audio_config.proto
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ message SpeechWordInfo {
// phase.
//
// The client provides this configuration in terms of the durations of those
// two phases. The durations are measured in terms of the audio length fromt the
// two phases. The durations are measured in terms of the audio length from
// the start of the input audio.
//
// The flow goes like below:
Expand Down Expand Up @@ -215,6 +215,12 @@ message InputAudioConfig {

// Enable automatic punctuation option at the speech backend.
bool enable_automatic_punctuation = 17;

// If `true`, the request will opt out for STT conformer model migration.
// This field will be deprecated once force migration takes place in June
// 2024. Please refer to [Dialogflow ES Speech model
// migration](https://cloud.google.com/dialogflow/es/docs/speech-model-migration).
bool opt_out_conformer_model_migration = 26;
}

// Description of which voice to use for speech synthesis.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@
{
"service": "google.cloud.dialogflow.v2beta1.HumanAssistService"
},

{
"service": "google.cloud.dialogflow.v2beta1.Integrations"
},
Expand Down Expand Up @@ -126,6 +125,9 @@
{
"service": "google.cloud.dialogflow.v2beta1.SessionEntityTypes"
},
{
"service": "google.cloud.dialogflow.v2beta1.Tools"
},
{
"service": "google.cloud.dialogflow.v2beta1.Versions"
},
Expand Down
13 changes: 13 additions & 0 deletions google/cloud/dialogflow/v2beta1/participant.proto
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,9 @@ message AnalyzeContentRequest {

// An input representing the selection of a suggestion.
SuggestionInput suggestion_input = 12;

// The intent to be triggered on V3 agent.
IntentInput intent_input = 13;
}

// Speech synthesis configuration.
Expand Down Expand Up @@ -899,6 +902,16 @@ message StreamingAnalyzeContentRequest {
// This input is ignored if the previous response indicated that DTMF input
// is not accepted.
TelephonyDtmfEvents input_dtmf = 9;

// The intent to be triggered on V3 agent.
// Format: `projects/<Project ID>/locations/<Location ID>/locations/
// <Location ID>/agents/<Agent ID>/intents/<Intent ID>`.
string input_intent = 17;

// The input event name.
// This can only be sent once and would cancel the ongoing speech
// recognition if any.
string input_event = 20;
}

// Parameters for a Dialogflow virtual-agent query.
Expand Down
6 changes: 3 additions & 3 deletions google/cloud/dialogflow/v2beta1/session.proto
Original file line number Diff line number Diff line change
Expand Up @@ -773,9 +773,9 @@ message StreamingRecognitionResult {
// Message contains DTMF digits.
DTMF_DIGITS = 3;

// Event indicates that the server has detected the end of the user's speech
// utterance and expects no additional speech. Therefore, the server will
// not process additional audio (although it may subsequently return
// This event indicates that the server has detected the end of the user's
// speech utterance and expects no additional speech. Therefore, the server
// will not process additional audio (although it may subsequently return
// additional results). The client should stop sending additional audio
// data, half-close the gRPC connection, and wait for any additional results
// until the server closes the gRPC connection. This message is only sent if
Expand Down

0 comments on commit bce5e83

Please sign in to comment.