xref: /aosp_15_r20/external/flatbuffers/tests/prototest/test_union.golden (revision 890232f25432b36107d06881e0a25aaa6b473652)
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.ProtoMessage_;
23
24union RUnion {
25  /// doc comment for s.
26  proto.test.ImportedMessage,
27  /// doc comment for t on 2
28  /// lines.
29  proto.test.ProtoMessage_.OtherMessage,
30}
31
32namespace proto.test;
33
34table ImportedMessage {
35  a:int;
36}
37
38/// 2nd table doc comment with
39/// many lines.
40table ProtoMessage {
41  c:int = 16;
42  d:long;
43  p:uint;
44  e:ulong;
45  /// doc comment for f.
46  f:int = -1;
47  g:long;
48  h:uint;
49  q:ulong;
50  i:int;
51  j:long;
52  /// doc comment for k.
53  k:bool;
54  /// doc comment for l on 2
55  /// lines
56  l:string (required);
57  m:[ubyte];
58  n:proto.test.ProtoMessage_.OtherMessage;
59  o:[string];
60  z:proto.test.ImportedMessage;
61  /// doc comment for r.
62  r:proto.test.ProtoMessage_.RUnion;
63  outer_enum:proto.test.ProtoEnum;
64  u:float = +inf;
65  v:float = +inf;
66  w:float = -inf;
67}
68
69namespace proto.test.ProtoMessage_;
70
71table OtherMessage {
72  a:double;
73  /// doc comment for b.
74  b:float = 3.14149;
75  foo_bar_baz:proto.test.ProtoMessage_.OtherMessage_.ProtoEnum;
76}
77
78