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.v1beta2.Document.TextChangegetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic 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.v1beta2.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.v1beta2.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.v1beta2.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.v1beta2.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.v1beta2.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.v1beta2.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.v1beta2.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.v1beta2.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.v1beta2.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.v1beta2.Document.TextAnchor text_anchor = 1;public Document.TextChange.Builder clearTextAnchor()
Provenance of the correction. Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta2.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.v1beta2.Document.TextAnchor text_anchor = 1;public Document.TextAnchor.Builder getTextAnchorBuilder()
Provenance of the correction. Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta2.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.v1beta2.Document.TextAnchor text_anchor = 1;public Document.TextAnchorOrBuilder getTextAnchorOrBuilder()
Provenance of the correction. Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta2.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.v1beta2.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.@Deprecated public List<Document.Provenance> getProvenanceList()
The history of this annotation.
repeated .google.cloud.documentai.v1beta2.Document.Provenance provenance = 3 [deprecated = true];
getProvenanceList in interface Document.TextChangeOrBuilder@Deprecated public int getProvenanceCount()
The history of this annotation.
repeated .google.cloud.documentai.v1beta2.Document.Provenance provenance = 3 [deprecated = true];
getProvenanceCount in interface Document.TextChangeOrBuilder@Deprecated public Document.Provenance getProvenance(int index)
The history of this annotation.
repeated .google.cloud.documentai.v1beta2.Document.Provenance provenance = 3 [deprecated = true];
getProvenance in interface Document.TextChangeOrBuilder@Deprecated public Document.TextChange.Builder setProvenance(int index, Document.Provenance value)
The history of this annotation.
repeated .google.cloud.documentai.v1beta2.Document.Provenance provenance = 3 [deprecated = true];
@Deprecated public Document.TextChange.Builder setProvenance(int index, Document.Provenance.Builder builderForValue)
The history of this annotation.
repeated .google.cloud.documentai.v1beta2.Document.Provenance provenance = 3 [deprecated = true];
@Deprecated public Document.TextChange.Builder addProvenance(Document.Provenance value)
The history of this annotation.
repeated .google.cloud.documentai.v1beta2.Document.Provenance provenance = 3 [deprecated = true];
@Deprecated public Document.TextChange.Builder addProvenance(int index, Document.Provenance value)
The history of this annotation.
repeated .google.cloud.documentai.v1beta2.Document.Provenance provenance = 3 [deprecated = true];
@Deprecated public Document.TextChange.Builder addProvenance(Document.Provenance.Builder builderForValue)
The history of this annotation.
repeated .google.cloud.documentai.v1beta2.Document.Provenance provenance = 3 [deprecated = true];
@Deprecated public Document.TextChange.Builder addProvenance(int index, Document.Provenance.Builder builderForValue)
The history of this annotation.
repeated .google.cloud.documentai.v1beta2.Document.Provenance provenance = 3 [deprecated = true];
@Deprecated public Document.TextChange.Builder addAllProvenance(Iterable<? extends Document.Provenance> values)
The history of this annotation.
repeated .google.cloud.documentai.v1beta2.Document.Provenance provenance = 3 [deprecated = true];
@Deprecated public Document.TextChange.Builder clearProvenance()
The history of this annotation.
repeated .google.cloud.documentai.v1beta2.Document.Provenance provenance = 3 [deprecated = true];
@Deprecated public Document.TextChange.Builder removeProvenance(int index)
The history of this annotation.
repeated .google.cloud.documentai.v1beta2.Document.Provenance provenance = 3 [deprecated = true];
@Deprecated public Document.Provenance.Builder getProvenanceBuilder(int index)
The history of this annotation.
repeated .google.cloud.documentai.v1beta2.Document.Provenance provenance = 3 [deprecated = true];
@Deprecated public Document.ProvenanceOrBuilder getProvenanceOrBuilder(int index)
The history of this annotation.
repeated .google.cloud.documentai.v1beta2.Document.Provenance provenance = 3 [deprecated = true];
getProvenanceOrBuilder in interface Document.TextChangeOrBuilder@Deprecated public List<? extends Document.ProvenanceOrBuilder> getProvenanceOrBuilderList()
The history of this annotation.
repeated .google.cloud.documentai.v1beta2.Document.Provenance provenance = 3 [deprecated = true];
getProvenanceOrBuilderList in interface Document.TextChangeOrBuilder@Deprecated public Document.Provenance.Builder addProvenanceBuilder()
The history of this annotation.
repeated .google.cloud.documentai.v1beta2.Document.Provenance provenance = 3 [deprecated = true];
@Deprecated public Document.Provenance.Builder addProvenanceBuilder(int index)
The history of this annotation.
repeated .google.cloud.documentai.v1beta2.Document.Provenance provenance = 3 [deprecated = true];
@Deprecated public List<Document.Provenance.Builder> getProvenanceBuilderList()
The history of this annotation.
repeated .google.cloud.documentai.v1beta2.Document.Provenance provenance = 3 [deprecated = true];
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 © 2023 Google LLC. All rights reserved.