Class LocalizedMessage (1.23.0)

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.