...

Text file src/github.com/google/flatbuffers/tests/prototest/test_union_include.golden.fbs

Documentation: github.com/google/flatbuffers/tests/prototest

     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  grades:[proto.test.ProtoMessage_.GradesEntry];
    66  other_message_map:[proto.test.ProtoMessage_.OtherMessageMapEntry];
    67}
    68
    69namespace proto.test.ProtoMessage_;
    70
    71table OtherMessage {
    72  a:double;
    73  /// doc comment for b.
    74  b:float = 3.14149;
    75  foo_bar_baz:proto.test.ProtoMessage_.OtherMessage_.ProtoEnum;
    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

View as plain text