aboutsummaryrefslogtreecommitdiffstats
path: root/tests/person.proto
diff options
context:
space:
mode:
Diffstat (limited to 'tests/person.proto')
-rw-r--r--tests/person.proto18
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;
+}