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 webpage provides documentation for the `TextSegment` class within the `Google.Cloud.DocumentAI.V1` namespace, specifically focusing on version 1.5.0 and above."],["The `TextSegment` class, part of the `Document.Types.TextAnchor.Types` namespace, represents a segment of text within a `Document.text` property, with start and end indices."],["The page details the inheritance structure, implementing interfaces (`IMessage`, `IEquatable`, `IDeepCloneable`, `IBufferMessage`), inherited members, available constructors, and properties (`StartIndex`, `EndIndex`) for the `TextSegment` class."],["The documentation includes a comprehensive list of versions from 1.0.0 to the latest 3.19.0 for this class, allowing users to navigate through different versions' documentation."],["The `TextSegment` indices, as explained in the description, may extend beyond the bounds of the document, indicating potential continuation into other document shards."]]],[]]