@@ -31,6 +31,16 @@ option java_multiple_files = true;
31
31
option java_outer_classname = "SecuritySettingsProto" ;
32
32
option java_package = "com.google.cloud.dialogflow.cx.v3" ;
33
33
option objc_class_prefix = "DF" ;
34
+ option (google.api.resource_definition ) = {
35
+ type : "dlp.googleapis.com/InspectTemplate"
36
+ pattern : "organizations/{organization}/locations/{location}/inspectTemplates/{inspect_template}"
37
+ pattern : "projects/{project}/locations/{location}/inspectTemplates/{inspect_template}"
38
+ };
39
+ option (google.api.resource_definition ) = {
40
+ type : "dlp.googleapis.com/DeidentifyTemplate"
41
+ pattern : "organizations/{organization}/locations/{location}/deidentifyTemplates/{deidentify_template}"
42
+ pattern : "projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}"
43
+ };
34
44
35
45
// Service for managing security settings for Dialogflow.
36
46
service SecuritySettingsService {
@@ -234,11 +244,31 @@ message SecuritySettings {
234
244
// If empty, we use the default DLP inspect config.
235
245
//
236
246
// The template name will have one of the following formats:
237
- // `projects/<Project ID>/inspectTemplates/<Template ID>` OR
238
247
// `projects/<Project ID>/locations/<Location ID>/inspectTemplates/<Template
239
- // ID>` OR
240
- // `organizations/<Organization ID>/inspectTemplates/<Template ID>`
241
- string inspect_template = 9 ;
248
+ // ID>` OR `organizations/<Organization ID>/locations/<Location
249
+ // ID>/inspectTemplates/<Template ID>`
250
+ //
251
+ // Note: `inspect_template` must be located in the same region as the
252
+ // `SecuritySettings`.
253
+ string inspect_template = 9 [(google.api.resource_reference ) = {
254
+ type : "dlp.googleapis.com/InspectTemplate"
255
+ }];
256
+
257
+ // [DLP](https://cloud.google.com/dlp/docs) deidentify template name. Use this
258
+ // template to define de-identification configuration for the content.
259
+ //
260
+ // If empty, Dialogflow replaces sensitive info with `[redacted]` text.
261
+ //
262
+ // The template name will have one of the following formats:
263
+ // `projects/<Project ID>/locations/<Location
264
+ // ID>/deidentifyTemplates/<Template ID>` OR `organizations/<Organization
265
+ // ID>/locations/<Location ID>/deidentifyTemplates/<Template ID>`
266
+ //
267
+ // Note: `deidentify_template` must be located in the same region as the
268
+ // `SecuritySettings`.
269
+ string deidentify_template = 17 [(google.api.resource_reference ) = {
270
+ type : "dlp.googleapis.com/DeidentifyTemplate"
271
+ }];
242
272
243
273
// Specifies how data is retained. Note that even if the data is
244
274
// purged due to retention policy, we may still hold it in backup storage for
@@ -259,10 +289,10 @@ message SecuritySettings {
259
289
// List of types of data to remove when retention settings triggers purge.
260
290
repeated PurgeDataType purge_data_types = 8 ;
261
291
262
- // Optional. Controls conversation exporting settings to Insights after conversation is
292
+ // Controls conversation exporting settings to Insights after conversation is
263
293
// completed.
264
294
//
265
295
// If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION,
266
296
// Insights export is disabled no matter what you configure here.
267
- InsightsExportSettings insights_export_settings = 13 [ (google.api .field_behavior ) = OPTIONAL ] ;
297
+ InsightsExportSettings insights_export_settings = 13 ;
268
298
}
0 commit comments