Austin Schuh | e89fa2d | 2019-08-14 20:24:23 -0700 | [diff] [blame] | 1 | // Generated from test.proto |
| 2 | |
| 3 | namespace proto.test; |
| 4 | |
| 5 | /// Enum doc comment. |
| 6 | enum ProtoEnum : int { |
| 7 | NUL = 0, |
| 8 | FOO = 1, |
| 9 | /// Enum 2nd value doc comment misaligned. |
| 10 | BAR = 5, |
| 11 | } |
| 12 | |
James Kuszmaul | 8e62b02 | 2022-03-22 09:33:25 -0700 | [diff] [blame] | 13 | namespace proto.test.ProtoMessage_.OtherMessage_; |
| 14 | |
| 15 | enum ProtoEnum : int { |
| 16 | NUL = 0, |
| 17 | FOO = 1, |
| 18 | BAR = 2, |
| 19 | BAZ = 3, |
| 20 | } |
| 21 | |
| 22 | namespace proto.test; |
| 23 | |
Austin Schuh | e89fa2d | 2019-08-14 20:24:23 -0700 | [diff] [blame] | 24 | table ImportedMessage { |
| 25 | a:int; |
| 26 | } |
| 27 | |
| 28 | /// 2nd table doc comment with |
| 29 | /// many lines. |
| 30 | table ProtoMessage { |
| 31 | c:int = 16; |
| 32 | d:long; |
| 33 | p:uint; |
| 34 | e:ulong; |
| 35 | /// doc comment for f. |
| 36 | f:int = -1; |
| 37 | g:long; |
| 38 | h:uint; |
| 39 | q:ulong; |
| 40 | i:int; |
| 41 | j:long; |
| 42 | /// doc comment for k. |
| 43 | k:bool; |
| 44 | /// doc comment for l on 2 |
| 45 | /// lines |
| 46 | l:string (required); |
| 47 | m:[ubyte]; |
| 48 | n:proto.test.ProtoMessage_.OtherMessage; |
| 49 | o:[string]; |
| 50 | z:proto.test.ImportedMessage; |
| 51 | /// doc comment for r. |
| 52 | r:proto.test.ProtoMessage_.Anonymous0; |
James Kuszmaul | 8e62b02 | 2022-03-22 09:33:25 -0700 | [diff] [blame] | 53 | outer_enum:proto.test.ProtoEnum; |
Austin Schuh | 2dd86a9 | 2022-09-14 21:19:23 -0700 | [diff] [blame] | 54 | u:float = +inf; |
| 55 | v:float = +inf; |
| 56 | w:float = -inf; |
James Kuszmaul | 3b15b0c | 2022-11-08 14:03:16 -0800 | [diff] [blame] | 57 | grades:[proto.test.ProtoMessage_.GradesEntry]; |
| 58 | other_message_map:[proto.test.ProtoMessage_.OtherMessageMapEntry]; |
Austin Schuh | e89fa2d | 2019-08-14 20:24:23 -0700 | [diff] [blame] | 59 | } |
| 60 | |
| 61 | namespace proto.test.ProtoMessage_; |
| 62 | |
| 63 | table OtherMessage { |
| 64 | a:double; |
| 65 | /// doc comment for b. |
| 66 | b:float = 3.14149; |
James Kuszmaul | 8e62b02 | 2022-03-22 09:33:25 -0700 | [diff] [blame] | 67 | foo_bar_baz:proto.test.ProtoMessage_.OtherMessage_.ProtoEnum; |
Austin Schuh | e89fa2d | 2019-08-14 20:24:23 -0700 | [diff] [blame] | 68 | } |
| 69 | |
| 70 | table Anonymous0 { |
| 71 | /// doc comment for s. |
| 72 | s:proto.test.ImportedMessage; |
| 73 | /// doc comment for t on 2 |
| 74 | /// lines. |
| 75 | t:proto.test.ProtoMessage_.OtherMessage; |
| 76 | } |
| 77 | |
James Kuszmaul | 3b15b0c | 2022-11-08 14:03:16 -0800 | [diff] [blame] | 78 | table GradesEntry { |
| 79 | key:string (key); |
| 80 | value:float; |
| 81 | } |
| 82 | |
| 83 | table OtherMessageMapEntry { |
| 84 | key:string (key); |
| 85 | value:proto.test.ProtoMessage_.OtherMessage; |
| 86 | } |
| 87 | |