public static final class Document.TextChange.Builder extends 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
    Inherited Members
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Methods
  
  
  getDescriptor()
  
    public static final Descriptors.Descriptor getDescriptor()
   
  
  Methods
  
  
  addAllProvenance(Iterable<? extends Document.Provenance> values)
  
    public Document.TextChange.Builder addAllProvenance(Iterable<? extends Document.Provenance> values)
   
   The history of this annotation.
 
 repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 3 [deprecated = true];
 
    
      
        | Parameter | 
      
        | Name | Description | 
      
        | values | Iterable<? extends com.google.cloud.documentai.v1beta3.Document.Provenance>
 | 
    
  
  
  
  addProvenance(Document.Provenance value)
  
    public Document.TextChange.Builder addProvenance(Document.Provenance value)
   
   The history of this annotation.
 
 repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 3 [deprecated = true];
 
addProvenance(Document.Provenance.Builder builderForValue)
  
    public Document.TextChange.Builder addProvenance(Document.Provenance.Builder builderForValue)
   
   The history of this annotation.
 
 repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 3 [deprecated = true];
 
addProvenance(int index, Document.Provenance value)
  
    public Document.TextChange.Builder addProvenance(int index, Document.Provenance value)
   
   The history of this annotation.
 
 repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 3 [deprecated = true];
 
addProvenance(int index, Document.Provenance.Builder builderForValue)
  
    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 [deprecated = true];
 
addProvenanceBuilder()
  
    public Document.Provenance.Builder addProvenanceBuilder()
   
   The history of this annotation.
 
 repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 3 [deprecated = true];
 
addProvenanceBuilder(int index)
  
    public Document.Provenance.Builder addProvenanceBuilder(int index)
   
   The history of this annotation.
 
 repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 3 [deprecated = true];
 
    
      
        | Parameter | 
      
        | Name | Description | 
      
        | index | int
 | 
    
  
  
  
  addRepeatedField(Descriptors.FieldDescriptor field, Object value)
  
    public Document.TextChange.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
   
  
  
  Overrides
  
  
  build()
  
    public Document.TextChange build()
   
  
  
  buildPartial()
  
    public Document.TextChange buildPartial()
   
  
  
  clear()
  
    public Document.TextChange.Builder clear()
   
  
  Overrides
  
  
  clearChangedText()
  
    public Document.TextChange.Builder clearChangedText()
   
   The text that replaces the text identified in the text_anchor.
 string changed_text = 2;
clearField(Descriptors.FieldDescriptor field)
  
    public Document.TextChange.Builder clearField(Descriptors.FieldDescriptor field)
   
  
  
  Overrides
  
  
  clearOneof(Descriptors.OneofDescriptor oneof)
  
    public Document.TextChange.Builder clearOneof(Descriptors.OneofDescriptor oneof)
   
  
  
  Overrides
  
  
  clearProvenance()
  
    public Document.TextChange.Builder clearProvenance()
   
   The history of this annotation.
 
 repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 3 [deprecated = true];
 
clearTextAnchor()
  
    public Document.TextChange.Builder clearTextAnchor()
   
   Provenance of the correction.
 Text anchor indexing into the
 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;
clone()
  
    public Document.TextChange.Builder clone()
   
  
  Overrides
  
  
  getChangedText()
  
    public String getChangedText()
   
   The text that replaces the text identified in the text_anchor.
 string changed_text = 2;
    
      
        | Returns | 
      
        | Type | Description | 
      
        | String | The changedText. | 
    
  
  
  getChangedTextBytes()
  
    public ByteString getChangedTextBytes()
   
   The text that replaces the text identified in the text_anchor.
 string changed_text = 2;
    
      
        | Returns | 
      
        | Type | Description | 
      
        | ByteString | The bytes for changedText. | 
    
  
  
  getDefaultInstanceForType()
  
    public Document.TextChange getDefaultInstanceForType()
   
  
  
  getDescriptorForType()
  
    public Descriptors.Descriptor getDescriptorForType()
   
  
  Overrides
  
  
  getProvenance(int index)
  
    public Document.Provenance getProvenance(int index)
   
   The history of this annotation.
 
 repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 3 [deprecated = true];
 
    
      
        | Parameter | 
      
        | Name | Description | 
      
        | index | int
 | 
    
  
  
  
  getProvenanceBuilder(int index)
  
    public Document.Provenance.Builder getProvenanceBuilder(int index)
   
   The history of this annotation.
 
 repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 3 [deprecated = true];
 
    
      
        | Parameter | 
      
        | Name | Description | 
      
        | index | int
 | 
    
  
  
  
  getProvenanceBuilderList()
  
    public List<Document.Provenance.Builder> getProvenanceBuilderList()
   
   The history of this annotation.
 
 repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 3 [deprecated = true];
 
