public sealed class CreateDiscoveryConfigRequest : IMessage<CreateDiscoveryConfigRequest>, IEquatable<CreateDiscoveryConfigRequest>, IDeepCloneable<CreateDiscoveryConfigRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Data Loss Prevention v2 API class CreateDiscoveryConfigRequest.
The config ID can contain uppercase and lowercase letters,
numbers, and hyphens; that is, it must match the regular
expression: [a-zA-Z\d-_]+. The maximum length is 100
characters. Can be empty to allow the system to generate one.
The following example parent string specifies a parent project with the
identifier example-project, and specifies the europe-west3 location
for processing data:
[[["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-03 UTC."],[[["\u003cp\u003eThe latest version available for \u003ccode\u003eCreateDiscoveryConfigRequest\u003c/code\u003e in the Google Cloud Data Loss Prevention v2 API is version 4.16.0.\u003c/p\u003e\n"],["\u003cp\u003eThis API class is used to create a request message for configuring data discovery within a project or organization.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreateDiscoveryConfigRequest\u003c/code\u003e class implements multiple interfaces such as IMessage, IEquatable, IDeepCloneable, and IBufferMessage.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eCreateDiscoveryConfigRequest\u003c/code\u003e include \u003ccode\u003eConfigId\u003c/code\u003e, \u003ccode\u003eDiscoveryConfig\u003c/code\u003e, \u003ccode\u003eParent\u003c/code\u003e, and \u003ccode\u003eParentAsLocationName\u003c/code\u003e, each with specific requirements for how they are formatted and can be used.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation provides version history, usage details, and inherited members, along with how to construct the API request with specific parameters.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Data Loss Prevention v2 API - Class CreateDiscoveryConfigRequest (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.CreateDiscoveryConfigRequest)\n- [4.18.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.18.0/Google.Cloud.Dlp.V2.CreateDiscoveryConfigRequest)\n- [4.17.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.17.0/Google.Cloud.Dlp.V2.CreateDiscoveryConfigRequest)\n- [4.16.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.16.0/Google.Cloud.Dlp.V2.CreateDiscoveryConfigRequest)\n- [4.15.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.15.0/Google.Cloud.Dlp.V2.CreateDiscoveryConfigRequest)\n- [4.14.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.14.0/Google.Cloud.Dlp.V2.CreateDiscoveryConfigRequest)\n- [4.13.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.13.0/Google.Cloud.Dlp.V2.CreateDiscoveryConfigRequest)\n- [4.12.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.12.0/Google.Cloud.Dlp.V2.CreateDiscoveryConfigRequest)\n- [4.11.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.11.0/Google.Cloud.Dlp.V2.CreateDiscoveryConfigRequest)\n- [4.10.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.10.0/Google.Cloud.Dlp.V2.CreateDiscoveryConfigRequest)\n- [4.9.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.9.0/Google.Cloud.Dlp.V2.CreateDiscoveryConfigRequest)\n- [4.8.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.8.0/Google.Cloud.Dlp.V2.CreateDiscoveryConfigRequest)\n- [4.7.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.7.0/Google.Cloud.Dlp.V2.CreateDiscoveryConfigRequest)\n- [4.6.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.6.0/Google.Cloud.Dlp.V2.CreateDiscoveryConfigRequest)\n- [4.5.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.5.0/Google.Cloud.Dlp.V2.CreateDiscoveryConfigRequest)\n- [4.4.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.4.0/Google.Cloud.Dlp.V2.CreateDiscoveryConfigRequest)\n- [4.3.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.3.0/Google.Cloud.Dlp.V2.CreateDiscoveryConfigRequest)\n- [4.2.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.2.0/Google.Cloud.Dlp.V2.CreateDiscoveryConfigRequest)\n- [4.1.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.1.0/Google.Cloud.Dlp.V2.CreateDiscoveryConfigRequest)\n- [4.0.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.0.0/Google.Cloud.Dlp.V2.CreateDiscoveryConfigRequest)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/3.5.0/Google.Cloud.Dlp.V2.CreateDiscoveryConfigRequest)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/3.4.0/Google.Cloud.Dlp.V2.CreateDiscoveryConfigRequest)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/3.3.0/Google.Cloud.Dlp.V2.CreateDiscoveryConfigRequest)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/3.2.0/Google.Cloud.Dlp.V2.CreateDiscoveryConfigRequest)\n- [2.16.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/2.16.0/Google.Cloud.Dlp.V2.CreateDiscoveryConfigRequest)\n- [2.15.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/2.15.0/Google.Cloud.Dlp.V2.CreateDiscoveryConfigRequest) \n\n public sealed class CreateDiscoveryConfigRequest : IMessage\u003cCreateDiscoveryConfigRequest\u003e, IEquatable\u003cCreateDiscoveryConfigRequest\u003e, IDeepCloneable\u003cCreateDiscoveryConfigRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Data Loss Prevention v2 API class CreateDiscoveryConfigRequest.\n\nRequest message for CreateDiscoveryConfig. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CreateDiscoveryConfigRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CreateDiscoveryConfigRequest](/dotnet/docs/reference/Google.Cloud.Dlp.V2/latest/Google.Cloud.Dlp.V2.CreateDiscoveryConfigRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CreateDiscoveryConfigRequest](/dotnet/docs/reference/Google.Cloud.Dlp.V2/latest/Google.Cloud.Dlp.V2.CreateDiscoveryConfigRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CreateDiscoveryConfigRequest](/dotnet/docs/reference/Google.Cloud.Dlp.V2/latest/Google.Cloud.Dlp.V2.CreateDiscoveryConfigRequest), [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### CreateDiscoveryConfigRequest()\n\n public CreateDiscoveryConfigRequest()\n\n### CreateDiscoveryConfigRequest(CreateDiscoveryConfigRequest)\n\n public CreateDiscoveryConfigRequest(CreateDiscoveryConfigRequest other)\n\nProperties\n----------\n\n### ConfigId\n\n public string ConfigId { get; set; }\n\nThe config ID can contain uppercase and lowercase letters,\nnumbers, and hyphens; that is, it must match the regular\nexpression: `[a-zA-Z\\d-_]+`. The maximum length is 100\ncharacters. Can be empty to allow the system to generate one.\n\n### DiscoveryConfig\n\n public DiscoveryConfig DiscoveryConfig { get; set; }\n\nRequired. The DiscoveryConfig to create.\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. Parent resource name.\n\nThe format of this value varies depending on the scope of the request\n(project or organization):\n\n- Projects scope: `projects/{project_id}/locations/{location_id}`\n- Organizations scope: `organizations/{org_id}/locations/{location_id}`\n\nThe following example `parent` string specifies a parent project with the\nidentifier `example-project`, and specifies the `europe-west3` location\nfor processing data: \n\n parent=projects/example-project/locations/europe-west3\n\n### ParentAsLocationName\n\n public LocationName ParentAsLocationName { get; set; }\n\n[LocationName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.Dlp.V2/latest/Google.Cloud.Dlp.V2.CreateDiscoveryConfigRequest#Google_Cloud_Dlp_V2_CreateDiscoveryConfigRequest_Parent) resource name property."]]