# Google Cloud Vision Ai V1 Client - Class FacetValue (0.3.0)

0.3.0 (latest) 0.2.0 0.1.0 Reference documentation and code samples for the Google Cloud Vision Ai V1 Client class FacetValue.

Definition of a single value with generic type.

Generated from protobuf message `google.cloud.visionai.v1.FacetValue`

## Namespace

Google \\ Cloud \\ VisionAI \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ string_value` | `string` String type value. |
| `↳ integer_value` | `int|string` Integer type value. |
| `↳ datetime_value` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.DateTime.html` Datetime type value. |

### getStringValue

String type value.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasStringValue

### setStringValue

String type value.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getIntegerValue

Integer type value.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int|string` |   |

### hasIntegerValue

### setIntegerValue

Integer type value.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int|string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDatetimeValue

Datetime type value.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.DateTime.html|null` |   |

### hasDatetimeValue

### setDatetimeValue

Datetime type value.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.DateTime.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getValue

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |