Google Cloud Document Ai V1 Client - Class Barcode (2.3.0)
Stay organized with collections
Save and categorize content based on your preferences.
Reference documentation and code samples for the Google Cloud Document Ai V1 Client class Barcode.
Encodes the detailed information of a barcode.
Generated from protobuf message google.cloud.documentai.v1.Barcode
Namespace
Google \ Cloud \ DocumentAI \ V1
Methods
__construct
Parameters |
Name |
Description |
data |
array
Optional. Data for populating the Message object.
|
↳ format |
string
Format of a barcode. The supported formats are: - CODE_128 : Code 128 type. - CODE_39 : Code 39 type. - CODE_93 : Code 93 type. - CODABAR : Codabar type. - DATA_MATRIX : 2D Data Matrix type. - ITF : ITF type. - EAN_13 : EAN-13 type. - EAN_8 : EAN-8 type. - QR_CODE : 2D QR code type. - UPC_A : UPC-A type. - UPC_E : UPC-E type. - PDF417 : PDF417 type. - AZTEC : 2D Aztec code type. - DATABAR : GS1 DataBar code type.
|
↳ value_format |
string
Value format describes the format of the value that a barcode encodes. The supported formats are: - CONTACT_INFO : Contact information. - EMAIL : Email address. - ISBN : ISBN identifier. - PHONE : Phone number. - PRODUCT : Product. - SMS : SMS message. - TEXT : Text string. - URL : URL address. - WIFI : Wifi information. - GEO : Geo-localization. - CALENDAR_EVENT : Calendar event. - DRIVER_LICENSE : Driver's license.
|
↳ raw_value |
string
Raw value encoded in the barcode. For example: 'MEBKM:TITLE:Google;URL:https://www.google.com;;' .
|
Format of a barcode.
The supported formats are:
CODE_128
: Code 128 type.
CODE_39
: Code 39 type.
CODE_93
: Code 93 type.
CODABAR
: Codabar type.
DATA_MATRIX
: 2D Data Matrix type.
ITF
: ITF type.
EAN_13
: EAN-13 type.
EAN_8
: EAN-8 type.
QR_CODE
: 2D QR code type.
UPC_A
: UPC-A type.
UPC_E
: UPC-E type.
PDF417
: PDF417 type.
AZTEC
: 2D Aztec code type.
DATABAR
: GS1 DataBar code type.
Returns |
Type |
Description |
string |
|
Format of a barcode.
The supported formats are:
CODE_128
: Code 128 type.
CODE_39
: Code 39 type.
CODE_93
: Code 93 type.
CODABAR
: Codabar type.
DATA_MATRIX
: 2D Data Matrix type.
ITF
: ITF type.
EAN_13
: EAN-13 type.
EAN_8
: EAN-8 type.
QR_CODE
: 2D QR code type.
UPC_A
: UPC-A type.
UPC_E
: UPC-E type.
PDF417
: PDF417 type.
AZTEC
: 2D Aztec code type.
DATABAR
: GS1 DataBar code type.
Parameter |
Name |
Description |
var |
string
|
Returns |
Type |
Description |
$this |
|
Value format describes the format of the value that a barcode
encodes.
The supported formats are:
CONTACT_INFO
: Contact information.
EMAIL
: Email address.
ISBN
: ISBN identifier.
PHONE
: Phone number.
PRODUCT
: Product.
SMS
: SMS message.
TEXT
: Text string.
URL
: URL address.
WIFI
: Wifi information.
GEO
: Geo-localization.
CALENDAR_EVENT
: Calendar event.
DRIVER_LICENSE
: Driver's license.
Returns |
Type |
Description |
string |
|
Value format describes the format of the value that a barcode
encodes.
The supported formats are:
CONTACT_INFO
: Contact information.
EMAIL
: Email address.
ISBN
: ISBN identifier.
PHONE
: Phone number.
PRODUCT
: Product.
SMS
: SMS message.
TEXT
: Text string.
URL
: URL address.
WIFI
: Wifi information.
GEO
: Geo-localization.
CALENDAR_EVENT
: Calendar event.
DRIVER_LICENSE
: Driver's license.
Parameter |
Name |
Description |
var |
string
|
Returns |
Type |
Description |
$this |
|
getRawValue
Raw value encoded in the barcode.
For example: 'MEBKM:TITLE:Google;URL:https://www.google.com;;'
.
Returns |
Type |
Description |
string |
|
setRawValue
Raw value encoded in the barcode.
For example: 'MEBKM:TITLE:Google;URL:https://www.google.com;;'
.
Parameter |
Name |
Description |
var |
string
|
Returns |
Type |
Description |
$this |
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-04 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Document Ai V1 Client - Class Barcode (2.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.3.0 (latest)](/php/docs/reference/cloud-document-ai/latest/V1.Barcode)\n- [2.2.2](/php/docs/reference/cloud-document-ai/2.2.2/V1.Barcode)\n- [2.1.3](/php/docs/reference/cloud-document-ai/2.1.3/V1.Barcode)\n- [2.0.0](/php/docs/reference/cloud-document-ai/2.0.0/V1.Barcode)\n- [1.14.0](/php/docs/reference/cloud-document-ai/1.14.0/V1.Barcode)\n- [1.13.1](/php/docs/reference/cloud-document-ai/1.13.1/V1.Barcode)\n- [1.12.2](/php/docs/reference/cloud-document-ai/1.12.2/V1.Barcode)\n- [1.9.0](/php/docs/reference/cloud-document-ai/1.9.0/V1.Barcode)\n- [1.8.2](/php/docs/reference/cloud-document-ai/1.8.2/V1.Barcode)\n- [1.7.0](/php/docs/reference/cloud-document-ai/1.7.0/V1.Barcode)\n- [1.6.0](/php/docs/reference/cloud-document-ai/1.6.0/V1.Barcode)\n- [1.5.0](/php/docs/reference/cloud-document-ai/1.5.0/V1.Barcode)\n- [1.4.0](/php/docs/reference/cloud-document-ai/1.4.0/V1.Barcode)\n- [1.3.0](/php/docs/reference/cloud-document-ai/1.3.0/V1.Barcode)\n- [1.2.2](/php/docs/reference/cloud-document-ai/1.2.2/V1.Barcode)\n- [1.1.1](/php/docs/reference/cloud-document-ai/1.1.1/V1.Barcode)\n- [1.0.1](/php/docs/reference/cloud-document-ai/1.0.1/V1.Barcode) \nReference documentation and code samples for the Google Cloud Document Ai V1 Client class Barcode.\n\nEncodes the detailed information of a barcode.\n\nGenerated from protobuf message `google.cloud.documentai.v1.Barcode`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ DocumentAI \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getFormat\n\nFormat of a barcode.\n\nThe supported formats are:\n\n- `CODE_128`: Code 128 type.\n- `CODE_39`: Code 39 type.\n- `CODE_93`: Code 93 type.\n- `CODABAR`: Codabar type.\n- `DATA_MATRIX`: 2D Data Matrix type.\n- `ITF`: ITF type.\n- `EAN_13`: EAN-13 type.\n- `EAN_8`: EAN-8 type.\n- `QR_CODE`: 2D QR code type.\n- `UPC_A`: UPC-A type.\n- `UPC_E`: UPC-E type.\n- `PDF417`: PDF417 type.\n- `AZTEC`: 2D Aztec code type.\n- `DATABAR`: GS1 DataBar code type.\n\n### setFormat\n\nFormat of a barcode.\n\nThe supported formats are:\n\n- `CODE_128`: Code 128 type.\n- `CODE_39`: Code 39 type.\n- `CODE_93`: Code 93 type.\n- `CODABAR`: Codabar type.\n- `DATA_MATRIX`: 2D Data Matrix type.\n- `ITF`: ITF type.\n- `EAN_13`: EAN-13 type.\n- `EAN_8`: EAN-8 type.\n- `QR_CODE`: 2D QR code type.\n- `UPC_A`: UPC-A type.\n- `UPC_E`: UPC-E type.\n- `PDF417`: PDF417 type.\n- `AZTEC`: 2D Aztec code type.\n- `DATABAR`: GS1 DataBar code type.\n\n### getValueFormat\n\nValue format describes the format of the value that a barcode\nencodes.\n\nThe supported formats are:\n\n- `CONTACT_INFO`: Contact information.\n- `EMAIL`: Email address.\n- `ISBN`: ISBN identifier.\n- `PHONE`: Phone number.\n- `PRODUCT`: Product.\n- `SMS`: SMS message.\n- `TEXT`: Text string.\n- `URL`: URL address.\n- `WIFI`: Wifi information.\n- `GEO`: Geo-localization.\n- `CALENDAR_EVENT`: Calendar event.\n- `DRIVER_LICENSE`: Driver's license.\n\n### setValueFormat\n\nValue format describes the format of the value that a barcode\nencodes.\n\nThe supported formats are:\n\n- `CONTACT_INFO`: Contact information.\n- `EMAIL`: Email address.\n- `ISBN`: ISBN identifier.\n- `PHONE`: Phone number.\n- `PRODUCT`: Product.\n- `SMS`: SMS message.\n- `TEXT`: Text string.\n- `URL`: URL address.\n- `WIFI`: Wifi information.\n- `GEO`: Geo-localization.\n- `CALENDAR_EVENT`: Calendar event.\n- `DRIVER_LICENSE`: Driver's license.\n\n### getRawValue\n\nRaw value encoded in the barcode.\n\nFor example: `'MEBKM:TITLE:Google;URL:https://www.google.com;;'`.\n\n### setRawValue\n\nRaw value encoded in the barcode.\n\nFor example: `'MEBKM:TITLE:Google;URL:https://www.google.com;;'`."]]