Included file extensions:
bmp, gif, jpg, jpeg, jpe, png. Setting
bytes_limit_per_file
or
bytes_limit_per_file_percent
has no effect on image files. Image inspection is restricted to the
global, us, asia, and europe regions.
Generated from protobuf enum IMAGE = 3;
WORD
Value: 5
Microsoft Word files larger than 30 MB will be scanned as binary files.
Included file extensions:
docx, dotx, docm, dotm. Setting bytes_limit_per_file or
bytes_limit_per_file_percent has no effect on Word files.
Generated from protobuf enum WORD = 5;
PDF
Value: 6
PDF files larger than 30 MB will be scanned as binary files.
Included file extensions:
pdf. Setting bytes_limit_per_file or bytes_limit_per_file_percent
has no effect on PDF files.
Generated from protobuf enum PDF = 6;
AVRO
Value: 7
Included file extensions:
avro
Generated from protobuf enum AVRO = 7;
CSV
Value: 8
Included file extensions:
csv
Generated from protobuf enum CSV = 8;
TSV
Value: 9
Included file extensions:
tsv
Generated from protobuf enum TSV = 9;
POWERPOINT
Value: 11
Microsoft PowerPoint files larger than 30 MB will be scanned as binary
files. Included file extensions:
pptx, pptm, potx, potm, pot. Setting bytes_limit_per_file or
bytes_limit_per_file_percent has no effect on PowerPoint files.
Generated from protobuf enum POWERPOINT = 11;
EXCEL
Value: 12
Microsoft Excel files larger than 30 MB will be scanned as binary files.
Included file extensions:
xlsx, xlsm, xltx, xltm. Setting bytes_limit_per_file or
bytes_limit_per_file_percent has no effect on Excel files.
[[["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 FileType (2.6.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.6.1 (latest)](/php/docs/reference/cloud-dlp/latest/V2.FileType)\n- [2.6.0](/php/docs/reference/cloud-dlp/2.6.0/V2.FileType)\n- [2.4.1](/php/docs/reference/cloud-dlp/2.4.1/V2.FileType)\n- [2.3.0](/php/docs/reference/cloud-dlp/2.3.0/V2.FileType)\n- [2.2.3](/php/docs/reference/cloud-dlp/2.2.3/V2.FileType)\n- [2.1.0](/php/docs/reference/cloud-dlp/2.1.0/V2.FileType)\n- [2.0.0](/php/docs/reference/cloud-dlp/2.0.0/V2.FileType)\n- [1.19.0](/php/docs/reference/cloud-dlp/1.19.0/V2.FileType)\n- [1.18.0](/php/docs/reference/cloud-dlp/1.18.0/V2.FileType)\n- [1.17.0](/php/docs/reference/cloud-dlp/1.17.0/V2.FileType)\n- [1.16.0](/php/docs/reference/cloud-dlp/1.16.0/V2.FileType)\n- [1.15.1](/php/docs/reference/cloud-dlp/1.15.1/V2.FileType)\n- [1.14.0](/php/docs/reference/cloud-dlp/1.14.0/V2.FileType)\n- [1.13.2](/php/docs/reference/cloud-dlp/1.13.2/V2.FileType)\n- [1.12.0](/php/docs/reference/cloud-dlp/1.12.0/V2.FileType)\n- [1.11.0](/php/docs/reference/cloud-dlp/1.11.0/V2.FileType)\n- [1.10.2](/php/docs/reference/cloud-dlp/1.10.2/V2.FileType)\n- [1.9.0](/php/docs/reference/cloud-dlp/1.9.0/V2.FileType)\n- [1.8.6](/php/docs/reference/cloud-dlp/1.8.6/V2.FileType) \nReference documentation and code samples for the Data Loss Prevention V2 Client class FileType.\n\nDefinitions of file type groups to scan. New types will be added to this\nlist.\n\nProtobuf type `google.privacy.dlp.v2.FileType`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dlp \\\\ V2\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### FILE_TYPE_UNSPECIFIED\n\n Value: 0\n\nIncludes all files.\n\nGenerated from protobuf enum `FILE_TYPE_UNSPECIFIED = 0;`\n\n### BINARY_FILE\n\n Value: 1\n\nIncludes all file extensions not covered by another entry. Binary\nscanning attempts to convert the content of the file to utf_8 to scan\nthe file.\n\nIf you wish to avoid this fall back, specify one or more of the other\nfile types in your storage scan.\n\nGenerated from protobuf enum `BINARY_FILE = 1;`\n\n### TEXT_FILE\n\n Value: 2\n\nIncluded file extensions:\nasc,asp, aspx, brf, c, cc,cfm, cgi, cpp, csv, cxx, c++, cs, css, dart,\ndat, dot, eml,, epbub, ged, go, h, hh, hpp, hxx, h++, hs, html, htm,\nmkd, markdown, m, ml, mli, perl, pl, plist, pm, php, phtml, pht,\nproperties, py, pyw, rb, rbw, rs, rss, rc, scala, sh, sql, swift, tex,\nshtml, shtm, xhtml, lhs, ics, ini, java, js, json, jsonl, kix, kml,\nocaml, md, txt, text, tsv, vb, vcard, vcs, wml, xcodeproj, xml, xsl, xsd,\nyml, yaml.\n\nGenerated from protobuf enum `TEXT_FILE = 2;`\n\n### IMAGE\n\n Value: 3\n\nIncluded file extensions:\nbmp, gif, jpg, jpeg, jpe, png. Setting\n[bytes_limit_per_file](/php/docs/reference/cloud-dlp/latest/V2.CloudStorageOptions#_Google_Cloud_Dlp_V2_CloudStorageOptions__getBytesLimitPerFile__)\nor\n[bytes_limit_per_file_percent](/php/docs/reference/cloud-dlp/latest/V2.CloudStorageOptions#_Google_Cloud_Dlp_V2_CloudStorageOptions__getBytesLimitPerFile__)\nhas no effect on image files. Image inspection is restricted to the\n`global`, `us`, `asia`, and `europe` regions.\n\nGenerated from protobuf enum `IMAGE = 3;`\n\n### WORD\n\n Value: 5\n\nMicrosoft Word files larger than 30 MB will be scanned as binary files.\n\nIncluded file extensions:\ndocx, dotx, docm, dotm. Setting `bytes_limit_per_file` or\n`bytes_limit_per_file_percent` has no effect on Word files.\n\nGenerated from protobuf enum `WORD = 5;`\n\n### PDF\n\n Value: 6\n\nPDF files larger than 30 MB will be scanned as binary files.\n\nIncluded file extensions:\npdf. Setting `bytes_limit_per_file` or `bytes_limit_per_file_percent`\nhas no effect on PDF files.\n\nGenerated from protobuf enum `PDF = 6;`\n\n### AVRO\n\n Value: 7\n\nIncluded file extensions:\navro\n\nGenerated from protobuf enum `AVRO = 7;`\n\n### CSV\n\n Value: 8\n\nIncluded file extensions:\ncsv\n\nGenerated from protobuf enum `CSV = 8;`\n\n### TSV\n\n Value: 9\n\nIncluded file extensions:\ntsv\n\nGenerated from protobuf enum `TSV = 9;`\n\n### POWERPOINT\n\n Value: 11\n\nMicrosoft PowerPoint files larger than 30 MB will be scanned as binary\nfiles. Included file extensions:\npptx, pptm, potx, potm, pot. Setting `bytes_limit_per_file` or\n`bytes_limit_per_file_percent` has no effect on PowerPoint files.\n\nGenerated from protobuf enum `POWERPOINT = 11;`\n\n### EXCEL\n\n Value: 12\n\nMicrosoft Excel files larger than 30 MB will be scanned as binary files.\n\nIncluded file extensions:\nxlsx, xlsm, xltx, xltm. Setting `bytes_limit_per_file` or\n`bytes_limit_per_file_percent` has no effect on Excel files.\n\nGenerated from protobuf enum `EXCEL = 12;`"]]