When true, a contextual quote from the data that triggered a finding is
included in the response; see
[Finding.quote][google.privacy.dlp.v2.Finding.quote]. This is not used for
data profiling.
When no InfoTypes or CustomInfoTypes are specified in a request, the
system may automatically choose a default list of detectors to run, which
may change over time.
If you need precise control and predictability as to what detectors are
run you should specify specific InfoTypes listed in the reference,
otherwise a default list will be used, which may change over time.
public InspectConfig.Types.FindingLimits Limits { get; set; }
Configuration to control the number of findings returned.
This is not used for data profiling.
When redacting sensitive data from images, finding limits don't apply. They
can cause unexpected or inconsistent results, where only some data is
redacted. Don't include finding limits in
[RedactImage][google.privacy.dlp.v2.DlpService.RedactImage]
requests. Otherwise, Cloud DLP returns an error.
When set within an
[InspectJobConfig][google.privacy.dlp.v2.InspectJobConfig], the specified
maximum values aren't hard limits. If an inspection job reaches these
limits, the job ends gradually, not abruptly. Therefore, the actual number
of findings that Cloud DLP returns can be multiple times higher than these
maximum values.
Only returns findings equal to or above this threshold. The default is
POSSIBLE.
In general, the highest likelihood setting yields the fewest findings in
results and the lowest chance of a false positive. For more information,
see Match
likelihood.
public RepeatedField<InspectConfig.Types.InfoTypeLikelihood> MinLikelihoodPerInfoType { get; }
Minimum likelihood per infotype. For each infotype, a user can specify a
minimum likelihood. The system only returns a finding if its likelihood is
above this threshold. If this field is not set, the system uses the
InspectConfig min_likelihood.
public RepeatedField<InspectionRuleSet> RuleSet { get; }
Set of rules to apply to the findings for this InspectConfig.
Exclusion rules, contained in the set are executed in the end, other
rules are executed in the order they are specified for each info type.
[[["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\u003eThis document provides reference documentation for the \u003ccode\u003eInspectConfig\u003c/code\u003e class within the Google Cloud Data Loss Prevention v2 API, detailing its purpose in configuring the data scanning process.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eInspectConfig\u003c/code\u003e class, part of the \u003ccode\u003eGoogle.Cloud.Dlp.V2\u003c/code\u003e namespace, is used to define the configuration for the data inspection process, such as specifying which info types to search for, and what likelihood threshold to use.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eInspectConfig\u003c/code\u003e class include \u003ccode\u003eInfoTypes\u003c/code\u003e, \u003ccode\u003eCustomInfoTypes\u003c/code\u003e, \u003ccode\u003eMinLikelihood\u003c/code\u003e, and \u003ccode\u003eLimits\u003c/code\u003e, which allow for detailed customization of the inspection criteria, including custom info types and minimum likelihood for returning findings.\u003c/p\u003e\n"],["\u003cp\u003eThe document also provides the available version history of the \u003ccode\u003eInspectConfig\u003c/code\u003e class, with version 4.16.0 being the latest, and version 2.15.0 being the earliest in the list.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eInspectConfig\u003c/code\u003e can include rules for excluding certain types of information from findings, managing finding limits, and using custom info types in the inspection process.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Data Loss Prevention v2 API - Class InspectConfig (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.InspectConfig)\n- [4.18.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.18.0/Google.Cloud.Dlp.V2.InspectConfig)\n- [4.17.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.17.0/Google.Cloud.Dlp.V2.InspectConfig)\n- [4.16.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.16.0/Google.Cloud.Dlp.V2.InspectConfig)\n- [4.15.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.15.0/Google.Cloud.Dlp.V2.InspectConfig)\n- [4.14.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.14.0/Google.Cloud.Dlp.V2.InspectConfig)\n- [4.13.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.13.0/Google.Cloud.Dlp.V2.InspectConfig)\n- [4.12.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.12.0/Google.Cloud.Dlp.V2.InspectConfig)\n- [4.11.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.11.0/Google.Cloud.Dlp.V2.InspectConfig)\n- [4.10.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.10.0/Google.Cloud.Dlp.V2.InspectConfig)\n- [4.9.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.9.0/Google.Cloud.Dlp.V2.InspectConfig)\n- [4.8.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.8.0/Google.Cloud.Dlp.V2.InspectConfig)\n- [4.7.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.7.0/Google.Cloud.Dlp.V2.InspectConfig)\n- [4.6.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.6.0/Google.Cloud.Dlp.V2.InspectConfig)\n- [4.5.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.5.0/Google.Cloud.Dlp.V2.InspectConfig)\n- [4.4.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.4.0/Google.Cloud.Dlp.V2.InspectConfig)\n- [4.3.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.3.0/Google.Cloud.Dlp.V2.InspectConfig)\n- [4.2.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.2.0/Google.Cloud.Dlp.V2.InspectConfig)\n- [4.1.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.1.0/Google.Cloud.Dlp.V2.InspectConfig)\n- [4.0.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.0.0/Google.Cloud.Dlp.V2.InspectConfig)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/3.5.0/Google.Cloud.Dlp.V2.InspectConfig)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/3.4.0/Google.Cloud.Dlp.V2.InspectConfig)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/3.3.0/Google.Cloud.Dlp.V2.InspectConfig)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/3.2.0/Google.Cloud.Dlp.V2.InspectConfig)\n- [2.16.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/2.16.0/Google.Cloud.Dlp.V2.InspectConfig)\n- [2.15.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/2.15.0/Google.Cloud.Dlp.V2.InspectConfig) \n\n public sealed class InspectConfig : IMessage\u003cInspectConfig\u003e, IEquatable\u003cInspectConfig\u003e, IDeepCloneable\u003cInspectConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Data Loss Prevention v2 API class InspectConfig.\n\nConfiguration description of the scanning process.\nWhen used with redactContent only info_types and min_likelihood are currently\nused. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e InspectConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[InspectConfig](/dotnet/docs/reference/Google.Cloud.Dlp.V2/latest/Google.Cloud.Dlp.V2.InspectConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[InspectConfig](/dotnet/docs/reference/Google.Cloud.Dlp.V2/latest/Google.Cloud.Dlp.V2.InspectConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[InspectConfig](/dotnet/docs/reference/Google.Cloud.Dlp.V2/latest/Google.Cloud.Dlp.V2.InspectConfig), [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### InspectConfig()\n\n public InspectConfig()\n\n### InspectConfig(InspectConfig)\n\n public InspectConfig(InspectConfig other)\n\nProperties\n----------\n\n### ContentOptions\n\n public RepeatedField\u003cContentOption\u003e ContentOptions { get; }\n\nDeprecated and unused.\n\n### CustomInfoTypes\n\n public RepeatedField\u003cCustomInfoType\u003e CustomInfoTypes { get; }\n\nCustomInfoTypes provided by the user. See\n\u003chttps://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes\u003e\nto learn more.\n\n### ExcludeInfoTypes\n\n public bool ExcludeInfoTypes { get; set; }\n\nWhen true, excludes type information of the findings.\nThis is not used for data profiling.\n\n### IncludeQuote\n\n public bool IncludeQuote { get; set; }\n\nWhen true, a contextual quote from the data that triggered a finding is\nincluded in the response; see\n\\[Finding.quote\\]\\[google.privacy.dlp.v2.Finding.quote\\]. This is not used for\ndata profiling.\n\n### InfoTypes\n\n public RepeatedField\u003cInfoType\u003e InfoTypes { get; }\n\nRestricts what info_types to look for. The values must correspond to\nInfoType values returned by ListInfoTypes or listed at\n\u003chttps://cloud.google.com/sensitive-data-protection/docs/infotypes-reference\u003e.\n\nWhen no InfoTypes or CustomInfoTypes are specified in a request, the\nsystem may automatically choose a default list of detectors to run, which\nmay change over time.\n\nIf you need precise control and predictability as to what detectors are\nrun you should specify specific InfoTypes listed in the reference,\notherwise a default list will be used, which may change over time.\n\n### Limits\n\n public InspectConfig.Types.FindingLimits Limits { get; set; }\n\nConfiguration to control the number of findings returned.\nThis is not used for data profiling.\n\nWhen redacting sensitive data from images, finding limits don't apply. They\ncan cause unexpected or inconsistent results, where only some data is\nredacted. Don't include finding limits in\n\\[RedactImage\\]\\[google.privacy.dlp.v2.DlpService.RedactImage\\]\nrequests. Otherwise, Cloud DLP returns an error.\n\nWhen set within an\n\\[InspectJobConfig\\]\\[google.privacy.dlp.v2.InspectJobConfig\\], the specified\nmaximum values aren't hard limits. If an inspection job reaches these\nlimits, the job ends gradually, not abruptly. Therefore, the actual number\nof findings that Cloud DLP returns can be multiple times higher than these\nmaximum values.\n\n### MinLikelihood\n\n public Likelihood MinLikelihood { get; set; }\n\nOnly returns findings equal to or above this threshold. The default is\nPOSSIBLE.\n\nIn general, the highest likelihood setting yields the fewest findings in\nresults and the lowest chance of a false positive. For more information,\nsee [Match\nlikelihood](https://cloud.google.com/sensitive-data-protection/docs/likelihood).\n\n### MinLikelihoodPerInfoType\n\n public RepeatedField\u003cInspectConfig.Types.InfoTypeLikelihood\u003e MinLikelihoodPerInfoType { get; }\n\nMinimum likelihood per infotype. For each infotype, a user can specify a\nminimum likelihood. The system only returns a finding if its likelihood is\nabove this threshold. If this field is not set, the system uses the\nInspectConfig min_likelihood.\n\n### RuleSet\n\n public RepeatedField\u003cInspectionRuleSet\u003e RuleSet { get; }\n\nSet of rules to apply to the findings for this InspectConfig.\nExclusion rules, contained in the set are executed in the end, other\nrules are executed in the order they are specified for each info type."]]