public sealed class CloudStorageRegex : IMessage<CloudStorageRegex>, IEquatable<CloudStorageRegex>, IDeepCloneable<CloudStorageRegex>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Data Loss Prevention v2 API class CloudStorageRegex.
A pattern to match against one or more file stores. At least one
pattern must be specified. Regular expressions use RE2
syntax; a guide can be found
under the google/re2 repository on GitHub.
Optional. Regex to test the bucket name against. If empty, all buckets
match. Example: "marketing2021" or "(marketing)\d{4}" will both match the
bucket gs://marketing2021
[[["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 page provides documentation for the \u003ccode\u003eCloudStorageRegex\u003c/code\u003e class within the Google Cloud Data Loss Prevention (DLP) v2 API, detailing its use for pattern matching against file stores.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCloudStorageRegex\u003c/code\u003e class is implemented as a sealed class and inherits from \u003ccode\u003eobject\u003c/code\u003e, additionally implementing 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"],["\u003cp\u003eThe documentation includes reference material for multiple versions of the API, ranging from version 2.15.0 to the latest 4.16.0, offering a comprehensive guide across different releases.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers the ability to specify regex patterns for both \u003ccode\u003eBucketNameRegex\u003c/code\u003e and \u003ccode\u003eProjectIdRegex\u003c/code\u003e which will be used to match against the specific Google storage bucket or project.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two constructors, one default constructor which takes no parameters and one that takes another \u003ccode\u003eCloudStorageRegex\u003c/code\u003e class to copy from.\u003c/p\u003e\n"]]],[],null,[]]