public static final class Document.TextChange.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Document.TextChange.Builder> implements Document.TextChangeOrBuilder
This message is used for text changes aka. OCR corrections.Protobuf type
google.cloud.documentai.v1beta3.Document.TextChange| Modifier and Type | Method and Description |
|---|---|
Document.TextChange.Builder |
addAllProvenance(Iterable<? extends Document.Provenance> values)
The history of this annotation.
|
Document.TextChange.Builder |
addProvenance(Document.Provenance.Builder builderForValue)
The history of this annotation.
|
Document.TextChange.Builder |
addProvenance(Document.Provenance value)
The history of this annotation.
|
Document.TextChange.Builder |
addProvenance(int index,
Document.Provenance.Builder builderForValue)
The history of this annotation.
|
Document.TextChange.Builder |
addProvenance(int index,
Document.Provenance value)
The history of this annotation.
|
Document.Provenance.Builder |
addProvenanceBuilder()
The history of this annotation.
|
Document.Provenance.Builder |
addProvenanceBuilder(int index)
The history of this annotation.
|
Document.TextChange.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Document.TextChange |
build() |
Document.TextChange |
buildPartial() |
Document.TextChange.Builder |
clear() |
Document.TextChange.Builder |
clearChangedText()
The text that replaces the text identified in the `text_anchor`.
|
Document.TextChange.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Document.TextChange.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Document.TextChange.Builder |
clearProvenance()
The history of this annotation.
|
Document.TextChange.Builder |
clearTextAnchor()
Provenance of the correction.
|
Document.TextChange.Builder |
clone() |
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.TextChange |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Document.Provenance |
getProvenance(int index)
The history of this annotation.
|
Document.Provenance.Builder |
getProvenanceBuilder(int index)
The history of this annotation.
|
List<Document.Provenance.Builder> |
getProvenanceBuilderList()
The history of this annotation.
|
int |
getProvenanceCount()
The history of this annotation.
|
List<Document.Provenance> |
getProvenanceList()
The history of this annotation.
|
Document.ProvenanceOrBuilder |
getProvenanceOrBuilder(int index)
The history of this annotation.
|
List<? extends Document.ProvenanceOrBuilder> |
getProvenanceOrBuilderList()
The history of this annotation.
|
Document.TextAnchor |
getTextAnchor()
Provenance of the correction.
|
Document.TextAnchor.Builder |
getTextAnchorBuilder()
Provenance of the correction.
|
Document.TextAnchorOrBuilder |
getTextAnchorOrBuilder()
Provenance of the correction.
|
boolean |
hasTextAnchor()
Provenance of the correction.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Document.TextChange.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Document.TextChange.Builder |
mergeFrom(Document.TextChange other) |
Document.TextChange.Builder |
mergeFrom(com.google.protobuf.Message other) |
Document.TextChange.Builder |
mergeTextAnchor(Document.TextAnchor value)
Provenance of the correction.
|
Document.TextChange.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Document.TextChange.Builder |
removeProvenance(int index)
The history of this annotation.
|
Document.TextChange.Builder |
setChangedText(String value)
The text that replaces the text identified in the `text_anchor`.
|
Document.TextChange.Builder |
setChangedTextBytes(com.google.protobuf.ByteString value)
The text that replaces the text identified in the `text_anchor`.
|
Document.TextChange.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Document.TextChange.Builder |
setProvenance(int index,
Document.Provenance.Builder builderForValue)
The history of this annotation.
|
Document.TextChange.Builder |
setProvenance(int index,
Document.Provenance value)
The history of this annotation.
|
Document.TextChange.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Document.TextChange.Builder |
setTextAnchor(Document.TextAnchor.Builder builderForValue)
Provenance of the correction.
|
Document.TextChange.Builder |
setTextAnchor(Document.TextAnchor value)
Provenance of the correction.
|
Document.TextChange.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Document.TextChange.Builder>public Document.TextChange.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Document.TextChange.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Document.TextChange.Builder>public Document.TextChange getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Document.TextChange build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Document.TextChange buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Document.TextChange.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Document.TextChange.Builder>public Document.TextChange.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Document.TextChange.Builder>public Document.TextChange.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Document.TextChange.Builder>public Document.TextChange.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Document.TextChange.Builder>public Document.TextChange.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Document.TextChange.Builder>public Document.TextChange.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Document.TextChange.Builder>public Document.TextChange.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Document.TextChange.Builder>public Document.TextChange.Builder mergeFrom(Document.TextChange other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Document.TextChange.Builder>public Document.TextChange.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Document.TextChange.Builder>IOExceptionpublic boolean hasTextAnchor()
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.
.google.cloud.documentai.v1beta3.Document.TextAnchor text_anchor = 1;hasTextAnchor in interface Document.TextChangeOrBuilderpublic Document.TextAnchor getTextAnchor()
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.
.google.cloud.documentai.v1beta3.Document.TextAnchor text_anchor = 1;getTextAnchor in interface Document.TextChangeOrBuilderpublic Document.TextChange.Builder setTextAnchor(Document.TextAnchor value)
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.
.google.cloud.documentai.v1beta3.Document.TextAnchor text_anchor = 1;public Document.TextChange.Builder setTextAnchor(Document.TextAnchor.Builder builderForValue)
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.
.google.cloud.documentai.v1beta3.Document.TextAnchor text_anchor = 1;public Document.TextChange.Builder mergeTextAnchor(Document.TextAnchor value)
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.
.google.cloud.documentai.v1beta3.Document.TextAnchor text_anchor = 1;public Document.TextChange.Builder clearTextAnchor()
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.
.google.cloud.documentai.v1beta3.Document.TextAnchor text_anchor = 1;public Document.TextAnchor.Builder getTextAnchorBuilder()
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.
.google.cloud.documentai.v1beta3.Document.TextAnchor text_anchor = 1;public Document.TextAnchorOrBuilder getTextAnchorOrBuilder()
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.
.google.cloud.documentai.v1beta3.Document.TextAnchor text_anchor = 1;getTextAnchorOrBuilder in interface Document.TextChangeOrBuilderpublic String getChangedText()
The text that replaces the text identified in the `text_anchor`.
string changed_text = 2;getChangedText in interface Document.TextChangeOrBuilderpublic com.google.protobuf.ByteString getChangedTextBytes()
The text that replaces the text identified in the `text_anchor`.
string changed_text = 2;getChangedTextBytes in interface Document.TextChangeOrBuilderpublic Document.TextChange.Builder setChangedText(String value)
The text that replaces the text identified in the `text_anchor`.
string changed_text = 2;value - The changedText to set.public Document.TextChange.Builder clearChangedText()
The text that replaces the text identified in the `text_anchor`.
string changed_text = 2;public Document.TextChange.Builder setChangedTextBytes(com.google.protobuf.ByteString value)
The text that replaces the text identified in the `text_anchor`.
string changed_text = 2;value - The bytes for changedText to set.public List<Document.Provenance> getProvenanceList()
The history of this annotation.
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 3;getProvenanceList in interface Document.TextChangeOrBuilderpublic int getProvenanceCount()
The history of this annotation.
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 3;getProvenanceCount in interface Document.TextChangeOrBuilderpublic Document.Provenance getProvenance(int index)
The history of this annotation.
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 3;getProvenance in interface Document.TextChangeOrBuilderpublic Document.TextChange.Builder setProvenance(int index, Document.Provenance value)
The history of this annotation.
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 3;public Document.TextChange.Builder setProvenance(int index, Document.Provenance.Builder builderForValue)
The history of this annotation.
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 3;public Document.TextChange.Builder addProvenance(Document.Provenance value)
The history of this annotation.
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 3;public Document.TextChange.Builder addProvenance(int index, Document.Provenance value)
The history of this annotation.
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 3;public Document.TextChange.Builder addProvenance(Document.Provenance.Builder builderForValue)
The history of this annotation.
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 3;public Document.TextChange.Builder addProvenance(int index, Document.Provenance.Builder builderForValue)
The history of this annotation.
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 3;public Document.TextChange.Builder addAllProvenance(Iterable<? extends Document.Provenance> values)
The history of this annotation.
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 3;public Document.TextChange.Builder clearProvenance()
The history of this annotation.
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 3;public Document.TextChange.Builder removeProvenance(int index)
The history of this annotation.
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 3;public Document.Provenance.Builder getProvenanceBuilder(int index)
The history of this annotation.
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 3;public Document.ProvenanceOrBuilder getProvenanceOrBuilder(int index)
The history of this annotation.
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 3;getProvenanceOrBuilder in interface Document.TextChangeOrBuilderpublic List<? extends Document.ProvenanceOrBuilder> getProvenanceOrBuilderList()
The history of this annotation.
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 3;getProvenanceOrBuilderList in interface Document.TextChangeOrBuilderpublic Document.Provenance.Builder addProvenanceBuilder()
The history of this annotation.
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 3;public Document.Provenance.Builder addProvenanceBuilder(int index)
The history of this annotation.
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 3;public List<Document.Provenance.Builder> getProvenanceBuilderList()
The history of this annotation.
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 3;public final Document.TextChange.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Document.TextChange.Builder>public final Document.TextChange.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Document.TextChange.Builder>Copyright © 2020 Google LLC. All rights reserved.