# gathered_data

Python API: `depthai_nodes.message.gathered_data`

## Classes

| Name | Description |
| --- | --- |
| [`GatheredData`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/message/gathered_data.md#gathered_data-Classes-GatheredData) | Contains N messages and reference data that the messages were matched with. |

### class `GatheredData`

```python
class GatheredData(Collection, Generic)
```

Contains N messages and reference data that the messages were matched with.

Attributes

| Name | Description |
| --- | --- |
| `items` | List of gathered data. |

Properties

| Name | Type | Description |
| --- | --- | --- |
| [`reference_data`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/message/gathered_data.md#gathered_data-Classes-GatheredData-reference_data) | `TReference` | Returns the reference data. |

Methods

| Name | Description |
| --- | --- |
| [`__init__`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/message/gathered_data.md#gathered_data-Classes-GatheredData-__init__) | Initialize gathered items and copy metadata from the reference message. |
| [`reference_data.setter`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/message/gathered_data.md#gathered_data-Classes-GatheredData-reference_data.setter) | Sets the reference data. |

#### property `reference_data`

```python
reference_data: TReference
```

Returns the reference data.

Returns

| Type | Description |
| --- | --- |
|  | Reference data. |

#### method `__init__`

```python
def __init__(reference_data: TReference, items: list[TGathered])
```

Initialize gathered items and copy metadata from the reference message.

Args

| Name | Type | Description | Default |
| --- | --- | --- | --- |
| `reference_data` | `TReference` | Reference whose timestamps and sequence number are copied. | required |
| `items` | `list[TGathered]` | Messages gathered for this reference, all of the same runtime type. | required |

#### method `reference_data.setter`

```python
def reference_data.setter(value: TReference)
```

Sets the reference data.

Args

| Name | Type | Description | Default |
| --- | --- | --- | --- |
| `value` | `TReference` | Reference data. | required |

## Module Attributes

| Name | Description |
| --- | --- |
| [`TGathered`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/message/gathered_data.md#gathered_data-Module-Attributes-TGathered) |  |
| [`TReference`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/message/gathered_data.md#gathered_data-Module-Attributes-TReference) |  |

### type variable `TGathered`

```python
TGathered = TypeVar('TGathered', bound=dai.Buffer)
```

### type variable `TReference`

```python
TReference = TypeVar('TReference', bound=dai.Buffer)
```
