public class DetectDocumentTextResult extends Object implements Serializable
| Constructor and Description |
|---|
DetectDocumentTextResult() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
List<Block> |
getBlocks()
An array of Block objects containing the text detected in the document.
|
DocumentMetadata |
getDocumentMetadata()
Metadata about the document.
|
int |
hashCode() |
void |
setBlocks(Collection<Block> blocks)
An array of Block objects containing the text detected in the document.
|
void |
setDocumentMetadata(DocumentMetadata documentMetadata)
Metadata about the document.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DetectDocumentTextResult |
withBlocks(Block... blocks)
An array of Block objects containing the text detected in the document.
|
DetectDocumentTextResult |
withBlocks(Collection<Block> blocks)
An array of Block objects containing the text detected in the document.
|
DetectDocumentTextResult |
withDocumentMetadata(DocumentMetadata documentMetadata)
Metadata about the document.
|
public DocumentMetadata getDocumentMetadata()
Metadata about the document. Contains the number of pages that are detected in the document.
Metadata about the document. Contains the number of pages that are detected in the document.
public void setDocumentMetadata(DocumentMetadata documentMetadata)
Metadata about the document. Contains the number of pages that are detected in the document.
documentMetadata - Metadata about the document. Contains the number of pages that are detected in the document.
public DetectDocumentTextResult withDocumentMetadata(DocumentMetadata documentMetadata)
Metadata about the document. Contains the number of pages that are detected in the document.
Returns a reference to this object so that method calls can be chained together.
documentMetadata - Metadata about the document. Contains the number of pages that are detected in the document.
public List<Block> getBlocks()
An array of Block objects containing the text detected in the document.
An array of Block objects containing the text detected in the document.
public void setBlocks(Collection<Block> blocks)
An array of Block objects containing the text detected in the document.
blocks - An array of Block objects containing the text detected in the document.
public DetectDocumentTextResult withBlocks(Block... blocks)
An array of Block objects containing the text detected in the document.
Returns a reference to this object so that method calls can be chained together.
blocks - An array of Block objects containing the text detected in the document.
public DetectDocumentTextResult withBlocks(Collection<Block> blocks)
An array of Block objects containing the text detected in the document.
Returns a reference to this object so that method calls can be chained together.
blocks - An array of Block objects containing the text detected in the document.
public String toString()
toString in class ObjectObject.toString()Copyright © 2019. All rights reserved.