# FileSensitivityLabel

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

A single Purview / SPE sensitivity label attached to a file. Mirrors the
C# FileSensitivityLabel: the string fields are nullable from the source JSON,
so the wrapper preserves nulls instead of forcing empty strings. bHasProtection
is a plain boolean: when the source JSON omits "hasProtection" it defaults to
FALSE, which is the safe value for this advisory-only UX hint.

- **Full name:** `MFiles.FileSensitivityLabel`
- **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-label_id"></a>`label_id` | `string` | 1 | Stable identifier of the label. May be null. |
| <a id="f-label_name"></a>`label_name` | `string` | 2 | Human-readable display name. May be null. |
| <a id="f-tooltip"></a>`tooltip` | `string` | 3 | Hover tooltip text. May be null. |
| <a id="f-color"></a>`color` | `string` | 4 | Color hint (e.g. "#FF0000"). May be null. |
| <a id="f-has_protection"></a>`has_protection` | `bool` | 5 | TRUE if the label applies encryption/rights-protection. Defaults to FALSE when absent. |

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

## Used in fields

- [`FileSensitivityLabelInfo.labels`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.FileSensitivityLabelInfo/index.md#f-labels): Labels attached to the file.
