Cloud Document AI v1 API - Class Document.Types.TextChange (3.12.0)

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.

Inheritance

object > Document.Types.TextChange

Namespace

Google.Cloud.DocumentAI.V1

Assembly

Google.Cloud.DocumentAI.V1.dll

Constructors

TextChange()

public TextChange()

TextChange(TextChange)

public TextChange(Document.Types.TextChange other)
Parameter
NameDescription
otherDocumentTypesTextChange

Properties

ChangedText

public string ChangedText { get; set; }

The text that replaces the text identified in the text_anchor.

Property Value
TypeDescription
string

Provenance

[Obsolete]
public RepeatedField<Document.Types.Provenance> Provenance { get; }

The history of this annotation.

Property Value
TypeDescription
RepeatedFieldDocumentTypesProvenance

TextAnchor

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.

Property Value
TypeDescription
DocumentTypesTextAnchor