public static enum TextAnnotation.DetectedBreak.BreakType extends java.lang.Enum<TextAnnotation.DetectedBreak.BreakType> implements com.google.protobuf.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
|
LINE_BREAK
not co-occur with SPACE, LEADER_SPACE, or
LINE_BREAK.
|
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
|
static int |
LINE_BREAK_VALUE
not co-occur with SPACE, LEADER_SPACE, or
LINE_BREAK.
|
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 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<TextAnnotation.DetectedBreak.BreakType> |
internalGetValueMap() |
static TextAnnotation.DetectedBreak.BreakType |
valueOf(com.google.protobuf.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
HYPHEN = 4;public static final TextAnnotation.DetectedBreak.BreakType LINE_BREAK
not co-occur with SPACE, LEADER_SPACE, or 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
HYPHEN = 4;public static final int LINE_BREAK_VALUE
not co-occur with SPACE, LEADER_SPACE, or LINE_BREAK. 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 com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static TextAnnotation.DetectedBreak.BreakType valueOf(int value)
forNumber(int) instead.public static TextAnnotation.DetectedBreak.BreakType forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<TextAnnotation.DetectedBreak.BreakType> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static TextAnnotation.DetectedBreak.BreakType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)