# Generated by the protocol buffer compiler.  DO NOT EDIT!
# sources: recursivemessage.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


@dataclass(eq=False, repr=False)
class Test(betterproto.Message):
    name: str = betterproto.string_field(1)
    child: "Test" = betterproto.message_field(2)
    intermediate: "Intermediate" = betterproto.message_field(3)


@dataclass(eq=False, repr=False)
class Intermediate(betterproto.Message):
    number: int = betterproto.int32_field(1)
    child: "Test" = betterproto.message_field(2)


rebuild_dataclass(Test)  # type: ignore
rebuild_dataclass(Intermediate)  # type: ignore
