# Cloud Vision V1 Client - Class WebLabel (2.2.1)

2.2.1 (latest) 2.2.0 2.1.3 2.0.3 1.10.3 1.9.4 1.8.0 1.7.6 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`

## 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` |   |