Enum FileType

  • All Implemented Interfaces:
    com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<FileType>

    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
      AVRO
      Included file extensions: avro
      BINARY_FILE
      Includes all file extensions not covered by another entry.
      CSV
      Included file extensions: csv
      EXCEL
      Excel files >30 MB will be scanned as binary files.
      FILE_TYPE_UNSPECIFIED
      Includes all files.
      IMAGE
      Included file extensions: bmp, gif, jpg, jpeg, jpe, png.
      PDF
      PDF files >30 MB will be scanned as binary files.
      POWERPOINT
      Powerpoint files >30 MB will be scanned as binary files.
      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, kix, kml, ocaml, md, txt, text, tsv, vb, vcard, vcs, wml, xcodeproj, xml, xsl, xsd, yml, yaml.
      TSV
      Included file extensions: tsv
      UNRECOGNIZED  
      WORD
      Word files >30 MB will be scanned as binary files.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int AVRO_VALUE
      Included file extensions: avro
      static int BINARY_FILE_VALUE
      Includes all file extensions not covered by another entry.
      static int CSV_VALUE
      Included file extensions: csv
      static int EXCEL_VALUE
      Excel files >30 MB will be scanned as binary files.
      static int FILE_TYPE_UNSPECIFIED_VALUE
      Includes all files.
      static int IMAGE_VALUE
      Included file extensions: bmp, gif, jpg, jpeg, jpe, png.
      static int PDF_VALUE
      PDF files >30 MB will be scanned as binary files.
      static int POWERPOINT_VALUE
      Powerpoint files >30 MB will be scanned as binary files.
      static 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, kix, kml, ocaml, md, txt, text, tsv, vb, vcard, vcs, wml, xcodeproj, xml, xsl, xsd, yml, yaml.
      static int TSV_VALUE
      Included file extensions: tsv
      static int WORD_VALUE
      Word files >30 MB will be scanned as binary files.
    • Enum Constant Detail

      • 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
         FileType's 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, 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.
         bytes_limit_per_file has no effect on image files.
         Image inspection is restricted to 'global', 'us', 'asia', and 'europe'.
         
        IMAGE = 3;
      • WORD

        public static final FileType WORD
         Word files >30 MB will be scanned as binary files.
         Included file extensions:
           docx, dotx, docm, dotm
         
        WORD = 5;
      • PDF

        public static final FileType PDF
         PDF files >30 MB will be scanned as binary files.
         Included file extensions:
           pdf
         
        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
         Powerpoint files >30 MB will be scanned as binary files.
         Included file extensions:
           pptx, pptm, potx, potm, pot
         
        POWERPOINT = 11;
      • EXCEL

        public static final FileType EXCEL
         Excel files >30 MB will be scanned as binary files.
         Included file extensions:
           xlsx, xlsm, xltx, xltm
         
        EXCEL = 12;
      • UNRECOGNIZED

        public static final FileType UNRECOGNIZED
    • Field Detail

      • FILE_TYPE_UNSPECIFIED_VALUE

        public static final int FILE_TYPE_UNSPECIFIED_VALUE
         Includes all files.
         
        FILE_TYPE_UNSPECIFIED = 0;
        See Also:
        Constant Field Values
      • 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
         FileType's in your storage scan.
         
        BINARY_FILE = 1;
        See Also:
        Constant Field Values
      • 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, kix, kml, ocaml, md,
           txt, text, tsv, vb, vcard, vcs, wml, xcodeproj, xml, xsl, xsd, yml, yaml.
         
        TEXT_FILE = 2;
        See Also:
        Constant Field Values
      • IMAGE_VALUE

        public static final int IMAGE_VALUE
         Included file extensions:
           bmp, gif, jpg, jpeg, jpe, png.
         bytes_limit_per_file has no effect on image files.
         Image inspection is restricted to 'global', 'us', 'asia', and 'europe'.
         
        IMAGE = 3;
        See Also:
        Constant Field Values
      • WORD_VALUE

        public static final int WORD_VALUE
         Word files >30 MB will be scanned as binary files.
         Included file extensions:
           docx, dotx, docm, dotm
         
        WORD = 5;
        See Also:
        Constant Field Values
      • PDF_VALUE

        public static final int PDF_VALUE
         PDF files >30 MB will be scanned as binary files.
         Included file extensions:
           pdf
         
        PDF = 6;
        See Also:
        Constant Field Values
      • AVRO_VALUE

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

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

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

        public static final int POWERPOINT_VALUE
         Powerpoint files >30 MB will be scanned as binary files.
         Included file extensions:
           pptx, pptm, potx, potm, pot
         
        POWERPOINT = 11;
        See Also:
        Constant Field Values
      • EXCEL_VALUE

        public static final int EXCEL_VALUE
         Excel files >30 MB will be scanned as binary files.
         Included file extensions:
           xlsx, xlsm, xltx, xltm
         
        EXCEL = 12;
        See Also:
        Constant Field Values
    • Method Detail

      • values

        public static FileType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (FileType c : FileType.values())
            System.out.println(c);
        
        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 final 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