# Google Cloud BigQuery Migration V2 Client - Class TypedValue (1.3.0)

1.3.0 (latest) 1.2.3 1.1.5 1.0.0 0.4.5 0.3.3 0.2.2 0.1.4 Reference documentation and code samples for the Google Cloud BigQuery Migration V2 Client class TypedValue.

A single strongly-typed value.

Generated from protobuf message `google.cloud.bigquery.migration.v2.TypedValue`

## Namespace

Google \\ Cloud \\ BigQuery \\ Migration \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ bool_value` | `bool` A Boolean value: `true` or `false`. |
| `↳ int64_value` | `int|string` A 64-bit integer. Its range is approximately `+/-9.2x10^18`. |
| `↳ double_value` | `float` A 64-bit double-precision floating-point number. Its magnitude is approximately `+/-10^(+/-300)` and it has 16 significant digits of precision. |
| `↳ string_value` | `string` A variable-length string value. |
| `↳ distribution_value` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.Distribution.html` A distribution value. |

### getBoolValue

A Boolean value: `true` or `false`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasBoolValue

### setBoolValue

A Boolean value: `true` or `false`.

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

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

### getInt64Value

A 64-bit integer. Its range is approximately `+/-9.2x10^18`.

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

### hasInt64Value

### setInt64Value

A 64-bit integer. Its range is approximately `+/-9.2x10^18`.

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

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

### getDoubleValue

A 64-bit double-precision floating-point number. Its magnitude
is approximately `+/-10^(+/-300)` and it has 16 significant digits of
precision.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### hasDoubleValue

### setDoubleValue

A 64-bit double-precision floating-point number. Its magnitude
is approximately `+/-10^(+/-300)` and it has 16 significant digits of
precision.

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

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

### getStringValue

A variable-length string value.

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

### hasStringValue

### setStringValue

A variable-length string value.

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

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

### getDistributionValue

A distribution value.

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

### hasDistributionValue

### setDistributionValue

A distribution value.

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

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

### getValue

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