blob: 949a003d5c9dc50a6c92cead6db9b5f2042d9b0e [file] [log] [blame]
Austin Schuhe89fa2d2019-08-14 20:24:23 -07001// Generated from test.proto
2
3namespace proto.test;
4
5/// Enum doc comment.
6enum ProtoEnum : int {
7 NUL = 0,
8 FOO = 1,
9 /// Enum 2nd value doc comment misaligned.
10 BAR = 5,
11}
12
James Kuszmaul8e62b022022-03-22 09:33:25 -070013namespace proto.test.ProtoMessage_.OtherMessage_;
14
15enum ProtoEnum : int {
16 NUL = 0,
17 FOO = 1,
18 BAR = 2,
19 BAZ = 3,
20}
21
22namespace proto.test;
23
Austin Schuhe89fa2d2019-08-14 20:24:23 -070024table ImportedMessage {
25 a:int;
26}
27
28/// 2nd table doc comment with
29/// many lines.
30table ProtoMessage {
31 c:int = 16;
32 d:long;
33 p:uint;
34 e:ulong;
35 /// doc comment for f.
36 f:int = -1;
37 g:long;
38 h:uint;
39 q:ulong;
40 i:int;
41 j:long;
42 /// doc comment for k.
43 k:bool;
44 /// doc comment for l on 2
45 /// lines
46 l:string (required);
47 m:[ubyte];
48 n:proto.test.ProtoMessage_.OtherMessage;
49 o:[string];
50 z:proto.test.ImportedMessage;
51 /// doc comment for r.
52 r:proto.test.ProtoMessage_.Anonymous0;
James Kuszmaul8e62b022022-03-22 09:33:25 -070053 outer_enum:proto.test.ProtoEnum;
Austin Schuh2dd86a92022-09-14 21:19:23 -070054 u:float = +inf;
55 v:float = +inf;
56 w:float = -inf;
Austin Schuhe89fa2d2019-08-14 20:24:23 -070057}
58
59namespace proto.test.ProtoMessage_;
60
61table OtherMessage {
62 a:double;
63 /// doc comment for b.
64 b:float = 3.14149;
James Kuszmaul8e62b022022-03-22 09:33:25 -070065 foo_bar_baz:proto.test.ProtoMessage_.OtherMessage_.ProtoEnum;
Austin Schuhe89fa2d2019-08-14 20:24:23 -070066}
67
68table Anonymous0 {
69 /// doc comment for s.
70 s:proto.test.ImportedMessage;
71 /// doc comment for t on 2
72 /// lines.
73 t:proto.test.ProtoMessage_.OtherMessage;
74}
75