# MetadataStructureResourceRef

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.MetadataStructureResourceRef/

Struct for a metadata structure resource reference. Carries the resource content either
inline as a data URI, or as a relative path. At most one of the two is set.

- **Full name:** `MFiles.MetadataStructureResourceRef`
- **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-uri"></a>`uri` | `string` | 1 | Data URI carrying the content inline. |
| <a id="f-path"></a>`path` | `string` | 2 | Relative path to the content. |

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

## Used in fields

- [`MetadataStructureSecretRef.ref`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.MetadataStructureSecretRef/index.md#f-ref): The credential payload.
- [`ObjectTypeDecl.icon`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ObjectTypeDecl/index.md#f-icon): The icon resource reference.
- [`PropertyDefDecl.icon`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.PropertyDefDecl/index.md#f-icon): Per-language translations.
- [`PropertyDefDecl.automatic_numbering_code`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.PropertyDefDecl/index.md#f-automatic_numbering_code): The automatic numbering VBScript resource reference.
- [`PropertyDefDecl.calc_with_vbscript`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.PropertyDefDecl/index.md#f-calc_with_vbscript): The calculated-value VBScript resource reference.
- [`PropertyDefDecl.validation_code`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.PropertyDefDecl/index.md#f-validation_code): The validation VBScript resource reference.
- [`StateDecl.action_code`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.StateDecl/index.md#f-action_code): The action VBScript resource reference.
- [`StateTransitionDecl.trigger_code`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.StateTransitionDecl/index.md#f-trigger_code): The trigger VBScript resource reference.
- [`ValueListItemDecl.icon`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ValueListItemDecl/index.md#f-icon): The icon of the item.
