# Class NamedPort (0.12.0)

0.12.0 (latest) 0.11.0 0.4.0 0.3.0 0.2.0 0.1.8

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

The named port. For example: \<"http", 80\>.

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

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `name` | `str` The name for this named port. The name must be 1-63 characters long, and comply withRFC1035. This field is a member of `oneof`_ `_name`. |
| `port` | `int` The port number, which can be a value between 1 and 65535. This field is a member of `oneof`_ `_port`. |