Reference documentation and code samples for the Cloud AutoML V1 Client class Document.
A structured text document e.g. a PDF.
Generated from protobuf message google.cloud.automl.v1.Document
Namespace
Google \ Cloud \ AutoMl \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ input_config
↳ document_text
↳ layout
↳ document_dimensions
↳ page_count
int
Number of pages in the document.
getInputConfig
An input config specifying the content of the document.
hasInputConfig
clearInputConfig
setInputConfig
An input config specifying the content of the document.
$this
getDocumentText
The plain text version of this document.
hasDocumentText
clearDocumentText
setDocumentText
The plain text version of this document.
$this
getLayout
Describes the layout of the document.
Sorted by page_number .
setLayout
Describes the layout of the document.
Sorted by page_number .
$this
getDocumentDimensions
The dimensions of the page in the document.
hasDocumentDimensions
clearDocumentDimensions
setDocumentDimensions
The dimensions of the page in the document.
$this
getPageCount
Number of pages in the document.
int
setPageCount
Number of pages in the document.
var
int
$this