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.v1.Document.TextChange
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.v1.Document.Provenance provenance = 3;
    
      
        | Name | Description | 
      
        | values | Iterable<? extends com.google.cloud.documentai.v1.Document.Provenance>
 | 
    
  
  Returns
  
  
  addProvenance(Document.Provenance value)
  
    public Document.TextChange.Builder addProvenance(Document.Provenance value)
   
   The history of this annotation.
 repeated .google.cloud.documentai.v1.Document.Provenance provenance = 3;
addProvenance(Document.Provenance.Builder builderForValue)
  
    public Document.TextChange.Builder addProvenance(Document.Provenance.Builder builderForValue)
   
   The history of this annotation.
 repeated .google.cloud.documentai.v1.Document.Provenance provenance = 3;
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.v1.Document.Provenance provenance = 3;
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.v1.Document.Provenance provenance = 3;
addProvenanceBuilder()
  
    public Document.Provenance.Builder addProvenanceBuilder()
   
   The history of this annotation.
 repeated .google.cloud.documentai.v1.Document.Provenance provenance = 3;
addProvenanceBuilder(int index)
  
    public Document.Provenance.Builder addProvenanceBuilder(int index)
   
   The history of this annotation.
 repeated .google.cloud.documentai.v1.Document.Provenance provenance = 3;
    
      
        | Name | Description | 
      
        | index | int
 | 
    
  
  Returns
  
  
  addRepeatedField(Descriptors.FieldDescriptor field, Object value)
  
    public Document.TextChange.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
   
  Parameters
  
  Returns
  
  Overrides
  
  
  build()
  
    public Document.TextChange build()
   
  Returns
  
  
  buildPartial()
  
    public Document.TextChange buildPartial()
   
  Returns
  
  
  clear()
  
    public Document.TextChange.Builder clear()
   
  Returns
  
  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)
   
  Parameter
  
  Returns
  
  Overrides
  
  
  clearOneof(Descriptors.OneofDescriptor oneof)
  
    public Document.TextChange.Builder clearOneof(Descriptors.OneofDescriptor oneof)
   
  Parameter
  
  Returns
  
  Overrides
  
  
  clearProvenance()
  
    public Document.TextChange.Builder clearProvenance()
   
   The history of this annotation.
 repeated .google.cloud.documentai.v1.Document.Provenance provenance = 3;
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.v1.Document.TextAnchor text_anchor = 1;
clone()
  
    public Document.TextChange.Builder clone()
   
  Returns
  
  Overrides
  
  
  getChangedText()
  
    public String getChangedText()
   
   The text that replaces the text identified in the text_anchor.
 string changed_text = 2;
    
      
        | Type | Description | 
      
        | String | The changedText. | 
    
  
  
  getChangedTextBytes()
  
    public ByteString getChangedTextBytes()
   
   The text that replaces the text identified in the text_anchor.
 string changed_text = 2;
    
      
        | Type | Description | 
      
        | ByteString | The bytes for changedText. | 
    
  
  
  getDefaultInstanceForType()
  
    public Document.TextChange getDefaultInstanceForType()
   
  Returns
  
  
  getDescriptor()
  
    public static final Descriptors.Descriptor getDescriptor()
   
  Returns
  
  
  getDescriptorForType()
  
    public Descriptors.Descriptor getDescriptorForType()
   
  Returns
  
  Overrides
  
  
  getProvenance(int index)
  
    public Document.Provenance getProvenance(int index)
   
   The history of this annotation.
 repeated .google.cloud.documentai.v1.Document.Provenance provenance = 3;
    
      
        | Name | Description | 
      
        | index | int
 | 
    
  
  Returns
  
  
  getProvenanceBuilder(int index)
  
    public Document.Provenance.Builder getProvenanceBuilder(int index)
   
   The history of this annotation.
 repeated .google.cloud.documentai.v1.Document.Provenance provenance = 3;
    
      
        | Name | Description | 
      
        | index | int
 | 
    
  
  Returns
  
  
  getProvenanceBuilderList()
  
    public List<Document.Provenance.Builder> getProvenanceBuilderList()
   
   The history of this annotation.
 repeated .google.cloud.documentai.v1.Document.Provenance provenance = 3;
getProvenanceCount()
  
    public int getProvenanceCount()
   
   The history of this annotation.
 repeated .google.cloud.documentai.v1.Document.Provenance provenance = 3;
getProvenanceList()
  
    public List<Document.Provenance> getProvenanceList()
   
   The history of this annotation.
 repeated .google.cloud.documentai.v1.Document.Provenance provenance = 3;
getProvenanceOrBuilder(int index)
  
    public Document.ProvenanceOrBuilder getProvenanceOrBuilder(int index)
   
   The history of this annotation.
 repeated .google.cloud.documentai.v1.Document.Provenance provenance = 3;
    
      
        | Name | Description | 
      
        | index | int
 | 
    
  
  Returns
  
  
  getProvenanceOrBuilderList()
  
    public List<? extends Document.ProvenanceOrBuilder> getProvenanceOrBuilderList()
   
   The history of this annotation.
 repeated .google.cloud.documentai.v1.Document.Provenance provenance = 3;
    
      
        | Type | Description | 
      
        | List<? extends com.google.cloud.documentai.v1.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.v1.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.v1.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.v1.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.v1.Document.TextAnchor text_anchor = 1;
    
      
        | Type | Description | 
      
        | boolean | Whether the textAnchor field is set. | 
    
  
  
  internalGetFieldAccessorTable()
  
    protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
   
  Returns
  
  Overrides
  
  
  isInitialized()
  
    public final boolean isInitialized()
   
  Returns
  
  Overrides
  
  
  mergeFrom(Document.TextChange other)
  
    public Document.TextChange.Builder mergeFrom(Document.TextChange other)
   
  Parameter
  
  Returns
  
  
  mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
  
    public Document.TextChange.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
   
  Parameters
  
  Returns
  
  Overrides
  
  Exceptions
  
  
  mergeFrom(Message other)
  
    public Document.TextChange.Builder mergeFrom(Message other)
   
  Parameter
  
  Returns
  
  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.v1.Document.TextAnchor text_anchor = 1;
mergeUnknownFields(UnknownFieldSet unknownFields)
  
    public final Document.TextChange.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
   
  Parameter
  
  Returns
  
  Overrides
  
  
  removeProvenance(int index)
  
    public Document.TextChange.Builder removeProvenance(int index)
   
   The history of this annotation.
 repeated .google.cloud.documentai.v1.Document.Provenance provenance = 3;
    
      
        | Name | Description | 
      
        | index | int
 | 
    
  
  Returns
  
  
  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;
    
      
        | Name | Description | 
      
        | value | String
 The changedText to set. | 
    
  
  Returns
  
  
  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;
    
      
        | Name | Description | 
      
        | value | ByteString
 The bytes for changedText to set. | 
    
  
  Returns
  
  
  setField(Descriptors.FieldDescriptor field, Object value)
  
    public Document.TextChange.Builder setField(Descriptors.FieldDescriptor field, Object value)
   
  Parameters
  
  Returns
  
  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.v1.Document.Provenance provenance = 3;
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.v1.Document.Provenance provenance = 3;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
  
    public Document.TextChange.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
   
  Parameters
  
  Returns
  
  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.v1.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.v1.Document.TextAnchor text_anchor = 1;
setUnknownFields(UnknownFieldSet unknownFields)
  
    public final Document.TextChange.Builder setUnknownFields(UnknownFieldSet unknownFields)
   
  Parameter
  
  Returns
  
  Overrides