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 detailing its structure and usage across different versions."],["The `TextSegment` class, part of `Document.Types.TextAnchor.Types`, represents a segment of text within a document and includes properties for `StartIndex` and `EndIndex` to define the text's location."],["The page highlights the latest version (3.19.0) of the `TextSegment` documentation, alongside an extensive archive of previous versions dating back to 1.0.0."],["The `TextSegment` class implements several interfaces like `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, while also inheriting members from the `Object` class."],["The documentation includes information on the `TextSegment` class's constructors and its `EndIndex` and `StartIndex` properties, which are both of the `Int64` type, describing their purpose in relation to the document's text."]]],[]]