# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/documentai_v1beta1/proto/document.proto

import sys

_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1"))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database

# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()


from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
from google.cloud.documentai_v1beta1.proto import (
    geometry_pb2 as google_dot_cloud_dot_documentai__v1beta1_dot_proto_dot_geometry__pb2,
)
from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2
from google.type import color_pb2 as google_dot_type_dot_color__pb2


DESCRIPTOR = _descriptor.FileDescriptor(
    name="google/cloud/documentai_v1beta1/proto/document.proto",
    package="google.cloud.documentai.v1beta1",
    syntax="proto3",
    serialized_options=_b(
        "\n#com.google.cloud.documentai.v1beta1B\rDocumentProtoP\001ZIgoogle.golang.org/genproto/googleapis/cloud/documentai/v1beta1;documentai"
    ),
    serialized_pb=_b(
        '\n4google/cloud/documentai_v1beta1/proto/document.proto\x12\x1fgoogle.cloud.documentai.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x34google/cloud/documentai_v1beta1/proto/geometry.proto\x1a\x17google/rpc/status.proto\x1a\x17google/type/color.proto"\xfa$\n\x08\x44ocument\x12\r\n\x03uri\x18\x01 \x01(\tH\x00\x12\x11\n\x07\x63ontent\x18\x02 \x01(\x0cH\x00\x12\x11\n\tmime_type\x18\x03 \x01(\t\x12\x0c\n\x04text\x18\x04 \x01(\t\x12\x44\n\x0btext_styles\x18\x05 \x03(\x0b\x32/.google.cloud.documentai.v1beta1.Document.Style\x12=\n\x05pages\x18\x06 \x03(\x0b\x32..google.cloud.documentai.v1beta1.Document.Page\x12\x42\n\x08\x65ntities\x18\x07 \x03(\x0b\x32\x30.google.cloud.documentai.v1beta1.Document.Entity\x12R\n\x10\x65ntity_relations\x18\x08 \x03(\x0b\x32\x38.google.cloud.documentai.v1beta1.Document.EntityRelation\x12G\n\nshard_info\x18\t \x01(\x0b\x32\x33.google.cloud.documentai.v1beta1.Document.ShardInfo\x12!\n\x05\x65rror\x18\n \x01(\x0b\x32\x12.google.rpc.Status\x1aJ\n\tShardInfo\x12\x13\n\x0bshard_index\x18\x01 \x01(\x03\x12\x13\n\x0bshard_count\x18\x02 \x01(\x03\x12\x13\n\x0btext_offset\x18\x03 \x01(\x03\x1a\xda\x02\n\x05Style\x12I\n\x0btext_anchor\x18\x01 \x01(\x0b\x32\x34.google.cloud.documentai.v1beta1.Document.TextAnchor\x12!\n\x05\x63olor\x18\x02 \x01(\x0b\x32\x12.google.type.Color\x12,\n\x10\x62\x61\x63kground_color\x18\x03 \x01(\x0b\x32\x12.google.type.Color\x12\x13\n\x0b\x66ont_weight\x18\x04 \x01(\t\x12\x12\n\ntext_style\x18\x05 \x01(\t\x12\x17\n\x0ftext_decoration\x18\x06 \x01(\t\x12K\n\tfont_size\x18\x07 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta1.Document.Style.FontSize\x1a&\n\x08\x46ontSize\x12\x0c\n\x04size\x18\x01 \x01(\x02\x12\x0c\n\x04unit\x18\x02 \x01(\t\x1a\xf6\x1a\n\x04Page\x12\x13\n\x0bpage_number\x18\x01 \x01(\x05\x12K\n\tdimension\x18\x02 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta1.Document.Page.Dimension\x12\x45\n\x06layout\x18\x03 \x01(\x0b\x32\x35.google.cloud.documentai.v1beta1.Document.Page.Layout\x12[\n\x12\x64\x65tected_languages\x18\x04 \x03(\x0b\x32?.google.cloud.documentai.v1beta1.Document.Page.DetectedLanguage\x12\x44\n\x06\x62locks\x18\x05 \x03(\x0b\x32\x34.google.cloud.documentai.v1beta1.Document.Page.Block\x12L\n\nparagraphs\x18\x06 \x03(\x0b\x32\x38.google.cloud.documentai.v1beta1.Document.Page.Paragraph\x12\x42\n\x05lines\x18\x07 \x03(\x0b\x32\x33.google.cloud.documentai.v1beta1.Document.Page.Line\x12\x44\n\x06tokens\x18\x08 \x03(\x0b\x32\x34.google.cloud.documentai.v1beta1.Document.Page.Token\x12U\n\x0fvisual_elements\x18\t \x03(\x0b\x32<.google.cloud.documentai.v1beta1.Document.Page.VisualElement\x12\x44\n\x06tables\x18\n \x03(\x0b\x32\x34.google.cloud.documentai.v1beta1.Document.Page.Table\x12M\n\x0b\x66orm_fields\x18\x0b \x03(\x0b\x32\x38.google.cloud.documentai.v1beta1.Document.Page.FormField\x1a\x38\n\tDimension\x12\r\n\x05width\x18\x01 \x01(\x02\x12\x0e\n\x06height\x18\x02 \x01(\x02\x12\x0c\n\x04unit\x18\x03 \x01(\t\x1a\xec\x02\n\x06Layout\x12I\n\x0btext_anchor\x18\x01 \x01(\x0b\x32\x34.google.cloud.documentai.v1beta1.Document.TextAnchor\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12\x44\n\rbounding_poly\x18\x03 \x01(\x0b\x32-.google.cloud.documentai.v1beta1.BoundingPoly\x12V\n\x0borientation\x18\x04 \x01(\x0e\x32\x41.google.cloud.documentai.v1beta1.Document.Page.Layout.Orientation"e\n\x0bOrientation\x12\x1b\n\x17ORIENTATION_UNSPECIFIED\x10\x00\x12\x0b\n\x07PAGE_UP\x10\x01\x12\x0e\n\nPAGE_RIGHT\x10\x02\x12\r\n\tPAGE_DOWN\x10\x03\x12\r\n\tPAGE_LEFT\x10\x04\x1a\xab\x01\n\x05\x42lock\x12\x45\n\x06layout\x18\x01 \x01(\x0b\x32\x35.google.cloud.documentai.v1beta1.Document.Page.Layout\x12[\n\x12\x64\x65tected_languages\x18\x02 \x03(\x0b\x32?.google.cloud.documentai.v1beta1.Document.Page.DetectedLanguage\x1a\xaf\x01\n\tParagraph\x12\x45\n\x06layout\x18\x01 \x01(\x0b\x32\x35.google.cloud.documentai.v1beta1.Document.Page.Layout\x12[\n\x12\x64\x65tected_languages\x18\x02 \x03(\x0b\x32?.google.cloud.documentai.v1beta1.Document.Page.DetectedLanguage\x1a\xaa\x01\n\x04Line\x12\x45\n\x06layout\x18\x01 \x01(\x0b\x32\x35.google.cloud.documentai.v1beta1.Document.Page.Layout\x12[\n\x12\x64\x65tected_languages\x18\x02 \x03(\x0b\x32?.google.cloud.documentai.v1beta1.Document.Page.DetectedLanguage\x1a\xb5\x03\n\x05Token\x12\x45\n\x06layout\x18\x01 \x01(\x0b\x32\x35.google.cloud.documentai.v1beta1.Document.Page.Layout\x12Z\n\x0e\x64\x65tected_break\x18\x02 \x01(\x0b\x32\x42.google.cloud.documentai.v1beta1.Document.Page.Token.DetectedBreak\x12[\n\x12\x64\x65tected_languages\x18\x03 \x03(\x0b\x32?.google.cloud.documentai.v1beta1.Document.Page.DetectedLanguage\x1a\xab\x01\n\rDetectedBreak\x12U\n\x04type\x18\x01 \x01(\x0e\x32G.google.cloud.documentai.v1beta1.Document.Page.Token.DetectedBreak.Type"C\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05SPACE\x10\x01\x12\x0e\n\nWIDE_SPACE\x10\x02\x12\n\n\x06HYPHEN\x10\x03\x1a\xc1\x01\n\rVisualElement\x12\x45\n\x06layout\x18\x01 \x01(\x0b\x32\x35.google.cloud.documentai.v1beta1.Document.Page.Layout\x12\x0c\n\x04type\x18\x02 \x01(\t\x12[\n\x12\x64\x65tected_languages\x18\x03 \x03(\x0b\x32?.google.cloud.documentai.v1beta1.Document.Page.DetectedLanguage\x1a\x82\x05\n\x05Table\x12\x45\n\x06layout\x18\x01 \x01(\x0b\x32\x35.google.cloud.documentai.v1beta1.Document.Page.Layout\x12R\n\x0bheader_rows\x18\x02 \x03(\x0b\x32=.google.cloud.documentai.v1beta1.Document.Page.Table.TableRow\x12P\n\tbody_rows\x18\x03 \x03(\x0b\x32=.google.cloud.documentai.v1beta1.Document.Page.Table.TableRow\x12[\n\x12\x64\x65tected_languages\x18\x04 \x03(\x0b\x32?.google.cloud.documentai.v1beta1.Document.Page.DetectedLanguage\x1aY\n\x08TableRow\x12M\n\x05\x63\x65lls\x18\x01 \x03(\x0b\x32>.google.cloud.documentai.v1beta1.Document.Page.Table.TableCell\x1a\xd3\x01\n\tTableCell\x12\x45\n\x06layout\x18\x01 \x01(\x0b\x32\x35.google.cloud.documentai.v1beta1.Document.Page.Layout\x12\x10\n\x08row_span\x18\x02 \x01(\x05\x12\x10\n\x08\x63ol_span\x18\x03 \x01(\x05\x12[\n\x12\x64\x65tected_languages\x18\x04 \x03(\x0b\x32?.google.cloud.documentai.v1beta1.Document.Page.DetectedLanguage\x1a\xe7\x02\n\tFormField\x12I\n\nfield_name\x18\x01 \x01(\x0b\x32\x35.google.cloud.documentai.v1beta1.Document.Page.Layout\x12J\n\x0b\x66ield_value\x18\x02 \x01(\x0b\x32\x35.google.cloud.documentai.v1beta1.Document.Page.Layout\x12`\n\x17name_detected_languages\x18\x03 \x03(\x0b\x32?.google.cloud.documentai.v1beta1.Document.Page.DetectedLanguage\x12\x61\n\x18value_detected_languages\x18\x04 \x03(\x0b\x32?.google.cloud.documentai.v1beta1.Document.Page.DetectedLanguage\x1a=\n\x10\x44\x65tectedLanguage\x12\x15\n\rlanguage_code\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x1a\x8b\x01\n\x06\x45ntity\x12I\n\x0btext_anchor\x18\x01 \x01(\x0b\x32\x34.google.cloud.documentai.v1beta1.Document.TextAnchor\x12\x0c\n\x04type\x18\x02 \x01(\t\x12\x14\n\x0cmention_text\x18\x03 \x01(\t\x12\x12\n\nmention_id\x18\x04 \x01(\t\x1aI\n\x0e\x45ntityRelation\x12\x12\n\nsubject_id\x18\x01 \x01(\t\x12\x11\n\tobject_id\x18\x02 \x01(\t\x12\x10\n\x08relation\x18\x03 \x01(\t\x1a\x9c\x01\n\nTextAnchor\x12W\n\rtext_segments\x18\x01 \x03(\x0b\x32@.google.cloud.documentai.v1beta1.Document.TextAnchor.TextSegment\x1a\x35\n\x0bTextSegment\x12\x13\n\x0bstart_index\x18\x01 \x01(\x03\x12\x11\n\tend_index\x18\x02 \x01(\x03\x42\x08\n\x06sourceB\x81\x01\n#com.google.cloud.documentai.v1beta1B\rDocumentProtoP\x01ZIgoogle.golang.org/genproto/googleapis/cloud/documentai/v1beta1;documentaib\x06proto3'
    ),
    dependencies=[
        google_dot_api_dot_annotations__pb2.DESCRIPTOR,
        google_dot_cloud_dot_documentai__v1beta1_dot_proto_dot_geometry__pb2.DESCRIPTOR,
        google_dot_rpc_dot_status__pb2.DESCRIPTOR,
        google_dot_type_dot_color__pb2.DESCRIPTOR,
    ],
)


