# Generated by the protocol buffer compiler.  DO NOT EDIT!
# sources: nested2.proto
# plugin: python-betterproto
# This file has been @generated

from typing import TYPE_CHECKING


if TYPE_CHECKING:
    from dataclasses import dataclass
else:
    from pydantic.dataclasses import dataclass

import betterproto
from pydantic.dataclasses import rebuild_dataclass

from . import equipment


class GamePlayerRace(betterproto.Enum):
    human = 0
    orc = 1

    @classmethod
    def __get_pydantic_core_schema__(cls, _source_type, _handler):
        from pydantic_core import core_schema

        return core_schema.int_schema(ge=0)


@dataclass(eq=False, repr=False)
class Game(betterproto.Message):
    pass


@dataclass(eq=False, repr=False)
class GamePlayer(betterproto.Message):
    pass


@dataclass(eq=False, repr=False)
class Test(betterproto.Message):
    game: "Game" = betterproto.message_field(1)
    game_player: "GamePlayer" = betterproto.message_field(2)
    game_player_race: "GamePlayerRace" = betterproto.enum_field(3)
    weapon: "equipment.Weapon" = betterproto.message_field(4)


rebuild_dataclass(Test)  # type: ignore
