...

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

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

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

View as plain text