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\u003eThe \u003ccode\u003eCloudStorageRegex\u003c/code\u003e class in the Google Cloud Data Loss Prevention v2 API is used to define patterns for matching against file stores.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of \u003ccode\u003eCloudStorageRegex\u003c/code\u003e is 4.16.0, and multiple previous versions are available for reference.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCloudStorageRegex\u003c/code\u003e allows specifying regex patterns for \u003ccode\u003eBucketNameRegex\u003c/code\u003e and \u003ccode\u003eProjectIdRegex\u003c/code\u003e, offering options to match specific or all buckets and projects.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCloudStorageRegex\u003c/code\u003e implements multiple interfaces like IMessage, IEquatable, IDeepCloneable, and IBufferMessage, providing varied functionalities.\u003c/p\u003e\n"],["\u003cp\u003eThe class \u003ccode\u003eCloudStorageRegex\u003c/code\u003e has two constructors, one of which accepts another \u003ccode\u003eCloudStorageRegex\u003c/code\u003e to create a new object, and it inherits basic methods like \u003ccode\u003eGetHashCode\u003c/code\u003e and \u003ccode\u003eToString\u003c/code\u003e from the \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"]]],[],null,[]]