public sealed class Document.Types.TextChange : IMessage<Document.Types.TextChange>, IEquatable<Document.Types.TextChange>, IDeepCloneable<Document.Types.TextChange>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Document AI v1 API class Document.Types.TextChange.
This message is used for text changes aka. OCR corrections.
public Document.Types.TextAnchor TextAnchor { get; set; }
Provenance of the correction.
Text anchor indexing into the
[Document.text][google.cloud.documentai.v1.Document.text]. There can
only be a single TextAnchor.text_segments element. If the start and
end index of the text segment are the same, the text change is inserted
before that index.
[[["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\u003eThe \u003ccode\u003eDocument.Types.TextChange\u003c/code\u003e class, part of the Cloud Document AI v1 API, represents text changes or OCR corrections in a document.\u003c/p\u003e\n"],["\u003cp\u003eVersion 3.19.0 is the latest release of the \u003ccode\u003eDocument.Types.TextChange\u003c/code\u003e class, with versions ranging from 1.0.0 up to 3.19.0 listed in the provided documentation.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTextChange\u003c/code\u003e objects provide details about modified text (\u003ccode\u003eChangedText\u003c/code\u003e), its origin (\u003ccode\u003eTextAnchor\u003c/code\u003e), and the history of changes (\u003ccode\u003eProvenance\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eThe class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, allowing for message manipulation and comparison.\u003c/p\u003e\n"],["\u003cp\u003eThe provided documentation covers the class's constructors (\u003ccode\u003eTextChange()\u003c/code\u003e and \u003ccode\u003eTextChange(TextChange)\u003c/code\u003e) as well as its properties, including \u003ccode\u003eChangedText\u003c/code\u003e, \u003ccode\u003eProvenance\u003c/code\u003e, and \u003ccode\u003eTextAnchor\u003c/code\u003e, offering a comprehensive overview of the \u003ccode\u003eDocument.Types.TextChange\u003c/code\u003e class.\u003c/p\u003e\n"]]],[],null,[]]