Skip to content

Commit 73846bd

Browse files
committed
Update protos from protocolbuffers/protobuf.
Using f425b9f059a57dc5f13a6e6a389fff1a6cc06749 as reference point.
1 parent 25f688d commit 73846bd

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

Protos/google/protobuf/compiler/plugin.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
// flag "--${NAME}_out" is passed to protoc.
4646

4747
syntax = "proto2";
48+
4849
package google.protobuf.compiler;
4950
option java_package = "com.google.protobuf.compiler";
5051
option java_outer_classname = "PluginProtos";

Protos/google/protobuf/test_messages_proto2.proto

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
// - conformance tests
3434
//
3535

36+
// LINT: ALLOW_GROUPS
37+
3638
syntax = "proto2";
3739

3840
package 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 {
214219
extend 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+

0 commit comments

Comments
 (0)