Skip to content
This repository was archived by the owner on Jul 20, 2023. It is now read-only.

Commit 39f1d1c

Browse files
feat: added audio_export_settings (#257)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 444644952 Source-Link: googleapis/googleapis@4bd299a Source-Link: https://github.com/googleapis/googleapis-gen/commit/cd15ee9b95feb65bd9fd31160c7d5f3cbdb35d40 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2QxNWVlOWI5NWZlYjY1YmQ5ZmQzMTE2MGM3ZDVmM2NiZGIzNWQ0MCJ9 docs: minor wording update PiperOrigin-RevId: 442267541 Source-Link: googleapis/googleapis@740f072 Source-Link: https://github.com/googleapis/googleapis-gen/commit/29eb892cca5b1b0134b4ec185dd3d2ef5d2af1a4 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjllYjg5MmNjYTViMWIwMTM0YjRlYzE4NWRkM2QyZWY1ZDJhZjFhNCJ9 docs: minor wording update PiperOrigin-RevId: 442267451 Source-Link: googleapis/googleapis@4445d18 Source-Link: https://github.com/googleapis/googleapis-gen/commit/4e175b79ec4158f2e7fab9f4dea0ebf763a5caa6 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGUxNzViNzllYzQxNThmMmU3ZmFiOWY0ZGVhMGViZjc2M2E1Y2FhNiJ9
1 parent 1b47c3a commit 39f1d1c

23 files changed

+630
-74
lines changed

protos/google/cloud/dialogflow/cx/v3/advanced_settings.proto

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ syntax = "proto3";
1616

1717
package google.cloud.dialogflow.cx.v3;
1818

19+
import "google/api/field_behavior.proto";
20+
1921
option cc_enable_arenas = true;
2022
option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3";
2123
option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx";

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

+5
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ syntax = "proto3";
1717
package google.cloud.dialogflow.cx.v3;
1818

1919
import "google/api/field_behavior.proto";
20+
import "google/api/resource.proto";
2021
import "google/protobuf/duration.proto";
2122

2223
option cc_enable_arenas = true;
@@ -27,6 +28,10 @@ option java_outer_classname = "AudioConfigProto";
2728
option java_package = "com.google.cloud.dialogflow.cx.v3";
2829
option objc_class_prefix = "DF";
2930
option ruby_package = "Google::Cloud::Dialogflow::CX::V3";
31+
option (google.api.resource_definition) = {
32+
type: "automl.googleapis.com/Model"
33+
pattern: "projects/{project}/locations/{location}/models/{model}"
34+
};
3035

3136
// Audio encoding of the audio content sent in the conversational query request.
3237
// Refer to the

protos/google/cloud/dialogflow/cx/v3/flow.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ message Flow {
274274
//
275275
// TransitionRoutes are evalauted in the following order:
276276
//
277-
// * TransitionRoutes with intent specified..
277+
// * TransitionRoutes with intent specified.
278278
// * TransitionRoutes with only condition specified.
279279
//
280280
// TransitionRoutes with intent specified are inherited by pages in the flow.

protos/google/cloud/dialogflow/cx/v3/fulfillment.proto

+5-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,11 @@ message Fulfillment {
106106
// that have slow webhooks.
107107
bool return_partial_responses = 8;
108108

109-
// The tag used by the webhook to identify which fulfillment is being called.
109+
// The value of this field will be populated in the [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]
110+
// `fulfillmentInfo.tag` field by Dialogflow when the associated webhook is
111+
// called.
112+
// The tag is typically used by the webhook service to identify which
113+
// fulfillment is being called, but it could be used for other purposes.
110114
// This field is required if `webhook` is specified.
111115
string tag = 3;
112116

protos/google/cloud/dialogflow/cx/v3/page.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ message Page {
125125
// ID>/flows/<Flow ID>/pages/<Page ID>`.
126126
string name = 1;
127127

128-
// Required. The human-readable name of the page, unique within the agent.
128+
// Required. The human-readable name of the page, unique within the flow.
129129
string display_name = 2 [(google.api.field_behavior) = REQUIRED];
130130

131131
// The fulfillment to call when the session is entering the page.

protos/google/cloud/dialogflow/cx/v3/security_settings.proto

+50
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,41 @@ message SecuritySettings {
213213
DIALOGFLOW_HISTORY = 1;
214214
}
215215

216+
// Settings for exporting audio.
217+
message AudioExportSettings {
218+
// File format for exported audio file. Currently only in telephony
219+
// recordings.
220+
enum AudioFormat {
221+
// Unspecified. Do not use.
222+
AUDIO_FORMAT_UNSPECIFIED = 0;
223+
224+
// G.711 mu-law PCM with 8kHz sample rate.
225+
MULAW = 1;
226+
227+
// MP3 file format.
228+
MP3 = 2;
229+
230+
// OGG Vorbis.
231+
OGG = 3;
232+
}
233+
234+
// Cloud Storage bucket to export audio record to. You need to grant
235+
// `service-<Conversation Project
236+
// Number>@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Storage Object
237+
// Admin` role in this bucket.
238+
string gcs_bucket = 1;
239+
240+
// Filename pattern for exported audio.
241+
string audio_export_pattern = 2;
242+
243+
// Enable audio redaction if it is true.
244+
bool enable_audio_redaction = 3;
245+
246+
// File format for exported audio file. Currently only in telephony
247+
// recordings.
248+
AudioFormat audio_format = 4;
249+
}
250+
216251
// Settings for exporting conversations to
217252
// [Insights](https://cloud.google.com/contact-center/insights/docs).
218253
message InsightsExportSettings {
@@ -302,6 +337,21 @@ message SecuritySettings {
302337
// List of types of data to remove when retention settings triggers purge.
303338
repeated PurgeDataType purge_data_types = 8;
304339

340+
// Controls audio export settings for post-conversation analytics when
341+
// ingesting audio to conversations via [Participants.AnalyzeContent][] or
342+
// [Participants.StreamingAnalyzeContent][].
343+
//
344+
// If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION or
345+
// [audio_export_settings.gcs_bucket][] is empty, audio export is disabled.
346+
//
347+
// If audio export is enabled, audio is recorded and saved to
348+
// [audio_export_settings.gcs_bucket][], subject to retention policy of
349+
// [audio_export_settings.gcs_bucket][].
350+
//
351+
// This setting won't effect audio input for implicit sessions via
352+
// [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] or [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent].
353+
AudioExportSettings audio_export_settings = 12;
354+
305355
// Controls conversation exporting settings to Insights after conversation is
306356
// completed.
307357
//

protos/google/cloud/dialogflow/cx/v3/test_case.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ service TestCases {
139139
}
140140

141141
// Imports the test cases from a Cloud Storage bucket or a local file. It
142-
// always creates new test cases and won't overwite any existing ones. The
142+
// always creates new test cases and won't overwrite any existing ones. The
143143
// provided ID in the imported test case is neglected.
144144
//
145145
// This method is a [long-running

protos/google/cloud/dialogflow/cx/v3/transition_route_group.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ message TransitionRouteGroup {
111111
string name = 1;
112112

113113
// Required. The human-readable name of the transition route group, unique within
114-
// the [Agent][google.cloud.dialogflow.cx.v3.Agent]. The display name can be no longer than 30 characters.
114+
// the flow. The display name can be no longer than 30 characters.
115115
string display_name = 2 [(google.api.field_behavior) = REQUIRED];
116116

117117
// Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].

protos/google/cloud/dialogflow/cx/v3/webhook.proto

+5-2
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,11 @@ message DeleteWebhookRequest {
276276
message WebhookRequest {
277277
// Represents fulfillment information communicated to the webhook.
278278
message FulfillmentInfo {
279-
// Always present. The tag used to identify which fulfillment is being
280-
// called.
279+
// Always present.
280+
// The value of the [Fulfillment.tag][google.cloud.dialogflow.cx.v3.Fulfillment.tag] field will be populated in this
281+
// field by Dialogflow when the associated webhook is called.
282+
// The tag is typically used by the webhook service to identify which
283+
// fulfillment is being called, but it could be used for other purposes.
281284
string tag = 1;
282285
}
283286

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

+4
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ option java_outer_classname = "AudioConfigProto";
2828
option java_package = "com.google.cloud.dialogflow.cx.v3beta1";
2929
option objc_class_prefix = "DF";
3030
option ruby_package = "Google::Cloud::Dialogflow::CX::V3beta1";
31+
option (google.api.resource_definition) = {
32+
type: "automl.googleapis.com/Model"
33+
pattern: "projects/{project}/locations/{location}/models/{model}"
34+
};
3135

3236
// Audio encoding of the audio content sent in the conversational query request.
3337
// Refer to the

protos/google/cloud/dialogflow/cx/v3beta1/flow.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ message Flow {
274274
//
275275
// TransitionRoutes are evalauted in the following order:
276276
//
277-
// * TransitionRoutes with intent specified..
277+
// * TransitionRoutes with intent specified.
278278
// * TransitionRoutes with only condition specified.
279279
//
280280
// TransitionRoutes with intent specified are inherited by pages in the flow.

protos/google/cloud/dialogflow/cx/v3beta1/fulfillment.proto

+5-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,11 @@ message Fulfillment {
106106
// that have slow webhooks.
107107
bool return_partial_responses = 8;
108108

109-
// The tag used by the webhook to identify which fulfillment is being called.
109+
// The value of this field will be populated in the [WebhookRequest][google.cloud.dialogflow.cx.v3beta1.WebhookRequest]
110+
// `fulfillmentInfo.tag` field by Dialogflow when the associated webhook is
111+
// called.
112+
// The tag is typically used by the webhook service to identify which
113+
// fulfillment is being called, but it could be used for other purposes.
110114
// This field is required if `webhook` is specified.
111115
string tag = 3;
112116

protos/google/cloud/dialogflow/cx/v3beta1/page.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ message Page {
113113
// ID>/flows/<Flow ID>/pages/<Page ID>`.
114114
string name = 1;
115115

116-
// Required. The human-readable name of the page, unique within the agent.
116+
// Required. The human-readable name of the page, unique within the flow.
117117
string display_name = 2 [(google.api.field_behavior) = REQUIRED];
118118

119119
// The fulfillment to call when the session is entering the page.

protos/google/cloud/dialogflow/cx/v3beta1/test_case.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ service TestCases {
139139
}
140140

141141
// Imports the test cases from a Cloud Storage bucket or a local file. It
142-
// always creates new test cases and won't overwite any existing ones. The
142+
// always creates new test cases and won't overwrite any existing ones. The
143143
// provided ID in the imported test case is neglected.
144144
//
145145
// This method is a [long-running

protos/google/cloud/dialogflow/cx/v3beta1/transition_route_group.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ message TransitionRouteGroup {
111111
string name = 1;
112112

113113
// Required. The human-readable name of the transition route group, unique within
114-
// the [Agent][google.cloud.dialogflow.cx.v3beta1.Agent]. The display name can be no longer than 30 characters.
114+
// the flow. The display name can be no longer than 30 characters.
115115
string display_name = 2 [(google.api.field_behavior) = REQUIRED];
116116

117117
// Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup].

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

+5-2
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,11 @@ message DeleteWebhookRequest {
276276
message WebhookRequest {
277277
// Represents fulfillment information communicated to the webhook.
278278
message FulfillmentInfo {
279-
// Always present. The tag used to identify which fulfillment is being
280-
// called.
279+
// Always present.
280+
// The value of the [Fulfillment.tag][google.cloud.dialogflow.cx.v3beta1.Fulfillment.tag] field will be populated in this
281+
// field by Dialogflow when the associated webhook is called.
282+
// The tag is typically used by the webhook service to identify which
283+
// fulfillment is being called, but it could be used for other purposes.
281284
string tag = 1;
282285
}
283286

0 commit comments

Comments
 (0)