public static enum Document.PageAnchor.PageRef.LayoutType extends Enum<Document.PageAnchor.PageRef.LayoutType> implements com.google.protobuf.ProtocolMessageEnum
The type of layout that is being referenced.Protobuf enum
google.cloud.documentai.v1beta2.Document.PageAnchor.PageRef.LayoutType| Enum Constant and Description |
|---|
BLOCK
References a
[Page.blocks][google.cloud.documentai.v1beta2.Document.Page.blocks]
element.
|
FORM_FIELD
References a
[Page.form_fields][google.cloud.documentai.v1beta2.Document.Page.form_fields]
element.
|
LAYOUT_TYPE_UNSPECIFIED
Layout Unspecified.
|
LINE
References a
[Page.lines][google.cloud.documentai.v1beta2.Document.Page.lines]
element.
|
PARAGRAPH
References a
[Page.paragraphs][google.cloud.documentai.v1beta2.Document.Page.paragraphs]
element.
|
TABLE
Refrrences a
[Page.tables][google.cloud.documentai.v1beta2.Document.Page.tables]
element.
|
TOKEN
References a
[Page.tokens][google.cloud.documentai.v1beta2.Document.Page.tokens]
element.
|
UNRECOGNIZED |
VISUAL_ELEMENT
References a
[Page.visual_elements][google.cloud.documentai.v1beta2.Document.Page.visual_elements]
element.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
BLOCK_VALUE
References a
[Page.blocks][google.cloud.documentai.v1beta2.Document.Page.blocks]
element.
|
static int |
FORM_FIELD_VALUE
References a
[Page.form_fields][google.cloud.documentai.v1beta2.Document.Page.form_fields]
element.
|
static int |
LAYOUT_TYPE_UNSPECIFIED_VALUE
Layout Unspecified.
|
static int |
LINE_VALUE
References a
[Page.lines][google.cloud.documentai.v1beta2.Document.Page.lines]
element.
|
static int |
PARAGRAPH_VALUE
References a
[Page.paragraphs][google.cloud.documentai.v1beta2.Document.Page.paragraphs]
element.
|
static int |
TABLE_VALUE
Refrrences a
[Page.tables][google.cloud.documentai.v1beta2.Document.Page.tables]
element.
|
static int |
TOKEN_VALUE
References a
[Page.tokens][google.cloud.documentai.v1beta2.Document.Page.tokens]
element.
|
static int |
VISUAL_ELEMENT_VALUE
References a
[Page.visual_elements][google.cloud.documentai.v1beta2.Document.Page.visual_elements]
element.
|
| Modifier and Type | Method and Description |
|---|---|
static Document.PageAnchor.PageRef.LayoutType |
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.PageAnchor.PageRef.LayoutType> |
internalGetValueMap() |
static Document.PageAnchor.PageRef.LayoutType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Document.PageAnchor.PageRef.LayoutType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Document.PageAnchor.PageRef.LayoutType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Document.PageAnchor.PageRef.LayoutType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Document.PageAnchor.PageRef.LayoutType LAYOUT_TYPE_UNSPECIFIED
Layout Unspecified.
LAYOUT_TYPE_UNSPECIFIED = 0;public static final Document.PageAnchor.PageRef.LayoutType BLOCK
References a [Page.blocks][google.cloud.documentai.v1beta2.Document.Page.blocks] element.
BLOCK = 1;public static final Document.PageAnchor.PageRef.LayoutType PARAGRAPH
References a [Page.paragraphs][google.cloud.documentai.v1beta2.Document.Page.paragraphs] element.
PARAGRAPH = 2;public static final Document.PageAnchor.PageRef.LayoutType LINE
References a [Page.lines][google.cloud.documentai.v1beta2.Document.Page.lines] element.
LINE = 3;public static final Document.PageAnchor.PageRef.LayoutType TOKEN
References a [Page.tokens][google.cloud.documentai.v1beta2.Document.Page.tokens] element.
TOKEN = 4;public static final Document.PageAnchor.PageRef.LayoutType VISUAL_ELEMENT
References a [Page.visual_elements][google.cloud.documentai.v1beta2.Document.Page.visual_elements] element.
VISUAL_ELEMENT = 5;public static final Document.PageAnchor.PageRef.LayoutType TABLE
Refrrences a [Page.tables][google.cloud.documentai.v1beta2.Document.Page.tables] element.
TABLE = 6;public static final Document.PageAnchor.PageRef.LayoutType FORM_FIELD
References a [Page.form_fields][google.cloud.documentai.v1beta2.Document.Page.form_fields] element.
FORM_FIELD = 7;public static final Document.PageAnchor.PageRef.LayoutType UNRECOGNIZED
public static final int LAYOUT_TYPE_UNSPECIFIED_VALUE
Layout Unspecified.
LAYOUT_TYPE_UNSPECIFIED = 0;public static final int BLOCK_VALUE
References a [Page.blocks][google.cloud.documentai.v1beta2.Document.Page.blocks] element.
BLOCK = 1;public static final int PARAGRAPH_VALUE
References a [Page.paragraphs][google.cloud.documentai.v1beta2.Document.Page.paragraphs] element.
PARAGRAPH = 2;public static final int LINE_VALUE
References a [Page.lines][google.cloud.documentai.v1beta2.Document.Page.lines] element.
LINE = 3;public static final int TOKEN_VALUE
References a [Page.tokens][google.cloud.documentai.v1beta2.Document.Page.tokens] element.
TOKEN = 4;public static final int VISUAL_ELEMENT_VALUE
References a [Page.visual_elements][google.cloud.documentai.v1beta2.Document.Page.visual_elements] element.
VISUAL_ELEMENT = 5;public static final int TABLE_VALUE
Refrrences a [Page.tables][google.cloud.documentai.v1beta2.Document.Page.tables] element.
TABLE = 6;public static final int FORM_FIELD_VALUE
References a [Page.form_fields][google.cloud.documentai.v1beta2.Document.Page.form_fields] element.
FORM_FIELD = 7;public static Document.PageAnchor.PageRef.LayoutType[] values()
for (Document.PageAnchor.PageRef.LayoutType c : Document.PageAnchor.PageRef.LayoutType.values()) System.out.println(c);
public static Document.PageAnchor.PageRef.LayoutType 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.PageAnchor.PageRef.LayoutType valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static Document.PageAnchor.PageRef.LayoutType forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Document.PageAnchor.PageRef.LayoutType> 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.PageAnchor.PageRef.LayoutType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.