• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2syntax = "proto2";
3
4enum TestEnum {
5  FOO = 1;
6}
7
8message Empty {}
9
10message DecoderTest {
11  optional double      f_double   = 1;
12  optional float       f_float    = 2;
13  optional int64       f_int64    = 3;
14  optional uint64      f_uint64   = 4;
15  optional int32       f_int32    = 5;
16  optional fixed64     f_fixed64  = 6;
17  optional fixed32     f_fixed32  = 7;
18  optional bool        f_bool     = 8;
19  optional string      f_string   = 9;
20  optional DecoderTest f_message  = 11;
21  optional bytes       f_bytes    = 12;
22  optional uint32      f_uint32   = 13;
23  optional TestEnum    f_enum     = 14;
24  optional sfixed32    f_sfixed32 = 15;
25  optional sfixed64    f_sfixed64 = 16;
26  optional sint32      f_sint32   = 17;
27  optional sint64      f_sint64   = 18;
28
29  optional string      nop_field  = 40;
30
31  repeated double      r_double   = 536869912;
32  repeated float       r_float    = 536869913;
33  repeated int64       r_int64    = 536869914;
34  repeated uint64      r_uint64   = 536869915;
35  repeated int32       r_int32    = 536869916;
36  repeated fixed64     r_fixed64  = 536869917;
37  repeated fixed32     r_fixed32  = 536869918;
38  repeated bool        r_bool     = 536869919;
39  repeated string      r_string   = 536869920;
40  repeated DecoderTest r_message  = 536869922;
41  repeated bytes       r_bytes    = 536869923;
42  repeated uint32      r_uint32   = 536869924;
43  repeated TestEnum    r_enum     = 536869925;
44  repeated sfixed32    r_sfixed32 = 536869926;
45  repeated sfixed64    r_sfixed64 = 536869927;
46  repeated sint32      r_sint32   = 536869928;
47  repeated sint64      r_sint64   = 536869929;
48
49  optional group F_group = 10 {
50    optional double      f_double   = 1;
51    optional float       f_float    = 2;
52    optional int64       f_int64    = 3;
53    optional uint64      f_uint64   = 4;
54    optional int32       f_int32    = 5;
55    optional fixed64     f_fixed64  = 6;
56    optional fixed32     f_fixed32  = 7;
57    optional bool        f_bool     = 8;
58    optional string      f_string   = 9;
59    optional DecoderTest f_message  = 11;
60    optional bytes       f_bytes    = 12;
61    optional uint32      f_uint32   = 13;
62    optional TestEnum    f_enum     = 14;
63    optional sfixed32    f_sfixed32 = 15;
64    optional sfixed64    f_sfixed64 = 16;
65    optional sint32      f_sint32   = 17;
66    optional sint64      f_sint64   = 18;
67
68    optional string      nop_field  = 40;
69
70    repeated double      r_double   = 536869912;
71    repeated float       r_float    = 536869913;
72    repeated int64       r_int64    = 536869914;
73    repeated uint64      r_uint64   = 536869915;
74    repeated int32       r_int32    = 536869916;
75    repeated fixed64     r_fixed64  = 536869917;
76    repeated fixed32     r_fixed32  = 536869918;
77    repeated bool        r_bool     = 536869919;
78    repeated string      r_string   = 536869920;
79    repeated DecoderTest r_message  = 536869922;
80    repeated bytes       r_bytes    = 536869923;
81    repeated uint32      r_uint32   = 536869924;
82    repeated TestEnum    r_enum     = 536869925;
83    repeated sfixed32    r_sfixed32 = 536869926;
84    repeated sfixed64    r_sfixed64 = 536869927;
85    repeated sint32      r_sint32   = 536869928;
86    repeated sint64      r_sint64   = 536869929;
87  }
88
89  optional group R_group = 536869921 {
90    optional double      f_double   = 1;
91    optional float       f_float    = 2;
92    optional int64       f_int64    = 3;
93    optional uint64      f_uint64   = 4;
94    optional int32       f_int32    = 5;
95    optional fixed64     f_fixed64  = 6;
96    optional fixed32     f_fixed32  = 7;
97    optional bool        f_bool     = 8;
98    optional string      f_string   = 9;
99    optional DecoderTest f_message  = 11;
100    optional bytes       f_bytes    = 12;
101    optional uint32      f_uint32   = 13;
102    optional TestEnum    f_enum     = 14;
103    optional sfixed32    f_sfixed32 = 15;
104    optional sfixed64    f_sfixed64 = 16;
105    optional sint32      f_sint32   = 17;
106    optional sint64      f_sint64   = 18;
107
108    optional string      nop_field  = 40;
109
110    repeated double      r_double   = 536869912;
111    repeated float       r_float    = 536869913;
112    repeated int64       r_int64    = 536869914;
113    repeated uint64      r_uint64   = 536869915;
114    repeated int32       r_int32    = 536869916;
115    repeated fixed64     r_fixed64  = 536869917;
116    repeated fixed32     r_fixed32  = 536869918;
117    repeated bool        r_bool     = 536869919;
118    repeated string      r_string   = 536869920;
119    repeated DecoderTest r_message  = 536869922;
120    repeated bytes       r_bytes    = 536869923;
121    repeated uint32      r_uint32   = 536869924;
122    repeated TestEnum    r_enum     = 536869925;
123    repeated sfixed32    r_sfixed32 = 536869926;
124    repeated sfixed64    r_sfixed64 = 536869927;
125    repeated sint32      r_sint32   = 536869928;
126    repeated sint64      r_sint64   = 536869929;
127  }
128}
129