Reference documentation and code samples for the Data Loss Prevention V2 Client class FileSet.
Set of files to scan.
Generated from protobuf message google.privacy.dlp.v2.CloudStorageOptions.FileSet
Namespace
Google \ Cloud \ Dlp \ V2 \ CloudStorageOptions
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ url
string
The Cloud Storage url of the file(s) to scan, in the format gs://<bucket>/<path>. Trailing wildcard in the path is allowed. If the url ends in a trailing slash, the bucket or directory represented by the url will be scanned non-recursively (content in sub-directories will not be scanned). This means that gs://mybucket/ is equivalent to gs://mybucket/*, and gs://mybucket/directory/ is equivalent to gs://mybucket/directory/*. Exactly one of url or regex_file_set must be set.
The regex-filtered set of files to scan. Exactly one of url or regex_file_set must be set.
getUrl
The Cloud Storage url of the file(s) to scan, in the format
gs://<bucket>/<path>. Trailing wildcard in the path is allowed.
If the url ends in a trailing slash, the bucket or directory represented
by the url will be scanned non-recursively (content in sub-directories
will not be scanned). This means that gs://mybucket/ is equivalent to
gs://mybucket/*, and gs://mybucket/directory/ is equivalent to
gs://mybucket/directory/*.
Exactly one of url or regex_file_set must be set.
Returns
Type
Description
string
setUrl
The Cloud Storage url of the file(s) to scan, in the format
gs://<bucket>/<path>. Trailing wildcard in the path is allowed.
If the url ends in a trailing slash, the bucket or directory represented
by the url will be scanned non-recursively (content in sub-directories
will not be scanned). This means that gs://mybucket/ is equivalent to
gs://mybucket/*, and gs://mybucket/directory/ is equivalent to
gs://mybucket/directory/*.
Exactly one of url or regex_file_set must be set.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getRegexFileSet
The regex-filtered set of files to scan. Exactly one of url or
regex_file_set must be set.
[[["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-04 UTC."],[],[],null,["# Data Loss Prevention V2 Client - Class FileSet (2.6.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.6.1 (latest)](/php/docs/reference/cloud-dlp/latest/V2.CloudStorageOptions.FileSet)\n- [2.6.0](/php/docs/reference/cloud-dlp/2.6.0/V2.CloudStorageOptions.FileSet)\n- [2.4.1](/php/docs/reference/cloud-dlp/2.4.1/V2.CloudStorageOptions.FileSet)\n- [2.3.0](/php/docs/reference/cloud-dlp/2.3.0/V2.CloudStorageOptions.FileSet)\n- [2.2.3](/php/docs/reference/cloud-dlp/2.2.3/V2.CloudStorageOptions.FileSet)\n- [2.1.0](/php/docs/reference/cloud-dlp/2.1.0/V2.CloudStorageOptions.FileSet)\n- [2.0.0](/php/docs/reference/cloud-dlp/2.0.0/V2.CloudStorageOptions.FileSet)\n- [1.19.0](/php/docs/reference/cloud-dlp/1.19.0/V2.CloudStorageOptions.FileSet)\n- [1.18.0](/php/docs/reference/cloud-dlp/1.18.0/V2.CloudStorageOptions.FileSet)\n- [1.17.0](/php/docs/reference/cloud-dlp/1.17.0/V2.CloudStorageOptions.FileSet)\n- [1.16.0](/php/docs/reference/cloud-dlp/1.16.0/V2.CloudStorageOptions.FileSet)\n- [1.15.1](/php/docs/reference/cloud-dlp/1.15.1/V2.CloudStorageOptions.FileSet)\n- [1.14.0](/php/docs/reference/cloud-dlp/1.14.0/V2.CloudStorageOptions.FileSet)\n- [1.13.2](/php/docs/reference/cloud-dlp/1.13.2/V2.CloudStorageOptions.FileSet)\n- [1.12.0](/php/docs/reference/cloud-dlp/1.12.0/V2.CloudStorageOptions.FileSet)\n- [1.11.0](/php/docs/reference/cloud-dlp/1.11.0/V2.CloudStorageOptions.FileSet)\n- [1.10.2](/php/docs/reference/cloud-dlp/1.10.2/V2.CloudStorageOptions.FileSet)\n- [1.9.0](/php/docs/reference/cloud-dlp/1.9.0/V2.CloudStorageOptions.FileSet)\n- [1.8.6](/php/docs/reference/cloud-dlp/1.8.6/V2.CloudStorageOptions.FileSet) \nReference documentation and code samples for the Data Loss Prevention V2 Client class FileSet.\n\nSet of files to scan.\n\nGenerated from protobuf message `google.privacy.dlp.v2.CloudStorageOptions.FileSet`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dlp \\\\ V2 \\\\ CloudStorageOptions\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getUrl\n\nThe Cloud Storage url of the file(s) to scan, in the format\n`gs://\u003cbucket\u003e/\u003cpath\u003e`. Trailing wildcard in the path is allowed.\n\nIf the url ends in a trailing slash, the bucket or directory represented\nby the url will be scanned non-recursively (content in sub-directories\nwill not be scanned). This means that `gs://mybucket/` is equivalent to\n`gs://mybucket/*`, and `gs://mybucket/directory/` is equivalent to\n`gs://mybucket/directory/*`.\nExactly one of `url` or `regex_file_set` must be set.\n\n### setUrl\n\nThe Cloud Storage url of the file(s) to scan, in the format\n`gs://\u003cbucket\u003e/\u003cpath\u003e`. Trailing wildcard in the path is allowed.\n\nIf the url ends in a trailing slash, the bucket or directory represented\nby the url will be scanned non-recursively (content in sub-directories\nwill not be scanned). This means that `gs://mybucket/` is equivalent to\n`gs://mybucket/*`, and `gs://mybucket/directory/` is equivalent to\n`gs://mybucket/directory/*`.\nExactly one of `url` or `regex_file_set` must be set.\n\n### getRegexFileSet\n\nThe regex-filtered set of files to scan. Exactly one of `url` or\n`regex_file_set` must be set.\n\n### hasRegexFileSet\n\n### clearRegexFileSet\n\n### setRegexFileSet\n\nThe regex-filtered set of files to scan. Exactly one of `url` or\n`regex_file_set` must be set."]]