Google Cloud Document Ai V1 Client - Class TableCell (1.7.0)

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

A cell representation inside the table.

Generated from protobuf message google.cloud.documentai.v1.Document.Page.Table.TableCell

Namespace

Google \ Cloud \ DocumentAI \ V1 \ Document \ Page \ Table

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

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

Layout for TableCell.

↳ row_span int

How many rows this cell spans.

↳ col_span int

How many columns this cell spans.

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

A list of detected languages together with confidence.

getLayout

Returns
TypeDescription
Google\Cloud\DocumentAI\V1\Document\Page\Layout|null

hasLayout

clearLayout

setLayout

Parameter
NameDescription
var Google\Cloud\DocumentAI\V1\Document\Page\Layout
Returns
TypeDescription
$this

getRowSpan

How many rows this cell spans.

Returns
TypeDescription
int

setRowSpan

How many rows this cell spans.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getColSpan

How many columns this cell spans.

Returns
TypeDescription
int

setColSpan

How many columns this cell spans.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getDetectedLanguages

A list of detected languages together with confidence.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setDetectedLanguages

A list of detected languages together with confidence.

Parameter
NameDescription
var array<Google\Cloud\DocumentAI\V1\Document\Page\DetectedLanguage>
Returns
TypeDescription
$this