View Source GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentTextAnchorTextSegment (google_api_content_warehouse v0.5.0)

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

@type t() ::
  %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentTextAnchorTextSegment{
    endIndex: String.t() | nil,
    startIndex: String.t() | nil
  }

Functions

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

Unwrap a decoded JSON object into its complex fields.