Google Cloud Document Ai V1 Client - Class LayoutTableBlock (2.7.0)

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

Represents a table type block.

Generated from protobuf message google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableBlock

Namespace

Google \ Cloud \ DocumentAI \ V1 \ Document \ DocumentLayout \ DocumentLayoutBlock

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ header_rows array<LayoutTableRow>

Header rows at the top of the table.

↳ body_rows array<LayoutTableRow>

Body rows containing main table content.

↳ caption string

Table caption/title.

↳ annotations Google\Cloud\DocumentAI\V1\Document\Annotations

Annotation of the table block.

getHeaderRows

Header rows at the top of the table.

Returns
Type Description
Google\Protobuf\RepeatedField<LayoutTableRow>

setHeaderRows

Header rows at the top of the table.

Parameter
Name Description
var array<LayoutTableRow>
Returns
Type Description
$this

getBodyRows

Body rows containing main table content.

Returns
Type Description
Google\Protobuf\RepeatedField<LayoutTableRow>

setBodyRows

Body rows containing main table content.

Parameter
Name Description
var array<LayoutTableRow>
Returns
Type Description
$this

getCaption

Table caption/title.

Returns
Type Description
string

setCaption

Table caption/title.

Parameter
Name Description
var string
Returns
Type Description
$this

getAnnotations

Annotation of the table block.

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

hasAnnotations

clearAnnotations

setAnnotations

Annotation of the table block.

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