@@ -8,6 +8,7 @@ import google.protobuf.descriptor
8
8
import google .protobuf .internal .containers
9
9
import google .protobuf .internal .enum_type_wrapper
10
10
import google .protobuf .message
11
+ import test .test_generated_mypy
11
12
import typing
12
13
import typing_extensions
13
14
@@ -92,6 +93,21 @@ class SimpleProto3(google.protobuf.message.Message):
92
93
def HasField (self , field_name : typing_extensions .Literal ["value" , b"value" ]) -> builtins .bool : ...
93
94
def ClearField (self , field_name : typing_extensions .Literal ["key" , b"key" , "value" , b"value" ]) -> None : ...
94
95
96
+ class EmailByUidEntry (google .protobuf .message .Message ):
97
+ DESCRIPTOR : google .protobuf .descriptor .Descriptor
98
+
99
+ KEY_FIELD_NUMBER : builtins .int
100
+ VALUE_FIELD_NUMBER : builtins .int
101
+ key : builtins .int
102
+ value : builtins .str
103
+ def __init__ (
104
+ self ,
105
+ * ,
106
+ key : builtins .int = ...,
107
+ value : builtins .str = ...,
108
+ ) -> None : ...
109
+ def ClearField (self , field_name : typing_extensions .Literal ["key" , b"key" , "value" , b"value" ]) -> None : ...
110
+
95
111
A_STRING_FIELD_NUMBER : builtins .int
96
112
A_REPEATED_STRING_FIELD_NUMBER : builtins .int
97
113
A_OUTER_ENUM_FIELD_NUMBER : builtins .int
@@ -110,6 +126,9 @@ class SimpleProto3(google.protobuf.message.Message):
110
126
MAP_SCALAR_FIELD_NUMBER : builtins .int
111
127
MAP_MESSAGE_FIELD_NUMBER : builtins .int
112
128
AN_OPTIONAL_STRING_FIELD_NUMBER : builtins .int
129
+ USER_ID_FIELD_NUMBER : builtins .int
130
+ EMAIL_FIELD_NUMBER : builtins .int
131
+ EMAIL_BY_UID_FIELD_NUMBER : builtins .int
113
132
a_string : builtins .str
114
133
@property
115
134
def a_repeated_string (self ) -> google .protobuf .internal .containers .RepeatedScalarFieldContainer [builtins .str ]: ...
@@ -137,6 +156,10 @@ class SimpleProto3(google.protobuf.message.Message):
137
156
@property
138
157
def map_message (self ) -> google .protobuf .internal .containers .MessageMap [builtins .int , global___OuterMessage3 ]: ...
139
158
an_optional_string : builtins .str
159
+ user_id : test .test_generated_mypy .UserId
160
+ email : test .test_generated_mypy .Email
161
+ @property
162
+ def email_by_uid (self ) -> google .protobuf .internal .containers .ScalarMap [test .test_generated_mypy .UserId , test .test_generated_mypy .Email ]: ...
140
163
def __init__ (
141
164
self ,
142
165
* ,
@@ -158,9 +181,12 @@ class SimpleProto3(google.protobuf.message.Message):
158
181
map_scalar : collections .abc .Mapping [builtins .int , builtins .str ] | None = ...,
159
182
map_message : collections .abc .Mapping [builtins .int , global___OuterMessage3 ] | None = ...,
160
183
an_optional_string : builtins .str | None = ...,
184
+ user_id : test .test_generated_mypy .UserId = ...,
185
+ email : test .test_generated_mypy .Email = ...,
186
+ email_by_uid : collections .abc .Mapping [test .test_generated_mypy .UserId , test .test_generated_mypy .Email ] | None = ...,
161
187
) -> None : ...
162
188
def HasField (self , field_name : typing_extensions .Literal ["OuterMessage3" , b"OuterMessage3" , "_an_optional_string" , b"_an_optional_string" , "a_oneof" , b"a_oneof" , "a_oneof_1" , b"a_oneof_1" , "a_oneof_2" , b"a_oneof_2" , "an_optional_string" , b"an_optional_string" , "b_oneof" , b"b_oneof" , "b_oneof_1" , b"b_oneof_1" , "b_oneof_2" , b"b_oneof_2" , "bool" , b"bool" , "inner_enum_in_oneof" , b"inner_enum_in_oneof" , "outer_enum_in_oneof" , b"outer_enum_in_oneof" , "outer_message" , b"outer_message" , "outer_message_in_oneof" , b"outer_message_in_oneof" ]) -> builtins .bool : ...
163
- def ClearField (self , field_name : typing_extensions .Literal ["OuterEnum" , b"OuterEnum" , "OuterMessage3" , b"OuterMessage3" , "_an_optional_string" , b"_an_optional_string" , "a_oneof" , b"a_oneof" , "a_oneof_1" , b"a_oneof_1" , "a_oneof_2" , b"a_oneof_2" , "a_outer_enum" , b"a_outer_enum" , "a_repeated_string" , b"a_repeated_string" , "a_string" , b"a_string" , "an_optional_string" , b"an_optional_string" , "b_oneof" , b"b_oneof" , "b_oneof_1" , b"b_oneof_1" , "b_oneof_2" , b"b_oneof_2" , "bool" , b"bool" , "inner_enum" , b"inner_enum" , "inner_enum_in_oneof" , b"inner_enum_in_oneof" , "map_message" , b"map_message" , "map_scalar" , b"map_scalar" , "outer_enum_in_oneof" , b"outer_enum_in_oneof" , "outer_message" , b"outer_message" , "outer_message_in_oneof" , b"outer_message_in_oneof" ]) -> None : ...
189
+ def ClearField (self , field_name : typing_extensions .Literal ["OuterEnum" , b"OuterEnum" , "OuterMessage3" , b"OuterMessage3" , "_an_optional_string" , b"_an_optional_string" , "a_oneof" , b"a_oneof" , "a_oneof_1" , b"a_oneof_1" , "a_oneof_2" , b"a_oneof_2" , "a_outer_enum" , b"a_outer_enum" , "a_repeated_string" , b"a_repeated_string" , "a_string" , b"a_string" , "an_optional_string" , b"an_optional_string" , "b_oneof" , b"b_oneof" , "b_oneof_1" , b"b_oneof_1" , "b_oneof_2" , b"b_oneof_2" , "bool" , b"bool" , "email" , b"email" , "email_by_uid" , b"email_by_uid" , " inner_enum" , b"inner_enum" , "inner_enum_in_oneof" , b"inner_enum_in_oneof" , "map_message" , b"map_message" , "map_scalar" , b"map_scalar" , "outer_enum_in_oneof" , b"outer_enum_in_oneof" , "outer_message" , b"outer_message" , "outer_message_in_oneof" , b"outer_message_in_oneof" , "user_id" , b"user_id " ]) -> None : ...
164
190
@typing .overload
165
191
def WhichOneof (self , oneof_group : typing_extensions .Literal ["_an_optional_string" , b"_an_optional_string" ]) -> typing_extensions .Literal ["an_optional_string" ] | None : ...
166
192
@typing .overload
0 commit comments