massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / third_party / 2and3 / google / protobuf / map_unittest_pb2.pyi
diff --git a/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/third_party/2and3/google/protobuf/map_unittest_pb2.pyi b/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/third_party/2and3/google/protobuf/map_unittest_pb2.pyi
new file mode 100644 (file)
index 0000000..24b5dda
--- /dev/null
@@ -0,0 +1,882 @@
+from google.protobuf.message import (\r
+    Message,\r
+)\r
+from google.protobuf.unittest_no_arena_pb2 import (\r
+    ForeignMessage,\r
+)\r
+from google.protobuf.unittest_pb2 import (\r
+    ForeignMessage as ForeignMessage1,\r
+    TestAllTypes,\r
+    TestRequired,\r
+)\r
+from typing import (\r
+    List,\r
+    Mapping,\r
+    MutableMapping,\r
+    Optional,\r
+    Text,\r
+    Tuple,\r
+    cast,\r
+)\r
+\r
+\r
+class MapEnum(int):\r
+\r
+    @classmethod\r
+    def Name(cls, number: int) -> bytes: ...\r
+\r
+    @classmethod\r
+    def Value(cls, name: bytes) -> MapEnum: ...\r
+\r
+    @classmethod\r
+    def keys(cls) -> List[bytes]: ...\r
+\r
+    @classmethod\r
+    def values(cls) -> List[MapEnum]: ...\r
+\r
+    @classmethod\r
+    def items(cls) -> List[Tuple[bytes, MapEnum]]: ...\r
+\r
+\r
+MAP_ENUM_FOO: MapEnum\r
+MAP_ENUM_BAR: MapEnum\r
+MAP_ENUM_BAZ: MapEnum\r
+\r
+\r
+class TestMap(Message):\r
+\r
+    class MapInt32Int32Entry(Message):\r
+        key = ...  # type: int\r
+        value = ...  # type: int\r
+\r
+        def __init__(self,\r
+                     key: Optional[int] = ...,\r
+                     value: Optional[int] = ...,\r
+                     ) -> None: ...\r
+\r
+        @classmethod\r
+        def FromString(cls, s: bytes) -> TestMap.MapInt32Int32Entry: ...\r
+\r
+    class MapInt64Int64Entry(Message):\r
+        key = ...  # type: int\r
+        value = ...  # type: int\r
+\r
+        def __init__(self,\r
+                     key: Optional[int] = ...,\r
+                     value: Optional[int] = ...,\r
+                     ) -> None: ...\r
+\r
+        @classmethod\r
+        def FromString(cls, s: bytes) -> TestMap.MapInt64Int64Entry: ...\r
+\r
+    class MapUint32Uint32Entry(Message):\r
+        key = ...  # type: int\r
+        value = ...  # type: int\r
+\r
+        def __init__(self,\r
+                     key: Optional[int] = ...,\r
+                     value: Optional[int] = ...,\r
+                     ) -> None: ...\r
+\r
+        @classmethod\r
+        def FromString(cls, s: bytes) -> TestMap.MapUint32Uint32Entry: ...\r
+\r
+    class MapUint64Uint64Entry(Message):\r
+        key = ...  # type: int\r
+        value = ...  # type: int\r
+\r
+        def __init__(self,\r
+                     key: Optional[int] = ...,\r
+                     value: Optional[int] = ...,\r
+                     ) -> None: ...\r
+\r
+        @classmethod\r
+        def FromString(cls, s: bytes) -> TestMap.MapUint64Uint64Entry: ...\r
+\r
+    class MapSint32Sint32Entry(Message):\r
+        key = ...  # type: int\r
+        value = ...  # type: int\r
+\r
+        def __init__(self,\r
+                     key: Optional[int] = ...,\r
+                     value: Optional[int] = ...,\r
+                     ) -> None: ...\r
+\r
+        @classmethod\r
+        def FromString(cls, s: bytes) -> TestMap.MapSint32Sint32Entry: ...\r
+\r
+    class MapSint64Sint64Entry(Message):\r
+        key = ...  # type: int\r
+        value = ...  # type: int\r
+\r
+        def __init__(self,\r
+                     key: Optional[int] = ...,\r
+                     value: Optional[int] = ...,\r
+                     ) -> None: ...\r
+\r
+        @classmethod\r
+        def FromString(cls, s: bytes) -> TestMap.MapSint64Sint64Entry: ...\r
+\r
+    class MapFixed32Fixed32Entry(Message):\r
+        key = ...  # type: int\r
+        value = ...  # type: int\r
+\r
+        def __init__(self,\r
+                     key: Optional[int] = ...,\r
+                     value: Optional[int] = ...,\r
+                     ) -> None: ...\r
+\r
+        @classmethod\r
+        def FromString(cls, s: bytes) -> TestMap.MapFixed32Fixed32Entry: ...\r
+\r
+    class MapFixed64Fixed64Entry(Message):\r
+        key = ...  # type: int\r
+        value = ...  # type: int\r
+\r
+        def __init__(self,\r
+                     key: Optional[int] = ...,\r
+                     value: Optional[int] = ...,\r
+                     ) -> None: ...\r
+\r
+        @classmethod\r
+        def FromString(cls, s: bytes) -> TestMap.MapFixed64Fixed64Entry: ...\r
+\r
+    class MapSfixed32Sfixed32Entry(Message):\r
+        key = ...  # type: int\r
+        value = ...  # type: int\r
+\r
+        def __init__(self,\r
+                     key: Optional[int] = ...,\r
+                     value: Optional[int] = ...,\r
+                     ) -> None: ...\r
+\r
+        @classmethod\r
+        def FromString(cls, s: bytes) -> TestMap.MapSfixed32Sfixed32Entry: ...\r
+\r
+    class MapSfixed64Sfixed64Entry(Message):\r
+        key = ...  # type: int\r
+        value = ...  # type: int\r
+\r
+        def __init__(self,\r
+                     key: Optional[int] = ...,\r
+                     value: Optional[int] = ...,\r
+                     ) -> None: ...\r
+\r
+        @classmethod\r
+        def FromString(cls, s: bytes) -> TestMap.MapSfixed64Sfixed64Entry: ...\r
+\r
+    class MapInt32FloatEntry(Message):\r
+        key = ...  # type: int\r
+        value = ...  # type: float\r
+\r
+        def __init__(self,\r
+                     key: Optional[int] = ...,\r
+                     value: Optional[float] = ...,\r
+                     ) -> None: ...\r
+\r
+        @classmethod\r
+        def FromString(cls, s: bytes) -> TestMap.MapInt32FloatEntry: ...\r
+\r
+    class MapInt32DoubleEntry(Message):\r
+        key = ...  # type: int\r
+        value = ...  # type: float\r
+\r
+        def __init__(self,\r
+                     key: Optional[int] = ...,\r
+                     value: Optional[float] = ...,\r
+                     ) -> None: ...\r
+\r
+        @classmethod\r
+        def FromString(cls, s: bytes) -> TestMap.MapInt32DoubleEntry: ...\r
+\r
+    class MapBoolBoolEntry(Message):\r
+        key = ...  # type: bool\r
+        value = ...  # type: bool\r
+\r
+        def __init__(self,\r
+                     key: Optional[bool] = ...,\r
+                     value: Optional[bool] = ...,\r
+                     ) -> None: ...\r
+\r
+        @classmethod\r
+        def FromString(cls, s: bytes) -> TestMap.MapBoolBoolEntry: ...\r
+\r
+    class MapStringStringEntry(Message):\r
+        key = ...  # type: Text\r
+        value = ...  # type: Text\r
+\r
+        def __init__(self,\r
+                     key: Optional[Text] = ...,\r
+                     value: Optional[Text] = ...,\r
+                     ) -> None: ...\r
+\r
+        @classmethod\r
+        def FromString(cls, s: bytes) -> TestMap.MapStringStringEntry: ...\r
+\r
+    class MapInt32BytesEntry(Message):\r
+        key = ...  # type: int\r
+        value = ...  # type: bytes\r
+\r
+        def __init__(self,\r
+                     key: Optional[int] = ...,\r
+                     value: Optional[bytes] = ...,\r
+                     ) -> None: ...\r
+\r
+        @classmethod\r
+        def FromString(cls, s: bytes) -> TestMap.MapInt32BytesEntry: ...\r
+\r
+    class MapInt32EnumEntry(Message):\r
+        key = ...  # type: int\r
+        value = ...  # type: MapEnum\r
+\r
+        def __init__(self,\r
+                     key: Optional[int] = ...,\r
+                     value: Optional[MapEnum] = ...,\r
+                     ) -> None: ...\r
+\r
+        @classmethod\r
+        def FromString(cls, s: bytes) -> TestMap.MapInt32EnumEntry: ...\r
+\r
+    class MapInt32ForeignMessageEntry(Message):\r
+        key = ...  # type: int\r
+\r
+        @property\r
+        def value(self) -> ForeignMessage1: ...\r
+\r
+        def __init__(self,\r
+                     key: Optional[int] = ...,\r
+                     value: Optional[ForeignMessage1] = ...,\r
+                     ) -> None: ...\r
+\r
+        @classmethod\r
+        def FromString(cls, s: bytes) -> TestMap.MapInt32ForeignMessageEntry: ...\r
+\r
+    class MapStringForeignMessageEntry(Message):\r
+        key = ...  # type: Text\r
+\r
+        @property\r
+        def value(self) -> ForeignMessage1: ...\r
+\r
+        def __init__(self,\r
+                     key: Optional[Text] = ...,\r
+                     value: Optional[ForeignMessage1] = ...,\r
+                     ) -> None: ...\r
+\r
+        @classmethod\r
+        def FromString(\r
+            cls, s: bytes) -> TestMap.MapStringForeignMessageEntry: ...\r
+\r
+    class MapInt32AllTypesEntry(Message):\r
+        key = ...  # type: int\r
+\r
+        @property\r
+        def value(self) -> TestAllTypes: ...\r
+\r
+        def __init__(self,\r
+                     key: Optional[int] = ...,\r
+                     value: Optional[TestAllTypes] = ...,\r
+                     ) -> None: ...\r
+\r
+        @classmethod\r
+        def FromString(cls, s: bytes) -> TestMap.MapInt32AllTypesEntry: ...\r
+\r
+    @property\r
+    def map_int32_int32(self) -> MutableMapping[int, int]: ...\r
+\r
+    @property\r
+    def map_int64_int64(self) -> MutableMapping[int, int]: ...\r
+\r
+    @property\r
+    def map_uint32_uint32(self) -> MutableMapping[int, int]: ...\r
+\r
+    @property\r
+    def map_uint64_uint64(self) -> MutableMapping[int, int]: ...\r
+\r
+    @property\r
+    def map_sint32_sint32(self) -> MutableMapping[int, int]: ...\r
+\r
+    @property\r
+    def map_sint64_sint64(self) -> MutableMapping[int, int]: ...\r
+\r
+    @property\r
+    def map_fixed32_fixed32(self) -> MutableMapping[int, int]: ...\r
+\r
+    @property\r
+    def map_fixed64_fixed64(self) -> MutableMapping[int, int]: ...\r
+\r
+    @property\r
+    def map_sfixed32_sfixed32(self) -> MutableMapping[int, int]: ...\r
+\r
+    @property\r
+    def map_sfixed64_sfixed64(self) -> MutableMapping[int, int]: ...\r
+\r
+    @property\r
+    def map_int32_float(self) -> MutableMapping[int, float]: ...\r
+\r
+    @property\r
+    def map_int32_double(self) -> MutableMapping[int, float]: ...\r
+\r
+    @property\r
+    def map_bool_bool(self) -> MutableMapping[bool, bool]: ...\r
+\r
+    @property\r
+    def map_string_string(self) -> MutableMapping[Text, Text]: ...\r
+\r
+    @property\r
+    def map_int32_bytes(self) -> MutableMapping[int, bytes]: ...\r
+\r
+    @property\r
+    def map_int32_enum(self) -> MutableMapping[int, MapEnum]: ...\r
+\r
+    @property\r
+    def map_int32_foreign_message(\r
+        self) -> MutableMapping[int, ForeignMessage1]: ...\r
+\r
+    @property\r
+    def map_string_foreign_message(\r
+        self) -> MutableMapping[Text, ForeignMessage1]: ...\r
+\r
+    @property\r
+    def map_int32_all_types(self) -> MutableMapping[int, TestAllTypes]: ...\r
+\r
+    def __init__(self,\r
+                 map_int32_int32: Optional[Mapping[int, int]]=...,\r
+                 map_int64_int64: Optional[Mapping[int, int]]=...,\r
+                 map_uint32_uint32: Optional[Mapping[int, int]]=...,\r
+                 map_uint64_uint64: Optional[Mapping[int, int]]=...,\r
+                 map_sint32_sint32: Optional[Mapping[int, int]]=...,\r
+                 map_sint64_sint64: Optional[Mapping[int, int]]=...,\r
+                 map_fixed32_fixed32: Optional[Mapping[int, int]]=...,\r
+                 map_fixed64_fixed64: Optional[Mapping[int, int]]=...,\r
+                 map_sfixed32_sfixed32: Optional[Mapping[int, int]]=...,\r
+                 map_sfixed64_sfixed64: Optional[Mapping[int, int]]=...,\r
+                 map_int32_float: Optional[Mapping[int, float]]=...,\r
+                 map_int32_double: Optional[Mapping[int, float]]=...,\r
+                 map_bool_bool: Optional[Mapping[bool, bool]]=...,\r
+                 map_string_string: Optional[Mapping[Text, Text]]=...,\r
+                 map_int32_bytes: Optional[Mapping[int, bytes]]=...,\r
+                 map_int32_enum: Optional[Mapping[int, MapEnum]]=...,\r
+                 map_int32_foreign_message: Optional[Mapping[int, ForeignMessage1]]=...,\r
+                 map_string_foreign_message: Optional[Mapping[Text, ForeignMessage1]]=...,\r
+                 map_int32_all_types: Optional[Mapping[int, TestAllTypes]]=...,\r
+                 ) -> None: ...\r
+\r
+    @classmethod\r
+    def FromString(cls, s: bytes) -> TestMap: ...\r
+\r
+\r
+class TestMapSubmessage(Message):\r
+\r
+    @property\r
+    def test_map(self) -> TestMap: ...\r
+\r
+    def __init__(self,\r
+                 test_map: Optional[TestMap] = ...,\r
+                 ) -> None: ...\r
+\r
+    @classmethod\r
+    def FromString(cls, s: bytes) -> TestMapSubmessage: ...\r
+\r
+\r
+class TestMessageMap(Message):\r
+\r
+    class MapInt32MessageEntry(Message):\r
+        key = ...  # type: int\r
+\r
+        @property\r
+        def value(self) -> TestAllTypes: ...\r
+\r
+        def __init__(self,\r
+                     key: Optional[int] = ...,\r
+                     value: Optional[TestAllTypes] = ...,\r
+                     ) -> None: ...\r
+\r
+        @classmethod\r
+        def FromString(cls, s: bytes) -> TestMessageMap.MapInt32MessageEntry: ...\r
+\r
+    @property\r
+    def map_int32_message(self) -> MutableMapping[int, TestAllTypes]: ...\r
+\r
+    def __init__(self,\r
+                 map_int32_message: Optional[Mapping[int, TestAllTypes]]=...,\r
+                 ) -> None: ...\r
+\r
+    @classmethod\r
+    def FromString(cls, s: bytes) -> TestMessageMap: ...\r
+\r
+\r
+class TestSameTypeMap(Message):\r
+\r
+    class Map1Entry(Message):\r
+        key = ...  # type: int\r
+        value = ...  # type: int\r
+\r
+        def __init__(self,\r
+                     key: Optional[int] = ...,\r
+                     value: Optional[int] = ...,\r
+                     ) -> None: ...\r
+\r
+        @classmethod\r
+        def FromString(cls, s: bytes) -> TestSameTypeMap.Map1Entry: ...\r
+\r
+    class Map2Entry(Message):\r
+        key = ...  # type: int\r
+        value = ...  # type: int\r
+\r
+        def __init__(self,\r
+                     key: Optional[int] = ...,\r
+                     value: Optional[int] = ...,\r
+                     ) -> None: ...\r
+\r
+        @classmethod\r
+        def FromString(cls, s: bytes) -> TestSameTypeMap.Map2Entry: ...\r
+\r
+    @property\r
+    def map1(self) -> MutableMapping[int, int]: ...\r
+\r
+    @property\r
+    def map2(self) -> MutableMapping[int, int]: ...\r
+\r
+    def __init__(self,\r
+                 map1: Optional[Mapping[int, int]]=...,\r
+                 map2: Optional[Mapping[int, int]]=...,\r
+                 ) -> None: ...\r
+\r
+    @classmethod\r
+    def FromString(cls, s: bytes) -> TestSameTypeMap: ...\r
+\r
+\r
+class TestRequiredMessageMap(Message):\r
+\r
+    class MapFieldEntry(Message):\r
+        key = ...  # type: int\r
+\r
+        @property\r
+        def value(self) -> TestRequired: ...\r
+\r
+        def __init__(self,\r
+                     key: Optional[int] = ...,\r
+                     value: Optional[TestRequired] = ...,\r
+                     ) -> None: ...\r
+\r
+        @classmethod\r
+        def FromString(\r
+            cls, s: bytes) -> TestRequiredMessageMap.MapFieldEntry: ...\r
+\r
+    @property\r
+    def map_field(self) -> MutableMapping[int, TestRequired]: ...\r
+\r
+    def __init__(self,\r
+                 map_field: Optional[Mapping[int, TestRequired]]=...,\r
+                 ) -> None: ...\r
+\r
+    @classmethod\r
+    def FromString(cls, s: bytes) -> TestRequiredMessageMap: ...\r
+\r
+\r
+class TestArenaMap(Message):\r
+\r
+    class MapInt32Int32Entry(Message):\r
+        key = ...  # type: int\r
+        value = ...  # type: int\r
+\r
+        def __init__(self,\r
+                     key: Optional[int] = ...,\r
+                     value: Optional[int] = ...,\r
+                     ) -> None: ...\r
+\r
+        @classmethod\r
+        def FromString(cls, s: bytes) -> TestArenaMap.MapInt32Int32Entry: ...\r
+\r
+    class MapInt64Int64Entry(Message):\r
+        key = ...  # type: int\r
+        value = ...  # type: int\r
+\r
+        def __init__(self,\r
+                     key: Optional[int] = ...,\r
+                     value: Optional[int] = ...,\r
+                     ) -> None: ...\r
+\r
+        @classmethod\r
+        def FromString(cls, s: bytes) -> TestArenaMap.MapInt64Int64Entry: ...\r
+\r
+    class MapUint32Uint32Entry(Message):\r
+        key = ...  # type: int\r
+        value = ...  # type: int\r
+\r
+        def __init__(self,\r
+                     key: Optional[int] = ...,\r
+                     value: Optional[int] = ...,\r
+                     ) -> None: ...\r
+\r
+        @classmethod\r
+        def FromString(cls, s: bytes) -> TestArenaMap.MapUint32Uint32Entry: ...\r
+\r
+    class MapUint64Uint64Entry(Message):\r
+        key = ...  # type: int\r
+        value = ...  # type: int\r
+\r
+        def __init__(self,\r
+                     key: Optional[int] = ...,\r
+                     value: Optional[int] = ...,\r
+                     ) -> None: ...\r
+\r
+        @classmethod\r
+        def FromString(cls, s: bytes) -> TestArenaMap.MapUint64Uint64Entry: ...\r
+\r
+    class MapSint32Sint32Entry(Message):\r
+        key = ...  # type: int\r
+        value = ...  # type: int\r
+\r
+        def __init__(self,\r
+                     key: Optional[int] = ...,\r
+                     value: Optional[int] = ...,\r
+                     ) -> None: ...\r
+\r
+        @classmethod\r
+        def FromString(cls, s: bytes) -> TestArenaMap.MapSint32Sint32Entry: ...\r
+\r
+    class MapSint64Sint64Entry(Message):\r
+        key = ...  # type: int\r
+        value = ...  # type: int\r
+\r
+        def __init__(self,\r
+                     key: Optional[int] = ...,\r
+                     value: Optional[int] = ...,\r
+                     ) -> None: ...\r
+\r
+        @classmethod\r
+        def FromString(cls, s: bytes) -> TestArenaMap.MapSint64Sint64Entry: ...\r
+\r
+    class MapFixed32Fixed32Entry(Message):\r
+        key = ...  # type: int\r
+        value = ...  # type: int\r
+\r
+        def __init__(self,\r
+                     key: Optional[int] = ...,\r
+                     value: Optional[int] = ...,\r
+                     ) -> None: ...\r
+\r
+        @classmethod\r
+        def FromString(cls, s: bytes) -> TestArenaMap.MapFixed32Fixed32Entry: ...\r
+\r
+    class MapFixed64Fixed64Entry(Message):\r
+        key = ...  # type: int\r
+        value = ...  # type: int\r
+\r
+        def __init__(self,\r
+                     key: Optional[int] = ...,\r
+                     value: Optional[int] = ...,\r
+                     ) -> None: ...\r
+\r
+        @classmethod\r
+        def FromString(cls, s: bytes) -> TestArenaMap.MapFixed64Fixed64Entry: ...\r
+\r
+    class MapSfixed32Sfixed32Entry(Message):\r
+        key = ...  # type: int\r
+        value = ...  # type: int\r
+\r
+        def __init__(self,\r
+                     key: Optional[int] = ...,\r
+                     value: Optional[int] = ...,\r
+                     ) -> None: ...\r
+\r
+        @classmethod\r
+        def FromString(\r
+            cls, s: bytes) -> TestArenaMap.MapSfixed32Sfixed32Entry: ...\r
+\r
+    class MapSfixed64Sfixed64Entry(Message):\r
+        key = ...  # type: int\r
+        value = ...  # type: int\r
+\r
+        def __init__(self,\r
+                     key: Optional[int] = ...,\r
+                     value: Optional[int] = ...,\r
+                     ) -> None: ...\r
+\r
+        @classmethod\r
+        def FromString(\r
+            cls, s: bytes) -> TestArenaMap.MapSfixed64Sfixed64Entry: ...\r
+\r
+    class MapInt32FloatEntry(Message):\r
+        key = ...  # type: int\r
+        value = ...  # type: float\r
+\r
+        def __init__(self,\r
+                     key: Optional[int] = ...,\r
+                     value: Optional[float] = ...,\r
+                     ) -> None: ...\r
+\r
+        @classmethod\r
+        def FromString(cls, s: bytes) -> TestArenaMap.MapInt32FloatEntry: ...\r
+\r
+    class MapInt32DoubleEntry(Message):\r
+        key = ...  # type: int\r
+        value = ...  # type: float\r
+\r
+        def __init__(self,\r
+                     key: Optional[int] = ...,\r
+                     value: Optional[float] = ...,\r
+                     ) -> None: ...\r
+\r
+        @classmethod\r
+        def FromString(cls, s: bytes) -> TestArenaMap.MapInt32DoubleEntry: ...\r
+\r
+    class MapBoolBoolEntry(Message):\r
+        key = ...  # type: bool\r
+        value = ...  # type: bool\r
+\r
+        def __init__(self,\r
+                     key: Optional[bool] = ...,\r
+                     value: Optional[bool] = ...,\r
+                     ) -> None: ...\r
+\r
+        @classmethod\r
+        def FromString(cls, s: bytes) -> TestArenaMap.MapBoolBoolEntry: ...\r
+\r
+    class MapStringStringEntry(Message):\r
+        key = ...  # type: Text\r
+        value = ...  # type: Text\r
+\r
+        def __init__(self,\r
+                     key: Optional[Text] = ...,\r
+                     value: Optional[Text] = ...,\r
+                     ) -> None: ...\r
+\r
+        @classmethod\r
+        def FromString(cls, s: bytes) -> TestArenaMap.MapStringStringEntry: ...\r
+\r
+    class MapInt32BytesEntry(Message):\r
+        key = ...  # type: int\r
+        value = ...  # type: bytes\r
+\r
+        def __init__(self,\r
+                     key: Optional[int] = ...,\r
+                     value: Optional[bytes] = ...,\r
+                     ) -> None: ...\r
+\r
+        @classmethod\r
+        def FromString(cls, s: bytes) -> TestArenaMap.MapInt32BytesEntry: ...\r
+\r
+    class MapInt32EnumEntry(Message):\r
+        key = ...  # type: int\r
+        value = ...  # type: MapEnum\r
+\r
+        def __init__(self,\r
+                     key: Optional[int] = ...,\r
+                     value: Optional[MapEnum] = ...,\r
+                     ) -> None: ...\r
+\r
+        @classmethod\r
+        def FromString(cls, s: bytes) -> TestArenaMap.MapInt32EnumEntry: ...\r
+\r
+    class MapInt32ForeignMessageEntry(Message):\r
+        key = ...  # type: int\r
+\r
+        @property\r
+        def value(self) -> ForeignMessage1: ...\r
+\r
+        def __init__(self,\r
+                     key: Optional[int] = ...,\r
+                     value: Optional[ForeignMessage1] = ...,\r
+                     ) -> None: ...\r
+\r
+        @classmethod\r
+        def FromString(\r
+            cls, s: bytes) -> TestArenaMap.MapInt32ForeignMessageEntry: ...\r
+\r
+    class MapInt32ForeignMessageNoArenaEntry(Message):\r
+        key = ...  # type: int\r
+\r
+        @property\r
+        def value(self) -> ForeignMessage: ...\r
+\r
+        def __init__(self,\r
+                     key: Optional[int] = ...,\r
+                     value: Optional[ForeignMessage] = ...,\r
+                     ) -> None: ...\r
+\r
+        @classmethod\r
+        def FromString(\r
+            cls, s: bytes) -> TestArenaMap.MapInt32ForeignMessageNoArenaEntry: ...\r
+\r
+    @property\r
+    def map_int32_int32(self) -> MutableMapping[int, int]: ...\r
+\r
+    @property\r
+    def map_int64_int64(self) -> MutableMapping[int, int]: ...\r
+\r
+    @property\r
+    def map_uint32_uint32(self) -> MutableMapping[int, int]: ...\r
+\r
+    @property\r
+    def map_uint64_uint64(self) -> MutableMapping[int, int]: ...\r
+\r
+    @property\r
+    def map_sint32_sint32(self) -> MutableMapping[int, int]: ...\r
+\r
+    @property\r
+    def map_sint64_sint64(self) -> MutableMapping[int, int]: ...\r
+\r
+    @property\r
+    def map_fixed32_fixed32(self) -> MutableMapping[int, int]: ...\r
+\r
+    @property\r
+    def map_fixed64_fixed64(self) -> MutableMapping[int, int]: ...\r
+\r
+    @property\r
+    def map_sfixed32_sfixed32(self) -> MutableMapping[int, int]: ...\r
+\r
+    @property\r
+    def map_sfixed64_sfixed64(self) -> MutableMapping[int, int]: ...\r
+\r
+    @property\r
+    def map_int32_float(self) -> MutableMapping[int, float]: ...\r
+\r
+    @property\r
+    def map_int32_double(self) -> MutableMapping[int, float]: ...\r
+\r
+    @property\r
+    def map_bool_bool(self) -> MutableMapping[bool, bool]: ...\r
+\r
+    @property\r
+    def map_string_string(self) -> MutableMapping[Text, Text]: ...\r
+\r
+    @property\r
+    def map_int32_bytes(self) -> MutableMapping[int, bytes]: ...\r
+\r
+    @property\r
+    def map_int32_enum(self) -> MutableMapping[int, MapEnum]: ...\r
+\r
+    @property\r
+    def map_int32_foreign_message(\r
+        self) -> MutableMapping[int, ForeignMessage1]: ...\r
+\r
+    @property\r
+    def map_int32_foreign_message_no_arena(\r
+        self) -> MutableMapping[int, ForeignMessage]: ...\r
+\r
+    def __init__(self,\r
+                 map_int32_int32: Optional[Mapping[int, int]]=...,\r
+                 map_int64_int64: Optional[Mapping[int, int]]=...,\r
+                 map_uint32_uint32: Optional[Mapping[int, int]]=...,\r
+                 map_uint64_uint64: Optional[Mapping[int, int]]=...,\r
+                 map_sint32_sint32: Optional[Mapping[int, int]]=...,\r
+                 map_sint64_sint64: Optional[Mapping[int, int]]=...,\r
+                 map_fixed32_fixed32: Optional[Mapping[int, int]]=...,\r
+                 map_fixed64_fixed64: Optional[Mapping[int, int]]=...,\r
+                 map_sfixed32_sfixed32: Optional[Mapping[int, int]]=...,\r
+                 map_sfixed64_sfixed64: Optional[Mapping[int, int]]=...,\r
+                 map_int32_float: Optional[Mapping[int, float]]=...,\r
+                 map_int32_double: Optional[Mapping[int, float]]=...,\r
+                 map_bool_bool: Optional[Mapping[bool, bool]]=...,\r
+                 map_string_string: Optional[Mapping[Text, Text]]=...,\r
+                 map_int32_bytes: Optional[Mapping[int, bytes]]=...,\r
+                 map_int32_enum: Optional[Mapping[int, MapEnum]]=...,\r
+                 map_int32_foreign_message: Optional[Mapping[int, ForeignMessage1]]=...,\r
+                 map_int32_foreign_message_no_arena: Optional[Mapping[int, ForeignMessage]]=...,\r
+                 ) -> None: ...\r
+\r
+    @classmethod\r
+    def FromString(cls, s: bytes) -> TestArenaMap: ...\r
+\r
+\r
+class MessageContainingEnumCalledType(Message):\r
+\r
+    class Type(int):\r
+\r
+        @classmethod\r
+        def Name(cls, number: int) -> bytes: ...\r
+\r
+        @classmethod\r
+        def Value(cls, name: bytes) -> MessageContainingEnumCalledType.Type: ...\r
+\r
+        @classmethod\r
+        def keys(cls) -> List[bytes]: ...\r
+\r
+        @classmethod\r
+        def values(cls) -> List[MessageContainingEnumCalledType.Type]: ...\r
+\r
+        @classmethod\r
+        def items(cls) -> List[Tuple[bytes,\r
+                                     MessageContainingEnumCalledType.Type]]: ...\r
+    TYPE_FOO: Type\r
+\r
+    class TypeEntry(Message):\r
+        key = ...  # type: Text\r
+\r
+        @property\r
+        def value(self) -> MessageContainingEnumCalledType: ...\r
+\r
+        def __init__(self,\r
+                     key: Optional[Text] = ...,\r
+                     value: Optional[MessageContainingEnumCalledType] = ...,\r
+                     ) -> None: ...\r
+\r
+        @classmethod\r
+        def FromString(\r
+            cls, s: bytes) -> MessageContainingEnumCalledType.TypeEntry: ...\r
+\r
+    @property\r
+    def type(self) -> MutableMapping[Text,\r
+                                     MessageContainingEnumCalledType]: ...\r
+\r
+    def __init__(self,\r
+                 type: Optional[Mapping[Text, MessageContainingEnumCalledType]]=...,\r
+                 ) -> None: ...\r
+\r
+    @classmethod\r
+    def FromString(cls, s: bytes) -> MessageContainingEnumCalledType: ...\r
+\r
+\r
+class MessageContainingMapCalledEntry(Message):\r
+\r
+    class EntryEntry(Message):\r
+        key = ...  # type: int\r
+        value = ...  # type: int\r
+\r
+        def __init__(self,\r
+                     key: Optional[int] = ...,\r
+                     value: Optional[int] = ...,\r
+                     ) -> None: ...\r
+\r
+        @classmethod\r
+        def FromString(\r
+            cls, s: bytes) -> MessageContainingMapCalledEntry.EntryEntry: ...\r
+\r
+    @property\r
+    def entry(self) -> MutableMapping[int, int]: ...\r
+\r
+    def __init__(self,\r
+                 entry: Optional[Mapping[int, int]]=...,\r
+                 ) -> None: ...\r
+\r
+    @classmethod\r
+    def FromString(cls, s: bytes) -> MessageContainingMapCalledEntry: ...\r
+\r
+\r
+class TestRecursiveMapMessage(Message):\r
+\r
+    class AEntry(Message):\r
+        key = ...  # type: Text\r
+\r
+        @property\r
+        def value(self) -> TestRecursiveMapMessage: ...\r
+\r
+        def __init__(self,\r
+                     key: Optional[Text] = ...,\r
+                     value: Optional[TestRecursiveMapMessage] = ...,\r
+                     ) -> None: ...\r
+\r
+        @classmethod\r
+        def FromString(cls, s: bytes) -> TestRecursiveMapMessage.AEntry: ...\r
+\r
+    @property\r
+    def a(self) -> MutableMapping[Text, TestRecursiveMapMessage]: ...\r
+\r
+    def __init__(self,\r
+                 a: Optional[Mapping[Text, TestRecursiveMapMessage]]=...,\r
+                 ) -> None: ...\r
+\r
+    @classmethod\r
+    def FromString(cls, s: bytes) -> TestRecursiveMapMessage: ...\r