View Source GoogleApi.DocumentAI.V1beta3.Model.GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock (google_api_document_ai v0.39.0)

Represents a text type block.

Attributes

  • blocks (type: list(GoogleApi.DocumentAI.V1beta3.Model.GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlock.t), default: nil) - A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.
  • text (type: String.t, default: nil) - Text content stored in the block.
  • type (type: String.t, default: nil) - 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

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.DocumentAI.V1beta3.Model.GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock{
    blocks:
      [
        GoogleApi.DocumentAI.V1beta3.Model.GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlock.t()
      ]
      | nil,
    text: String.t() | nil,
    type: String.t() | nil
  }

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.