from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union

DESCRIPTOR: _descriptor.FileDescriptor

class ErrorCode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
    __slots__ = ()
    OK: _ClassVar[ErrorCode]
    CANBUS_ERROR: _ClassVar[ErrorCode]
    CAN_CLIENT_ERROR_BASE: _ClassVar[ErrorCode]
    CAN_CLIENT_ERROR_OPEN_DEVICE_FAILED: _ClassVar[ErrorCode]
    CAN_CLIENT_ERROR_FRAME_NUM: _ClassVar[ErrorCode]
    CAN_CLIENT_ERROR_SEND_FAILED: _ClassVar[ErrorCode]
    CAN_CLIENT_ERROR_RECV_FAILED: _ClassVar[ErrorCode]
    MOTOR_ERROR: _ClassVar[ErrorCode]
    MOTOR_ERROR_SET_ZERO: _ClassVar[ErrorCode]
OK: ErrorCode
CANBUS_ERROR: ErrorCode
CAN_CLIENT_ERROR_BASE: ErrorCode
CAN_CLIENT_ERROR_OPEN_DEVICE_FAILED: ErrorCode
CAN_CLIENT_ERROR_FRAME_NUM: ErrorCode
CAN_CLIENT_ERROR_SEND_FAILED: ErrorCode
CAN_CLIENT_ERROR_RECV_FAILED: ErrorCode
MOTOR_ERROR: ErrorCode
MOTOR_ERROR_SET_ZERO: ErrorCode

class StatusPb(_message.Message):
    __slots__ = ("error_code", "msg")
    ERROR_CODE_FIELD_NUMBER: _ClassVar[int]
    MSG_FIELD_NUMBER: _ClassVar[int]
    error_code: ErrorCode
    msg: str
    def __init__(self, error_code: _Optional[_Union[ErrorCode, str]] = ..., msg: _Optional[str] = ...) -> None: ...
