Class Document.Types.TextChange (1.0.0-beta04)

public sealed class TextChange : IMessage<Document.Types.TextChange>, IEquatable<Document.Types.TextChange>, IDeepCloneable<Document.Types.TextChange>, IBufferMessage, IMessage

This message is used for text changes aka. OCR corrections.

Inheritance

Object > Document.Types.TextChange

Namespace

Google.Cloud.DocumentAI.V1Beta3

Assembly

Google.Cloud.DocumentAI.V1Beta3.dll

Constructors

TextChange()

public TextChange()

TextChange(Document.Types.TextChange)

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

Properties

ChangedText

public string ChangedText { get; set; }

The text that replaces the text identified in the text_anchor.

Property Value
TypeDescription
String

Provenance

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

The history of this annotation.

Property Value
TypeDescription
RepeatedField<Document.Types.Provenance>

TextAnchor

public Document.Types.TextAnchor TextAnchor { get; set; }

Provenance of the correction. Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta3.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
Document.Types.TextAnchor