# Automatically generated by pb2py
# fmt: off
from .. import protobuf as p


class Failure(p.MessageType):
    MESSAGE_WIRE_TYPE = 3

    def __init__(
        self,
        code: int = None,
        message: str = None,
    ) -> None:
        self.code = code
        self.message = message

    @classmethod
    def get_fields(cls):
        return {
            1: ('code', p.UVarintType, 0),
            2: ('message', p.UnicodeType, 0),
        }