> This page is for version 4.6.
> For other versions, use one of these documentation indexes:
> - 5.0 (Latest) (default): https://docs.nvidia.com/holoscan/sdk-user-guide/5-0-latest/llms.txt
> - ltsb-2.0: https://docs.nvidia.com/holoscan/sdk-user-guide/ltsb-2-0/llms.txt
> - 4.6: https://docs.nvidia.com/holoscan/sdk-user-guide/4-6/llms.txt
> - 4.5: https://docs.nvidia.com/holoscan/sdk-user-guide/4-5/llms.txt
> - 4.4: https://docs.nvidia.com/holoscan/sdk-user-guide/4-4/llms.txt
> - 4.3: https://docs.nvidia.com/holoscan/sdk-user-guide/4-3/llms.txt
> - Archives: https://docs.nvidia.com/holoscan/sdk-user-guide/archives/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/holoscan/sdk-user-guide/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/holoscan/sdk-user-guide/_mcp/server.

# holoscan::HoloscanEntityData

> DDS data type for Holoscan pub/sub messages.

DDS data type for Holoscan pub/sub messages.

This structure is used for two kinds of DDS messages:

* **Main-topic messages**: `serialized_data` carries a CodecRegistry-serialized Holoscan Entity (which may reference GPU tensors). The metadata fields `contains_gpu_tensors` and `gpu_device_id` describe the entity payload. `descriptor_format_version` is 0 and `protocol_name` / `publisher_gid` are empty.
* **Sidecar messages** (native buffer descriptors): `serialized_data` carries native-descriptor bytes produced by `FastDdsTransport::send_native_descriptor()`. `descriptor_format_version` (> 0) and `protocol_name` identify the wire format, and `publisher_gid` associates the descriptor with a main-topic publisher.

Common metadata fields:

* **source_operator**: Tracing/debugging (identifies the publishing operator)
* **timestamp_ns**: [Message](../classes/message) timestamping (for latency measurement, ordering)

```cpp showLineNumbers={false}
#include <holoscan/fastdds_holoscan_entity_type_support.hpp>
```

---

## Member variables

| Name                        | Type                     | Description                                                                    |
| --------------------------- | ------------------------ | ------------------------------------------------------------------------------ |
| `serialized_data`           | `std::vector< uint8_t >` | [Message](../classes/message) payload bytes.                                   |
| `source_operator`           | `std::string`            | Name of the operator that produced this message.                               |
| `timestamp_ns`              | `int64_t`                | Timestamp in nanoseconds (typically from std::chrono::steady_clock).           |
| `contains_gpu_tensors`      | `bool`                   | True if serialized_data contains GPU tensor references that need staging.      |
| `gpu_device_id`             | `int32_t`                | GPU device ID where tensors originated (for device affinity).                  |
| `publisher_gid`             | `std::string`            | GID of the main-topic publisher (hex string, e.g.                              |
| `descriptor_format_version` | `uint8_t`                | Native descriptor wire format version (0 for regular/main-topic payloads).     |
| `protocol_name`             | `std::string`            | Native descriptor protocol identifier (empty for regular/main-topic payloads). |