public sealed class DataProfileJobConfig : IMessage<DataProfileJobConfig>, IEquatable<DataProfileJobConfig>, IDeepCloneable<DataProfileJobConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Data Loss Prevention v2 API class DataProfileJobConfig.
Configuration for setting up a job to scan resources for profile generation.
Only one data profile configuration may exist per organization, folder,
or project.
public RepeatedField<string> InspectTemplates { get; }
Detection logic for profile generation.
Not all template features are used by profiles. FindingLimits,
include_quote and exclude_info_types have no impact on
data profiling.
Multiple templates may be provided if there is data in multiple regions.
At most one template must be specified per-region (including "global").
Each region is scanned using the applicable template. If no region-specific
template is specified, but a "global" template is specified, it will be
copied to that region and used instead. If no global or region-specific
template is provided for a region with data, that region's data will not be
scanned.
The project that will run the scan. The DLP service
account that exists within this project must have access to all resources
that are profiled, and the DLP API must be enabled.
[[["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 webpage provides documentation for the \u003ccode\u003eDataProfileJobConfig\u003c/code\u003e class within the Google Cloud Data Loss Prevention v2 API, offering reference materials and code samples.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDataProfileJobConfig\u003c/code\u003e is used to set up and configure jobs that scan resources for data profile generation, with a limit of one configuration per organization, folder, or project.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eDataProfileJobConfig\u003c/code\u003e class is 4.16.0, and the documentation includes a history of versions back to 2.15.0, with multiple releases included in between.\u003c/p\u003e\n"],["\u003cp\u003eThe class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e interfaces, with properties such as \u003ccode\u003eDataProfileActions\u003c/code\u003e, \u003ccode\u003eInspectTemplates\u003c/code\u003e, \u003ccode\u003eLocation\u003c/code\u003e, \u003ccode\u003eOtherCloudStartingLocation\u003c/code\u003e, and \u003ccode\u003eProjectId\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eData profiles generated by \u003ccode\u003eDataProfileJobConfig\u003c/code\u003e adhere to a data retention policy, and the class offers properties for specifying actions, inspection templates, scan locations, and the project ID for running the scan.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Data Loss Prevention v2 API - Class DataProfileJobConfig (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.DataProfileJobConfig)\n- [4.18.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.18.0/Google.Cloud.Dlp.V2.DataProfileJobConfig)\n- [4.17.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.17.0/Google.Cloud.Dlp.V2.DataProfileJobConfig)\n- [4.16.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.16.0/Google.Cloud.Dlp.V2.DataProfileJobConfig)\n- [4.15.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.15.0/Google.Cloud.Dlp.V2.DataProfileJobConfig)\n- [4.14.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.14.0/Google.Cloud.Dlp.V2.DataProfileJobConfig)\n- [4.13.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.13.0/Google.Cloud.Dlp.V2.DataProfileJobConfig)\n- [4.12.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.12.0/Google.Cloud.Dlp.V2.DataProfileJobConfig)\n- [4.11.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.11.0/Google.Cloud.Dlp.V2.DataProfileJobConfig)\n- [4.10.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.10.0/Google.Cloud.Dlp.V2.DataProfileJobConfig)\n- [4.9.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.9.0/Google.Cloud.Dlp.V2.DataProfileJobConfig)\n- [4.8.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.8.0/Google.Cloud.Dlp.V2.DataProfileJobConfig)\n- [4.7.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.7.0/Google.Cloud.Dlp.V2.DataProfileJobConfig)\n- [4.6.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.6.0/Google.Cloud.Dlp.V2.DataProfileJobConfig)\n- [4.5.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.5.0/Google.Cloud.Dlp.V2.DataProfileJobConfig)\n- [4.4.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.4.0/Google.Cloud.Dlp.V2.DataProfileJobConfig)\n- [4.3.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.3.0/Google.Cloud.Dlp.V2.DataProfileJobConfig)\n- [4.2.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.2.0/Google.Cloud.Dlp.V2.DataProfileJobConfig)\n- [4.1.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.1.0/Google.Cloud.Dlp.V2.DataProfileJobConfig)\n- [4.0.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.0.0/Google.Cloud.Dlp.V2.DataProfileJobConfig)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/3.5.0/Google.Cloud.Dlp.V2.DataProfileJobConfig)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/3.4.0/Google.Cloud.Dlp.V2.DataProfileJobConfig)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/3.3.0/Google.Cloud.Dlp.V2.DataProfileJobConfig)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/3.2.0/Google.Cloud.Dlp.V2.DataProfileJobConfig)\n- [2.16.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/2.16.0/Google.Cloud.Dlp.V2.DataProfileJobConfig)\n- [2.15.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/2.15.0/Google.Cloud.Dlp.V2.DataProfileJobConfig) \n\n public sealed class DataProfileJobConfig : IMessage\u003cDataProfileJobConfig\u003e, IEquatable\u003cDataProfileJobConfig\u003e, IDeepCloneable\u003cDataProfileJobConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Data Loss Prevention v2 API class DataProfileJobConfig.\n\nConfiguration for setting up a job to scan resources for profile generation.\nOnly one data profile configuration may exist per organization, folder,\nor project.\n\nThe generated data profiles are retained according to the\n[data retention policy](https://cloud.google.com/sensitive-data-protection/docs/data-profiles#retention). \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e DataProfileJobConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[DataProfileJobConfig](/dotnet/docs/reference/Google.Cloud.Dlp.V2/latest/Google.Cloud.Dlp.V2.DataProfileJobConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[DataProfileJobConfig](/dotnet/docs/reference/Google.Cloud.Dlp.V2/latest/Google.Cloud.Dlp.V2.DataProfileJobConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[DataProfileJobConfig](/dotnet/docs/reference/Google.Cloud.Dlp.V2/latest/Google.Cloud.Dlp.V2.DataProfileJobConfig), [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### DataProfileJobConfig()\n\n public DataProfileJobConfig()\n\n### DataProfileJobConfig(DataProfileJobConfig)\n\n public DataProfileJobConfig(DataProfileJobConfig other)\n\nProperties\n----------\n\n### DataProfileActions\n\n public RepeatedField\u003cDataProfileAction\u003e DataProfileActions { get; }\n\nActions to execute at the completion of the job.\n\n### InspectTemplates\n\n public RepeatedField\u003cstring\u003e InspectTemplates { get; }\n\nDetection logic for profile generation.\n\nNot all template features are used by profiles. FindingLimits,\ninclude_quote and exclude_info_types have no impact on\ndata profiling.\n\nMultiple templates may be provided if there is data in multiple regions.\nAt most one template must be specified per-region (including \"global\").\nEach region is scanned using the applicable template. If no region-specific\ntemplate is specified, but a \"global\" template is specified, it will be\ncopied to that region and used instead. If no global or region-specific\ntemplate is provided for a region with data, that region's data will not be\nscanned.\n\nFor more information, see\n\u003chttps://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency\u003e.\n\n### Location\n\n public DataProfileLocation Location { get; set; }\n\nThe data to scan.\n\n### OtherCloudStartingLocation\n\n public OtherCloudDiscoveryStartingLocation OtherCloudStartingLocation { get; set; }\n\nMust be set only when scanning other clouds.\n\n### ProjectId\n\n public string ProjectId { get; set; }\n\nThe project that will run the scan. The DLP service\naccount that exists within this project must have access to all resources\nthat are profiled, and the DLP API must be enabled."]]