Class DocumentLayout (2.30.0)

DocumentLayout(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Represents the parsed layout of a document as a collection of blocks that the document is divided into.

Attribute

Name Description
blocks MutableSequence[google.cloud.documentai_v1.types.Document.DocumentLayout.DocumentLayoutBlock]
List of blocks in the document.

Classes

DocumentLayoutBlock

DocumentLayoutBlock(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Represents a block. A block could be one of the various types (text, table, list) supported.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields