@@ -31,6 +31,16 @@ option java_multiple_files = true;
3131option java_outer_classname = "SecuritySettingsProto" ;
3232option java_package = "com.google.cloud.dialogflow.cx.v3" ;
3333option 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+ };
3444
3545// Service for managing security settings for Dialogflow.
3646service SecuritySettingsService {
@@ -234,11 +244,31 @@ message SecuritySettings {
234244 // If empty, we use the default DLP inspect config.
235245 //
236246 // The template name will have one of the following formats:
237- // `projects/<Project ID>/inspectTemplates/<Template ID>` OR
238247 // `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+ }];
242272
243273 // Specifies how data is retained. Note that even if the data is
244274 // purged due to retention policy, we may still hold it in backup storage for
@@ -259,10 +289,10 @@ message SecuritySettings {
259289 // List of types of data to remove when retention settings triggers purge.
260290 repeated PurgeDataType purge_data_types = 8 ;
261291
262- // Optional. Controls conversation exporting settings to Insights after conversation is
292+ // Controls conversation exporting settings to Insights after conversation is
263293 // completed.
264294 //
265295 // If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION,
266296 // 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 ;
268298}
0 commit comments