aboutsummaryrefslogtreecommitdiffstats
path: root/Software/External Repositories/Protobuf/protobuf-c-master/t/test-proto3.proto
diff options
context:
space:
mode:
Diffstat (limited to 'Software/External Repositories/Protobuf/protobuf-c-master/t/test-proto3.proto')
-rw-r--r--Software/External Repositories/Protobuf/protobuf-c-master/t/test-proto3.proto40
1 files changed, 40 insertions, 0 deletions
diff --git a/Software/External Repositories/Protobuf/protobuf-c-master/t/test-proto3.proto b/Software/External Repositories/Protobuf/protobuf-c-master/t/test-proto3.proto
new file mode 100644
index 000000000..83fdf2a98
--- /dev/null
+++ b/Software/External Repositories/Protobuf/protobuf-c-master/t/test-proto3.proto
@@ -0,0 +1,40 @@
+syntax = "proto3";
+
+package foo;
+
+message Person {
+ string name = 1;
+ int32 id = 2;
+ string email = 3;
+
+ enum PhoneType {
+ MOBILE = 0;
+ HOME = 1;
+ WORK = 2;
+ }
+
+ message PhoneNumber {
+ message Comment {
+ string comment = 1;
+ }
+
+ string number = 1;
+ PhoneType type = 2;
+ Comment comment = 3;
+ }
+
+ repeated PhoneNumber phone = 4;
+}
+
+message LookupResult
+{
+ Person person = 1;
+}
+
+message Name {
+ string name = 1;
+};
+
+service DirLookup {
+ rpc ByName (Name) returns (LookupResult);
+}