Package com.google.privacy.dlp.v2
Enum FileType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<FileType>
@Generated
public enum FileType
extends Enum<FileType>
implements com.google.protobuf.ProtocolMessageEnum
Definitions of file type groups to scan. New types will be added to this list.Protobuf enum
google.privacy.dlp.v2.FileType-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIncluded file extensions: avroIncludes all file extensions not covered by another entry.Included file extensions: csvMicrosoft Excel files larger than 30 MB will be scanned as binary files.Includes all files.Included file extensions: bmp, gif, jpg, jpeg, jpe, png.PDF files larger than 30 MB will be scanned as binary files.Microsoft PowerPoint files larger than 30 MB will be scanned as binary files.Included file extensions: asc,asp, aspx, brf, c, cc,cfm, cgi, cpp, csv, cxx, c++, cs, css, dart, dat, dot, eml,, epbub, ged, go, h, hh, hpp, hxx, h++, hs, html, htm, mkd, markdown, m, ml, mli, perl, pl, plist, pm, php, phtml, pht, properties, py, pyw, rb, rbw, rs, rss, rc, scala, sh, sql, swift, tex, shtml, shtm, xhtml, lhs, ics, ini, java, js, json, jsonl, kix, kml, ocaml, md, txt, text, tsv, vb, vcard, vcs, wml, xcodeproj, xml, xsl, xsd, yml, yaml.Included file extensions: tsvMicrosoft Word files larger than 30 MB will be scanned as binary files. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIncluded file extensions: avrostatic final intIncludes all file extensions not covered by another entry.static final intIncluded file extensions: csvstatic final intMicrosoft Excel files larger than 30 MB will be scanned as binary files.static final intIncludes all files.static final intIncluded file extensions: bmp, gif, jpg, jpeg, jpe, png.static final intPDF files larger than 30 MB will be scanned as binary files.static final intMicrosoft PowerPoint files larger than 30 MB will be scanned as binary files.static final intIncluded file extensions: asc,asp, aspx, brf, c, cc,cfm, cgi, cpp, csv, cxx, c++, cs, css, dart, dat, dot, eml,, epbub, ged, go, h, hh, hpp, hxx, h++, hs, html, htm, mkd, markdown, m, ml, mli, perl, pl, plist, pm, php, phtml, pht, properties, py, pyw, rb, rbw, rs, rss, rc, scala, sh, sql, swift, tex, shtml, shtm, xhtml, lhs, ics, ini, java, js, json, jsonl, kix, kml, ocaml, md, txt, text, tsv, vb, vcard, vcs, wml, xcodeproj, xml, xsl, xsd, yml, yaml.static final intIncluded file extensions: tsvstatic final intMicrosoft Word files larger than 30 MB will be scanned as binary files. -
Method Summary
Modifier and TypeMethodDescriptionstatic FileTypeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<FileType>static FileTypevalueOf(int value) Deprecated.static FileTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static FileTypeReturns the enum constant of this type with the specified name.static FileType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
FILE_TYPE_UNSPECIFIED
Includes all files.
FILE_TYPE_UNSPECIFIED = 0; -
BINARY_FILE
Includes all file extensions not covered by another entry. Binary scanning attempts to convert the content of the file to utf_8 to scan the file. If you wish to avoid this fall back, specify one or more of the other file types in your storage scan.
BINARY_FILE = 1; -
TEXT_FILE
Included file extensions: asc,asp, aspx, brf, c, cc,cfm, cgi, cpp, csv, cxx, c++, cs, css, dart, dat, dot, eml,, epbub, ged, go, h, hh, hpp, hxx, h++, hs, html, htm, mkd, markdown, m, ml, mli, perl, pl, plist, pm, php, phtml, pht, properties, py, pyw, rb, rbw, rs, rss, rc, scala, sh, sql, swift, tex, shtml, shtm, xhtml, lhs, ics, ini, java, js, json, jsonl, kix, kml, ocaml, md, txt, text, tsv, vb, vcard, vcs, wml, xcodeproj, xml, xsl, xsd, yml, yaml.
TEXT_FILE = 2; -
IMAGE
Included file extensions: bmp, gif, jpg, jpeg, jpe, png. Setting [bytes_limit_per_file][google.privacy.dlp.v2.CloudStorageOptions.bytes_limit_per_file] or [bytes_limit_per_file_percent][google.privacy.dlp.v2.CloudStorageOptions.bytes_limit_per_file] has no effect on image files. Image inspection is restricted to the `global`, `us`, `asia`, and `europe` regions.
IMAGE = 3; -
WORD
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.
WORD = 5; -
PDF
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.
PDF = 6; -
AVRO
Included file extensions: avro
AVRO = 7; -
CSV
Included file extensions: csv
CSV = 8; -
TSV
Included file extensions: tsv
TSV = 9; -
POWERPOINT
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.
POWERPOINT = 11; -
EXCEL
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.
EXCEL = 12; -
UNRECOGNIZED
-
-
Field Details
-
FILE_TYPE_UNSPECIFIED_VALUE
public static final int FILE_TYPE_UNSPECIFIED_VALUEIncludes all files.
FILE_TYPE_UNSPECIFIED = 0;- See Also:
-
BINARY_FILE_VALUE
public static final int BINARY_FILE_VALUEIncludes all file extensions not covered by another entry. Binary scanning attempts to convert the content of the file to utf_8 to scan the file. If you wish to avoid this fall back, specify one or more of the other file types in your storage scan.
BINARY_FILE = 1;- See Also:
-
TEXT_FILE_VALUE
public static final int TEXT_FILE_VALUEIncluded file extensions: asc,asp, aspx, brf, c, cc,cfm, cgi, cpp, csv, cxx, c++, cs, css, dart, dat, dot, eml,, epbub, ged, go, h, hh, hpp, hxx, h++, hs, html, htm, mkd, markdown, m, ml, mli, perl, pl, plist, pm, php, phtml, pht, properties, py, pyw, rb, rbw, rs, rss, rc, scala, sh, sql, swift, tex, shtml, shtm, xhtml, lhs, ics, ini, java, js, json, jsonl, kix, kml, ocaml, md, txt, text, tsv, vb, vcard, vcs, wml, xcodeproj, xml, xsl, xsd, yml, yaml.
TEXT_FILE = 2;- See Also:
-
IMAGE_VALUE
public static final int IMAGE_VALUEIncluded file extensions: bmp, gif, jpg, jpeg, jpe, png. Setting [bytes_limit_per_file][google.privacy.dlp.v2.CloudStorageOptions.bytes_limit_per_file] or [bytes_limit_per_file_percent][google.privacy.dlp.v2.CloudStorageOptions.bytes_limit_per_file] has no effect on image files. Image inspection is restricted to the `global`, `us`, `asia`, and `europe` regions.
IMAGE = 3;- See Also:
-
WORD_VALUE
public static final int WORD_VALUEMicrosoft 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.
WORD = 5;- See Also:
-
PDF_VALUE
public static final int PDF_VALUEPDF 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.
PDF = 6;- See Also:
-
AVRO_VALUE
public static final int AVRO_VALUEIncluded file extensions: avro
AVRO = 7;- See Also:
-
CSV_VALUE
public static final int CSV_VALUEIncluded file extensions: csv
CSV = 8;- See Also:
-
TSV_VALUE
public static final int TSV_VALUEIncluded file extensions: tsv
TSV = 9;- See Also:
-
POWERPOINT_VALUE
public static final int POWERPOINT_VALUEMicrosoft 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.
POWERPOINT = 11;- See Also:
-
EXCEL_VALUE
public static final int EXCEL_VALUEMicrosoft 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.
EXCEL = 12;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-