blob: eb10671b11a1a2ad82afbfe430e75558567cfd77 [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 Schuhe89fa2d2019-08-14 20:24:23 -070054}
55
56namespace proto.test.ProtoMessage_;
57
58table OtherMessage {
59 a:double;
60 /// doc comment for b.
61 b:float = 3.14149;
James Kuszmaul8e62b022022-03-22 09:33:25 -070062 foo_bar_baz:proto.test.ProtoMessage_.OtherMessage_.ProtoEnum;
Austin Schuhe89fa2d2019-08-14 20:24:23 -070063}
64
65table Anonymous0 {
66 /// doc comment for s.
67 s:proto.test.ImportedMessage;
68 /// doc comment for t on 2
69 /// lines.
70 t:proto.test.ProtoMessage_.OtherMessage;
71}
72