getProvenanceCount()
  
    public int getProvenanceCount()
   
   The history of this annotation.
 
 repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 3 [deprecated = true];
 
    
      
        | Returns | 
      
        | Type | Description | 
      
        | int |  | 
    
  
  
  getProvenanceList()
  
    public List<Document.Provenance> getProvenanceList()
   
   The history of this annotation.
 
 repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 3 [deprecated = true];
 
getProvenanceOrBuilder(int index)
  
    public Document.ProvenanceOrBuilder getProvenanceOrBuilder(int index)
   
   The history of this annotation.
 
 repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 3 [deprecated = true];
 
    
      
        | Parameter | 
      
        | Name | Description | 
      
        | index | int
 | 
    
  
  
  
  getProvenanceOrBuilderList()
  
    public List<? extends Document.ProvenanceOrBuilder> getProvenanceOrBuilderList()
   
   The history of this annotation.
 
 repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 3 [deprecated = true];
 
    
      
        | Returns | 
      
        | Type | Description | 
      
        | List<? extends com.google.cloud.documentai.v1beta3.Document.ProvenanceOrBuilder> |  | 
    
  
  
  getTextAnchor()
  
    public Document.TextAnchor getTextAnchor()
   
   Provenance of the correction.
 Text anchor indexing into the
 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;
getTextAnchorBuilder()
  
    public Document.TextAnchor.Builder getTextAnchorBuilder()
   
   Provenance of the correction.
 Text anchor indexing into the
 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()
  
    public Document.TextAnchorOrBuilder getTextAnchorOrBuilder()
   
   Provenance of the correction.
 Text anchor indexing into the
 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()
  
    public boolean hasTextAnchor()
   
   Provenance of the correction.
 Text anchor indexing into the
 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;
    
      
        | Returns | 
      
        | Type | Description | 
      
        | boolean | Whether the textAnchor field is set. | 
    
  
  
  internalGetFieldAccessorTable()
  
    protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
   
  
  Overrides
  
  
  isInitialized()
  
    public final boolean isInitialized()
   
  
  Overrides
  
  
  mergeFrom(Document.TextChange other)
  
    public Document.TextChange.Builder mergeFrom(Document.TextChange other)
   
  
  
  
  mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
  
    public Document.TextChange.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
   
  
  
  Overrides
  
  
  
  mergeFrom(Message other)
  
    public Document.TextChange.Builder mergeFrom(Message other)
   
  
    
      
        | Parameter | 
      
        | Name | Description | 
      
        | other | Message
 | 
    
  
  
  Overrides
  
  
  mergeTextAnchor(Document.TextAnchor value)
  
    public Document.TextChange.Builder mergeTextAnchor(Document.TextAnchor value)
   
   Provenance of the correction.
 Text anchor indexing into the
 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;
mergeUnknownFields(UnknownFieldSet unknownFields)
  
    public final Document.TextChange.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
   
  
  
  Overrides
  
  
  removeProvenance(int index)
  
    public Document.TextChange.Builder removeProvenance(int index)
   
   The history of this annotation.
 
 repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 3 [deprecated = true];
 
    
      
        | Parameter | 
      
        | Name | Description | 
      
        | index | int
 | 
    
  
  
  
  setChangedText(String value)
  
    public Document.TextChange.Builder setChangedText(String value)
   
   The text that replaces the text identified in the text_anchor.
 string changed_text = 2;
    
      
        | Parameter | 
      
        | Name | Description | 
      
        | value | String
 The changedText to set. | 
    
  
  
  
  setChangedTextBytes(ByteString value)
  
    public Document.TextChange.Builder setChangedTextBytes(ByteString value)
   
   The text that replaces the text identified in the text_anchor.
 string changed_text = 2;
    
      
        | Parameter | 
      
        | Name | Description | 
      
        | value | ByteString
 The bytes for changedText to set. | 
    
  
  
  
  setField(Descriptors.FieldDescriptor field, Object value)
  
    public Document.TextChange.Builder setField(Descriptors.FieldDescriptor field, Object value)
   
  
  
  Overrides
  
  
  setProvenance(int index, Document.Provenance value)
  
    public Document.TextChange.Builder setProvenance(int index, Document.Provenance value)
   
   The history of this annotation.
 
 repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 3 [deprecated = true];
 
setProvenance(int index, Document.Provenance.Builder builderForValue)
  
    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 [deprecated = true];
 
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
  
    public Document.TextChange.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
   
  
  
  Overrides
  
  
  setTextAnchor(Document.TextAnchor value)
  
    public Document.TextChange.Builder setTextAnchor(Document.TextAnchor value)
   
   Provenance of the correction.
 Text anchor indexing into the
 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;
setTextAnchor(Document.TextAnchor.Builder builderForValue)
  
    public Document.TextChange.Builder setTextAnchor(Document.TextAnchor.Builder builderForValue)
   
   Provenance of the correction.
 Text anchor indexing into the
 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;
setUnknownFields(UnknownFieldSet unknownFields)
  
    public final Document.TextChange.Builder setUnknownFields(UnknownFieldSet unknownFields)
   
  
  
  Overrides