0.9.0 (latest) 0.8.0 0.7.2 0.5.0 0.4.0 0.3.0 0.2.3 0.1.2 Reference documentation and code samples for the Google Cloud Chronicle Client class FindingVariable.

A structure that holds the value and associated metadata for values
extracted while producing a Finding.

Generated from protobuf message `google.backstory.FindingVariable`

## Namespace

Google \\ Backstory

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ type` | `int` The type of the variable. |
| `↳ value` | `string` The value in string form. |
| `↳ source_path` | `string` The UDM field path for the field which this value was derived from. Example: `principal.user.username` |
| `↳ bool_val` | `bool` The value in boolean format. |
| `↳ bytes_val` | `string` The value in bytes format. |
| `↳ double_val` | `float` The value in double format. |
| `↳ int64_val` | `int|string` The value in int64 format. |
| `↳ uint64_val` | `int|string` The value in uint64 format. |
| `↳ string_val` | `string` The value in string format. Enum values are returned as strings. |
| `↳ timestamp_time` | `Google\Protobuf\Timestamp` The value in timestamp format. |
| `↳ null_val` | `bool` Whether the value is null. |
| `↳ bool_seq` | `BoolSequence` The value in boolsequence format. |
| `↳ bytes_seq` | `BytesSequence` The value in bytessequence format. |
| `↳ double_seq` | `DoubleSequence` The value in doublesequence format. |
| `↳ int64_seq` | `Int64Sequence` The value in int64sequence format. |
| `↳ uint64_seq` | `Uint64Sequence` The value in uint64sequence format. |
| `↳ string_seq` | `StringSequence` The value in stringsequence format. |

### getType

The type of the variable.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Type](https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/Backstory.FindingVariable.Type.md.txt). |

### setType

The type of the variable.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Type](https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/Backstory.FindingVariable.Type.md.txt). |

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

### getValue

The value in string form.

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

### setValue

The value in string form.

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

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

### getSourcePath

The UDM field path for the field which this value was derived from.

Example: `principal.user.username`

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

### setSourcePath

The UDM field path for the field which this value was derived from.

Example: `principal.user.username`

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

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

### getBoolVal

The value in boolean format.

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

### hasBoolVal

### setBoolVal

The value in boolean format.

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

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

### getBytesVal

The value in bytes format.

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

### hasBytesVal

### setBytesVal

The value in bytes format.

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

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

### getDoubleVal

The value in double format.

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

### hasDoubleVal

### setDoubleVal

The value in double format.

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

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

### getInt64Val

The value in int64 format.

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

### hasInt64Val

### setInt64Val

The value in int64 format.

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

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

### getUint64Val

The value in uint64 format.

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

### hasUint64Val

### setUint64Val

The value in uint64 format.

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

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

### getStringVal

The value in string format.

Enum values are returned as strings.

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

### hasStringVal

### setStringVal

The value in string format.

Enum values are returned as strings.

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

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

### getTimestampTime

The value in timestamp format.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasTimestampTime

### setTimestampTime

The value in timestamp format.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

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

### getNullVal

Whether the value is null.

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

### hasNullVal

### setNullVal

Whether the value is null.

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

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

### getBoolSeq

The value in boolsequence format.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `BoolSequence|null` |   |

### hasBoolSeq

### setBoolSeq

The value in boolsequence format.

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

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

### getBytesSeq

The value in bytessequence format.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `BytesSequence|null` |   |

### hasBytesSeq

### setBytesSeq

The value in bytessequence format.

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

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

### getDoubleSeq

The value in doublesequence format.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `DoubleSequence|null` |   |

### hasDoubleSeq

### setDoubleSeq

The value in doublesequence format.

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

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

### getInt64Seq

The value in int64sequence format.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Int64Sequence|null` |   |

### hasInt64Seq

### setInt64Seq

The value in int64sequence format.

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

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

### getUint64Seq

The value in uint64sequence format.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Uint64Sequence|null` |   |

### hasUint64Seq

### setUint64Seq

The value in uint64sequence format.

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

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

### getStringSeq

The value in stringsequence format.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StringSequence|null` |   |

### hasStringSeq

### setStringSeq

The value in stringsequence format.

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

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

### getTypedValue

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