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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-19 UTC."],[[["\u003cp\u003eThis webpage provides documentation for the \u003ccode\u003eDocument.Types.TextAnchor.Types.TextSegment\u003c/code\u003e class within the Google Cloud Document AI v1 API, specifically within the .NET environment.\u003c/p\u003e\n"],["\u003cp\u003eThe content details various versions of the API, ranging from version 1.0.0 to the latest version 3.19.0, with hyperlinks to each version's documentation.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTextSegment\u003c/code\u003e class represents a segment of text within a larger \u003ccode\u003eDocument.text\u003c/code\u003e, with indices that may extend into other document shards.\u003c/p\u003e\n"],["\u003cp\u003eIt further outlines the inheritance, interfaces implemented, constructors, and properties, including \u003ccode\u003eEndIndex\u003c/code\u003e and \u003ccode\u003eStartIndex\u003c/code\u003e, for the \u003ccode\u003eTextSegment\u003c/code\u003e class, in relation to its function.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation shows that the class falls under the \u003ccode\u003eGoogle.Cloud.DocumentAI.V1\u003c/code\u003e namespace and is contained within the \u003ccode\u003eGoogle.Cloud.DocumentAI.V1.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,[]]