public sealed class TextSegment : IMessage<Document.Types.TextAnchor.Types.TextSegment>, IEquatable<Document.Types.TextAnchor.Types.TextSegment>, IDeepCloneable<Document.Types.TextAnchor.Types.TextSegment>, IBufferMessage, IMessage
A text segment in the [Document.text][google.cloud.documentai.v1.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][google.cloud.documentai.v1.Document.ShardInfo.text_offset]
[TextSegment][google.cloud.documentai.v1.Document.TextAnchor.TextSegment] half open end UTF-8 char index in the
[Document.text][google.cloud.documentai.v1.Document.text].
[TextSegment][google.cloud.documentai.v1.Document.TextAnchor.TextSegment] start UTF-8 char index in the [Document.text][google.cloud.documentai.v1.Document.text].
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["This page provides documentation for the `TextSegment` class within the `Google.Cloud.DocumentAI.V1` namespace, specifically detailing its structure and usage across different versions."],["The `TextSegment` class, which is used to define a segment of text within a document, is a part of the `Document.Types.TextAnchor.Types` nested type, and implements interfaces such as `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`."],["The page lists available versions of the `TextSegment` class, from version 1.0.0 up to the latest 3.19.0, with links to each version's documentation."],["`TextSegment` objects, which can be constructed with a default constructor or by providing another `TextSegment` object, have two main properties: `StartIndex` and `EndIndex`, which define the range of a text segment within a document's text using UTF-8 character indices."],["The page also lists other implemented and inherited members of the `TextSegment` Class, and the assembly it can be found in, which is `Google.Cloud.DocumentAI.V1.dll`."]]],[]]