# Class UserId (1.32.0)

1.32.0 (latest) 1.29.0 1.28.2 1.27.0 1.26.1 1.25.0 1.24.1 1.23.0 1.22.0 1.21.2 1.20.0 1.19.1 1.18.1 1.17.1 1.16.1 1.15.0 1.14.0 1.13.0 1.12.1 1.11.1 1.10.0 1.9.0 1.8.3 1.7.1 1.6.1 1.5.0 1.4.1 1.3.1 1.2.0 1.1.2 1.0.0 0.4.2 0.3.3 0.2.1 0.1.0

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

An identifier associated with a user.

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** |
| `email` | `str` Optional. An email address. This field is a member of `oneof`_ `id_oneof`. |
| `phone_number` | `str` Optional. A phone number. Should use the E.164 format. This field is a member of `oneof`_ `id_oneof`. |
| `username` | `str` Optional. A unique username, if different from all the other identifiers and `account_id` that are provided. Can be a unique login handle or display name for a user. This field is a member of `oneof`_ `id_oneof`. |