• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// 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
13namespace 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
24table ImportedMessage {
25  a:int (id: 0);
26}
27
28/// 2nd table doc comment with
29/// many lines.
30table ProtoMessage {
31  c:int = 16 (id: 12);
32  d:long (id: 1);
33  p:uint (id: 21);
34  e:ulong (id: 2);
35  /// doc comment for f.
36  f:int = -1 (id: 3);
37  g:long (id: 4);
38  h:uint (id: 5);
39  q:ulong (id: 6);
40  i:int (id: 7);
41  j:long (id: 8);
42  /// doc comment for k.
43  k:bool (id: 9);
44  /// doc comment for l on 2
45  /// lines
46  l:string (required,id: 10);
47  m:[ubyte] (id: 11);
48  n:proto.test.ProtoMessage_.OtherMessage (id: 22);
49  o:[string] (id: 13);
50  z:proto.test.ImportedMessage (id: 14);
51  /// doc comment for r.
52  r:proto.test.ProtoMessage_.Anonymous0 (id: 0);
53  outer_enum:proto.test.ProtoEnum (id: 15);
54  u:float = +inf (id: 16);
55  v:float = +inf (id: 17);
56  w:float = -inf (id: 18);
57  grades:[proto.test.ProtoMessage_.GradesEntry] (id: 19);
58  other_message_map:[proto.test.ProtoMessage_.OtherMessageMapEntry] (id: 20);
59}
60
61namespace proto.test.ProtoMessage_;
62
63table OtherMessage {
64  a:double (id: 0);
65  /// doc comment for b.
66  b:float = 3.14149 (id: 1);
67  foo_bar_baz:proto.test.ProtoMessage_.OtherMessage_.ProtoEnum (id: 2);
68}
69
70table Anonymous0 {
71  /// doc comment for s.
72  s:proto.test.ImportedMessage (id: 0);
73  /// doc comment for t on 2
74  /// lines.
75  t:proto.test.ProtoMessage_.OtherMessage (id: 1);
76}
77
78table GradesEntry {
79  key:string (key);
80  value:float;
81}
82
83table OtherMessageMapEntry {
84  key:string (key);
85  value:proto.test.ProtoMessage_.OtherMessage;
86}
87
88