public static enum Block.BlockType extends java.lang.Enum<Block.BlockType> implements ProtocolMessageEnum
Type of a block (text, image etc) as identified by OCR.Protobuf enum
google.cloud.vision.v1.Block.BlockType
Enum Constant and Description |
---|
BARCODE
Barcode block.
|
PICTURE
Image block.
|
RULER
Horizontal/vertical line box.
|
TABLE
Table block.
|
TEXT
Regular text block.
|
UNKNOWN
Unknown block type.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
BARCODE_VALUE
Barcode block.
|
static int |
PICTURE_VALUE
Image block.
|
static int |
RULER_VALUE
Horizontal/vertical line box.
|
static int |
TABLE_VALUE
Table block.
|
static int |
TEXT_VALUE
Regular text block.
|
static int |
UNKNOWN_VALUE
Unknown block type.
|
Modifier and Type | Method and Description |
---|---|
static Block.BlockType |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<Block.BlockType> |
internalGetValueMap() |
static Block.BlockType |
valueOf(Descriptors.EnumValueDescriptor desc) |
static Block.BlockType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Block.BlockType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Block.BlockType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Block.BlockType UNKNOWN
Unknown block type.
UNKNOWN = 0;
public static final Block.BlockType TEXT
Regular text block.
TEXT = 1;
public static final Block.BlockType TABLE
Table block.
TABLE = 2;
public static final Block.BlockType PICTURE
Image block.
PICTURE = 3;
public static final Block.BlockType RULER
Horizontal/vertical line box.
RULER = 4;
public static final Block.BlockType BARCODE
Barcode block.
BARCODE = 5;
public static final Block.BlockType UNRECOGNIZED
public static final int UNKNOWN_VALUE
Unknown block type.
UNKNOWN = 0;
public static final int TEXT_VALUE
Regular text block.
TEXT = 1;
public static final int TABLE_VALUE
Table block.
TABLE = 2;
public static final int PICTURE_VALUE
Image block.
PICTURE = 3;
public static final int RULER_VALUE
Horizontal/vertical line box.
RULER = 4;
public static final int BARCODE_VALUE
Barcode block.
BARCODE = 5;
public static Block.BlockType[] values()
for (Block.BlockType c : Block.BlockType.values()) System.out.println(c);
public static Block.BlockType 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 Block.BlockType valueOf(int value)
forNumber(int)
instead.public static Block.BlockType forNumber(int value)
public static Internal.EnumLiteMap<Block.BlockType> 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 Block.BlockType valueOf(Descriptors.EnumValueDescriptor desc)