Interface Document.TextChangeOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Document.TextChange, Document.TextChange.Builder
Enclosing class:
Document

public static interface Document.TextChangeOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • hasTextAnchor

      boolean hasTextAnchor()
       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.
       
      .google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1;
      Returns:
      Whether the textAnchor field is set.
    • getTextAnchor

      Document.TextAnchor getTextAnchor()
       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.
       
      .google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1;
      Returns:
      The textAnchor.
    • getTextAnchorOrBuilder

      Document.TextAnchorOrBuilder getTextAnchorOrBuilder()
       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.
       
      .google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1;
    • getChangedText

      String getChangedText()
       The text that replaces the text identified in the `text_anchor`.
       
      string changed_text = 2;
      Returns:
      The changedText.
    • getChangedTextBytes

      com.google.protobuf.ByteString getChangedTextBytes()
       The text that replaces the text identified in the `text_anchor`.
       
      string changed_text = 2;
      Returns:
      The bytes for changedText.
    • getProvenanceList

      @Deprecated List<Document.Provenance> getProvenanceList()
      Deprecated.
       The history of this annotation.
       
      repeated .google.cloud.documentai.v1.Document.Provenance provenance = 3 [deprecated = true];
    • getProvenance

      @Deprecated Document.Provenance getProvenance(int index)
      Deprecated.
       The history of this annotation.
       
      repeated .google.cloud.documentai.v1.Document.Provenance provenance = 3 [deprecated = true];
    • getProvenanceCount

      @Deprecated int getProvenanceCount()
      Deprecated.
       The history of this annotation.
       
      repeated .google.cloud.documentai.v1.Document.Provenance provenance = 3 [deprecated = true];
    • getProvenanceOrBuilderList

      @Deprecated List<? extends Document.ProvenanceOrBuilder> getProvenanceOrBuilderList()
      Deprecated.
       The history of this annotation.
       
      repeated .google.cloud.documentai.v1.Document.Provenance provenance = 3 [deprecated = true];
    • getProvenanceOrBuilder

      @Deprecated Document.ProvenanceOrBuilder getProvenanceOrBuilder(int index)
      Deprecated.
       The history of this annotation.
       
      repeated .google.cloud.documentai.v1.Document.Provenance provenance = 3 [deprecated = true];