summaryrefslogtreecommitdiff
path: root/examples/example.proto
diff options
context:
space:
mode:
authorJoshua Haberman <jhaberman@gmail.com>2011-09-12 18:33:06 -0700
committerJoshua Haberman <jhaberman@gmail.com>2011-09-12 18:33:06 -0700
commit887abe669f9a71c5fb530f0315e350ba22a150a7 (patch)
tree0122e0acc30624102e0a82362f50f0e5dcc970ac /examples/example.proto
parentbda3269a42877ae0a0b2b44b579cba5b13d5b1de (diff)
Added an example, constified some more methods.
Diffstat (limited to 'examples/example.proto')
-rw-r--r--examples/example.proto15
1 files changed, 15 insertions, 0 deletions
diff --git a/examples/example.proto b/examples/example.proto
new file mode 100644
index 0000000..231c455
--- /dev/null
+++ b/examples/example.proto
@@ -0,0 +1,15 @@
+//
+// upb - a minimalist implementation of protocol buffers.
+//
+// Copyright (c) 2011 Google Inc. See LICENSE for details.
+// Author: Josh Haberman <jhaberman@gmail.com>
+//
+// A .proto file for the examples in this directory.
+
+package example;
+
+message SampleMessage {
+ optional string name = 1;
+ optional int32 id = 2;
+ optional string email = 3;
+}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback