File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 4545// flag "--${NAME}_out" is passed to protoc.
4646
4747syntax = "proto2" ;
48+
4849package google.protobuf.compiler ;
4950option java_package = "com.google.protobuf.compiler" ;
5051option java_outer_classname = "PluginProtos" ;
Original file line number Diff line number Diff line change 3333// - conformance tests
3434//
3535
36+ // LINT: ALLOW_GROUPS
37+
3638syntax = "proto2" ;
3739
3840package protobuf_test_messages.proto2 ;
@@ -180,6 +182,9 @@ message TestAllTypesProto2 {
180182 optional int32 field_name17__ = 417;
181183 optional int32 Field_name18__ = 418;
182184
185+ // Reserved for unknown fields test.
186+ reserved 1000 to 9999;
187+
183188 // message_set test case.
184189 message MessageSetCorrect {
185190 option message_set_wire_format = true ;
@@ -214,3 +219,15 @@ enum ForeignEnumProto2 {
214219extend TestAllTypesProto2 {
215220 optional int32 extension_int32 = 120 ;
216221}
222+
223+ message UnknownToTestAllTypes {
224+ optional int32 optional_int32 = 1001 ;
225+ optional string optional_string = 1002 ;
226+ optional ForeignMessageProto2 nested_message = 1003 ;
227+ optional group OptionalGroup = 1004 {
228+ optional int32 a = 1;
229+ }
230+ optional bool optional_bool = 1006;
231+ repeated int32 repeated_int32 = 1011;
232+ }
233+
You can’t perform that action at this time.
0 commit comments