File: nested_pb2.pyi

package info (click to toggle)
mypy-protobuf 3.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 476 kB
  • sloc: python: 1,383; sh: 114; makefile: 10
file content (79 lines) | stat: -rw-r--r-- 3,498 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
"""
@generated by mypy-protobuf.  Do not edit manually!
isort:skip_file
"""
import builtins
import google.protobuf.descriptor
import google.protobuf.internal.enum_type_wrapper
import google.protobuf.message
import testproto.test3_pb2
import typing
import typing_extensions

DESCRIPTOR: google.protobuf.descriptor.FileDescriptor

class Nested(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor
    A_FIELD_NUMBER: builtins.int
    a: testproto.test3_pb2.OuterEnum.ValueType
    def __init__(self,
        *,
        a: testproto.test3_pb2.OuterEnum.ValueType = ...,
        ) -> None: ...
    def ClearField(self, field_name: typing_extensions.Literal["a",b"a"]) -> None: ...
global___Nested = Nested

class AnotherNested(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor
    class _NestedEnum:
        ValueType = typing.NewType('ValueType', builtins.int)
        V: typing_extensions.TypeAlias = ValueType
    class _NestedEnumEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[AnotherNested._NestedEnum.ValueType], builtins.type):
        DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
        INVALID: AnotherNested._NestedEnum.ValueType  # 0
        ONE: AnotherNested._NestedEnum.ValueType  # 1
        TWO: AnotherNested._NestedEnum.ValueType  # 2
    class NestedEnum(_NestedEnum, metaclass=_NestedEnumEnumTypeWrapper):
        pass

    INVALID: AnotherNested.NestedEnum.ValueType  # 0
    ONE: AnotherNested.NestedEnum.ValueType  # 1
    TWO: AnotherNested.NestedEnum.ValueType  # 2

    class NestedMessage(google.protobuf.message.Message):
        DESCRIPTOR: google.protobuf.descriptor.Descriptor
        class _NestedEnum2:
            ValueType = typing.NewType('ValueType', builtins.int)
            V: typing_extensions.TypeAlias = ValueType
        class _NestedEnum2EnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[AnotherNested.NestedMessage._NestedEnum2.ValueType], builtins.type):
            DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
            UNDEFINED: AnotherNested.NestedMessage._NestedEnum2.ValueType  # 0
            NESTED_ENUM1: AnotherNested.NestedMessage._NestedEnum2.ValueType  # 1
            NESTED_ENUM2: AnotherNested.NestedMessage._NestedEnum2.ValueType  # 2
        class NestedEnum2(_NestedEnum2, metaclass=_NestedEnum2EnumTypeWrapper):
            pass

        UNDEFINED: AnotherNested.NestedMessage.NestedEnum2.ValueType  # 0
        NESTED_ENUM1: AnotherNested.NestedMessage.NestedEnum2.ValueType  # 1
        NESTED_ENUM2: AnotherNested.NestedMessage.NestedEnum2.ValueType  # 2

        S_FIELD_NUMBER: builtins.int
        B_FIELD_NUMBER: builtins.int
        NE_FIELD_NUMBER: builtins.int
        NE2_FIELD_NUMBER: builtins.int
        s: typing.Text
        b: builtins.bool
        ne: global___AnotherNested.NestedEnum.ValueType
        ne2: global___AnotherNested.NestedMessage.NestedEnum2.ValueType
        def __init__(self,
            *,
            s: typing.Text = ...,
            b: builtins.bool = ...,
            ne: global___AnotherNested.NestedEnum.ValueType = ...,
            ne2: global___AnotherNested.NestedMessage.NestedEnum2.ValueType = ...,
            ) -> None: ...
        def ClearField(self, field_name: typing_extensions.Literal["b",b"b","ne",b"ne","ne2",b"ne2","s",b"s"]) -> None: ...

    def __init__(self,
        ) -> None: ...
global___AnotherNested = AnotherNested