public RepeatedField<CustomInfoType.Types.DetectionRule> DetectionRules { get; }
Set of detection rules to apply to all findings of this CustomInfoType.
Rules are applied in order that they are specified. Not supported for the
surrogate_type CustomInfoType.
CustomInfoType can either be a new infoType, or an extension of built-in
infoType, when the name matches one of existing infoTypes and that infoType
is specified in InspectContent.info_types field. Specifying the latter
adds findings to the one detected by the system. If built-in info type is
not specified in InspectContent.info_types list then the name is treated
as a custom info type.
Likelihood to return for this CustomInfoType. This base value can be
altered by a detection rule if the finding meets the criteria specified by
the rule. Defaults to VERY_LIKELY if not specified.
public SensitivityScore SensitivityScore { get; set; }
Sensitivity for this CustomInfoType. If this CustomInfoType extends an
existing InfoType, the sensitivity here will take precedence over that of
the original InfoType. If unset for a CustomInfoType, it will default to
HIGH.
This only applies to data profiling.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eCustomInfoType\u003c/code\u003e class in the Google Cloud Data Loss Prevention v2 API is 4.16.0, with numerous previous versions available for reference, dating back to 2.15.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCustomInfoType\u003c/code\u003e allows users to define custom sensitive information types for finding domain-specific data and is used to detect specific information.\u003c/p\u003e\n"],["\u003cp\u003eThis class supports various detection methods, including dictionaries, regular expressions, and surrogate types, enabling flexibility in identifying custom data patterns.\u003c/p\u003e\n"],["\u003cp\u003eUsers can set detection rules, likelihood, and sensitivity scores for \u003ccode\u003eCustomInfoType\u003c/code\u003e, as well as specify whether to exclude the info type from findings, giving the ability to customize how data findings are presented and used.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCustomInfoType\u003c/code\u003e is part of the \u003ccode\u003eGoogle.Cloud.Dlp.V2\u003c/code\u003e namespace and implements multiple interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Data Loss Prevention v2 API - Class CustomInfoType (4.19.0)\n\nVersion latestkeyboard_arrow_down\n\n- [4.19.0 (latest)](/dotnet/docs/reference/Google.Cloud.Dlp.V2/latest/Google.Cloud.Dlp.V2.CustomInfoType)\n- [4.18.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.18.0/Google.Cloud.Dlp.V2.CustomInfoType)\n- [4.17.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.17.0/Google.Cloud.Dlp.V2.CustomInfoType)\n- [4.16.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.16.0/Google.Cloud.Dlp.V2.CustomInfoType)\n- [4.15.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.15.0/Google.Cloud.Dlp.V2.CustomInfoType)\n- [4.14.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.14.0/Google.Cloud.Dlp.V2.CustomInfoType)\n- [4.13.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.13.0/Google.Cloud.Dlp.V2.CustomInfoType)\n- [4.12.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.12.0/Google.Cloud.Dlp.V2.CustomInfoType)\n- [4.11.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.11.0/Google.Cloud.Dlp.V2.CustomInfoType)\n- [4.10.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.10.0/Google.Cloud.Dlp.V2.CustomInfoType)\n- [4.9.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.9.0/Google.Cloud.Dlp.V2.CustomInfoType)\n- [4.8.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.8.0/Google.Cloud.Dlp.V2.CustomInfoType)\n- [4.7.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.7.0/Google.Cloud.Dlp.V2.CustomInfoType)\n- [4.6.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.6.0/Google.Cloud.Dlp.V2.CustomInfoType)\n- [4.5.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.5.0/Google.Cloud.Dlp.V2.CustomInfoType)\n- [4.4.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.4.0/Google.Cloud.Dlp.V2.CustomInfoType)\n- [4.3.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.3.0/Google.Cloud.Dlp.V2.CustomInfoType)\n- [4.2.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.2.0/Google.Cloud.Dlp.V2.CustomInfoType)\n- [4.1.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.1.0/Google.Cloud.Dlp.V2.CustomInfoType)\n- [4.0.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.0.0/Google.Cloud.Dlp.V2.CustomInfoType)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/3.5.0/Google.Cloud.Dlp.V2.CustomInfoType)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/3.4.0/Google.Cloud.Dlp.V2.CustomInfoType)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/3.3.0/Google.Cloud.Dlp.V2.CustomInfoType)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/3.2.0/Google.Cloud.Dlp.V2.CustomInfoType)\n- [2.16.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/2.16.0/Google.Cloud.Dlp.V2.CustomInfoType)\n- [2.15.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/2.15.0/Google.Cloud.Dlp.V2.CustomInfoType) \n\n public sealed class CustomInfoType : IMessage\u003cCustomInfoType\u003e, IEquatable\u003cCustomInfoType\u003e, IDeepCloneable\u003cCustomInfoType\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Data Loss Prevention v2 API class CustomInfoType.\n\nCustom information type provided by the user. Used to find domain-specific\nsensitive information configurable to the data in question. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CustomInfoType \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CustomInfoType](/dotnet/docs/reference/Google.Cloud.Dlp.V2/latest/Google.Cloud.Dlp.V2.CustomInfoType), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CustomInfoType](/dotnet/docs/reference/Google.Cloud.Dlp.V2/latest/Google.Cloud.Dlp.V2.CustomInfoType), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CustomInfoType](/dotnet/docs/reference/Google.Cloud.Dlp.V2/latest/Google.Cloud.Dlp.V2.CustomInfoType), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Dlp.V2](/dotnet/docs/reference/Google.Cloud.Dlp.V2/latest/Google.Cloud.Dlp.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.Dlp.V2.dll\n\nConstructors\n------------\n\n### CustomInfoType()\n\n public CustomInfoType()\n\n### CustomInfoType(CustomInfoType)\n\n public CustomInfoType(CustomInfoType other)\n\nProperties\n----------\n\n### DetectionRules\n\n public RepeatedField\u003cCustomInfoType.Types.DetectionRule\u003e DetectionRules { get; }\n\nSet of detection rules to apply to all findings of this CustomInfoType.\nRules are applied in order that they are specified. Not supported for the\n`surrogate_type` CustomInfoType.\n\n### Dictionary\n\n public CustomInfoType.Types.Dictionary Dictionary { get; set; }\n\nA list of phrases to detect as a CustomInfoType.\n\n### ExclusionType\n\n public CustomInfoType.Types.ExclusionType ExclusionType { get; set; }\n\nIf set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding\nto be returned. It still can be used for rules matching.\n\n### InfoType\n\n public InfoType InfoType { get; set; }\n\nCustomInfoType can either be a new infoType, or an extension of built-in\ninfoType, when the name matches one of existing infoTypes and that infoType\nis specified in `InspectContent.info_types` field. Specifying the latter\nadds findings to the one detected by the system. If built-in info type is\nnot specified in `InspectContent.info_types` list then the name is treated\nas a custom info type.\n\n### Likelihood\n\n public Likelihood Likelihood { get; set; }\n\nLikelihood to return for this CustomInfoType. This base value can be\naltered by a detection rule if the finding meets the criteria specified by\nthe rule. Defaults to `VERY_LIKELY` if not specified.\n\n### Regex\n\n public CustomInfoType.Types.Regex Regex { get; set; }\n\nRegular expression based CustomInfoType.\n\n### SensitivityScore\n\n public SensitivityScore SensitivityScore { get; set; }\n\nSensitivity for this CustomInfoType. If this CustomInfoType extends an\nexisting InfoType, the sensitivity here will take precedence over that of\nthe original InfoType. If unset for a CustomInfoType, it will default to\nHIGH.\nThis only applies to data profiling.\n\n### StoredType\n\n public StoredType StoredType { get; set; }\n\nLoad an existing `StoredInfoType` resource for use in\n`InspectDataSource`. Not currently supported in `InspectContent`.\n\n### SurrogateType\n\n public CustomInfoType.Types.SurrogateType SurrogateType { get; set; }\n\nMessage for detecting output from deidentification transformations that\nsupport reversing.\n\n### TypeCase\n\n public CustomInfoType.TypeOneofCase TypeCase { get; }"]]