<br />

Added: HEAD

## **PROTOCOLS**

## Metadata

*Defined in [fuchsia.driver.metadata/fuchsia.driver.metadata.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.driver.metadata/fuchsia.driver.metadata.fidl;l=9)*

### GetPersistedMetadata

Retrieve the persisted metadata provided by the server. Returns ZX_ERR_NOT_FOUND if the
server does not have metadata to provide.

#### Request

\<EMPTY\>

#### Response

| Name | Type |
|---|---|
| `payload` | `https://fuchsia.dev/reference/fidl/fuchsia.driver.metadata#Metadata_GetPersistedMetadata_Result` |

## **STRUCTS**

### DictionaryEntry

*Defined in [fuchsia.driver.metadata/dictionary.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.driver.metadata/dictionary.fidl;l=18)*

A key/value pair in a `Dictionary`.

<br />

| Field | Type | Description | Default |
|---|---|---|---|
| `key` | `string:1024` | The key for a dictionary entry. Nested dictionaries are represented by flattening the keys using '.' as a separator. For example, a key "a.b" with value 42 represents a dictionary "a" containing a key "b" with value 42. | No default |
| `value` | `https://fuchsia.dev/reference/fidl/fuchsia.driver.metadata#DictionaryValue` | The value associated with the `key`. | No default |

### Metadata_GetPersistedMetadata_Response

*Defined in [fuchsia.driver.metadata/fuchsia.driver.metadata.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.driver.metadata/fuchsia.driver.metadata.fidl;l=12)*

| Field | Type | Description | Default |
|---|---|---|---|
| `persisted_metadata` | `vector<uint8>` | The persisted metadata. Assumed to be a persisted FIDL object. The actual type of the FIDL object is decided outside of this function. | No default |

## **TABLES**

### Dictionary

*Defined in [fuchsia.driver.metadata/dictionary.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.driver.metadata/dictionary.fidl;l=12)*

A dictionary-like structure for generic metadata.

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `entries` | `vector<https://fuchsia.dev/reference/fidl/fuchsia.driver.metadata#DictionaryEntry>:1024` | A list of dictionary entries, where each entry is a (key, value) pair. |

## **UNIONS**

### DictionaryValue [flexible](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

*Defined in [fuchsia.driver.metadata/dictionary.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.driver.metadata/dictionary.fidl;l=30)*

A dictionary's value is an integer or a list of integers.

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `int64` | `int64` |   |
| ### 2 | `int64_vec` | `vector<int64>:1024` |   |
| ### 3 | `str` | `string:32768` |   |
| ### 4 | `str_vec` | `vector<string:32768>:1024` |   |
| ### 5 | `boolean` | `bool` |   |

<br />

### Metadata_GetPersistedMetadata_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

*Defined in [fuchsia.driver.metadata/fuchsia.driver.metadata.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.driver.metadata/fuchsia.driver.metadata.fidl;l=12)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.driver.metadata#Metadata_GetPersistedMetadata_Response` |   |
| ### 2 | `err` | `https://fuchsia.dev/reference/zx//https://fuchsia.dev/reference/zx#Status` |   |

<br />

## **CONSTANTS**

| Name | Value | Type | Description |
|---|---|---|---|
| [MAX_KEY_LENGTH](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.driver.metadata/dictionary.fidl;l=8) | `1024` | `uint32` |   |
| [MAX_NUM_ENTRIES](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.driver.metadata/dictionary.fidl;l=7) | `1024` | `uint32` |   |
| [MAX_NUM_VALUE_ITEMS](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.driver.metadata/dictionary.fidl;l=6) | `1024` | `uint32` |   |
| [MAX_VALUE_LENGTH](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.driver.metadata/dictionary.fidl;l=9) | `32768` | `uint32` |   |

## **SERVICES**

### Service

*Defined in [fuchsia.driver.metadata/fuchsia.driver.metadata.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.driver.metadata/fuchsia.driver.metadata.fidl;l=19)*

| Name | Type | Transport |
|---|---|---|
| [metadata](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.driver.metadata/fuchsia.driver.metadata.fidl;l=20) | `fuchsia.driver.metadata/Metadata` | Channel |

<br />