InfoType list in ExclusionRule rule drops a finding when it overlaps or contained within with a finding of an infoType from this list. For example, for InspectionRuleSet.info_types containing "PHONE_NUMBER"andexclusion_rulecontainingexclude_info_types.info_types` with "EMAIL_ADDRESS" the phone number findings are dropped if they overlap with EMAIL_ADDRESS finding. That leads to "555-222-2222@example.org" to generate only a single finding, namely email address.
getInfoTypes
InfoType list in ExclusionRule rule drops a finding when it overlaps or
contained within with a finding of an infoType from this list. For
example, for InspectionRuleSet.info_types containing "PHONE_NUMBER"andexclusion_rulecontainingexclude_info_types.info_types` with
"EMAIL_ADDRESS" the phone number findings are dropped if they overlap
with EMAIL_ADDRESS finding.
That leads to "555-222-2222@example.org" to generate only a single
finding, namely email address.
InfoType list in ExclusionRule rule drops a finding when it overlaps or
contained within with a finding of an infoType from this list. For
example, for InspectionRuleSet.info_types containing "PHONE_NUMBER"andexclusion_rulecontainingexclude_info_types.info_types` with
"EMAIL_ADDRESS" the phone number findings are dropped if they overlap
with EMAIL_ADDRESS finding.
That leads to "555-222-2222@example.org" to generate only a single
finding, namely email address.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Data Loss Prevention V2 Client - Class ExcludeInfoTypes (2.6.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.6.1 (latest)](/php/docs/reference/cloud-dlp/latest/V2.ExcludeInfoTypes)\n- [2.6.0](/php/docs/reference/cloud-dlp/2.6.0/V2.ExcludeInfoTypes)\n- [2.4.1](/php/docs/reference/cloud-dlp/2.4.1/V2.ExcludeInfoTypes)\n- [2.3.0](/php/docs/reference/cloud-dlp/2.3.0/V2.ExcludeInfoTypes)\n- [2.2.3](/php/docs/reference/cloud-dlp/2.2.3/V2.ExcludeInfoTypes)\n- [2.1.0](/php/docs/reference/cloud-dlp/2.1.0/V2.ExcludeInfoTypes)\n- [2.0.0](/php/docs/reference/cloud-dlp/2.0.0/V2.ExcludeInfoTypes)\n- [1.19.0](/php/docs/reference/cloud-dlp/1.19.0/V2.ExcludeInfoTypes)\n- [1.18.0](/php/docs/reference/cloud-dlp/1.18.0/V2.ExcludeInfoTypes)\n- [1.17.0](/php/docs/reference/cloud-dlp/1.17.0/V2.ExcludeInfoTypes)\n- [1.16.0](/php/docs/reference/cloud-dlp/1.16.0/V2.ExcludeInfoTypes)\n- [1.15.1](/php/docs/reference/cloud-dlp/1.15.1/V2.ExcludeInfoTypes)\n- [1.14.0](/php/docs/reference/cloud-dlp/1.14.0/V2.ExcludeInfoTypes)\n- [1.13.2](/php/docs/reference/cloud-dlp/1.13.2/V2.ExcludeInfoTypes)\n- [1.12.0](/php/docs/reference/cloud-dlp/1.12.0/V2.ExcludeInfoTypes)\n- [1.11.0](/php/docs/reference/cloud-dlp/1.11.0/V2.ExcludeInfoTypes)\n- [1.10.2](/php/docs/reference/cloud-dlp/1.10.2/V2.ExcludeInfoTypes)\n- [1.9.0](/php/docs/reference/cloud-dlp/1.9.0/V2.ExcludeInfoTypes)\n- [1.8.6](/php/docs/reference/cloud-dlp/1.8.6/V2.ExcludeInfoTypes) \nReference documentation and code samples for the Data Loss Prevention V2 Client class ExcludeInfoTypes.\n\nList of excluded infoTypes.\n\nGenerated from protobuf message `google.privacy.dlp.v2.ExcludeInfoTypes`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dlp \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getInfoTypes\n\nInfoType list in ExclusionRule rule drops a finding when it overlaps or\ncontained within with a finding of an infoType from this list. For\nexample, for `InspectionRuleSet.info_types` containing \"PHONE_NUMBER\"`and`exclusion_rule`containing`exclude_info_types.info_types\\` with\n\"EMAIL_ADDRESS\" the phone number findings are dropped if they overlap\nwith EMAIL_ADDRESS finding.\n\nThat leads to \"555-222-2222@example.org\" to generate only a single\nfinding, namely email address.\n\n### setInfoTypes\n\nInfoType list in ExclusionRule rule drops a finding when it overlaps or\ncontained within with a finding of an infoType from this list. For\nexample, for `InspectionRuleSet.info_types` containing \"PHONE_NUMBER\"`and`exclusion_rule`containing`exclude_info_types.info_types\\` with\n\"EMAIL_ADDRESS\" the phone number findings are dropped if they overlap\nwith EMAIL_ADDRESS finding.\n\nThat leads to \"555-222-2222@example.org\" to generate only a single\nfinding, namely email address."]]