Provenance of the correction. Text anchor indexing into theDocument.text. There can only be a singleTextAnchor.text_segmentselement. If the start and end index of the text segment are the same, the text change is inserted before that index.
↳ changed_text
string
The text that replaces the text identified in thetext_anchor.
Text anchor indexing into theDocument.text. There can
only be a singleTextAnchor.text_segmentselement. If the start and
end index of the text segment are the same, the text change is inserted
before that index.
Text anchor indexing into theDocument.text. There can
only be a singleTextAnchor.text_segmentselement. 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"]],[["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-09-04 UTC."],[],[],null,["# Google Cloud Document Ai V1 Client - Class TextChange (2.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.3.0 (latest)](/php/docs/reference/cloud-document-ai/latest/V1.Document.TextChange)\n- [2.2.2](/php/docs/reference/cloud-document-ai/2.2.2/V1.Document.TextChange)\n- [2.1.3](/php/docs/reference/cloud-document-ai/2.1.3/V1.Document.TextChange)\n- [2.0.0](/php/docs/reference/cloud-document-ai/2.0.0/V1.Document.TextChange)\n- [1.14.0](/php/docs/reference/cloud-document-ai/1.14.0/V1.Document.TextChange)\n- [1.13.1](/php/docs/reference/cloud-document-ai/1.13.1/V1.Document.TextChange)\n- [1.12.2](/php/docs/reference/cloud-document-ai/1.12.2/V1.Document.TextChange)\n- [1.9.0](/php/docs/reference/cloud-document-ai/1.9.0/V1.Document.TextChange)\n- [1.8.2](/php/docs/reference/cloud-document-ai/1.8.2/V1.Document.TextChange)\n- [1.7.0](/php/docs/reference/cloud-document-ai/1.7.0/V1.Document.TextChange)\n- [1.6.0](/php/docs/reference/cloud-document-ai/1.6.0/V1.Document.TextChange)\n- [1.5.0](/php/docs/reference/cloud-document-ai/1.5.0/V1.Document.TextChange)\n- [1.4.0](/php/docs/reference/cloud-document-ai/1.4.0/V1.Document.TextChange)\n- [1.3.0](/php/docs/reference/cloud-document-ai/1.3.0/V1.Document.TextChange)\n- [1.2.2](/php/docs/reference/cloud-document-ai/1.2.2/V1.Document.TextChange)\n- [1.1.1](/php/docs/reference/cloud-document-ai/1.1.1/V1.Document.TextChange)\n- [1.0.1](/php/docs/reference/cloud-document-ai/1.0.1/V1.Document.TextChange) \nReference documentation and code samples for the Google Cloud Document Ai V1 Client class TextChange.\n\nThis message is used for text changes aka. OCR corrections.\n\nGenerated from protobuf message `google.cloud.documentai.v1.Document.TextChange`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ DocumentAI \\\\ V1 \\\\ Document\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getTextAnchor\n\nProvenance of the correction.\n\nText anchor indexing into the\n[Document.text](/php/docs/reference/cloud-document-ai/latest/V1.Document#_Google_Cloud_DocumentAI_V1_Document__getText__). There can\nonly be a single `TextAnchor.text_segments` element. If the start and\nend index of the text segment are the same, the text change is inserted\nbefore that index.\n\n### hasTextAnchor\n\n### clearTextAnchor\n\n### setTextAnchor\n\nProvenance of the correction.\n\nText anchor indexing into the\n[Document.text](/php/docs/reference/cloud-document-ai/latest/V1.Document#_Google_Cloud_DocumentAI_V1_Document__getText__). There can\nonly be a single `TextAnchor.text_segments` element. If the start and\nend index of the text segment are the same, the text change is inserted\nbefore that index.\n\n### getChangedText\n\nThe text that replaces the text identified in the `text_anchor`.\n\n### setChangedText\n\nThe text that replaces the text identified in the `text_anchor`.\n\n### getProvenance\n\nThe history of this annotation.\n\n### setProvenance\n\nThe history of this annotation."]]