Google Cloud Document Ai V1 Client - Class DetectedBarcode (1.6.0)

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

A detected barcode.

Generated from protobuf message google.cloud.documentai.v1.Document.Page.DetectedBarcode

Namespace

Google \ Cloud \ DocumentAI \ V1 \ Document \ Page

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ layout Google\Cloud\DocumentAI\V1\Document\Page\Layout

Layout for DetectedBarcode.

↳ barcode Google\Cloud\DocumentAI\V1\Barcode

Detailed barcode information of the DetectedBarcode.

getLayout

Returns
TypeDescription
Google\Cloud\DocumentAI\V1\Document\Page\Layout|null

hasLayout

clearLayout

setLayout

Parameter
NameDescription
var Google\Cloud\DocumentAI\V1\Document\Page\Layout
Returns
TypeDescription
$this

getBarcode

Detailed barcode information of the DetectedBarcode.

Returns
TypeDescription
Google\Cloud\DocumentAI\V1\Barcode|null

hasBarcode

clearBarcode

setBarcode

Detailed barcode information of the DetectedBarcode.

Parameter
NameDescription
var Google\Cloud\DocumentAI\V1\Barcode
Returns
TypeDescription
$this