

# Generated by the protocol buffer compiler.  DO NOT EDIT!
# sources: blickfeld/hardware/data/recovery.proto
# plugin: python-betterproto
from dataclasses import dataclass

import blickfeld_qb2.betterproto as betterproto
import blickfeld_qb2.betterproto.lib.google.protobuf as betterproto_lib_google_protobuf


class RecoveryReason(betterproto.Enum):
    """Possible reasons for entering the recovery mode."""

    REASON_UNSPECIFIED = 0
    """Recovery mode is not active"""

    REASON_BOOT_ATTEMPTS_EXCEEDED = 1
    """Recovery mode entered because of too many boot attempts"""

    REASON_FIRMWARE_UPDATE_FAILED = 2
    """Recovery mode entered because of a failed firmware update"""


@dataclass(eq=False, repr=False)
class Recovery(betterproto.Message):
    """A recovery message contains information about the recovery state."""

    reason: "RecoveryReason" = betterproto.enum_field(1)
    """The reason for entering recovery mode."""
