Cloud Document AI v1beta3 API - Class Document.Types.TextChange (2.0.0-beta18)

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 v1beta3 API class Document.Types.TextChange.

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(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.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
DocumentTypesTextAnchor