# generated by datamodel-codegen:
#   filename:  proto2.proto
#   timestamp: 2019-07-26T00:00:00+00:00

from __future__ import annotations

from enum import Enum

from pydantic import BaseModel, ConfigDict


class ExampleLegacyLegacyStatus(Enum):
    LEGACY_UNKNOWN = 'LEGACY_UNKNOWN'
    LEGACY_ACTIVE = 'LEGACY_ACTIVE'


class ExampleLegacyLegacyMessageLegacyGroup(BaseModel):
    model_config = ConfigDict(
        extra='forbid',
    )
    ignored: str | None = None


class ExampleLegacyLegacyMessage(BaseModel):
    model_config = ConfigDict(
        extra='forbid',
    )
    id: str
    count: int | None = 7
    enabled: bool | None = True
    tags: list[str] | None = []
    ratio: float | None = float('inf')
    status: ExampleLegacyLegacyStatus | None = 'LEGACY_ACTIVE'
    title: str | None = 'legacy'
    annotated: str | None = 'kept'
    annotation_only: str | None = None
    escaped: str | None = 'a"b'
    empty_default: str | None = ''
    multiline_option: str | None = 'wrapped'
    bracket_default: str | None = 'a]b'
    legacygroup: ExampleLegacyLegacyMessageLegacyGroup | None = None
