# Google Cloud Channel V1 Client - Class Value (2.4.1)

2.4.1 (latest) 2.4.0 2.3.1 2.2.1 2.1.4 2.0.0 1.9.5 1.8.2 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.1 1.1.1 1.0.1 Reference documentation and code samples for the Google Cloud Channel V1 Client class Value.

Data type and value of a parameter.

Generated from protobuf message `google.cloud.channel.v1.Value`

## Namespace

Google \\ Cloud \\ Channel \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ int64_value` | `int|string` Represents an int64 value. |
| `↳ string_value` | `string` Represents a string value. |
| `↳ double_value` | `float` Represents a double value. |
| `↳ proto_value` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Any` Represents an 'Any' proto value. |
| `↳ bool_value` | `bool` Represents a boolean value. |

### getInt64Value

Represents an int64 value.

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

### hasInt64Value

### setInt64Value

Represents an int64 value.

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

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

### getStringValue

Represents a string value.

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

### hasStringValue

### setStringValue

Represents a string value.

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

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

### getDoubleValue

Represents a double value.

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

### hasDoubleValue

### setDoubleValue

Represents a double value.

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

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

### getProtoValue

Represents an 'Any' proto value.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Any|null` |   |

### hasProtoValue

### setProtoValue

Represents an 'Any' proto value.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Any` |

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

### getBoolValue

Represents a boolean value.

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

### hasBoolValue

### setBoolValue

Represents a boolean value.

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

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

### getKind

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