Google Cloud Document Ai V1 Client - Class LayoutConfig (2.2.1)

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

Serving config for layout parser processor.

Generated from protobuf message google.cloud.documentai.v1.ProcessOptions.LayoutConfig

Namespace

Google \ Cloud \ DocumentAI \ V1 \ ProcessOptions

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ chunking_config LayoutConfig\ChunkingConfig

Optional. Config for chunking in layout parser processor.

↳ return_images bool

Optional. Whether to include images in layout parser processor response.

↳ return_bounding_boxes bool

Optional. Whether to include bounding boxes in layout parser processor response.

getChunkingConfig

Optional. Config for chunking in layout parser processor.

Returns
Type Description
LayoutConfig\ChunkingConfig|null

hasChunkingConfig

clearChunkingConfig

setChunkingConfig

Optional. Config for chunking in layout parser processor.

Parameter
Name Description
var LayoutConfig\ChunkingConfig
Returns
Type Description
$this

getReturnImages

Optional. Whether to include images in layout parser processor response.

Returns
Type Description
bool

setReturnImages

Optional. Whether to include images in layout parser processor response.

Parameter
Name Description
var bool
Returns
Type Description
$this

getReturnBoundingBoxes

Optional. Whether to include bounding boxes in layout parser processor response.

Returns
Type Description
bool

setReturnBoundingBoxes

Optional. Whether to include bounding boxes in layout parser processor response.

Parameter
Name Description
var bool
Returns
Type Description
$this