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; 40 d:long; 41 p:uint; 42 e:ulong; 43 /// doc comment for f. 44 f:int = -1; 45 g:long; 46 h:uint; 47 q:ulong; 48 i:int; 49 j:long; 50 /// doc comment for k. 51 k:bool; 52 /// doc comment for l on 2 53 /// lines 54 l:string (required); 55 m:[ubyte]; 56 n:proto.test.ProtoMessage_.OtherMessage; 57 o:[string]; 58 z:proto.test.ImportedMessage; 59 /// doc comment for r. 60 r:proto.test.ProtoMessage_.RUnion; 61 outer_enum:proto.test.ProtoEnum; 62 u:float = +inf; 63 v:float = +inf; 64 w:float = -inf; 65} 66 67namespace proto.test.ProtoMessage_; 68 69table OtherMessage { 70 a:double; 71 /// doc comment for b. 72 b:float = 3.14149; 73 foo_bar_baz:proto.test.ProtoMessage_.OtherMessage_.ProtoEnum; 74} 75 76