# Class LocalizedMessage (0.12.0)

0.12.0 (latest) 0.11.0 0.4.0 0.3.0 0.2.0 0.1.8

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

Provides a localized error message that is safe to return to
the user which can be attached to an RPC error.

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

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `locale` | `str` The locale used following the specification defined at https://www.rfc-editor.org/rfc/bcp/bcp47.txt. Examples are: "en-US", "fr-CH", "es-MX". This field is a member of `oneof`_ `_locale`. |
| `message` | `str` The localized error message in the above locale. This field is a member of `oneof`_ `_message`. |