Google Cloud Document Ai V1 Client - Class Line (2.1.0)

Reference documentation and code samples for the Google Cloud Document Ai V1 Client class Line.

A collection of tokens that a human would perceive as a line.

Does not cross column boundaries, can be horizontal, vertical, etc.

Generated from protobuf message google.cloud.documentai.v1.Document.Page.Line

Namespace

Google \ Cloud \ DocumentAI \ V1 \ Document \ Page

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ layout Google\Cloud\DocumentAI\V1\Document\Page\Layout

Layout for Line.

↳ detected_languages array<Google\Cloud\DocumentAI\V1\Document\Page\DetectedLanguage>

A list of detected languages together with confidence.

↳ provenance Google\Cloud\DocumentAI\V1\Document\Provenance

The history of this annotation.

getLayout

Layout for Line.

Returns
Type Description
Google\Cloud\DocumentAI\V1\Document\Page\Layout|null

hasLayout

clearLayout

setLayout

Layout for Line.

Parameter
Name Description
var Google\Cloud\DocumentAI\V1\Document\Page\Layout
Returns
Type Description
$this

getDetectedLanguages

A list of detected languages together with confidence.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setDetectedLanguages

A list of detected languages together with confidence.

Parameter
Name Description
var array<Google\Cloud\DocumentAI\V1\Document\Page\DetectedLanguage>
Returns
Type Description
$this

getProvenance

The history of this annotation.

Returns
Type Description
Google\Cloud\DocumentAI\V1\Document\Provenance|null

hasProvenance

clearProvenance

setProvenance

The history of this annotation.

Parameter
Name Description
var Google\Cloud\DocumentAI\V1\Document\Provenance
Returns
Type Description
$this