diff options
author | Joshua Haberman <jhaberman@gmail.com> | 2011-09-12 18:33:06 -0700 |
---|---|---|
committer | Joshua Haberman <jhaberman@gmail.com> | 2011-09-12 18:33:06 -0700 |
commit | 887abe669f9a71c5fb530f0315e350ba22a150a7 (patch) | |
tree | 0122e0acc30624102e0a82362f50f0e5dcc970ac /examples/example.proto | |
parent | bda3269a42877ae0a0b2b44b579cba5b13d5b1de (diff) |
Added an example, constified some more methods.
Diffstat (limited to 'examples/example.proto')
-rw-r--r-- | examples/example.proto | 15 |
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; +} |