Cloud Vision V1 Client - Class WebLabel (1.9.4)

Reference documentation and code samples for the Cloud Vision V1 Client class WebLabel.

Label to provide extra metadata for the web detection.

Generated from protobuf message google.cloud.vision.v1.WebDetection.WebLabel

Namespace

Google \ Cloud \ Vision \ V1 \ WebDetection

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ label string

Label for extra metadata.

↳ language_code string

The BCP-47 language code for label, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.

getLabel

Label for extra metadata.

Returns
Type Description
string

setLabel

Label for extra metadata.

Parameter
Name Description
var string
Returns
Type Description
$this

getLanguageCode

The BCP-47 language code for label, such as "en-US" or "sr-Latn".

For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.

Returns
Type Description
string

setLanguageCode

The BCP-47 language code for label, such as "en-US" or "sr-Latn".

For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.

Parameter
Name Description
var string
Returns
Type Description
$this