xref: /aosp_15_r20/external/flatbuffers/tests/prototest/test_include.golden (revision 890232f25432b36107d06881e0a25aaa6b473652)
1// Generated from test.proto
2
3include "imported.fbs";
4
5namespace proto.test;
6
7/// Enum doc comment.
8enum ProtoEnum : int {
9  NUL = 0,
10  FOO = 1,
11  /// Enum 2nd value doc comment misaligned.
12  BAR = 5,
13}
14
15namespace proto.test.ProtoMessage_.OtherMessage_;
16
17enum ProtoEnum : int {
18  NUL = 0,
19  FOO = 1,
20  BAR = 2,
21  BAZ = 3,
22}
23
24namespace proto.test;
25
26/// 2nd table doc comment with
27/// many lines.
28table ProtoMessage {
29  c:int = 16;
30  d:long;
31  p:uint;
32  e:ulong;
33  /// doc comment for f.
34  f:int = -1;
35  g:long;
36  h:uint;
37  q:ulong;
38  i:int;
39  j:long;
40  /// doc comment for k.
41  k:bool;
42  /// doc comment for l on 2
43  /// lines
44  l:string (required);
45  m:[ubyte];
46  n:proto.test.ProtoMessage_.OtherMessage;
47  o:[string];
48  z:proto.test.ImportedMessage;
49  /// doc comment for r.
50  r:proto.test.ProtoMessage_.Anonymous0;
51  outer_enum:proto.test.ProtoEnum;
52  u:float = +inf;
53  v:float = +inf;
54  w:float = -inf;
55}
56
57namespace proto.test.ProtoMessage_;
58
59table OtherMessage {
60  a:double;
61  /// doc comment for b.
62  b:float = 3.14149;
63  foo_bar_baz:proto.test.ProtoMessage_.OtherMessage_.ProtoEnum;
64}
65
66table Anonymous0 {
67  /// doc comment for s.
68  s:proto.test.ImportedMessage;
69  /// doc comment for t on 2
70  /// lines.
71  t:proto.test.ProtoMessage_.OtherMessage;
72}
73
74