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