Enum FileType

java.lang.Object
java.lang.Enum<FileType>
com.google.privacy.dlp.v2.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 Constants
    Enum Constant
    Description
    Included file extensions: avro
    Includes all file extensions not covered by another entry.
    Included file extensions: csv
    Microsoft 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: tsv
     
    Microsoft Word files larger than 30 MB will be scanned as binary files.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Included file extensions: avro
    static final int
    Includes all file extensions not covered by another entry.
    static final int
    Included file extensions: csv
    static final int
    Microsoft Excel files larger than 30 MB will be scanned as binary files.
    static final int
    Includes all files.
    static final int
    Included file extensions: bmp, gif, jpg, jpeg, jpe, png.
    static final int
    PDF files larger than 30 MB will be scanned as binary files.
    static final int
    Microsoft PowerPoint files larger than 30 MB will be scanned as binary files.
    static final int
    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.
    static final int
    Included file extensions: tsv
    static final int
    Microsoft Word files larger than 30 MB will be scanned as binary files.
  • Method Summary

    Modifier and Type
    Method
    Description
    static FileType
    forNumber(int value)
     
    static com.google.protobuf.Descriptors.EnumDescriptor
     
    final com.google.protobuf.Descriptors.EnumDescriptor
     
    final int
     
    final com.google.protobuf.Descriptors.EnumValueDescriptor
     
    static com.google.protobuf.Internal.EnumLiteMap<FileType>
     
    static FileType
    valueOf(int value)
    Deprecated.
    static FileType
    valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
    Returns the enum constant of this type with the specified name.
    static FileType
    Returns the enum constant of this type with the specified name.
    static FileType[]
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • FILE_TYPE_UNSPECIFIED

      public static final FileType FILE_TYPE_UNSPECIFIED
       Includes all files.
       
      FILE_TYPE_UNSPECIFIED = 0;
    • BINARY_FILE

      public static final FileType 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

      public static final FileType 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

      public static final FileType 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

      public static final FileType 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

      public static final FileType 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

      public static final FileType AVRO
       Included file extensions:
       avro
       
      AVRO = 7;
    • CSV

      public static final FileType CSV
       Included file extensions:
       csv
       
      CSV = 8;
    • TSV

      public static final FileType TSV
       Included file extensions:
       tsv
       
      TSV = 9;
    • POWERPOINT

      public static final FileType 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

      public static final FileType 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

      public static final FileType UNRECOGNIZED
  • Field Details

    • FILE_TYPE_UNSPECIFIED_VALUE

      public static final int FILE_TYPE_UNSPECIFIED_VALUE
       Includes all files.
       
      FILE_TYPE_UNSPECIFIED = 0;
      See Also:
    • BINARY_FILE_VALUE

      public static final int BINARY_FILE_VALUE
       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;
      See Also:
    • TEXT_FILE_VALUE

      public static final int TEXT_FILE_VALUE
       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;
      See Also:
    • IMAGE_VALUE

      public static final int IMAGE_VALUE
       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;
      See Also:
    • WORD_VALUE

      public static final int WORD_VALUE
       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;
      See Also:
    • PDF_VALUE

      public static final int PDF_VALUE
       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;
      See Also:
    • AVRO_VALUE

      public static final int AVRO_VALUE
       Included file extensions:
       avro
       
      AVRO = 7;
      See Also:
    • CSV_VALUE

      public static final int CSV_VALUE
       Included file extensions:
       csv
       
      CSV = 8;
      See Also:
    • TSV_VALUE

      public static final int TSV_VALUE
       Included file extensions:
       tsv
       
      TSV = 9;
      See Also:
    • POWERPOINT_VALUE

      public static final int POWERPOINT_VALUE
       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;
      See Also:
    • EXCEL_VALUE

      public static final int EXCEL_VALUE
       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;
      See Also:
  • Method Details

    • values

      public static FileType[] 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

      public static FileType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static FileType valueOf(int value)
      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 name
      NullPointerException - if the argument is null
    • forNumber

      public static FileType forNumber(int value)
      Parameters:
      value - The numeric wire value of the corresponding enum entry.
      Returns:
      The enum associated with the given numeric wire value.
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<FileType> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static FileType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
      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 name
      NullPointerException - if the argument is null