Skip to content

Commit 76f7f48

Browse files
Google APIscopybara-github
authored andcommitted
feat: allow setting custom CA for generic webhooks
PiperOrigin-RevId: 408995680
1 parent cc003a4 commit 76f7f48

2 files changed

Lines changed: 38 additions & 25 deletions

File tree

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

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,31 @@ option java_package = "com.google.cloud.dialogflow.cx.v3beta1";
3131
option objc_class_prefix = "DF";
3232
option ruby_package = "Google::Cloud::Dialogflow::CX::V3beta1";
3333

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

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

google/cloud/dialogflow/cx/v3beta1/webhook.proto

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,19 @@ message Webhook {
113113
// The HTTP request headers to send together with webhook
114114
// requests.
115115
map<string, string> request_headers = 4;
116+
117+
// Optional. Specifies a list of allowed custom CA certificates (in DER format) for
118+
// HTTPS verification. This overrides the default SSL trust store. If this
119+
// is empty or unspecified, Dialogflow will use Google's default trust store
120+
// to verify certificates.
121+
// N.B. Make sure the HTTPS server certificates are signed with "subject alt
122+
// name". For instance a certificate can be self-signed using the following
123+
// command,
124+
// openssl x509 -req -days 200 -in example.com.csr \
125+
// -signkey example.com.key \
126+
// -out example.com.crt \
127+
// -extfile <(printf "\nsubjectAltName='DNS:www.example.com'")
128+
repeated bytes allowed_ca_certs = 5 [(google.api.field_behavior) = OPTIONAL];
116129
}
117130

118131
// Represents configuration for a [Service

0 commit comments

Comments
 (0)