_DOCUMENT_PAGE_LAYOUT_ORIENTATION = _descriptor.EnumDescriptor(
    name="Orientation",
    full_name="google.cloud.documentai.v1beta1.Document.Page.Layout.Orientation",
    filename=None,
    file=DESCRIPTOR,
    values=[
        _descriptor.EnumValueDescriptor(
            name="ORIENTATION_UNSPECIFIED",
            index=0,
            number=0,
            serialized_options=None,
            type=None,
        ),
        _descriptor.EnumValueDescriptor(
            name="PAGE_UP", index=1, number=1, serialized_options=None, type=None
        ),
        _descriptor.EnumValueDescriptor(
            name="PAGE_RIGHT", index=2, number=2, serialized_options=None, type=None
        ),
        _descriptor.EnumValueDescriptor(
            name="PAGE_DOWN", index=3, number=3, serialized_options=None, type=None
        ),
        _descriptor.EnumValueDescriptor(
            name="PAGE_LEFT", index=4, number=4, serialized_options=None, type=None
        ),
    ],
    containing_type=None,
    serialized_options=None,
    serialized_start=2236,
    serialized_end=2337,
)
_sym_db.RegisterEnumDescriptor(_DOCUMENT_PAGE_LAYOUT_ORIENTATION)

_DOCUMENT_PAGE_TOKEN_DETECTEDBREAK_TYPE = _descriptor.EnumDescriptor(
    name="Type",
    full_name="google.cloud.documentai.v1beta1.Document.Page.Token.DetectedBreak.Type",
    filename=None,
    file=DESCRIPTOR,
    values=[
        _descriptor.EnumValueDescriptor(
            name="TYPE_UNSPECIFIED",
            index=0,
            number=0,
            serialized_options=None,
            type=None,
        ),
        _descriptor.EnumValueDescriptor(
            name="SPACE", index=1, number=1, serialized_options=None, type=None
        ),
        _descriptor.EnumValueDescriptor(
            name="WIDE_SPACE", index=2, number=2, serialized_options=None, type=None
        ),
        _descriptor.EnumValueDescriptor(
            name="HYPHEN", index=3, number=3, serialized_options=None, type=None
        ),
    ],
    containing_type=None,
    serialized_options=None,
    serialized_start=3235,
    serialized_end=3302,
)
_sym_db.RegisterEnumDescriptor(_DOCUMENT_PAGE_TOKEN_DETECTEDBREAK_TYPE)


