Enum Feature.Type
- java.lang.Object
-
- java.lang.Enum<Feature.Type>
-
- com.google.cloud.vision.v1p1beta1.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 image feature.
Protobuf enumgoogle.cloud.vision.v1p1beta1.Feature.Type
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CROP_HINTS
Run crop hints.DOCUMENT_TEXT_DETECTION
Run dense text document OCR.FACE_DETECTION
Run face detection.IMAGE_PROPERTIES
Compute a set of image properties, such as the image's dominant colors.LABEL_DETECTION
Run label detection.LANDMARK_DETECTION
Run landmark detection.LOGO_DETECTION
Run logo detection.SAFE_SEARCH_DETECTION
Run computer vision models to compute image safe-search properties.TEXT_DETECTION
Run OCR.TYPE_UNSPECIFIED
Unspecified feature type.UNRECOGNIZED
WEB_DETECTION
Run web detection.
-
Field Summary
Fields Modifier and Type Field Description static int
CROP_HINTS_VALUE
Run crop hints.static int
DOCUMENT_TEXT_DETECTION_VALUE
Run dense text document OCR.static int
FACE_DETECTION_VALUE
Run face detection.static int
IMAGE_PROPERTIES_VALUE
Compute a set of image properties, such as the image's dominant colors.static int
LABEL_DETECTION_VALUE
Run label detection.static int
LANDMARK_DETECTION_VALUE
Run landmark detection.static int
LOGO_DETECTION_VALUE
Run logo detection.static int
SAFE_SEARCH_DETECTION_VALUE
Run computer vision models to compute image safe-search properties.static int
TEXT_DETECTION_VALUE
Run OCR.static int
TYPE_UNSPECIFIED_VALUE
Unspecified feature type.static int
WEB_DETECTION_VALUE
Run web detection.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Feature.Type
forNumber(int value)
static com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor()
com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType()
int
getNumber()
com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor()
static com.google.protobuf.Internal.EnumLiteMap<Feature.Type>
internalGetValueMap()
static Feature.Type
valueOf(int value)
Deprecated.static Feature.Type
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static Feature.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static Feature.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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 OCR.
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 computer vision models to compute image safe-search properties.
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;
-
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 OCR.
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 computer vision models to compute image safe-search properties.
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
-
-
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 nameNullPointerException
- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.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 nameNullPointerException
- 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 interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.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 nameNullPointerException
- if the argument is null
-
-