public sealed class CloudStorageDiscoveryTarget : IMessage<CloudStorageDiscoveryTarget>, IEquatable<CloudStorageDiscoveryTarget>, IDeepCloneable<CloudStorageDiscoveryTarget>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Data Loss Prevention v2 API class CloudStorageDiscoveryTarget.
Target used to match against for discovery with Cloud Storage buckets.
public DiscoveryCloudStorageGenerationCadence GenerationCadence { get; set; }
Optional. How often and when to update profiles. New buckets that match
both the filter and conditions are scanned as quickly as possible
depending on system capacity.
[[["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 reference documentation for the \u003ccode\u003eCloudStorageDiscoveryTarget\u003c/code\u003e class within the Google Cloud Data Loss Prevention (DLP) v2 API, specifically for the .NET framework.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCloudStorageDiscoveryTarget\u003c/code\u003e class is used to define targets for data discovery within Cloud Storage buckets and includes properties for filtering, conditions, disabling profiling, and specifying generation cadence.\u003c/p\u003e\n"],["\u003cp\u003eThe page details the class's inheritance, implemented interfaces, constructors, and properties such as \u003ccode\u003eCadenceCase\u003c/code\u003e, \u003ccode\u003eConditions\u003c/code\u003e, \u003ccode\u003eDisabled\u003c/code\u003e, \u003ccode\u003eFilter\u003c/code\u003e, and \u003ccode\u003eGenerationCadence\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation shows a list of links to different versions of the class, ranging from version 2.15.0 up to the latest at version 4.16.0, allowing the user to read documentation for specific versions.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Data Loss Prevention v2 API - Class CloudStorageDiscoveryTarget (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.CloudStorageDiscoveryTarget)\n- [4.18.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.18.0/Google.Cloud.Dlp.V2.CloudStorageDiscoveryTarget)\n- [4.17.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.17.0/Google.Cloud.Dlp.V2.CloudStorageDiscoveryTarget)\n- [4.16.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.16.0/Google.Cloud.Dlp.V2.CloudStorageDiscoveryTarget)\n- [4.15.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.15.0/Google.Cloud.Dlp.V2.CloudStorageDiscoveryTarget)\n- [4.14.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.14.0/Google.Cloud.Dlp.V2.CloudStorageDiscoveryTarget)\n- [4.13.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.13.0/Google.Cloud.Dlp.V2.CloudStorageDiscoveryTarget)\n- [4.12.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.12.0/Google.Cloud.Dlp.V2.CloudStorageDiscoveryTarget)\n- [4.11.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.11.0/Google.Cloud.Dlp.V2.CloudStorageDiscoveryTarget)\n- [4.10.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.10.0/Google.Cloud.Dlp.V2.CloudStorageDiscoveryTarget)\n- [4.9.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.9.0/Google.Cloud.Dlp.V2.CloudStorageDiscoveryTarget)\n- [4.8.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.8.0/Google.Cloud.Dlp.V2.CloudStorageDiscoveryTarget)\n- [4.7.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.7.0/Google.Cloud.Dlp.V2.CloudStorageDiscoveryTarget)\n- [4.6.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.6.0/Google.Cloud.Dlp.V2.CloudStorageDiscoveryTarget)\n- [4.5.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.5.0/Google.Cloud.Dlp.V2.CloudStorageDiscoveryTarget)\n- [4.4.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.4.0/Google.Cloud.Dlp.V2.CloudStorageDiscoveryTarget)\n- [4.3.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.3.0/Google.Cloud.Dlp.V2.CloudStorageDiscoveryTarget)\n- [4.2.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.2.0/Google.Cloud.Dlp.V2.CloudStorageDiscoveryTarget)\n- [4.1.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.1.0/Google.Cloud.Dlp.V2.CloudStorageDiscoveryTarget)\n- [4.0.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.0.0/Google.Cloud.Dlp.V2.CloudStorageDiscoveryTarget)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/3.5.0/Google.Cloud.Dlp.V2.CloudStorageDiscoveryTarget)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/3.4.0/Google.Cloud.Dlp.V2.CloudStorageDiscoveryTarget)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/3.3.0/Google.Cloud.Dlp.V2.CloudStorageDiscoveryTarget)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/3.2.0/Google.Cloud.Dlp.V2.CloudStorageDiscoveryTarget)\n- [2.16.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/2.16.0/Google.Cloud.Dlp.V2.CloudStorageDiscoveryTarget)\n- [2.15.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/2.15.0/Google.Cloud.Dlp.V2.CloudStorageDiscoveryTarget) \n\n public sealed class CloudStorageDiscoveryTarget : IMessage\u003cCloudStorageDiscoveryTarget\u003e, IEquatable\u003cCloudStorageDiscoveryTarget\u003e, IDeepCloneable\u003cCloudStorageDiscoveryTarget\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Data Loss Prevention v2 API class CloudStorageDiscoveryTarget.\n\nTarget used to match against for discovery with Cloud Storage buckets. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CloudStorageDiscoveryTarget \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CloudStorageDiscoveryTarget](/dotnet/docs/reference/Google.Cloud.Dlp.V2/latest/Google.Cloud.Dlp.V2.CloudStorageDiscoveryTarget), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CloudStorageDiscoveryTarget](/dotnet/docs/reference/Google.Cloud.Dlp.V2/latest/Google.Cloud.Dlp.V2.CloudStorageDiscoveryTarget), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CloudStorageDiscoveryTarget](/dotnet/docs/reference/Google.Cloud.Dlp.V2/latest/Google.Cloud.Dlp.V2.CloudStorageDiscoveryTarget), [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### CloudStorageDiscoveryTarget()\n\n public CloudStorageDiscoveryTarget()\n\n### CloudStorageDiscoveryTarget(CloudStorageDiscoveryTarget)\n\n public CloudStorageDiscoveryTarget(CloudStorageDiscoveryTarget other)\n\nProperties\n----------\n\n### CadenceCase\n\n public CloudStorageDiscoveryTarget.CadenceOneofCase CadenceCase { get; }\n\n### Conditions\n\n public DiscoveryFileStoreConditions Conditions { get; set; }\n\nOptional. In addition to matching the filter, these conditions must be true\nbefore a profile is generated.\n\n### Disabled\n\n public Disabled Disabled { get; set; }\n\nOptional. Disable profiling for buckets that match this filter.\n\n### Filter\n\n public DiscoveryCloudStorageFilter Filter { get; set; }\n\nRequired. The buckets the generation_cadence applies to. The first target\nwith a matching filter will be the one to apply to a bucket.\n\n### GenerationCadence\n\n public DiscoveryCloudStorageGenerationCadence GenerationCadence { get; set; }\n\nOptional. How often and when to update profiles. New buckets that match\nboth the filter and conditions are scanned as quickly as possible\ndepending on system capacity."]]