Enum ByteContentItem.BytesType

  • All Implemented Interfaces:
    com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<ByteContentItem.BytesType>
    Enclosing class:
    ByteContentItem

    public static enum ByteContentItem.BytesType
    extends Enum<ByteContentItem.BytesType>
    implements com.google.protobuf.ProtocolMessageEnum
     The type of data being sent for inspection. To learn more, see
     [Supported file
     types](https://cloud.google.com/dlp/docs/supported-file-types).
     
    Protobuf enum google.privacy.dlp.v2.ByteContentItem.BytesType
    • Field Detail

      • BYTES_TYPE_UNSPECIFIED_VALUE

        public static final int BYTES_TYPE_UNSPECIFIED_VALUE
         Unused
         
        BYTES_TYPE_UNSPECIFIED = 0;
        See Also:
        Constant Field Values
      • IMAGE_VALUE

        public static final int IMAGE_VALUE
         Any image type.
         
        IMAGE = 6;
        See Also:
        Constant Field Values
      • IMAGE_JPEG_VALUE

        public static final int IMAGE_JPEG_VALUE
         jpeg
         
        IMAGE_JPEG = 1;
        See Also:
        Constant Field Values
      • IMAGE_BMP_VALUE

        public static final int IMAGE_BMP_VALUE
         bmp
         
        IMAGE_BMP = 2;
        See Also:
        Constant Field Values
      • IMAGE_PNG_VALUE

        public static final int IMAGE_PNG_VALUE
         png
         
        IMAGE_PNG = 3;
        See Also:
        Constant Field Values
      • IMAGE_SVG_VALUE

        public static final int IMAGE_SVG_VALUE
         svg
         
        IMAGE_SVG = 4;
        See Also:
        Constant Field Values
      • TEXT_UTF8_VALUE

        public static final int TEXT_UTF8_VALUE
         plain text
         
        TEXT_UTF8 = 5;
        See Also:
        Constant Field Values
      • WORD_DOCUMENT_VALUE

        public static final int WORD_DOCUMENT_VALUE
         docx, docm, dotx, dotm
         
        WORD_DOCUMENT = 7;
        See Also:
        Constant Field Values
      • POWERPOINT_DOCUMENT_VALUE

        public static final int POWERPOINT_DOCUMENT_VALUE
         pptx, pptm, potx, potm, pot
         
        POWERPOINT_DOCUMENT = 9;
        See Also:
        Constant Field Values
      • EXCEL_DOCUMENT_VALUE

        public static final int EXCEL_DOCUMENT_VALUE
         xlsx, xlsm, xltx, xltm
         
        EXCEL_DOCUMENT = 10;
        See Also:
        Constant Field Values
    • Method Detail

      • values

        public static ByteContentItem.BytesType[] 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 (ByteContentItem.BytesType c : ByteContentItem.BytesType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ByteContentItem.BytesType 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 ByteContentItem.BytesType 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 ByteContentItem.BytesType 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<ByteContentItem.BytesType> 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 ByteContentItem.BytesType 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