Home | History | Annotate | Download | only in prototest
      1 // Generated from test.proto
      2 
      3 namespace proto.test;
      4 
      5 /// Enum doc comment.
      6 enum ProtoEnum : int {
      7   FOO = 1,
      8   /// Enum 2nd value doc comment misaligned.
      9   BAR = 5,
     10 }
     11 
     12 namespace proto.test.ProtoMessage_;
     13 
     14 union RUnion {
     15   /// doc comment for s.
     16   proto.test.ImportedMessage,
     17   /// doc comment for t on 2
     18   /// lines.
     19   proto.test.ProtoMessage_.OtherMessage,
     20 }
     21 
     22 namespace proto.test;
     23 
     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_.RUnion;
     53 }
     54 
     55 namespace proto.test.ProtoMessage_;
     56 
     57 table OtherMessage {
     58   a:double;
     59   /// doc comment for b.
     60   b:float = 3.14149;
     61 }
     62 
     63