public static enum Block.BlockType extends Enum<Block.BlockType> implements com.google.protobuf.ProtocolMessageEnum
Type of a block (text, image etc) as identified by OCR.Protobuf enum
google.cloud.vision.v1p3beta1.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 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<Block.BlockType> |
internalGetValueMap() |
static Block.BlockType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Block.BlockType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Block.BlockType |
valueOf(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(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 Block.BlockType valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static Block.BlockType forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Block.BlockType> 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 Block.BlockType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2020 Google LLC. All rights reserved.