# tf.compat.v1.flags.EnumClassFlag

<br />

Basic enum flag; its value is an enum class's member.

Inherits From: [`Flag`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/compat/v1/flags/Flag)

    tf.compat.v1.flags.EnumClassFlag(
        name: Text,
        default: Union[Optional[_ET], Text],
        help: Optional[Text],
        enum_class: Type[_ET],
        short_name: Optional[Text] = None,
        case_sensitive: bool = False,
        **args
    )

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `value` | <br /> <br /> |

<br />

## Methods

### `flag_type`

    flag_type() -> Text

Returns a str that describes the type of the flag.

> [!NOTE]
> **Note:** we use strings, and not the types.\*Type constants because our flags can have more exotic types, e.g., 'comma separated list of strings', 'whitespace separated list of strings', etc.

### `parse`

    parse(
        argument: Union[Text, Optional[_T]]
    ) -> None

Parses string and sets flag value.

<br />

<br />

<br />

| Args ||
|---|---|
| `argument` | str or the correct flag value type, argument to be parsed. |

<br />

### `serialize`

    serialize() -> Text

Serializes the flag.

### `unparse`

    unparse() -> None

### `__bool__`

    __bool__()

### `__eq__`

    __eq__(
        other
    )

Return self==value.

### `__ge__`

    __ge__(
        other, NotImplemented=NotImplemented
    )

Return a \>= b. Computed by @total_ordering from (not a \< b).

### `__gt__`

    __gt__(
        other, NotImplemented=NotImplemented
    )

Return a \> b. Computed by @total_ordering from (not a \< b) and (a != b).

### `__le__`

    __le__(
        other, NotImplemented=NotImplemented
    )

Return a \<= b. Computed by @total_ordering from (a \< b) or (a == b).

### `__lt__`

    __lt__(
        other
    )

Return self\<value.