diff options
author | Petteri Aimonen <jpa@npb.mail.kapsi.fi> | 2011-07-25 20:42:48 +0000 |
---|---|---|
committer | Petteri Aimonen <jpa@npb.mail.kapsi.fi> | 2011-07-25 20:42:48 +0000 |
commit | 14bbe229974b516a82594ec6476488154e8957fa (patch) | |
tree | 178f51c1977a1ef8f83c6911741ddbfb8266a727 /tests/person.proto |
First version of decoding
git-svn-id: https://svn.kapsi.fi/jpa/nanopb@942 e3a754e5-d11d-0410-8d38-ebb782a927b9
Diffstat (limited to 'tests/person.proto')
-rw-r--r-- | tests/person.proto | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/person.proto b/tests/person.proto new file mode 100644 index 00000000..ec5b4cca --- /dev/null +++ b/tests/person.proto @@ -0,0 +1,18 @@ +message Person { + required string name = 1; + required int32 id = 2; + optional string email = 3; + + enum PhoneType { + MOBILE = 0; + HOME = 1; + WORK = 2; + } + + message PhoneNumber { + required string number = 1; + optional PhoneType type = 2 [default = HOME]; + } + + repeated PhoneNumber phone = 4; +} |