Package com.google.cloud.documentai.v1
Enum Document.PageAnchor.PageRef.LayoutType
java.lang.Object
java.lang.Enum<Document.PageAnchor.PageRef.LayoutType>
com.google.cloud.documentai.v1.Document.PageAnchor.PageRef.LayoutType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Document.PageAnchor.PageRef.LayoutType>
- Enclosing class:
- Document.PageAnchor.PageRef
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.v1.Document.PageAnchor.PageRef.LayoutType-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionReferences a [Page.blocks][google.cloud.documentai.v1.Document.Page.blocks] element.References a [Page.form_fields][google.cloud.documentai.v1.Document.Page.form_fields] element.Layout Unspecified.References a [Page.lines][google.cloud.documentai.v1.Document.Page.lines] element.References a [Page.paragraphs][google.cloud.documentai.v1.Document.Page.paragraphs] element.Refrrences a [Page.tables][google.cloud.documentai.v1.Document.Page.tables] element.References a [Page.tokens][google.cloud.documentai.v1.Document.Page.tokens] element.References a [Page.visual_elements][google.cloud.documentai.v1.Document.Page.visual_elements] element. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intReferences a [Page.blocks][google.cloud.documentai.v1.Document.Page.blocks] element.static final intReferences a [Page.form_fields][google.cloud.documentai.v1.Document.Page.form_fields] element.static final intLayout Unspecified.static final intReferences a [Page.lines][google.cloud.documentai.v1.Document.Page.lines] element.static final intReferences a [Page.paragraphs][google.cloud.documentai.v1.Document.Page.paragraphs] element.static final intRefrrences a [Page.tables][google.cloud.documentai.v1.Document.Page.tables] element.static final intReferences a [Page.tokens][google.cloud.documentai.v1.Document.Page.tokens] element.static final intReferences a [Page.visual_elements][google.cloud.documentai.v1.Document.Page.visual_elements] element. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<Document.PageAnchor.PageRef.LayoutType>valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.Returns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
LAYOUT_TYPE_UNSPECIFIED
Layout Unspecified.
LAYOUT_TYPE_UNSPECIFIED = 0; -
BLOCK
References a [Page.blocks][google.cloud.documentai.v1.Document.Page.blocks] element.
BLOCK = 1; -
PARAGRAPH
References a [Page.paragraphs][google.cloud.documentai.v1.Document.Page.paragraphs] element.
PARAGRAPH = 2; -
LINE
References a [Page.lines][google.cloud.documentai.v1.Document.Page.lines] element.
LINE = 3; -
TOKEN
References a [Page.tokens][google.cloud.documentai.v1.Document.Page.tokens] element.
TOKEN = 4; -
VISUAL_ELEMENT
References a [Page.visual_elements][google.cloud.documentai.v1.Document.Page.visual_elements] element.
VISUAL_ELEMENT = 5; -
TABLE
Refrrences a [Page.tables][google.cloud.documentai.v1.Document.Page.tables] element.
TABLE = 6; -
FORM_FIELD
References a [Page.form_fields][google.cloud.documentai.v1.Document.Page.form_fields] element.
FORM_FIELD = 7; -
UNRECOGNIZED
-
-
Field Details
-
LAYOUT_TYPE_UNSPECIFIED_VALUE
public static final int LAYOUT_TYPE_UNSPECIFIED_VALUELayout Unspecified.
LAYOUT_TYPE_UNSPECIFIED = 0;- See Also:
-
BLOCK_VALUE
public static final int BLOCK_VALUEReferences a [Page.blocks][google.cloud.documentai.v1.Document.Page.blocks] element.
BLOCK = 1;- See Also:
-
PARAGRAPH_VALUE
public static final int PARAGRAPH_VALUEReferences a [Page.paragraphs][google.cloud.documentai.v1.Document.Page.paragraphs] element.
PARAGRAPH = 2;- See Also:
-
LINE_VALUE
public static final int LINE_VALUEReferences a [Page.lines][google.cloud.documentai.v1.Document.Page.lines] element.
LINE = 3;- See Also:
-
TOKEN_VALUE
public static final int TOKEN_VALUEReferences a [Page.tokens][google.cloud.documentai.v1.Document.Page.tokens] element.
TOKEN = 4;- See Also:
-
VISUAL_ELEMENT_VALUE
public static final int VISUAL_ELEMENT_VALUEReferences a [Page.visual_elements][google.cloud.documentai.v1.Document.Page.visual_elements] element.
VISUAL_ELEMENT = 5;- See Also:
-
TABLE_VALUE
public static final int TABLE_VALUERefrrences a [Page.tables][google.cloud.documentai.v1.Document.Page.tables] element.
TABLE = 6;- See Also:
-
FORM_FIELD_VALUE
public static final int FORM_FIELD_VALUEReferences a [Page.form_fields][google.cloud.documentai.v1.Document.Page.form_fields] element.
FORM_FIELD = 7;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<Document.PageAnchor.PageRef.LayoutType> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static Document.PageAnchor.PageRef.LayoutType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-