public sealed class Document.Types.TextAnchor.Types.TextSegment : IMessage<Document.Types.TextAnchor.Types.TextSegment>, IEquatable<Document.Types.TextAnchor.Types.TextSegment>, IDeepCloneable<Document.Types.TextAnchor.Types.TextSegment>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Document AI v1 API class Document.Types.TextAnchor.Types.TextSegment.
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 `Document.Types.TextAnchor.Types.TextSegment` class within the Google Cloud Document AI v1 API, specifically focusing on version 3.12.0 and its associated versions ranging from 1.0.0 to 3.19.0."],["The `TextSegment` class represents a segment of text within a document, using UTF-8 character indices to define its start and end positions, as referenced within the `Document.text` property."],["The documentation outlines the inheritance of the `TextSegment` class from `object` and its implementation of multiple interfaces including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, highlighting its role in structured data handling."],["The page lists the properties `StartIndex` and `EndIndex`, both of type `long`, which define the boundaries of the text segment within a larger document."],["The latest version of the documentation is for version 3.19.0, with older versions from 3.18.0 down to 1.0.0 also being accessable."]]],[]]