Class Chunk (3.5.0)

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

Represents a chunk.

Attributes

Name Description
chunk_id str
ID of the chunk.
source_block_ids MutableSequence[str]
Unused.
content str
Text content of the chunk.
page_span google.cloud.documentai_v1beta3.types.Document.ChunkedDocument.Chunk.ChunkPageSpan
Page span of the chunk.
page_headers MutableSequence[google.cloud.documentai_v1beta3.types.Document.ChunkedDocument.Chunk.ChunkPageHeader]
Page headers associated with the chunk.
page_footers MutableSequence[google.cloud.documentai_v1beta3.types.Document.ChunkedDocument.Chunk.ChunkPageFooter]
Page footers associated with the chunk.
chunk_fields MutableSequence[google.cloud.documentai_v1beta3.types.Document.ChunkedDocument.Chunk.ChunkField]
Chunk fields inside this chunk.

Classes

ChunkField

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

The chunk field in the chunk. A chunk field could be one of the various types (e.g. image, table) 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

ChunkPageFooter

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

Represents the page footer associated with the chunk.

ChunkPageHeader

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

Represents the page header associated with the chunk.

ChunkPageSpan

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

Represents where the chunk starts and ends in the document.

ImageChunkField

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

The image chunk field in the chunk.

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

TableChunkField

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

The table chunk field in the chunk.