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 Details

  • Field Details

    • LAYOUT_TYPE_UNSPECIFIED_VALUE

      public static final int LAYOUT_TYPE_UNSPECIFIED_VALUE
       Layout Unspecified.
       
      LAYOUT_TYPE_UNSPECIFIED = 0;
      See Also:
    • BLOCK_VALUE

      public static final int BLOCK_VALUE
       References a
       [Page.blocks][google.cloud.documentai.v1.Document.Page.blocks]
       element.
       
      BLOCK = 1;
      See Also:
    • PARAGRAPH_VALUE

      public static final int PARAGRAPH_VALUE
       References a
       [Page.paragraphs][google.cloud.documentai.v1.Document.Page.paragraphs]
       element.
       
      PARAGRAPH = 2;
      See Also:
    • LINE_VALUE

      public static final int LINE_VALUE
       References a
       [Page.lines][google.cloud.documentai.v1.Document.Page.lines] element.
       
      LINE = 3;
      See Also:
    • TOKEN_VALUE

      public static final int TOKEN_VALUE
       References a
       [Page.tokens][google.cloud.documentai.v1.Document.Page.tokens]
       element.
       
      TOKEN = 4;
      See Also:
    • VISUAL_ELEMENT_VALUE

      public static final int VISUAL_ELEMENT_VALUE
       References 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_VALUE
       Refrrences a
       [Page.tables][google.cloud.documentai.v1.Document.Page.tables]
       element.
       
      TABLE = 6;
      See Also:
    • FORM_FIELD_VALUE

      public static final int FORM_FIELD_VALUE
       References a
       [Page.form_fields][google.cloud.documentai.v1.Document.Page.form_fields]
       element.
       
      FORM_FIELD = 7;
      See Also:
  • Method Details

    • values

      public static Document.PageAnchor.PageRef.LayoutType[] 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

      public static Document.PageAnchor.PageRef.LayoutType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static Document.PageAnchor.PageRef.LayoutType valueOf(int value)
      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 name
      NullPointerException - if the argument is null
    • forNumber

      public static Document.PageAnchor.PageRef.LayoutType forNumber(int value)
      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:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.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 name
      NullPointerException - if the argument is null