Enum Feature.Type

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

    public static enum Feature.Type
    extends Enum<Feature.Type>
    implements com.google.protobuf.ProtocolMessageEnum
     Type of Google Cloud Vision API feature to be extracted.
     
    Protobuf enum google.cloud.vision.v1p4beta1.Feature.Type
    • Enum Constant Detail

      • TYPE_UNSPECIFIED

        public static final Feature.Type TYPE_UNSPECIFIED
         Unspecified feature type.
         
        TYPE_UNSPECIFIED = 0;
      • FACE_DETECTION

        public static final Feature.Type FACE_DETECTION
         Run face detection.
         
        FACE_DETECTION = 1;
      • LANDMARK_DETECTION

        public static final Feature.Type LANDMARK_DETECTION
         Run landmark detection.
         
        LANDMARK_DETECTION = 2;
      • LOGO_DETECTION

        public static final Feature.Type LOGO_DETECTION
         Run logo detection.
         
        LOGO_DETECTION = 3;
      • LABEL_DETECTION

        public static final Feature.Type LABEL_DETECTION
         Run label detection.
         
        LABEL_DETECTION = 4;
      • TEXT_DETECTION

        public static final Feature.Type TEXT_DETECTION
         Run text detection / optical character recognition (OCR). Text detection
         is optimized for areas of text within a larger image; if the image is
         a document, use `DOCUMENT_TEXT_DETECTION` instead.
         
        TEXT_DETECTION = 5;
      • DOCUMENT_TEXT_DETECTION

        public static final Feature.Type DOCUMENT_TEXT_DETECTION
         Run dense text document OCR. Takes precedence when both
         `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` are present.
         
        DOCUMENT_TEXT_DETECTION = 11;
      • SAFE_SEARCH_DETECTION

        public static final Feature.Type SAFE_SEARCH_DETECTION
         Run Safe Search to detect potentially unsafe
         or undesirable content.
         
        SAFE_SEARCH_DETECTION = 6;
      • IMAGE_PROPERTIES

        public static final Feature.Type IMAGE_PROPERTIES
         Compute a set of image properties, such as the
         image's dominant colors.
         
        IMAGE_PROPERTIES = 7;
      • CROP_HINTS

        public static final Feature.Type CROP_HINTS
         Run crop hints.
         
        CROP_HINTS = 9;
      • WEB_DETECTION

        public static final Feature.Type WEB_DETECTION
         Run web detection.
         
        WEB_DETECTION = 10;
      • PRODUCT_SEARCH

        public static final Feature.Type PRODUCT_SEARCH
         Run Product Search.
         
        PRODUCT_SEARCH = 12;
      • OBJECT_LOCALIZATION

        public static final Feature.Type OBJECT_LOCALIZATION
         Run localizer for object detection.
         
        OBJECT_LOCALIZATION = 19;
      • UNRECOGNIZED

        public static final Feature.Type UNRECOGNIZED
    • Field Detail

      • TYPE_UNSPECIFIED_VALUE

        public static final int TYPE_UNSPECIFIED_VALUE
         Unspecified feature type.
         
        TYPE_UNSPECIFIED = 0;
        See Also:
        Constant Field Values
      • FACE_DETECTION_VALUE

        public static final int FACE_DETECTION_VALUE
         Run face detection.
         
        FACE_DETECTION = 1;
        See Also:
        Constant Field Values
      • LANDMARK_DETECTION_VALUE

        public static final int LANDMARK_DETECTION_VALUE
         Run landmark detection.
         
        LANDMARK_DETECTION = 2;
        See Also:
        Constant Field Values
      • LOGO_DETECTION_VALUE

        public static final int LOGO_DETECTION_VALUE
         Run logo detection.
         
        LOGO_DETECTION = 3;
        See Also:
        Constant Field Values
      • LABEL_DETECTION_VALUE

        public static final int LABEL_DETECTION_VALUE
         Run label detection.
         
        LABEL_DETECTION = 4;
        See Also:
        Constant Field Values
      • TEXT_DETECTION_VALUE

        public static final int TEXT_DETECTION_VALUE
         Run text detection / optical character recognition (OCR). Text detection
         is optimized for areas of text within a larger image; if the image is
         a document, use `DOCUMENT_TEXT_DETECTION` instead.
         
        TEXT_DETECTION = 5;
        See Also:
        Constant Field Values
      • DOCUMENT_TEXT_DETECTION_VALUE

        public static final int DOCUMENT_TEXT_DETECTION_VALUE
         Run dense text document OCR. Takes precedence when both
         `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` are present.
         
        DOCUMENT_TEXT_DETECTION = 11;
        See Also:
        Constant Field Values
      • SAFE_SEARCH_DETECTION_VALUE

        public static final int SAFE_SEARCH_DETECTION_VALUE
         Run Safe Search to detect potentially unsafe
         or undesirable content.
         
        SAFE_SEARCH_DETECTION = 6;
        See Also:
        Constant Field Values
      • IMAGE_PROPERTIES_VALUE

        public static final int IMAGE_PROPERTIES_VALUE
         Compute a set of image properties, such as the
         image's dominant colors.
         
        IMAGE_PROPERTIES = 7;
        See Also:
        Constant Field Values
      • CROP_HINTS_VALUE

        public static final int CROP_HINTS_VALUE
         Run crop hints.
         
        CROP_HINTS = 9;
        See Also:
        Constant Field Values
      • WEB_DETECTION_VALUE

        public static final int WEB_DETECTION_VALUE
         Run web detection.
         
        WEB_DETECTION = 10;
        See Also:
        Constant Field Values
      • PRODUCT_SEARCH_VALUE

        public static final int PRODUCT_SEARCH_VALUE
         Run Product Search.
         
        PRODUCT_SEARCH = 12;
        See Also:
        Constant Field Values
      • OBJECT_LOCALIZATION_VALUE

        public static final int OBJECT_LOCALIZATION_VALUE
         Run localizer for object detection.
         
        OBJECT_LOCALIZATION = 19;
        See Also:
        Constant Field Values
    • Method Detail

      • values

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

        public static Feature.Type 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 Feature.Type 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 Feature.Type 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<Feature.Type> 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 Feature.Type 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