# MetadataStructureNamedReference

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Reference](https://developer.m-files.com/APIs/gRPC-API/Reference/index.md) > [Messages](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.MetadataStructureNamedReference/

Struct for a named reference of a metadata structure item.

- **Full name:** `MFiles.MetadataStructureNamedReference`
- **Proto file:** [`mfiles/structs.proto`](https://developer.m-files.com/APIs/gRPC-API/downloads/proto/mfiles/structs.proto)

<a id="fields"></a>

## Fields

| Field | Type | Number | Description |
|---|---|---|---|
| <a id="f-reference_type"></a>`reference_type` | [`MetadataStructureItem`](https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/MFiles.MetadataStructureItem/index.md) | 1 | The structure element type. |
| <a id="f-name"></a>`name` | `string` | 2 | The name part of the named reference. |
| <a id="f-element_id"></a>`element_id` | `int32` | 3 | The internal ID of the structure element. |
| <a id="f-type_id"></a>`type_id` | `int32` | 4 | The internal ID of the structure element type. Relevant for MetadataStructureItem::valueListItem only, otherwise ignored. |

<a id="used-in-fields"></a>

## Used in fields

- [`DeclarativeMetadataStructure.named_references`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.DeclarativeMetadataStructure/index.md#f-named_references): Vault languages. The entry with pwszLanguageCode="" is the default language.
