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