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

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

The chunk field in the chunk. A chunk field could be one of the various types (for example, image, table) supported.

Generated from protobuf message google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkField

Namespace

Google \ Cloud \ DocumentAI \ V1 \ Document \ ChunkedDocument \ Chunk

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ image_chunk_field ImageChunkField

The image chunk field in the chunk.

↳ table_chunk_field TableChunkField

The table chunk field in the chunk.

getImageChunkField

The image chunk field in the chunk.

Returns
Type Description
ImageChunkField|null

hasImageChunkField

setImageChunkField

The image chunk field in the chunk.

Parameter
Name Description
var ImageChunkField
Returns
Type Description
$this

getTableChunkField

The table chunk field in the chunk.

Returns
Type Description
TableChunkField|null

hasTableChunkField

setTableChunkField

The table chunk field in the chunk.

Parameter
Name Description
var TableChunkField
Returns
Type Description
$this

getFieldType

Returns
Type Description
string