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

from dataclasses import dataclass

import betterproto


class TestMsg(betterproto.Enum):
    """This is the nested enum."""

    NONE = 0
    THIS = 1


@dataclass(eq=False, repr=False)
class Test(betterproto.Message):
    """A test message with a nested message inside of it."""

    nested: "TestNested" = betterproto.message_field(1)
    sibling: "Sibling" = betterproto.message_field(2)
    sibling2: "Sibling" = betterproto.message_field(3)
    msg: "TestMsg" = betterproto.enum_field(4)


@dataclass(eq=False, repr=False)
class TestNested(betterproto.Message):
    """This is the nested type."""

    count: int = betterproto.int32_field(1)
    """Stores a simple counter."""


@dataclass(eq=False, repr=False)
class Sibling(betterproto.Message):
    foo: int = betterproto.int32_field(1)
