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 \ DocumentMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ blocks |
array<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<DocumentLayout\DocumentLayoutBlock>
|
Returns | |
---|---|
Type | Description |
$this |