Googly.DocumentAI.Model.GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock (googly_document_ai v0.1.0)

Copy Markdown View Source

Represents a text type block.

Attributes

  • annotations (type: Googly.DocumentAI.Model.GoogleCloudDocumentaiV1DocumentAnnotations.t()) - Annotation of the text block.
  • blocks (type: list(Googly.DocumentAI.Model.GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock.t())) - A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.
  • text (type: String.t()) - Text content stored in the block.
  • type (type: String.t()) - Type of the text in the block. Available options are: paragraph, subtitle, heading-1, heading-2, heading-3, heading-4, heading-5, header, footer.

Summary

Types

t()

@type t() ::
  %Googly.DocumentAI.Model.GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock{
    annotations:
      Googly.DocumentAI.Model.GoogleCloudDocumentaiV1DocumentAnnotations.t()
      | nil,
    blocks:
      [
        Googly.DocumentAI.Model.GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock.t()
      ]
      | nil,
    text: String.t() | nil,
    type: String.t() | nil
  }