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
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description String
getChangedText()
The text that replaces the text identified in the `text_anchor`.com.google.protobuf.ByteString
getChangedTextBytes()
The text that replaces the text identified in the `text_anchor`.Document.Provenance
getProvenance(int index)
Deprecated.int
getProvenanceCount()
Deprecated.List<Document.Provenance>
getProvenanceList()
Deprecated.Document.ProvenanceOrBuilder
getProvenanceOrBuilder(int index)
Deprecated.List<? extends Document.ProvenanceOrBuilder>
getProvenanceOrBuilderList()
Deprecated.Document.TextAnchor
getTextAnchor()
Provenance of the correction.Document.TextAnchorOrBuilder
getTextAnchorOrBuilder()
Provenance of the correction.boolean
hasTextAnchor()
Provenance of the correction.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
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];
-
-