...

Text file src/github.com/google/flatbuffers/tests/test.fbs

Documentation: github.com/google/flatbuffers/tests

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

View as plain text