GoogleApi.DocumentAI.V1beta2.Model.GoogleCloudDocumentaiV1beta1DocumentTextAnchorTextSegment (google_api_document_ai v0.46.0)

View Source

A text segment in the 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

Attributes

  • endIndex (type: String.t, default: nil) - TextSegment half open end UTF-8 char index in the Document.text.
  • startIndex (type: String.t, default: nil) - TextSegment start UTF-8 char index in the Document.text.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() ::
  %GoogleApi.DocumentAI.V1beta2.Model.GoogleCloudDocumentaiV1beta1DocumentTextAnchorTextSegment{
    endIndex: String.t() | nil,
    startIndex: String.t() | nil
  }

Functions

decode(value, options)

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

Unwrap a decoded JSON object into its complex fields.