forked from protocolbuffers/protobuf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into apitweaks
- Loading branch information
Showing
4 changed files
with
140 additions
and
789 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
|
||
syntax = "proto2"; | ||
|
||
enum TestEnum { | ||
FOO = 1; | ||
} | ||
|
||
message Empty {} | ||
|
||
message DecoderTest { | ||
optional double f_double = 1; | ||
optional float f_float = 2; | ||
optional int64 f_int64 = 3; | ||
optional uint64 f_uint64 = 4; | ||
optional int32 f_int32 = 5; | ||
optional fixed64 f_fixed64 = 6; | ||
optional fixed32 f_fixed32 = 7; | ||
optional bool f_bool = 8; | ||
optional string f_string = 9; | ||
optional DecoderTest f_message = 11; | ||
optional bytes f_bytes = 12; | ||
optional uint32 f_uint32 = 13; | ||
optional TestEnum f_enum = 14; | ||
optional sfixed32 f_sfixed32 = 15; | ||
optional sfixed64 f_sfixed64 = 16; | ||
optional sint32 f_sint32 = 17; | ||
optional sint64 f_sint64 = 18; | ||
|
||
optional string nop_field = 40; | ||
|
||
repeated double r_double = 536869912; | ||
repeated float r_float = 536869913; | ||
repeated int64 r_int64 = 536869914; | ||
repeated uint64 r_uint64 = 536869915; | ||
repeated int32 r_int32 = 536869916; | ||
repeated fixed64 r_fixed64 = 536869917; | ||
repeated fixed32 r_fixed32 = 536869918; | ||
repeated bool r_bool = 536869919; | ||
repeated string r_string = 536869920; | ||
repeated DecoderTest r_message = 536869922; | ||
repeated bytes r_bytes = 536869923; | ||
repeated uint32 r_uint32 = 536869924; | ||
repeated TestEnum r_enum = 536869925; | ||
repeated sfixed32 r_sfixed32 = 536869926; | ||
repeated sfixed64 r_sfixed64 = 536869927; | ||
repeated sint32 r_sint32 = 536869928; | ||
repeated sint64 r_sint64 = 536869929; | ||
|
||
optional group F_group = 10 { | ||
optional double f_double = 1; | ||
optional float f_float = 2; | ||
optional int64 f_int64 = 3; | ||
optional uint64 f_uint64 = 4; | ||
optional int32 f_int32 = 5; | ||
optional fixed64 f_fixed64 = 6; | ||
optional fixed32 f_fixed32 = 7; | ||
optional bool f_bool = 8; | ||
optional string f_string = 9; | ||
optional DecoderTest f_message = 11; | ||
optional bytes f_bytes = 12; | ||
optional uint32 f_uint32 = 13; | ||
optional TestEnum f_enum = 14; | ||
optional sfixed32 f_sfixed32 = 15; | ||
optional sfixed64 f_sfixed64 = 16; | ||
optional sint32 f_sint32 = 17; | ||
optional sint64 f_sint64 = 18; | ||
|
||
optional string nop_field = 40; | ||
|
||
repeated double r_double = 536869912; | ||
repeated float r_float = 536869913; | ||
repeated int64 r_int64 = 536869914; | ||
repeated uint64 r_uint64 = 536869915; | ||
repeated int32 r_int32 = 536869916; | ||
repeated fixed64 r_fixed64 = 536869917; | ||
repeated fixed32 r_fixed32 = 536869918; | ||
repeated bool r_bool = 536869919; | ||
repeated string r_string = 536869920; | ||
repeated DecoderTest r_message = 536869922; | ||
repeated bytes r_bytes = 536869923; | ||
repeated uint32 r_uint32 = 536869924; | ||
repeated TestEnum r_enum = 536869925; | ||
repeated sfixed32 r_sfixed32 = 536869926; | ||
repeated sfixed64 r_sfixed64 = 536869927; | ||
repeated sint32 r_sint32 = 536869928; | ||
repeated sint64 r_sint64 = 536869929; | ||
} | ||
|
||
optional group R_group = 536869921 { | ||
optional double f_double = 1; | ||
optional float f_float = 2; | ||
optional int64 f_int64 = 3; | ||
optional uint64 f_uint64 = 4; | ||
optional int32 f_int32 = 5; | ||
optional fixed64 f_fixed64 = 6; | ||
optional fixed32 f_fixed32 = 7; | ||
optional bool f_bool = 8; | ||
optional string f_string = 9; | ||
optional DecoderTest f_message = 11; | ||
optional bytes f_bytes = 12; | ||
optional uint32 f_uint32 = 13; | ||
optional TestEnum f_enum = 14; | ||
optional sfixed32 f_sfixed32 = 15; | ||
optional sfixed64 f_sfixed64 = 16; | ||
optional sint32 f_sint32 = 17; | ||
optional sint64 f_sint64 = 18; | ||
|
||
optional string nop_field = 40; | ||
|
||
repeated double r_double = 536869912; | ||
repeated float r_float = 536869913; | ||
repeated int64 r_int64 = 536869914; | ||
repeated uint64 r_uint64 = 536869915; | ||
repeated int32 r_int32 = 536869916; | ||
repeated fixed64 r_fixed64 = 536869917; | ||
repeated fixed32 r_fixed32 = 536869918; | ||
repeated bool r_bool = 536869919; | ||
repeated string r_string = 536869920; | ||
repeated DecoderTest r_message = 536869922; | ||
repeated bytes r_bytes = 536869923; | ||
repeated uint32 r_uint32 = 536869924; | ||
repeated TestEnum r_enum = 536869925; | ||
repeated sfixed32 r_sfixed32 = 536869926; | ||
repeated sfixed64 r_sfixed64 = 536869927; | ||
repeated sint32 r_sint32 = 536869928; | ||
repeated sint64 r_sint64 = 536869929; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
syntax = "proto2"; | ||
|
||
package upb.test; | ||
|
||
message TestMessage { | ||
optional int32 i32 = 1; | ||
repeated int32 r_i32 = 2; | ||
optional string str = 3; | ||
repeated string r_str = 4; | ||
optional TestMessage msg = 5; | ||
repeated TestMessage r_msg = 6; | ||
} |
Submodule protobuf
deleted from
5aeee3
Oops, something went wrong.