public static enum Document.Page.Token.DetectedBreak.Type extends Enum<Document.Page.Token.DetectedBreak.Type> implements com.google.protobuf.ProtocolMessageEnum
Enum to denote the type of break found.Protobuf enum
google.cloud.documentai.v1beta1.Document.Page.Token.DetectedBreak.Type| Enum Constant and Description |
|---|
HYPHEN
A hyphen that indicates that a token has been split across lines.
|
SPACE
A single whitespace.
|
TYPE_UNSPECIFIED
Unspecified break type.
|
UNRECOGNIZED |
WIDE_SPACE
A wider whitespace.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
HYPHEN_VALUE
A hyphen that indicates that a token has been split across lines.
|
static int |
SPACE_VALUE
A single whitespace.
|
static int |
TYPE_UNSPECIFIED_VALUE
Unspecified break type.
|
static int |
WIDE_SPACE_VALUE
A wider whitespace.
|
| Modifier and Type | Method and Description |
|---|---|
static Document.Page.Token.DetectedBreak.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<Document.Page.Token.DetectedBreak.Type> |
internalGetValueMap() |
static Document.Page.Token.DetectedBreak.Type |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Document.Page.Token.DetectedBreak.Type |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Document.Page.Token.DetectedBreak.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Document.Page.Token.DetectedBreak.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Document.Page.Token.DetectedBreak.Type TYPE_UNSPECIFIED
Unspecified break type.
TYPE_UNSPECIFIED = 0;public static final Document.Page.Token.DetectedBreak.Type SPACE
A single whitespace.
SPACE = 1;public static final Document.Page.Token.DetectedBreak.Type WIDE_SPACE
A wider whitespace.
WIDE_SPACE = 2;public static final Document.Page.Token.DetectedBreak.Type HYPHEN
A hyphen that indicates that a token has been split across lines.
HYPHEN = 3;public static final Document.Page.Token.DetectedBreak.Type UNRECOGNIZED
public static final int TYPE_UNSPECIFIED_VALUE
Unspecified break type.
TYPE_UNSPECIFIED = 0;public static final int SPACE_VALUE
A single whitespace.
SPACE = 1;public static final int WIDE_SPACE_VALUE
A wider whitespace.
WIDE_SPACE = 2;public static final int HYPHEN_VALUE
A hyphen that indicates that a token has been split across lines.
HYPHEN = 3;public static Document.Page.Token.DetectedBreak.Type[] values()
for (Document.Page.Token.DetectedBreak.Type c : Document.Page.Token.DetectedBreak.Type.values()) System.out.println(c);
public static Document.Page.Token.DetectedBreak.Type valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - 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 Document.Page.Token.DetectedBreak.Type valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static Document.Page.Token.DetectedBreak.Type forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Document.Page.Token.DetectedBreak.Type> 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 Document.Page.Token.DetectedBreak.Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024 Google LLC. All rights reserved.