Cloud AutoML V1 Client - Class Document (1.5.4)

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 \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ input_config
Google\Cloud\AutoMl\V1\DocumentInputConfig

An input config specifying the content of the document.

↳ document_text
Google\Cloud\AutoMl\V1\TextSnippet

The plain text version of this document.

↳ layout
array< Google\Cloud\AutoMl\V1\Document\Layout >

Describes the layout of the document. Sorted by page_number .

↳ document_dimensions
Google\Cloud\AutoMl\V1\DocumentDimensions

The dimensions of the page in the document.

↳ page_count
int

Number of pages in the document.

getInputConfig

An input config specifying the content of the document.

Returns
Type
Description

hasInputConfig

clearInputConfig

setInputConfig

An input config specifying the content of the document.

Parameter
Name
Description
Returns
Type
Description
$this

getDocumentText

The plain text version of this document.

Returns
Type
Description

hasDocumentText

clearDocumentText

setDocumentText

The plain text version of this document.

Parameter
Name
Description
Returns
Type
Description
$this

getLayout

Describes the layout of the document.

Sorted by page_number .

Returns
Type
Description

setLayout

Describes the layout of the document.

Sorted by page_number .

Parameter
Name
Description
Returns
Type
Description
$this

getDocumentDimensions

The dimensions of the page in the document.

Returns
Type
Description

hasDocumentDimensions

clearDocumentDimensions

setDocumentDimensions

The dimensions of the page in the document.

Parameter
Name
Description
Returns
Type
Description
$this

getPageCount

Number of pages in the document.

Returns
Type
Description
int

setPageCount

Number of pages in the document.

Parameter
Name
Description
var
int
Returns
Type
Description
$this
Design a Mobile Site
View Site in Mobile | Classic
Share by: