Code Review
/
apps
/
agl-service-can-low-level.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Add gitlab issue/merge request templates
[apps/agl-service-can-low-level.git]
/
libs
/
nanopb
/
tests
/
regression
/
issue_188
/
oneof.proto
1
syntax = "proto2";
2
3
message MessageOne
4
{
5
required uint32 one = 1;
6
required uint32 two = 2;
7
required uint32 three = 3;
8
required int32 four = 4;
9
}
10
11
enum EnumTwo
12
{
13
SOME_ENUM_1 = 1;
14
SOME_ENUM_2 = 5;
15
SOME_ENUM_3 = 6;
16
SOME_ENUM_4 = 9;
17
SOME_ENUM_5 = 10;
18
SOME_ENUM_6 = 12;
19
SOME_ENUM_7 = 39;
20
SOME_ENUM_8 = 401;
21
}
22
23
message OneofMessage
24
{
25
oneof payload {
26
MessageOne message = 1;
27
EnumTwo enum = 2;
28
}
29
}