2014-09-26 23:46:30 +00:00
|
|
|
// Generated from test.proto
|
|
|
|
|
2017-10-02 22:41:34 +00:00
|
|
|
namespace proto.test;
|
2014-09-26 23:46:30 +00:00
|
|
|
|
2015-03-31 09:03:11 +00:00
|
|
|
/// Enum doc comment.
|
2015-10-06 00:39:08 +00:00
|
|
|
enum ProtoEnum : int {
|
2019-04-11 20:52:01 +00:00
|
|
|
NUL = 0,
|
2014-09-26 23:46:30 +00:00
|
|
|
FOO = 1,
|
2015-03-31 09:03:11 +00:00
|
|
|
/// Enum 2nd value doc comment misaligned.
|
2014-09-26 23:46:30 +00:00
|
|
|
BAR = 5,
|
|
|
|
}
|
|
|
|
|
2015-10-06 00:39:08 +00:00
|
|
|
table ImportedMessage {
|
|
|
|
a:int;
|
|
|
|
}
|
|
|
|
|
2015-03-31 09:03:11 +00:00
|
|
|
/// 2nd table doc comment with
|
|
|
|
/// many lines.
|
2014-09-26 23:46:30 +00:00
|
|
|
table ProtoMessage {
|
|
|
|
c:int = 16;
|
|
|
|
d:long;
|
|
|
|
p:uint;
|
|
|
|
e:ulong;
|
2015-03-31 09:03:11 +00:00
|
|
|
/// doc comment for f.
|
2014-09-26 23:46:30 +00:00
|
|
|
f:int = -1;
|
|
|
|
g:long;
|
|
|
|
h:uint;
|
|
|
|
q:ulong;
|
|
|
|
i:int;
|
|
|
|
j:long;
|
2015-03-31 09:03:11 +00:00
|
|
|
/// doc comment for k.
|
2014-09-26 23:46:30 +00:00
|
|
|
k:bool;
|
2015-03-31 09:03:11 +00:00
|
|
|
/// doc comment for l on 2
|
|
|
|
/// lines
|
2014-09-26 23:46:30 +00:00
|
|
|
l:string (required);
|
2017-08-14 21:45:29 +00:00
|
|
|
m:[ubyte];
|
2017-10-02 22:41:34 +00:00
|
|
|
n:proto.test.ProtoMessage_.OtherMessage;
|
2014-09-26 23:46:30 +00:00
|
|
|
o:[string];
|
2017-10-02 22:41:34 +00:00
|
|
|
z:proto.test.ImportedMessage;
|
2018-03-05 16:45:25 +00:00
|
|
|
/// doc comment for r.
|
|
|
|
r:proto.test.ProtoMessage_.Anonymous0;
|
2014-09-26 23:46:30 +00:00
|
|
|
}
|
|
|
|
|
2017-10-02 22:41:34 +00:00
|
|
|
namespace proto.test.ProtoMessage_;
|
2015-10-06 00:39:08 +00:00
|
|
|
|
2015-09-28 16:42:45 +00:00
|
|
|
table OtherMessage {
|
|
|
|
a:double;
|
|
|
|
/// doc comment for b.
|
|
|
|
b:float = 3.14149;
|
|
|
|
}
|
|
|
|
|
2018-03-05 16:45:25 +00:00
|
|
|
table Anonymous0 {
|
|
|
|
/// doc comment for s.
|
|
|
|
s:proto.test.ImportedMessage;
|
|
|
|
/// doc comment for t on 2
|
|
|
|
/// lines.
|
|
|
|
t:proto.test.ProtoMessage_.OtherMessage;
|
|
|
|
}
|
|
|
|
|