_DOCUMENT_SHARDINFO = _descriptor.Descriptor(
    name="ShardInfo",
    full_name="google.cloud.documentai.v1beta1.Document.ShardInfo",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    fields=[
        _descriptor.FieldDescriptor(
            name="shard_index",
            full_name="google.cloud.documentai.v1beta1.Document.ShardInfo.shard_index",
            index=0,
            number=1,
            type=3,
            cpp_type=2,
            label=1,
            has_default_value=False,
            default_value=0,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="shard_count",
            full_name="google.cloud.documentai.v1beta1.Document.ShardInfo.shard_count",
            index=1,
            number=2,
            type=3,
            cpp_type=2,
            label=1,
            has_default_value=False,
            default_value=0,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="text_offset",
            full_name="google.cloud.documentai.v1beta1.Document.ShardInfo.text_offset",
            index=2,
            number=3,
            type=3,
            cpp_type=2,
            label=1,
            has_default_value=False,
            default_value=0,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
    ],
    extensions=[],
    nested_types=[],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=696,
    serialized_end=770,
)

_DOCUMENT_STYLE_FONTSIZE = _descriptor.Descriptor(
    name="FontSize",
    full_name="google.cloud.documentai.v1beta1.Document.Style.FontSize",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    fields=[
        _descriptor.FieldDescriptor(
            name="size",
            full_name="google.cloud.documentai.v1beta1.Document.Style.FontSize.size",
            index=0,
            number=1,
            type=2,
            cpp_type=6,
            label=1,
            has_default_value=False,
            default_value=float(0),
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="unit",
            full_name="google.cloud.documentai.v1beta1.Document.Style.FontSize.unit",
            index=1,
            number=2,
            type=9,
            cpp_type=9,
            label=1,
            has_default_value=False,
            default_value=_b("").decode("utf-8"),
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
    ],
    extensions=[],
    nested_types=[],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=1081,
    serialized_end=1119,
)

_DOCUMENT_STYLE = _descriptor.Descriptor(
    name="Style",
    full_name="google.cloud.documentai.v1beta1.Document.Style",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    fields=[
        _descriptor.FieldDescriptor(
            name="text_anchor",
            full_name="google.cloud.documentai.v1beta1.Document.Style.text_anchor",
            index=0,
            number=1,
            type=11,
            cpp_type=10,
            label=1,
            has_default_value=False,
            default_value=None,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="color",
            full_name="google.cloud.documentai.v1beta1.Document.Style.color",
            index=1,
            number=2,
            type=11,
            cpp_type=10,
            label=1,
            has_default_value=False,
            default_value=None,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="background_color",
            full_name="google.cloud.documentai.v1beta1.Document.Style.background_color",
            index=2,
            number=3,
            type=11,
            cpp_type=10,
            label=1,
            has_default_value=False,
            default_value=None,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="font_weight",
            full_name="google.cloud.documentai.v1beta1.Document.Style.font_weight",
            index=3,
            number=4,
            type=9,
            cpp_type=9,
            label=1,
            has_default_value=False,
            default_value=_b("").decode("utf-8"),
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="text_style",
            full_name="google.cloud.documentai.v1beta1.Document.Style.text_style",
            index=4,
            number=5,
            type=9,
            cpp_type=9,
            label=1,
            has_default_value=False,
            default_value=_b("").decode("utf-8"),
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="text_decoration",
            full_name="google.cloud.documentai.v1beta1.Document.Style.text_decoration",
            index=5,
            number=6,
            type=9,
            cpp_type=9,
            label=1,
            has_default_value=False,
            default_value=_b("").decode("utf-8"),
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="font_size",
            full_name="google.cloud.documentai.v1beta1.Document.Style.font_size",
            index=6,
            number=7,
            type=11,
            cpp_type=10,
            label=1,
            has_default_value=False,
            default_value=None,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
    ],
    extensions=[],
    nested_types=[_DOCUMENT_STYLE_FONTSIZE],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=773,
    serialized_end=1119,
)

_DOCUMENT_PAGE_DIMENSION = _descriptor.Descriptor(
    name="Dimension",
    full_name="google.cloud.documentai.v1beta1.Document.Page.Dimension",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    fields=[
        _descriptor.FieldDescriptor(
            name="width",
            full_name="google.cloud.documentai.v1beta1.Document.Page.Dimension.width",
            index=0,
            number=1,
            type=2,
            cpp_type=6,
            label=1,
            has_default_value=False,
            default_value=float(0),
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="height",
            full_name="google.cloud.documentai.v1beta1.Document.Page.Dimension.height",
            index=1,
            number=2,
            type=2,
            cpp_type=6,
            label=1,
            has_default_value=False,
            default_value=float(0),
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="unit",
            full_name="google.cloud.documentai.v1beta1.Document.Page.Dimension.unit",
            index=2,
            number=3,
            type=9,
            cpp_type=9,
            label=1,
            has_default_value=False,
            default_value=_b("").decode("utf-8"),
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
    ],
    extensions=[],
    nested_types=[],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=1914,
    serialized_end=1970,
)

_DOCUMENT_PAGE_LAYOUT = _descriptor.Descriptor(
    name="Layout",
    full_name="google.cloud.documentai.v1beta1.Document.Page.Layout",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    fields=[
        _descriptor.FieldDescriptor(
            name="text_anchor",
            full_name="google.cloud.documentai.v1beta1.Document.Page.Layout.text_anchor",
            index=0,
            number=1,
            type=11,
            cpp_type=10,
            label=1,
            has_default_value=False,
            default_value=None,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="confidence",
            full_name="google.cloud.documentai.v1beta1.Document.Page.Layout.confidence",
            index=1,
            number=2,
            type=2,
            cpp_type=6,
            label=1,
            has_default_value=False,
            default_value=float(0),
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="bounding_poly",
            full_name="google.cloud.documentai.v1beta1.Document.Page.Layout.bounding_poly",
            index=2,
            number=3,
            type=11,
            cpp_type=10,
            label=1,
            has_default_value=False,
            default_value=None,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="orientation",
            full_name="google.cloud.documentai.v1beta1.Document.Page.Layout.orientation",
            index=3,
            number=4,
            type=14,
            cpp_type=8,
            label=1,
            has_default_value=False,
            default_value=0,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
    ],
    extensions=[],
    nested_types=[],
    enum_types=[_DOCUMENT_PAGE_LAYOUT_ORIENTATION],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=1973,
    serialized_end=2337,
)

_DOCUMENT_PAGE_BLOCK = _descriptor.Descriptor(
    name="Block",
    full_name="google.cloud.documentai.v1beta1.Document.Page.Block",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    fields=[
        _descriptor.FieldDescriptor(
            name="layout",
            full_name="google.cloud.documentai.v1beta1.Document.Page.Block.layout",
            index=0,
            number=1,
            type=11,
            cpp_type=10,
            label=1,
            has_default_value=False,
            default_value=None,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="detected_languages",
            full_name="google.cloud.documentai.v1beta1.Document.Page.Block.detected_languages",
            index=1,
            number=2,
            type=11,
            cpp_type=10,
            label=3,
            has_default_value=False,
            default_value=[],
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
    ],
    extensions=[],
    nested_types=[],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=2340,
    serialized_end=2511,
)

_DOCUMENT_PAGE_PARAGRAPH = _descriptor.Descriptor(
    name="Paragraph",
    full_name="google.cloud.documentai.v1beta1.Document.Page.Paragraph",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    fields=[
        _descriptor.FieldDescriptor(
            name="layout",
            full_name="google.cloud.documentai.v1beta1.Document.Page.Paragraph.layout",
            index=0,
            number=1,
            type=11,
            cpp_type=10,
            label=1,
            has_default_value=False,
            default_value=None,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="detected_languages",
            full_name="google.cloud.documentai.v1beta1.Document.Page.Paragraph.detected_languages",
            index=1,
            number=2,
            type=11,
            cpp_type=10,
            label=3,
            has_default_value=False,
            default_value=[],
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
    ],
    extensions=[],
    nested_types=[],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=2514,
    serialized_end=2689,
)

_DOCUMENT_PAGE_LINE = _descriptor.Descriptor(
    name="Line",
    full_name="google.cloud.documentai.v1beta1.Document.Page.Line",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    fields=[
        _descriptor.FieldDescriptor(
            name="layout",
            full_name="google.cloud.documentai.v1beta1.Document.Page.Line.layout",
            index=0,
            number=1,
            type=11,
            cpp_type=10,
            label=1,
            has_default_value=False,
            default_value=None,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="detected_languages",
            full_name="google.cloud.documentai.v1beta1.Document.Page.Line.detected_languages",
            index=1,
            number=2,
            type=11,
            cpp_type=10,
            label=3,
            has_default_value=False,
            default_value=[],
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
    ],
    extensions=[],
    nested_types=[],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=2692,
    serialized_end=2862,
)

_DOCUMENT_PAGE_TOKEN_DETECTEDBREAK = _descriptor.Descriptor(
    name="DetectedBreak",
    full_name="google.cloud.documentai.v1beta1.Document.Page.Token.DetectedBreak",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    fields=[
        _descriptor.FieldDescriptor(
            name="type",
            full_name="google.cloud.documentai.v1beta1.Document.Page.Token.DetectedBreak.type",
            index=0,
            number=1,
            type=14,
            cpp_type=8,
            label=1,
            has_default_value=False,
            default_value=0,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        )
    ],
    extensions=[],
    nested_types=[],
    enum_types=[_DOCUMENT_PAGE_TOKEN_DETECTEDBREAK_TYPE],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=3131,
    serialized_end=3302,
)

_DOCUMENT_PAGE_TOKEN = _descriptor.Descriptor(
    name="Token",
    full_name="google.cloud.documentai.v1beta1.Document.Page.Token",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    fields=[
        _descriptor.FieldDescriptor(
            name="layout",
            full_name="google.cloud.documentai.v1beta1.Document.Page.Token.layout",
            index=0,
            number=1,
            type=11,
            cpp_type=10,
            label=1,
            has_default_value=False,
            default_value=None,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="detected_break",
            full_name="google.cloud.documentai.v1beta1.Document.Page.Token.detected_break",
            index=1,
            number=2,
            type=11,
            cpp_type=10,
            label=1,
            has_default_value=False,
            default_value=None,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="detected_languages",
            full_name="google.cloud.documentai.v1beta1.Document.Page.Token.detected_languages",
            index=2,
            number=3,
            type=11,
            cpp_type=10,
            label=3,
            has_default_value=False,
            default_value=[],
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
    ],
    extensions=[],
    nested_types=[_DOCUMENT_PAGE_TOKEN_DETECTEDBREAK],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=2865,
    serialized_end=3302,
)

_DOCUMENT_PAGE_VISUALELEMENT = _descriptor.Descriptor(
    name="VisualElement",
    full_name="google.cloud.documentai.v1beta1.Document.Page.VisualElement",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    fields=[
        _descriptor.FieldDescriptor(
            name="layout",
            full_name="google.cloud.documentai.v1beta1.Document.Page.VisualElement.layout",
            index=0,
            number=1,
            type=11,
            cpp_type=10,
            label=1,
            has_default_value=False,
            default_value=None,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="type",
            full_name="google.cloud.documentai.v1beta1.Document.Page.VisualElement.type",
            index=1,
            number=2,
            type=9,
            cpp_type=9,
            label=1,
            has_default_value=False,
            default_value=_b("").decode("utf-8"),
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="detected_languages",
            full_name="google.cloud.documentai.v1beta1.Document.Page.VisualElement.detected_languages",
            index=2,
            number=3,
            type=11,
            cpp_type=10,
            label=3,
            has_default_value=False,
            default_value=[],
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
    ],
    extensions=[],
    nested_types=[],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=3305,
    serialized_end=3498,
)

_DOCUMENT_PAGE_TABLE_TABLEROW = _descriptor.Descriptor(
    name="TableRow",
    full_name="google.cloud.documentai.v1beta1.Document.Page.Table.TableRow",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    fields=[
        _descriptor.FieldDescriptor(
            name="cells",
            full_name="google.cloud.documentai.v1beta1.Document.Page.Table.TableRow.cells",
            index=0,
            number=1,
            type=11,
            cpp_type=10,
            label=3,
            has_default_value=False,
            default_value=[],
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        )
    ],
    extensions=[],
    nested_types=[],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=3840,
    serialized_end=3929,
)

_DOCUMENT_PAGE_TABLE_TABLECELL = _descriptor.Descriptor(
    name="TableCell",
    full_name="google.cloud.documentai.v1beta1.Document.Page.Table.TableCell",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    fields=[
        _descriptor.FieldDescriptor(
            name="layout",
            full_name="google.cloud.documentai.v1beta1.Document.Page.Table.TableCell.layout",
            index=0,
            number=1,
            type=11,
            cpp_type=10,
            label=1,
            has_default_value=False,
            default_value=None,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="row_span",
            full_name="google.cloud.documentai.v1beta1.Document.Page.Table.TableCell.row_span",
            index=1,
            number=2,
            type=5,
            cpp_type=1,
            label=1,
            has_default_value=False,
            default_value=0,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="col_span",
            full_name="google.cloud.documentai.v1beta1.Document.Page.Table.TableCell.col_span",
            index=2,
            number=3,
            type=5,
            cpp_type=1,
            label=1,
            has_default_value=False,
            default_value=0,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="detected_languages",
            full_name="google.cloud.documentai.v1beta1.Document.Page.Table.TableCell.detected_languages",
            index=3,
            number=4,
            type=11,
            cpp_type=10,
            label=3,
            has_default_value=False,
            default_value=[],
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
    ],
    extensions=[],
    nested_types=[],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=3932,
    serialized_end=4143,
)

_DOCUMENT_PAGE_TABLE = _descriptor.Descriptor(
    name="Table",
    full_name="google.cloud.documentai.v1beta1.Document.Page.Table",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    fields=[
        _descriptor.FieldDescriptor(
            name="layout",
            full_name="google.cloud.documentai.v1beta1.Document.Page.Table.layout",
            index=0,
            number=1,
            type=11,
            cpp_type=10,
            label=1,
            has_default_value=False,
            default_value=None,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="header_rows",
            full_name="google.cloud.documentai.v1beta1.Document.Page.Table.header_rows",
            index=1,
            number=2,
            type=11,
            cpp_type=10,
            label=3,
            has_default_value=False,
            default_value=[],
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="body_rows",
            full_name="google.cloud.documentai.v1beta1.Document.Page.Table.body_rows",
            index=2,
            number=3,
            type=11,
            cpp_type=10,
            label=3,
            has_default_value=False,
            default_value=[],
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="detected_languages",
            full_name="google.cloud.documentai.v1beta1.Document.Page.Table.detected_languages",
            index=3,
            number=4,
            type=11,
            cpp_type=10,
            label=3,
            has_default_value=False,
            default_value=[],
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
    ],
    extensions=[],
    nested_types=[_DOCUMENT_PAGE_TABLE_TABLEROW, _DOCUMENT_PAGE_TABLE_TABLECELL],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=3501,
    serialized_end=4143,
)

_DOCUMENT_PAGE_FORMFIELD = _descriptor.Descriptor(
    name="FormField",
    full_name="google.cloud.documentai.v1beta1.Document.Page.FormField",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    fields=[
        _descriptor.FieldDescriptor(
            name="field_name",
            full_name="google.cloud.documentai.v1beta1.Document.Page.FormField.field_name",
            index=0,
            number=1,
            type=11,
            cpp_type=10,
            label=1,
            has_default_value=False,
            default_value=None,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="field_value",
            full_name="google.cloud.documentai.v1beta1.Document.Page.FormField.field_value",
            index=1,
            number=2,
            type=11,
            cpp_type=10,
            label=1,
            has_default_value=False,
            default_value=None,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="name_detected_languages",
            full_name="google.cloud.documentai.v1beta1.Document.Page.FormField.name_detected_languages",
            index=2,
            number=3,
            type=11,
            cpp_type=10,
            label=3,
            has_default_value=False,
            default_value=[],
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="value_detected_languages",
            full_name="google.cloud.documentai.v1beta1.Document.Page.FormField.value_detected_languages",
            index=3,
            number=4,
            type=11,
            cpp_type=10,
            label=3,
            has_default_value=False,
            default_value=[],
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
    ],
    extensions=[],
    nested_types=[],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=4146,
    serialized_end=4505,
)

_DOCUMENT_PAGE_DETECTEDLANGUAGE = _descriptor.Descriptor(
    name="DetectedLanguage",
    full_name="google.cloud.documentai.v1beta1.Document.Page.DetectedLanguage",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    fields=[
        _descriptor.FieldDescriptor(
            name="language_code",
            full_name="google.cloud.documentai.v1beta1.Document.Page.DetectedLanguage.language_code",
            index=0,
            number=1,
            type=9,
            cpp_type=9,
            label=1,
            has_default_value=False,
            default_value=_b("").decode("utf-8"),
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="confidence",
            full_name="google.cloud.documentai.v1beta1.Document.Page.DetectedLanguage.confidence",
            index=1,
            number=2,
            type=2,
            cpp_type=6,
            label=1,
            has_default_value=False,
            default_value=float(0),
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
    ],
    extensions=[],
    nested_types=[],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=4507,
    serialized_end=4568,
)

_DOCUMENT_PAGE = _descriptor.Descriptor(
    name="Page",
    full_name="google.cloud.documentai.v1beta1.Document.Page",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    fields=[
        _descriptor.FieldDescriptor(
            name="page_number",
            full_name="google.cloud.documentai.v1beta1.Document.Page.page_number",
            index=0,
            number=1,
            type=5,
            cpp_type=1,
            label=1,
            has_default_value=False,
            default_value=0,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="dimension",
            full_name="google.cloud.documentai.v1beta1.Document.Page.dimension",
            index=1,
            number=2,
            type=11,
            cpp_type=10,
            label=1,
            has_default_value=False,
            default_value=None,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="layout",
            full_name="google.cloud.documentai.v1beta1.Document.Page.layout",
            index=2,
            number=3,
            type=11,
            cpp_type=10,
            label=1,
            has_default_value=False,
            default_value=None,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="detected_languages",
            full_name="google.cloud.documentai.v1beta1.Document.Page.detected_languages",
            index=3,
            number=4,
            type=11,
            cpp_type=10,
            label=3,
            has_default_value=False,
            default_value=[],
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="blocks",
            full_name="google.cloud.documentai.v1beta1.Document.Page.blocks",
            index=4,
            number=5,
            type=11,
            cpp_type=10,
            label=3,
            has_default_value=False,
            default_value=[],
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="paragraphs",
            full_name="google.cloud.documentai.v1beta1.Document.Page.paragraphs",
            index=5,
            number=6,
            type=11,
            cpp_type=10,
            label=3,
            has_default_value=False,
            default_value=[],
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="lines",
            full_name="google.cloud.documentai.v1beta1.Document.Page.lines",
            index=6,
            number=7,
            type=11,
            cpp_type=10,
            label=3,
            has_default_value=False,
            default_value=[],
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="tokens",
            full_name="google.cloud.documentai.v1beta1.Document.Page.tokens",
            index=7,
            number=8,
            type=11,
            cpp_type=10,
            label=3,
            has_default_value=False,
            default_value=[],
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="visual_elements",
            full_name="google.cloud.documentai.v1beta1.Document.Page.visual_elements",
            index=8,
            number=9,
            type=11,
            cpp_type=10,
            label=3,
            has_default_value=False,
            default_value=[],
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="tables",
            full_name="google.cloud.documentai.v1beta1.Document.Page.tables",
            index=9,
            number=10,
            type=11,
            cpp_type=10,
            label=3,
            has_default_value=False,
            default_value=[],
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="form_fields",
            full_name="google.cloud.documentai.v1beta1.Document.Page.form_fields",
            index=10,
            number=11,
            type=11,
            cpp_type=10,
            label=3,
            has_default_value=False,
            default_value=[],
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
    ],
    extensions=[],
    nested_types=[
        _DOCUMENT_PAGE_DIMENSION,
        _DOCUMENT_PAGE_LAYOUT,
        _DOCUMENT_PAGE_BLOCK,
        _DOCUMENT_PAGE_PARAGRAPH,
        _DOCUMENT_PAGE_LINE,
        _DOCUMENT_PAGE_TOKEN,
        _DOCUMENT_PAGE_VISUALELEMENT,
        _DOCUMENT_PAGE_TABLE,
        _DOCUMENT_PAGE_FORMFIELD,
        _DOCUMENT_PAGE_DETECTEDLANGUAGE,
    ],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=1122,
    serialized_end=4568,
)

_DOCUMENT_ENTITY = _descriptor.Descriptor(
    name="Entity",
    full_name="google.cloud.documentai.v1beta1.Document.Entity",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    fields=[
        _descriptor.FieldDescriptor(
            name="text_anchor",
            full_name="google.cloud.documentai.v1beta1.Document.Entity.text_anchor",
            index=0,
            number=1,
            type=11,
            cpp_type=10,
            label=1,
            has_default_value=False,
            default_value=None,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="type",
            full_name="google.cloud.documentai.v1beta1.Document.Entity.type",
            index=1,
            number=2,
            type=9,
            cpp_type=9,
            label=1,
            has_default_value=False,
            default_value=_b("").decode("utf-8"),
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="mention_text",
            full_name="google.cloud.documentai.v1beta1.Document.Entity.mention_text",
            index=2,
            number=3,
            type=9,
            cpp_type=9,
            label=1,
            has_default_value=False,
            default_value=_b("").decode("utf-8"),
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="mention_id",
            full_name="google.cloud.documentai.v1beta1.Document.Entity.mention_id",
            index=3,
            number=4,
            type=9,
            cpp_type=9,
            label=1,
            has_default_value=False,
            default_value=_b("").decode("utf-8"),
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
    ],
    extensions=[],
    nested_types=[],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=4571,
    serialized_end=4710,
)

_DOCUMENT_ENTITYRELATION = _descriptor.Descriptor(
    name="EntityRelation",
    full_name="google.cloud.documentai.v1beta1.Document.EntityRelation",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    fields=[
        _descriptor.FieldDescriptor(
            name="subject_id",
            full_name="google.cloud.documentai.v1beta1.Document.EntityRelation.subject_id",
            index=0,
            number=1,
            type=9,
            cpp_type=9,
            label=1,
            has_default_value=False,
            default_value=_b("").decode("utf-8"),
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="object_id",
            full_name="google.cloud.documentai.v1beta1.Document.EntityRelation.object_id",
            index=1,
            number=2,
            type=9,
            cpp_type=9,
            label=1,
            has_default_value=False,
            default_value=_b("").decode("utf-8"),
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="relation",
            full_name="google.cloud.documentai.v1beta1.Document.EntityRelation.relation",
            index=2,
            number=3,
            type=9,
            cpp_type=9,
            label=1,
            has_default_value=False,
            default_value=_b("").decode("utf-8"),
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
    ],
    extensions=[],
    nested_types=[],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=4712,
    serialized_end=4785,
)

_DOCUMENT_TEXTANCHOR_TEXTSEGMENT = _descriptor.Descriptor(
    name="TextSegment",
    full_name="google.cloud.documentai.v1beta1.Document.TextAnchor.TextSegment",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    fields=[
        _descriptor.FieldDescriptor(
            name="start_index",
            full_name="google.cloud.documentai.v1beta1.Document.TextAnchor.TextSegment.start_index",
            index=0,
            number=1,
            type=3,
            cpp_type=2,
            label=1,
            has_default_value=False,
            default_value=0,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="end_index",
            full_name="google.cloud.documentai.v1beta1.Document.TextAnchor.TextSegment.end_index",
            index=1,
            number=2,
            type=3,
            cpp_type=2,
            label=1,
            has_default_value=False,
            default_value=0,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
    ],
    extensions=[],
    nested_types=[],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=4891,
    serialized_end=4944,
)

_DOCUMENT_TEXTANCHOR = _descriptor.Descriptor(
    name="TextAnchor",
    full_name="google.cloud.documentai.v1beta1.Document.TextAnchor",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    fields=[
        _descriptor.FieldDescriptor(
            name="text_segments",
            full_name="google.cloud.documentai.v1beta1.Document.TextAnchor.text_segments",
            index=0,
            number=1,
            type=11,
            cpp_type=10,
            label=3,
            has_default_value=False,
            default_value=[],
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        )
    ],
    extensions=[],
    nested_types=[_DOCUMENT_TEXTANCHOR_TEXTSEGMENT],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=4788,
    serialized_end=4944,
)

_DOCUMENT = _descriptor.Descriptor(
    name="Document",
    full_name="google.cloud.documentai.v1beta1.Document",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    fields=[
        _descriptor.FieldDescriptor(
            name="uri",
            full_name="google.cloud.documentai.v1beta1.Document.uri",
            index=0,
            number=1,
            type=9,
            cpp_type=9,
            label=1,
            has_default_value=False,
            default_value=_b("").decode("utf-8"),
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="content",
            full_name="google.cloud.documentai.v1beta1.Document.content",
            index=1,
            number=2,
            type=12,
            cpp_type=9,
            label=1,
            has_default_value=False,
            default_value=_b(""),
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="mime_type",
            full_name="google.cloud.documentai.v1beta1.Document.mime_type",
            index=2,
            number=3,
            type=9,
            cpp_type=9,
            label=1,
            has_default_value=False,
            default_value=_b("").decode("utf-8"),
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="text",
            full_name="google.cloud.documentai.v1beta1.Document.text",
            index=3,
            number=4,
            type=9,
            cpp_type=9,
            label=1,
            has_default_value=False,
            default_value=_b("").decode("utf-8"),
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="text_styles",
            full_name="google.cloud.documentai.v1beta1.Document.text_styles",
            index=4,
            number=5,
            type=11,
            cpp_type=10,
            label=3,
            has_default_value=False,
            default_value=[],
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="pages",
            full_name="google.cloud.documentai.v1beta1.Document.pages",
            index=5,
            number=6,
            type=11,
            cpp_type=10,
            label=3,
            has_default_value=False,
            default_value=[],
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="entities",
            full_name="google.cloud.documentai.v1beta1.Document.entities",
            index=6,
            number=7,
            type=11,
            cpp_type=10,
            label=3,
            has_default_value=False,
            default_value=[],
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="entity_relations",
            full_name="google.cloud.documentai.v1beta1.Document.entity_relations",
            index=7,
            number=8,
            type=11,
            cpp_type=10,
            label=3,
            has_default_value=False,
            default_value=[],
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="shard_info",
            full_name="google.cloud.documentai.v1beta1.Document.shard_info",
            index=8,
            number=9,
            type=11,
            cpp_type=10,
            label=1,
            has_default_value=False,
            default_value=None,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="error",
            full_name="google.cloud.documentai.v1beta1.Document.error",
            index=9,
            number=10,
            type=11,
            cpp_type=10,
            label=1,
            has_default_value=False,
            default_value=None,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
    ],
    extensions=[],
    nested_types=[
        _DOCUMENT_SHARDINFO,
        _DOCUMENT_STYLE,
        _DOCUMENT_PAGE,
        _DOCUMENT_ENTITY,
        _DOCUMENT_ENTITYRELATION,
        _DOCUMENT_TEXTANCHOR,
    ],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[
        _descriptor.OneofDescriptor(
            name="source",
            full_name="google.cloud.documentai.v1beta1.Document.source",
            index=0,
            containing_type=None,
            fields=[],
        )
    ],
    serialized_start=224,
    serialized_end=4954,
)

_DOCUMENT_SHARDINFO.containing_type = _DOCUMENT
_DOCUMENT_STYLE_FONTSIZE.containing_type = _DOCUMENT_STYLE
_DOCUMENT_STYLE.fields_by_name["text_anchor"].message_type = _DOCUMENT_TEXTANCHOR
_DOCUMENT_STYLE.fields_by_name[
    "color"
].message_type = google_dot_type_dot_color__pb2._COLOR
_DOCUMENT_STYLE.fields_by_name[
    "background_color"
].message_type = google_dot_type_dot_color__pb2._COLOR
_DOCUMENT_STYLE.fields_by_name["font_size"].message_type = _DOCUMENT_STYLE_FONTSIZE
_DOCUMENT_STYLE.containing_type = _DOCUMENT
_DOCUMENT_PAGE_DIMENSION.containing_type = _DOCUMENT_PAGE
_DOCUMENT_PAGE_LAYOUT.fields_by_name["text_anchor"].message_type = _DOCUMENT_TEXTANCHOR
_DOCUMENT_PAGE_LAYOUT.fields_by_name[
    "bounding_poly"
].message_type = (
    google_dot_cloud_dot_documentai__v1beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY
)
_DOCUMENT_PAGE_LAYOUT.fields_by_name[
    "orientation"
].enum_type = _DOCUMENT_PAGE_LAYOUT_ORIENTATION
_DOCUMENT_PAGE_LAYOUT.containing_type = _DOCUMENT_PAGE
_DOCUMENT_PAGE_LAYOUT_ORIENTATION.containing_type = _DOCUMENT_PAGE_LAYOUT
_DOCUMENT_PAGE_BLOCK.fields_by_name["layout"].message_type = _DOCUMENT_PAGE_LAYOUT
_DOCUMENT_PAGE_BLOCK.fields_by_name[
    "detected_languages"
].message_type = _DOCUMENT_PAGE_DETECTEDLANGUAGE
_DOCUMENT_PAGE_BLOCK.containing_type = _DOCUMENT_PAGE
_DOCUMENT_PAGE_PARAGRAPH.fields_by_name["layout"].message_type = _DOCUMENT_PAGE_LAYOUT
_DOCUMENT_PAGE_PARAGRAPH.fields_by_name[
    "detected_languages"
].message_type = _DOCUMENT_PAGE_DETECTEDLANGUAGE
_DOCUMENT_PAGE_PARAGRAPH.containing_type = _DOCUMENT_PAGE
_DOCUMENT_PAGE_LINE.fields_by_name["layout"].message_type = _DOCUMENT_PAGE_LAYOUT
_DOCUMENT_PAGE_LINE.fields_by_name[
    "detected_languages"
].message_type = _DOCUMENT_PAGE_DETECTEDLANGUAGE
_DOCUMENT_PAGE_LINE.containing_type = _DOCUMENT_PAGE
_DOCUMENT_PAGE_TOKEN_DETECTEDBREAK.fields_by_name[
    "type"
].enum_type = _DOCUMENT_PAGE_TOKEN_DETECTEDBREAK_TYPE
_DOCUMENT_PAGE_TOKEN_DETECTEDBREAK.containing_type = _DOCUMENT_PAGE_TOKEN
_DOCUMENT_PAGE_TOKEN_DETECTEDBREAK_TYPE.containing_type = (
    _DOCUMENT_PAGE_TOKEN_DETECTEDBREAK
)
_DOCUMENT_PAGE_TOKEN.fields_by_name["layout"].message_type = _DOCUMENT_PAGE_LAYOUT
_DOCUMENT_PAGE_TOKEN.fields_by_name[
    "detected_break"
].message_type = _DOCUMENT_PAGE_TOKEN_DETECTEDBREAK
_DOCUMENT_PAGE_TOKEN.fields_by_name[
    "detected_languages"
].message_type = _DOCUMENT_PAGE_DETECTEDLANGUAGE
_DOCUMENT_PAGE_TOKEN.containing_type = _DOCUMENT_PAGE
_DOCUMENT_PAGE_VISUALELEMENT.fields_by_name[
    "layout"
].message_type = _DOCUMENT_PAGE_LAYOUT
_DOCUMENT_PAGE_VISUALELEMENT.fields_by_name[
    "detected_languages"
].message_type = _DOCUMENT_PAGE_DETECTEDLANGUAGE
_DOCUMENT_PAGE_VISUALELEMENT.containing_type = _DOCUMENT_PAGE
_DOCUMENT_PAGE_TABLE_TABLEROW.fields_by_name[
    "cells"
].message_type = _DOCUMENT_PAGE_TABLE_TABLECELL
_DOCUMENT_PAGE_TABLE_TABLEROW.containing_type = _DOCUMENT_PAGE_TABLE
_DOCUMENT_PAGE_TABLE_TABLECELL.fields_by_name[
    "layout"
].message_type = _DOCUMENT_PAGE_LAYOUT
_DOCUMENT_PAGE_TABLE_TABLECELL.fields_by_name[
    "detected_languages"
].message_type = _DOCUMENT_PAGE_DETECTEDLANGUAGE
_DOCUMENT_PAGE_TABLE_TABLECELL.containing_type = _DOCUMENT_PAGE_TABLE
_DOCUMENT_PAGE_TABLE.fields_by_name["layout"].message_type = _DOCUMENT_PAGE_LAYOUT
_DOCUMENT_PAGE_TABLE.fields_by_name[
    "header_rows"
].message_type = _DOCUMENT_PAGE_TABLE_TABLEROW
_DOCUMENT_PAGE_TABLE.fields_by_name[
    "body_rows"
].message_type = _DOCUMENT_PAGE_TABLE_TABLEROW
_DOCUMENT_PAGE_TABLE.fields_by_name[
    "detected_languages"
].message_type = _DOCUMENT_PAGE_DETECTEDLANGUAGE
_DOCUMENT_PAGE_TABLE.containing_type = _DOCUMENT_PAGE
_DOCUMENT_PAGE_FORMFIELD.fields_by_name[
    "field_name"
].message_type = _DOCUMENT_PAGE_LAYOUT
_DOCUMENT_PAGE_FORMFIELD.fields_by_name[
    "field_value"
].message_type = _DOCUMENT_PAGE_LAYOUT
_DOCUMENT_PAGE_FORMFIELD.fields_by_name[
    "name_detected_languages"
].message_type = _DOCUMENT_PAGE_DETECTEDLANGUAGE
_DOCUMENT_PAGE_FORMFIELD.fields_by_name[
    "value_detected_languages"
].message_type = _DOCUMENT_PAGE_DETECTEDLANGUAGE
_DOCUMENT_PAGE_FORMFIELD.containing_type = _DOCUMENT_PAGE
_DOCUMENT_PAGE_DETECTEDLANGUAGE.containing_type = _DOCUMENT_PAGE
_DOCUMENT_PAGE.fields_by_name["dimension"].message_type = _DOCUMENT_PAGE_DIMENSION
_DOCUMENT_PAGE.fields_by_name["layout"].message_type = _DOCUMENT_PAGE_LAYOUT
_DOCUMENT_PAGE.fields_by_name[
    "detected_languages"
].message_type = _DOCUMENT_PAGE_DETECTEDLANGUAGE
_DOCUMENT_PAGE.fields_by_name["blocks"].message_type = _DOCUMENT_PAGE_BLOCK
_DOCUMENT_PAGE.fields_by_name["paragraphs"].message_type = _DOCUMENT_PAGE_PARAGRAPH
_DOCUMENT_PAGE.fields_by_name["lines"].message_type = _DOCUMENT_PAGE_LINE
_DOCUMENT_PAGE.fields_by_name["tokens"].message_type = _DOCUMENT_PAGE_TOKEN
_DOCUMENT_PAGE.fields_by_name[
    "visual_elements"
].message_type = _DOCUMENT_PAGE_VISUALELEMENT
_DOCUMENT_PAGE.fields_by_name["tables"].message_type = _DOCUMENT_PAGE_TABLE
_DOCUMENT_PAGE.fields_by_name["form_fields"].message_type = _DOCUMENT_PAGE_FORMFIELD
_DOCUMENT_PAGE.containing_type = _DOCUMENT
_DOCUMENT_ENTITY.fields_by_name["text_anchor"].message_type = _DOCUMENT_TEXTANCHOR
_DOCUMENT_ENTITY.containing_type = _DOCUMENT
_DOCUMENT_ENTITYRELATION.containing_type = _DOCUMENT
_DOCUMENT_TEXTANCHOR_TEXTSEGMENT.containing_type = _DOCUMENT_TEXTANCHOR
_DOCUMENT_TEXTANCHOR.fields_by_name[
    "text_segments"
].message_type = _DOCUMENT_TEXTANCHOR_TEXTSEGMENT
_DOCUMENT_TEXTANCHOR.containing_type = _DOCUMENT
_DOCUMENT.fields_by_name["text_styles"].message_type = _DOCUMENT_STYLE
_DOCUMENT.fields_by_name["pages"].message_type = _DOCUMENT_PAGE
_DOCUMENT.fields_by_name["entities"].message_type = _DOCUMENT_ENTITY
_DOCUMENT.fields_by_name["entity_relations"].message_type = _DOCUMENT_ENTITYRELATION
_DOCUMENT.fields_by_name["shard_info"].message_type = _DOCUMENT_SHARDINFO
_DOCUMENT.fields_by_name["error"].message_type = google_dot_rpc_dot_status__pb2._STATUS
_DOCUMENT.oneofs_by_name["source"].fields.append(_DOCUMENT.fields_by_name["uri"])
_DOCUMENT.fields_by_name["uri"].containing_oneof = _DOCUMENT.oneofs_by_name["source"]
_DOCUMENT.oneofs_by_name["source"].fields.append(_DOCUMENT.fields_by_name["content"])
_DOCUMENT.fields_by_name["content"].containing_oneof = _DOCUMENT.oneofs_by_name[
    "source"
]
DESCRIPTOR.message_types_by_name["Document"] = _DOCUMENT
_sym_db.RegisterFileDescriptor(DESCRIPTOR)

Document = _reflection.GeneratedProtocolMessageType(
    "Document",
    (_message.Message,),
    dict(
        ShardInfo=_reflection.GeneratedProtocolMessageType(
            "ShardInfo",
            (_message.Message,),
            dict(
                DESCRIPTOR=_DOCUMENT_SHARDINFO,
                __module__="google.cloud.documentai_v1beta1.proto.document_pb2",
                __doc__="""For a large document, sharding may be performed to produce several
    document shards. Each document shard contains this field to detail which
    shard it is.
    
    
    Attributes:
        shard_index:
            The 0-based index of this shard.
        shard_count:
            Total number of shards.
        text_offset:
            The index of the first character in
            [Document.text][google.cloud.documentai.v1beta1.Document.text]
            in the overall document global text.
    """,
                # @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta1.Document.ShardInfo)
            ),
        ),
        Style=_reflection.GeneratedProtocolMessageType(
            "Style",
            (_message.Message,),
            dict(
                FontSize=_reflection.GeneratedProtocolMessageType(
                    "FontSize",
                    (_message.Message,),
                    dict(
                        DESCRIPTOR=_DOCUMENT_STYLE_FONTSIZE,
                        __module__="google.cloud.documentai_v1beta1.proto.document_pb2",
                        __doc__="""Font size with unit.
      
      
      Attributes:
          size:
              Font size for the text.
          unit:
              Unit for the font size. Follows CSS naming (in, px, pt, etc.).
      """,
                        # @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta1.Document.Style.FontSize)
                    ),
                ),
                DESCRIPTOR=_DOCUMENT_STYLE,
                __module__="google.cloud.documentai_v1beta1.proto.document_pb2",
                __doc__="""Annotation for common text style attributes. This adheres to CSS
    conventions as much as possible.
    
    
    Attributes:
        text_anchor:
            Text anchor indexing into the [Document.text][google.cloud.doc
            umentai.v1beta1.Document.text].
        color:
            Text color.
        background_color:
            Text background color.
        font_weight:
            Font weight. Possible values are normal, bold, bolder, and
            lighter. https://www.w3schools.com/cssref/pr\_font\_weight.asp
        text_style:
            Text style. Possible values are normal, italic, and oblique.
            https://www.w3schools.com/cssref/pr\_font\_font-style.asp
        text_decoration:
            Text decoration. Follows CSS standard.
            https://www.w3schools.com/cssref/pr\_text\_text-decoration.asp
        font_size:
            Font size.
    """,
                # @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta1.Document.Style)
            ),
        ),
        Page=_reflection.GeneratedProtocolMessageType(
            "Page",
            (_message.Message,),
            dict(
                Dimension=_reflection.GeneratedProtocolMessageType(
                    "Dimension",
                    (_message.Message,),
                    dict(
                        DESCRIPTOR=_DOCUMENT_PAGE_DIMENSION,
                        __module__="google.cloud.documentai_v1beta1.proto.document_pb2",
                        __doc__="""Dimension for the page.
      
      
      Attributes:
          width:
              Page width.
          height:
              Page height.
          unit:
              Dimension unit.
      """,
                        # @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta1.Document.Page.Dimension)
                    ),
                ),
                Layout=_reflection.GeneratedProtocolMessageType(
                    "Layout",
                    (_message.Message,),
                    dict(
                        DESCRIPTOR=_DOCUMENT_PAGE_LAYOUT,
                        __module__="google.cloud.documentai_v1beta1.proto.document_pb2",
                        __doc__="""Visual element describing a layout unit on a page.
      
      
      Attributes:
          text_anchor:
              Text anchor indexing into the [Document.text][google.cloud.doc
              umentai.v1beta1.Document.text].
          confidence:
              Confidence of the current
              [Layout][google.cloud.documentai.v1beta1.Document.Page.Layout]
              within context of the object this layout is for. e.g.
              confidence can be for a single token, a table, a visual
              element, etc. depending on context. Range [0, 1].
          bounding_poly:
              The bounding polygon for the [Layout][google.cloud.documentai.
              v1beta1.Document.Page.Layout].
          orientation:
              Detected orientation for the [Layout][google.cloud.documentai.
              v1beta1.Document.Page.Layout].
      """,
                        # @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta1.Document.Page.Layout)
                    ),
                ),
                Block=_reflection.GeneratedProtocolMessageType(
                    "Block",
                    (_message.Message,),
                    dict(
                        DESCRIPTOR=_DOCUMENT_PAGE_BLOCK,
                        __module__="google.cloud.documentai_v1beta1.proto.document_pb2",
                        __doc__="""A block has a set of lines (collected into paragraphs) that have a
      common line-spacing and orientation.
      
      
      Attributes:
          layout:
              [Layout][google.cloud.documentai.v1beta1.Document.Page.Layout]
              for
              [Block][google.cloud.documentai.v1beta1.Document.Page.Block].
          detected_languages:
              A list of detected languages together with confidence.
      """,
                        # @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta1.Document.Page.Block)
                    ),
                ),
                Paragraph=_reflection.GeneratedProtocolMessageType(
                    "Paragraph",
                    (_message.Message,),
                    dict(
                        DESCRIPTOR=_DOCUMENT_PAGE_PARAGRAPH,
                        __module__="google.cloud.documentai_v1beta1.proto.document_pb2",
                        __doc__="""A collection of lines that a human would perceive as a paragraph.
      
      
      Attributes:
          layout:
              [Layout][google.cloud.documentai.v1beta1.Document.Page.Layout]
              for [Paragraph][google.cloud.documentai.v1beta1.Document.Page.
              Paragraph].
          detected_languages:
              A list of detected languages together with confidence.
      """,
                        # @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta1.Document.Page.Paragraph)
                    ),
                ),
                Line=_reflection.GeneratedProtocolMessageType(
                    "Line",
                    (_message.Message,),
                    dict(
                        DESCRIPTOR=_DOCUMENT_PAGE_LINE,
                        __module__="google.cloud.documentai_v1beta1.proto.document_pb2",
                        __doc__="""A collection of tokens that a human would perceive as a line. Does not
      cross column boundaries, can be horizontal, vertical, etc.
      
      
      Attributes:
          layout:
              [Layout][google.cloud.documentai.v1beta1.Document.Page.Layout]
              for
              [Line][google.cloud.documentai.v1beta1.Document.Page.Line].
          detected_languages:
              A list of detected languages together with confidence.
      """,
                        # @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta1.Document.Page.Line)
                    ),
                ),
                Token=_reflection.GeneratedProtocolMessageType(
                    "Token",
                    (_message.Message,),
                    dict(
                        DetectedBreak=_reflection.GeneratedProtocolMessageType(
                            "DetectedBreak",
                            (_message.Message,),
                            dict(
                                DESCRIPTOR=_DOCUMENT_PAGE_TOKEN_DETECTEDBREAK,
                                __module__="google.cloud.documentai_v1beta1.proto.document_pb2",
                                __doc__="""Detected break at the end of a
        [Token][google.cloud.documentai.v1beta1.Document.Page.Token].
        
        
        Attributes:
            type:
                Detected break type.
        """,
                                # @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta1.Document.Page.Token.DetectedBreak)
                            ),
                        ),
                        DESCRIPTOR=_DOCUMENT_PAGE_TOKEN,
                        __module__="google.cloud.documentai_v1beta1.proto.document_pb2",
                        __doc__="""A detected token.
      
      
      Attributes:
          layout:
              [Layout][google.cloud.documentai.v1beta1.Document.Page.Layout]
              for
              [Token][google.cloud.documentai.v1beta1.Document.Page.Token].
          detected_break:
              Detected break at the end of a
              [Token][google.cloud.documentai.v1beta1.Document.Page.Token].
          detected_languages:
              A list of detected languages together with confidence.
      """,
                        # @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta1.Document.Page.Token)
                    ),
                ),
                VisualElement=_reflection.GeneratedProtocolMessageType(
                    "VisualElement",
                    (_message.Message,),
                    dict(
                        DESCRIPTOR=_DOCUMENT_PAGE_VISUALELEMENT,
                        __module__="google.cloud.documentai_v1beta1.proto.document_pb2",
                        __doc__="""Detected non-text visual elements e.g. checkbox, signature etc. on the
      page.
      
      
      Attributes:
          layout:
              [Layout][google.cloud.documentai.v1beta1.Document.Page.Layout]
              for
              [Token][google.cloud.documentai.v1beta1.Document.Page.Token].
          type:
              Type of the [VisualElement][google.cloud.documentai.v1beta1.Do
              cument.Page.VisualElement].
          detected_languages:
              A list of detected languages together with confidence.
      """,
                        # @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta1.Document.Page.VisualElement)
                    ),
                ),
                Table=_reflection.GeneratedProtocolMessageType(
                    "Table",
                    (_message.Message,),
                    dict(
                        TableRow=_reflection.GeneratedProtocolMessageType(
                            "TableRow",
                            (_message.Message,),
                            dict(
                                DESCRIPTOR=_DOCUMENT_PAGE_TABLE_TABLEROW,
                                __module__="google.cloud.documentai_v1beta1.proto.document_pb2",
                                __doc__="""A row of table cells.
        
        
        Attributes:
            cells:
                Cells that make up this row.
        """,
                                # @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta1.Document.Page.Table.TableRow)
                            ),
                        ),
                        TableCell=_reflection.GeneratedProtocolMessageType(
                            "TableCell",
                            (_message.Message,),
                            dict(
                                DESCRIPTOR=_DOCUMENT_PAGE_TABLE_TABLECELL,
                                __module__="google.cloud.documentai_v1beta1.proto.document_pb2",
                                __doc__="""A cell representation inside the table.
        
        
        Attributes:
            layout:
                [Layout][google.cloud.documentai.v1beta1.Document.Page.Layout]
                for [TableCell][google.cloud.documentai.v1beta1.Document.Page.
                Table.TableCell].
            row_span:
                How many rows this cell spans.
            col_span:
                How many columns this cell spans.
            detected_languages:
                A list of detected languages together with confidence.
        """,
                                # @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta1.Document.Page.Table.TableCell)
                            ),
                        ),
                        DESCRIPTOR=_DOCUMENT_PAGE_TABLE,
                        __module__="google.cloud.documentai_v1beta1.proto.document_pb2",
                        __doc__="""A table representation similar to HTML table structure.
      
      
      Attributes:
          layout:
              [Layout][google.cloud.documentai.v1beta1.Document.Page.Layout]
              for
              [Table][google.cloud.documentai.v1beta1.Document.Page.Table].
          header_rows:
              Header rows of the table.
          body_rows:
              Body rows of the table.
          detected_languages:
              A list of detected languages together with confidence.
      """,
                        # @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta1.Document.Page.Table)
                    ),
                ),
                FormField=_reflection.GeneratedProtocolMessageType(
                    "FormField",
                    (_message.Message,),
                    dict(
                        DESCRIPTOR=_DOCUMENT_PAGE_FORMFIELD,
                        __module__="google.cloud.documentai_v1beta1.proto.document_pb2",
                        __doc__="""A form field detected on the page.
      
      
      Attributes:
          field_name:
              [Layout][google.cloud.documentai.v1beta1.Document.Page.Layout]
              for the [FormField][google.cloud.documentai.v1beta1.Document.P
              age.FormField] name. e.g. ``Address``, ``Email``, ``Grand
              total``, ``Phone number``, etc.
          field_value:
              [Layout][google.cloud.documentai.v1beta1.Document.Page.Layout]
              for the [FormField][google.cloud.documentai.v1beta1.Document.P
              age.FormField] value.
          name_detected_languages:
              A list of detected languages for name together with
              confidence.
          value_detected_languages:
              A list of detected languages for value together with
              confidence.
      """,
                        # @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta1.Document.Page.FormField)
                    ),
                ),
                DetectedLanguage=_reflection.GeneratedProtocolMessageType(
                    "DetectedLanguage",
                    (_message.Message,),
                    dict(
                        DESCRIPTOR=_DOCUMENT_PAGE_DETECTEDLANGUAGE,
                        __module__="google.cloud.documentai_v1beta1.proto.document_pb2",
                        __doc__="""Detected language for a structural component.
      
      
      Attributes:
          language_code:
              The BCP-47 language code, such as "en-US" or "sr-Latn". For
              more information, see http://www.unicode.org/reports/tr35/#Uni
              code\_locale\_identifier.
          confidence:
              Confidence of detected language. Range [0, 1].
      """,
                        # @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta1.Document.Page.DetectedLanguage)
                    ),
                ),
                DESCRIPTOR=_DOCUMENT_PAGE,
                __module__="google.cloud.documentai_v1beta1.proto.document_pb2",
                __doc__="""A page in a [Document][google.cloud.documentai.v1beta1.Document].
    
    
    Attributes:
        page_number:
            1-based index for current
            [Page][google.cloud.documentai.v1beta1.Document.Page] in a
            parent [Document][google.cloud.documentai.v1beta1.Document].
            Useful when a page is taken out of a
            [Document][google.cloud.documentai.v1beta1.Document] for
            individual processing.
        dimension:
            Physical dimension of the page.
        layout:
            [Layout][google.cloud.documentai.v1beta1.Document.Page.Layout]
            for the page.
        detected_languages:
            A list of detected languages together with confidence.
        blocks:
            A list of visually detected text blocks on the page. A block
            has a set of lines (collected into paragraphs) that have a
            common line-spacing and orientation.
        paragraphs:
            A list of visually detected text paragraphs on the page. A
            collection of lines that a human would perceive as a
            paragraph.
        lines:
            A list of visually detected text lines on the page. A
            collection of tokens that a human would perceive as a line.
        tokens:
            A list of visually detected tokens on the page.
        visual_elements:
            A list of detected non-text visual elements e.g. checkbox,
            signature etc. on the page.
        tables:
            A list of visually detected tables on the page.
        form_fields:
            A list of visually detected form fields on the page.
    """,
                # @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta1.Document.Page)
            ),
        ),
        Entity=_reflection.GeneratedProtocolMessageType(
            "Entity",
            (_message.Message,),
            dict(
                DESCRIPTOR=_DOCUMENT_ENTITY,
                __module__="google.cloud.documentai_v1beta1.proto.document_pb2",
                __doc__="""A phrase in the text that is a known entity type, such as a person, an
    organization, or location.
    
    
    Attributes:
        text_anchor:
            Provenance of the entity. Text anchor indexing into the [Docum
            ent.text][google.cloud.documentai.v1beta1.Document.text].
        type:
            Entity type from a schema e.g. ``Address``.
        mention_text:
            Text value in the document e.g. ``1600 Amphitheatre Pkwy``.
        mention_id:
            Canonical mention name. This will be a unique value in the
            entity list for this document.
    """,
                # @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta1.Document.Entity)
            ),
        ),
        EntityRelation=_reflection.GeneratedProtocolMessageType(
            "EntityRelation",
            (_message.Message,),
            dict(
                DESCRIPTOR=_DOCUMENT_ENTITYRELATION,
                __module__="google.cloud.documentai_v1beta1.proto.document_pb2",
                __doc__="""Relationship between
    [Entities][google.cloud.documentai.v1beta1.Document.Entity].
    
    
    Attributes:
        subject_id:
            Subject entity mention\_id.
        object_id:
            Object entity mention\_id.
        relation:
            Relationship description.
    """,
                # @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta1.Document.EntityRelation)
            ),
        ),
        TextAnchor=_reflection.GeneratedProtocolMessageType(
            "TextAnchor",
            (_message.Message,),
            dict(
                TextSegment=_reflection.GeneratedProtocolMessageType(
                    "TextSegment",
                    (_message.Message,),
                    dict(
                        DESCRIPTOR=_DOCUMENT_TEXTANCHOR_TEXTSEGMENT,
                        __module__="google.cloud.documentai_v1beta1.proto.document_pb2",
                        __doc__="""A text segment in the
      [Document.text][google.cloud.documentai.v1beta1.Document.text]. The
      indices may be out of bounds which indicate that the text extends into
      another document shard for large sharded documents. See
      [ShardInfo.text\_offset][google.cloud.documentai.v1beta1.Document.ShardInfo.text\_offset]
      
      
      Attributes:
          start_index:
              [TextSegment][google.cloud.documentai.v1beta1.Document.TextAnc
              hor.TextSegment] start UTF-8 char index in the [Document.text]
              [google.cloud.documentai.v1beta1.Document.text].
          end_index:
              [TextSegment][google.cloud.documentai.v1beta1.Document.TextAnc
              hor.TextSegment] half open end UTF-8 char index in the [Docume
              nt.text][google.cloud.documentai.v1beta1.Document.text].
      """,
                        # @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta1.Document.TextAnchor.TextSegment)
                    ),
                ),
                DESCRIPTOR=_DOCUMENT_TEXTANCHOR,
                __module__="google.cloud.documentai_v1beta1.proto.document_pb2",
                __doc__="""Text reference indexing into the
    [Document.text][google.cloud.documentai.v1beta1.Document.text].
    
    
    Attributes:
        text_segments:
            The text segments from the [Document.text][google.cloud.docume
            ntai.v1beta1.Document.text].
    """,
                # @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta1.Document.TextAnchor)
            ),
        ),
        DESCRIPTOR=_DOCUMENT,
        __module__="google.cloud.documentai_v1beta1.proto.document_pb2",
        __doc__="""Document represents the canonical document resource in Document
  Understanding AI. It is an interchange format that provides insights
  into documents and allows for collaboration between users and Document
  Understanding AI to iterate and optimize for quality.
  
  
  Attributes:
      source:
          Original source document from the user.
      uri:
          Currently supports Google Cloud Storage URI of the form
          ``gs://bucket_name/object_name``. Object versioning is not
          supported. See `Google Cloud Storage Request URIs
          <https://cloud.google.com/storage/docs/reference-uris>`__ for
          more info.
      content:
          Inline document content, represented as a stream of bytes.
          Note: As with all ``bytes`` fields, protobuffers use a pure
          binary representation, whereas JSON representations use
          base64.
      mime_type:
          An IANA published MIME type (also referred to as media type).
          For more information, see
          https://www.iana.org/assignments/media-types/media-
          types.xhtml.
      text:
          UTF-8 encoded text in reading order from the document.
      text_styles:
          Styles for the [Document.text][google.cloud.documentai.v1beta1
          .Document.text].
      pages:
          Visual page layout for the
          [Document][google.cloud.documentai.v1beta1.Document].
      entities:
          A list of entities detected on [Document.text][google.cloud.do
          cumentai.v1beta1.Document.text]. For document shards, entities
          in this list may cross shard boundaries.
      entity_relations:
          Relationship among [Document.entities][google.cloud.documentai
          .v1beta1.Document.entities].
      shard_info:
          Information about the sharding if this document is sharded
          part of a larger document. If the document is not sharded,
          this message is not specified.
      error:
          Any error that occurred while processing this document.
  """,
        # @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta1.Document)
    ),
)
_sym_db.RegisterMessage(Document)
_sym_db.RegisterMessage(Document.ShardInfo)
_sym_db.RegisterMessage(Document.Style)
_sym_db.RegisterMessage(Document.Style.FontSize)
_sym_db.RegisterMessage(Document.Page)
_sym_db.RegisterMessage(Document.Page.Dimension)
_sym_db.RegisterMessage(Document.Page.Layout)
_sym_db.RegisterMessage(Document.Page.Block)
_sym_db.RegisterMessage(Document.Page.Paragraph)
_sym_db.RegisterMessage(Document.Page.Line)
_sym_db.RegisterMessage(Document.Page.Token)
_sym_db.RegisterMessage(Document.Page.Token.DetectedBreak)
_sym_db.RegisterMessage(Document.Page.VisualElement)
_sym_db.RegisterMessage(Document.Page.Table)
_sym_db.RegisterMessage(Document.Page.Table.TableRow)
_sym_db.RegisterMessage(Document.Page.Table.TableCell)
_sym_db.RegisterMessage(Document.Page.FormField)
_sym_db.RegisterMessage(Document.Page.DetectedLanguage)
_sym_db.RegisterMessage(Document.Entity)
_sym_db.RegisterMessage(Document.EntityRelation)
_sym_db.RegisterMessage(Document.TextAnchor)
_sym_db.RegisterMessage(Document.TextAnchor.TextSegment)


DESCRIPTOR._options = None
# @@protoc_insertion_point(module_scope)
