# Class Literal (0.15.0)

0.15.0 (latest) 0.14.0 0.13.0 0.12.0 0.11.15 0.10.0 0.9.1 0.8.0 0.7.2 0.6.0 0.5.0 0.4.3 0.3.1 0.2.1 0.1.0

    Literal(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Literal data.

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `literal_string` | `str` Literal string data. This field is a member of `oneof`_ `literal_data`. |
| `literal_bytes` | `bytes` Literal byte data. This field is a member of `oneof`_ `literal_data`. |
| `relative_path` | `str` Required. The identifier of the literal entry. |