Google Cloud Document Ai V1 Client - Class DocumentLayout (2.0.0)

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

Represents the parsed layout of a document as a collection of blocks that the document is divided into.

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

Namespace

Google \ Cloud \ DocumentAI \ V1 \ Document

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ blocks array<Google\Cloud\DocumentAI\V1\Document\DocumentLayout\DocumentLayoutBlock>

List of blocks in the document.

getBlocks

List of blocks in the document.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setBlocks

List of blocks in the document.

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