Class LocalizedMessage (1.6.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.

Attributes

NameDescription
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``.

Inheritance

builtins.object > proto.message.Message > LocalizedMessage