public static enum TextAnnotation.DetectedBreak.BreakType extends java.lang.Enum<TextAnnotation.DetectedBreak.BreakType> implements ProtocolMessageEnum
Enum to denote the type of break found. New line, space etc.Protobuf enum
google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType
Enum Constant and Description |
---|
EOL_SURE_SPACE
Line-wrapping break.
|
HYPHEN
End-line hyphen that is not present in text; does not co-occur with
`SPACE`, `LEADER_SPACE`, or `LINE_BREAK`.
|
LINE_BREAK
Line break that ends a paragraph.
|
SPACE
Regular space.
|
SURE_SPACE
Sure space (very wide).
|
UNKNOWN
Unknown break label type.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
EOL_SURE_SPACE_VALUE
Line-wrapping break.
|
static int |
HYPHEN_VALUE
End-line hyphen that is not present in text; does not co-occur with
`SPACE`, `LEADER_SPACE`, or `LINE_BREAK`.
|
static int |
LINE_BREAK_VALUE
Line break that ends a paragraph.
|
static int |
SPACE_VALUE
Regular space.
|
static int |
SURE_SPACE_VALUE
Sure space (very wide).
|
static int |
UNKNOWN_VALUE
Unknown break label type.
|
Modifier and Type | Method and Description |
---|---|
static TextAnnotation.DetectedBreak.BreakType |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<TextAnnotation.DetectedBreak.BreakType> |
internalGetValueMap() |
static TextAnnotation.DetectedBreak.BreakType |
valueOf(Descriptors.EnumValueDescriptor desc) |
static TextAnnotation.DetectedBreak.BreakType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static TextAnnotation.DetectedBreak.BreakType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TextAnnotation.DetectedBreak.BreakType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TextAnnotation.DetectedBreak.BreakType UNKNOWN
Unknown break label type.
UNKNOWN = 0;
public static final TextAnnotation.DetectedBreak.BreakType SPACE
Regular space.
SPACE = 1;
public static final TextAnnotation.DetectedBreak.BreakType SURE_SPACE
Sure space (very wide).
SURE_SPACE = 2;
public static final TextAnnotation.DetectedBreak.BreakType EOL_SURE_SPACE
Line-wrapping break.
EOL_SURE_SPACE = 3;
public static final TextAnnotation.DetectedBreak.BreakType HYPHEN
End-line hyphen that is not present in text; does not co-occur with `SPACE`, `LEADER_SPACE`, or `LINE_BREAK`.
HYPHEN = 4;
public static final TextAnnotation.DetectedBreak.BreakType LINE_BREAK
Line break that ends a paragraph.
LINE_BREAK = 5;
public static final TextAnnotation.DetectedBreak.BreakType UNRECOGNIZED
public static final int UNKNOWN_VALUE
Unknown break label type.
UNKNOWN = 0;
public static final int SPACE_VALUE
Regular space.
SPACE = 1;
public static final int SURE_SPACE_VALUE
Sure space (very wide).
SURE_SPACE = 2;
public static final int EOL_SURE_SPACE_VALUE
Line-wrapping break.
EOL_SURE_SPACE = 3;
public static final int HYPHEN_VALUE
End-line hyphen that is not present in text; does not co-occur with `SPACE`, `LEADER_SPACE`, or `LINE_BREAK`.
HYPHEN = 4;
public static final int LINE_BREAK_VALUE
Line break that ends a paragraph.
LINE_BREAK = 5;
public static TextAnnotation.DetectedBreak.BreakType[] values()
for (TextAnnotation.DetectedBreak.BreakType c : TextAnnotation.DetectedBreak.BreakType.values()) System.out.println(c);
public static TextAnnotation.DetectedBreak.BreakType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static TextAnnotation.DetectedBreak.BreakType valueOf(int value)
forNumber(int)
instead.public static TextAnnotation.DetectedBreak.BreakType forNumber(int value)
public static Internal.EnumLiteMap<TextAnnotation.DetectedBreak.BreakType> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static TextAnnotation.DetectedBreak.BreakType valueOf(Descriptors.EnumValueDescriptor desc)