Skip to content

Commit a031936

Browse files
Google APIscopybara-github
authored andcommitted
feat: allow to disable webhook invocation per request
PiperOrigin-RevId: 360468675
1 parent 2f0798a commit a031936

3 files changed

Lines changed: 30 additions & 27 deletions

File tree

google/cloud/dialogflow/cx/v3/audio_config.proto

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -29,31 +29,6 @@ option java_outer_classname = "AudioConfigProto";
2929
option java_package = "com.google.cloud.dialogflow.cx.v3";
3030
option objc_class_prefix = "DF";
3131

32-
// Information for a word recognized by the speech recognizer.
33-
message SpeechWordInfo {
34-
// The word this info is for.
35-
string word = 3;
36-
37-
// Time offset relative to the beginning of the audio that corresponds to the
38-
// start of the spoken word. This is an experimental feature and the accuracy
39-
// of the time offset can vary.
40-
google.protobuf.Duration start_offset = 1;
41-
42-
// Time offset relative to the beginning of the audio that corresponds to the
43-
// end of the spoken word. This is an experimental feature and the accuracy of
44-
// the time offset can vary.
45-
google.protobuf.Duration end_offset = 2;
46-
47-
// The Speech confidence between 0.0 and 1.0 for this word. A higher number
48-
// indicates an estimated greater likelihood that the recognized word is
49-
// correct. The default of 0.0 is a sentinel value indicating that confidence
50-
// was not set.
51-
//
52-
// This field is not guaranteed to be fully stable over time for the same
53-
// audio input. Users should also not rely on it to always be provided.
54-
float confidence = 4;
55-
}
56-
5732
// Audio encoding of the audio content sent in the conversational query request.
5833
// Refer to the
5934
// [Cloud Speech API
@@ -103,6 +78,31 @@ enum AudioEncoding {
10378
AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE = 7;
10479
}
10580

81+
// Information for a word recognized by the speech recognizer.
82+
message SpeechWordInfo {
83+
// The word this info is for.
84+
string word = 3;
85+
86+
// Time offset relative to the beginning of the audio that corresponds to the
87+
// start of the spoken word. This is an experimental feature and the accuracy
88+
// of the time offset can vary.
89+
google.protobuf.Duration start_offset = 1;
90+
91+
// Time offset relative to the beginning of the audio that corresponds to the
92+
// end of the spoken word. This is an experimental feature and the accuracy of
93+
// the time offset can vary.
94+
google.protobuf.Duration end_offset = 2;
95+
96+
// The Speech confidence between 0.0 and 1.0 for this word. A higher number
97+
// indicates an estimated greater likelihood that the recognized word is
98+
// correct. The default of 0.0 is a sentinel value indicating that confidence
99+
// was not set.
100+
//
101+
// This field is not guaranteed to be fully stable over time for the same
102+
// audio input. Users should also not rely on it to always be provided.
103+
float confidence = 4;
104+
}
105+
106106
// Instructs the speech recognizer on how to process the audio content.
107107
message InputAudioConfig {
108108
// Required. Audio encoding of the audio content to process.

google/cloud/dialogflow/cx/v3/response_message.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,8 @@ message ResponseMessage {
184184
// Output only. A signal that indicates the interaction with the Dialogflow agent has
185185
// ended.
186186
// This message is generated by Dialogflow only when the conversation
187-
// reaches `END_SESSION` or `END_PAGE` page. It is not supposed to be
188-
// defined by the user.
187+
// reaches `END_SESSION` page. It is not supposed to be defined by the user.
188+
//
189189
// It's guaranteed that there is at most one such message in each response.
190190
EndInteraction end_interaction = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
191191

google/cloud/dialogflow/cx/v3/session.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,9 @@ message QueryParameters {
388388
// - Else: parameter value
389389
google.protobuf.Struct parameters = 5;
390390

391+
// Whether to disable webhook calls for this request.
392+
bool disable_webhook = 7;
393+
391394
// Configures whether sentiment analysis should be performed. If not
392395
// provided, sentiment analysis is not performed.
393396
bool analyze_query_text_sentiment = 8;

0 commit comments

Comments
 (0)