Cloud AutoML V1beta1 Client - Class Document (1.4.17)

Reference documentation and code samples for the Cloud AutoML V1beta1 Client class Document.

A structured text document e.g. a PDF.

Generated from protobuf message google.cloud.automl.v1beta1.Document

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ input_config Google\Cloud\AutoMl\V1beta1\DocumentInputConfig

An input config specifying the content of the document.

↳ document_text Google\Cloud\AutoMl\V1beta1\TextSnippet

The plain text version of this document.

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

Describes the layout of the document. Sorted by page_number.

↳ document_dimensions Google\Cloud\AutoMl\V1beta1\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
TypeDescription
Google\Cloud\AutoMl\V1beta1\DocumentInputConfig|null

hasInputConfig

clearInputConfig

setInputConfig

An input config specifying the content of the document.

Parameter
NameDescription
var Google\Cloud\AutoMl\V1beta1\DocumentInputConfig
Returns
TypeDescription
$this

getDocumentText

The plain text version of this document.

Returns
TypeDescription
Google\Cloud\AutoMl\V1beta1\TextSnippet|null

hasDocumentText

clearDocumentText

setDocumentText

The plain text version of this document.

Parameter
NameDescription
var Google\Cloud\AutoMl\V1beta1\TextSnippet
Returns
TypeDescription
$this

getLayout

Describes the layout of the document.

Sorted by page_number.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setLayout

Describes the layout of the document.

Sorted by page_number.

Parameter
NameDescription
var array<Google\Cloud\AutoMl\V1beta1\Document\Layout>
Returns
TypeDescription
$this

getDocumentDimensions

The dimensions of the page in the document.

Returns
TypeDescription
Google\Cloud\AutoMl\V1beta1\DocumentDimensions|null

hasDocumentDimensions

clearDocumentDimensions

setDocumentDimensions

The dimensions of the page in the document.

Parameter
NameDescription
var Google\Cloud\AutoMl\V1beta1\DocumentDimensions
Returns
TypeDescription
$this

getPageCount

Number of pages in the document.

Returns
TypeDescription
int

setPageCount

Number of pages in the document.

Parameter
NameDescription
var int
Returns
TypeDescription
$this