Package com.google.cloud.documentai.v1
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 Summary
Modifier and TypeMethodDescriptionThe text that replaces the text identified in the `text_anchor`.com.google.protobuf.ByteStringThe text that replaces the text identified in the `text_anchor`.getProvenance(int index) Deprecated.intDeprecated.Deprecated.getProvenanceOrBuilder(int index) Deprecated.List<? extends Document.ProvenanceOrBuilder>Deprecated.Provenance of the correction.Provenance of the correction.booleanProvenance of the correction.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.The history of this annotation.
repeated .google.cloud.documentai.v1.Document.Provenance provenance = 3 [deprecated = true]; -
getProvenance
Deprecated.The history of this annotation.
repeated .google.cloud.documentai.v1.Document.Provenance provenance = 3 [deprecated = true]; -
getProvenanceCount
Deprecated.The history of this annotation.
repeated .google.cloud.documentai.v1.Document.Provenance provenance = 3 [deprecated = true]; -
getProvenanceOrBuilderList
Deprecated.The history of this annotation.
repeated .google.cloud.documentai.v1.Document.Provenance provenance = 3 [deprecated = true]; -
getProvenanceOrBuilder
Deprecated.The history of this annotation.
repeated .google.cloud.documentai.v1.Document.Provenance provenance = 3 [deprecated = true];
-