From 14bbe229974b516a82594ec6476488154e8957fa Mon Sep 17 00:00:00 2001 From: Petteri Aimonen Date: Mon, 25 Jul 2011 20:42:48 +0000 Subject: First version of decoding git-svn-id: https://svn.kapsi.fi/jpa/nanopb@942 e3a754e5-d11d-0410-8d38-ebb782a927b9 --- tests/person.proto | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tests/person.proto (limited to 'tests/person.proto') 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; +} -- cgit 1.2.3-korg