> This page is for version 5.0 (Latest) (default).
> 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::ChannelEndpointCatalog

> Own an immutable canonical catalog of external Graph endpoints.

Own an immutable canonical catalog of external [Graph](graph) endpoints.

Copies share immutable state. Views and spans remain valid while any catalog sharing that state remains alive. The catalog contains no live attachment or execution authority and is safe for concurrent reads.

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

---

## Constructors

### ChannelEndpointCatalog \[#channelendpointcatalog]

#### Default

```cpp showLineNumbers={false}
holoscan::ChannelEndpointCatalog::ChannelEndpointCatalog() noexcept = default
```

Create an empty immutable catalog.

#### Overload 2

inline

explicit

```cpp showLineNumbers={false}
holoscan::ChannelEndpointCatalog::ChannelEndpointCatalog(
    std::shared_ptr<const detail::ChannelEndpointCatalogState> state
) noexcept
```

---

## Methods

### save_json \[#savejson]

```cpp showLineNumbers={false}
expected<void, Error> holoscan::ChannelEndpointCatalog::save_json(
    const std::filesystem::path &path
) const
```

Save canonical normalized JSON without mutating this value.

> **Note**
>
> Existing and staged files are compared with fixed-size reads capped at the canonical catalog size plus one byte. Oversized existing content is replaced; an oversized staged file fails verification and is removed.

**Returns:** Success or a typed filesystem error.

**Parameters**

**`path`** `const std::filesystem::path &`

Destination replaced only when canonical bytes differ.

---

### json \[#json]

```cpp showLineNumbers={false}
std::string holoscan::ChannelEndpointCatalog::json() const
```

Return canonical normalized catalog JSON.

**Returns:** Owned canonical bytes; an empty catalog returns an empty string.

### digest \[#digest]

```cpp showLineNumbers={false}
std::string_view holoscan::ChannelEndpointCatalog::digest() const noexcept
```

Return the normalized catalog digest.

**Returns:** Catalog-owned `sha256:` spelling, or an empty view for an empty catalog.

### raw_source_sha256 \[#rawsourcesha256]

```cpp showLineNumbers={false}
std::optional<std::string_view> holoscan::ChannelEndpointCatalog::raw_source_sha256() const noexcept
```

Return the SHA-256 of exact parsed source bytes when available.

**Returns:** Catalog-owned `sha256:` spelling, or no value for program-built catalogs.

### raw_source_size_bytes \[#rawsourcesizebytes]

```cpp showLineNumbers={false}
std::optional<std::uint64_t> holoscan::ChannelEndpointCatalog::raw_source_size_bytes() const noexcept
```

Return the exact parsed source byte count when available.

**Returns:** Raw byte count, or no value for program-built catalogs.

### scope \[#scope]

```cpp showLineNumbers={false}
std::string_view holoscan::ChannelEndpointCatalog::scope() const noexcept
```

Return the exact deployment scope carried by this catalog.

**Returns:** Catalog-owned scope, or an empty view for an empty catalog.

### endpoint \[#endpoint]

```cpp showLineNumbers={false}
expected<EndpointView, Error> holoscan::ChannelEndpointCatalog::endpoint(
    std::string_view endpoint_name
) const noexcept
```

Find one endpoint by its exact stable name.

> **Note**
>
> Failure returns a code-only error so lookup remains nonthrowing.

**Returns:** Immutable catalog-owned view, or `ErrorCode::kNotFound`.

**Parameters**

**`endpoint_name`** `std::string_view`

[Exact](../structs/exact) case-sensitive endpoint identity.

---

### compatibility_with \[#compatibilitywith]

```cpp showLineNumbers={false}
ChannelEndpointCompatibilityReport holoscan::ChannelEndpointCatalog::compatibility_with(
    const ChannelEndpointCatalog &candidate
) const
```

Compare this required catalog with one candidate catalog.

**Returns:** Deterministically ordered compatibility diagnostics.

**Parameters**

**`candidate`** `const ChannelEndpointCatalog &`

Candidate/provided immutable catalog.

---

### edit \[#edit]

```cpp showLineNumbers={false}
Builder holoscan::ChannelEndpointCatalog::edit() const
```

Create an advanced builder initialized from this catalog.

**Returns:** Independent builder; this immutable catalog is unchanged.

---

## Static methods

### parse_json \[#parsejson]

```cpp showLineNumbers={false}
static expected<ChannelEndpointCatalog, Error> holoscan::ChannelEndpointCatalog::parse_json(
    std::string_view source
)
```

Parse and normalize one strict schema-v2 JSON catalog.

**Returns:** Immutable normalized catalog with nonsemantic raw-source provenance.

**Parameters**

**`source`** `std::string_view`

[Exact](../structs/exact) source bytes; duplicate keys and invalid UTF-8 reject.

---

### load_json \[#loadjson]

```cpp showLineNumbers={false}
static expected<ChannelEndpointCatalog, Error> holoscan::ChannelEndpointCatalog::load_json(
    const std::filesystem::path &path
)
```

Load and normalize one strict schema-v2 JSON catalog.

**Returns:** Immutable normalized catalog with nonsemantic raw-source provenance.

**Parameters**

**`path`** `const std::filesystem::path &`

File whose exact bytes are read before parsing.

---

### builder \[#builder]

```cpp showLineNumbers={false}
static Builder holoscan::ChannelEndpointCatalog::builder(
    std::string_view deployment_scope
)
```

Create an empty advanced builder for one deployment scope.

**Returns:** Independent builder defined by `endpoint_catalog_builder.hpp`.

**Parameters**

**`deployment_scope`** `std::string_view`

Nonempty scope copied by the builder.

---

---

## Member variables

| Name     | Type                                                           | Description |
| -------- | -------------------------------------------------------------- | ----------- |
| `state_` | `std::shared_ptr< const detail::ChannelEndpointCatalogState >` |             |

---

## Inner classes

### EndpointView

```cpp showLineNumbers={false}
class holoscan::ChannelEndpointCatalog::EndpointView
```

Inspect one immutable endpoint owned by a `ChannelEndpointCatalog`.

The view borrows catalog state and becomes invalid when the final catalog sharing that state is destroyed. It exposes no attachment or mutation authority and is safe for concurrent reads while its catalog remains alive.

| Name     | Type                                          | Description |
| -------- | --------------------------------------------- | ----------- |
| `state_` | `const detail::ChannelEndpointCatalogState *` |             |
| `index_` | `std::size_t`                                 |             |

### Builder

```cpp showLineNumbers={false}
class holoscan::ChannelEndpointCatalog::Builder
```

Build or edit one immutable external endpoint catalog.

The builder owns all copied authoring state. It creates no transport service, performs no attachment, and cannot mutate a catalog that has already been built. Build-time validation is identical for graph-derived, parsed, and independently authored catalogs.

| Name     | Type                       | Description |
| -------- | -------------------------- | ----------- |
| `state_` | `std::unique_ptr< State >` |             |