Cloud Vision V1 Client - Class WebLabel (1.6.8)

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

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
string

setLabel

Label for extra metadata.

Parameter
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this