aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/addressbook.proto
diff options
context:
space:
mode:
authorGravatar Feng Xiao <xfxyjwf@gmail.com>2017-09-08 15:44:09 -0700
committerGravatar Feng Xiao <xfxyjwf@gmail.com>2017-09-08 16:01:49 -0700
commit74bf45f379b35e1d103940f35d7a04545b0235d4 (patch)
treed3fae8b44d416796e0bc36351271bb1379d27091 /examples/addressbook.proto
parent2ad5c0a86443f567241e0295c313baf4f0e15379 (diff)
Add bazel support for examples.
The example utilizes native bazel rules (proto_library, cc_proto_library, java_proto_library, java_lite_proto_library) to show how easy it is to build protobuf with bazel's native support. It also makes use of well known types which was not possible until the latest bazel 0.5.4 release and https://github.com/google/protobuf/pull/3594 .
Diffstat (limited to 'examples/addressbook.proto')
-rw-r--r--examples/addressbook.proto4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/addressbook.proto b/examples/addressbook.proto
index 23cc2f97..b4b33b4c 100644
--- a/examples/addressbook.proto
+++ b/examples/addressbook.proto
@@ -9,6 +9,8 @@
// [START declaration]
syntax = "proto3";
package tutorial;
+
+import "google/protobuf/timestamp.proto";
// [END declaration]
// [START java_declaration]
@@ -38,6 +40,8 @@ message Person {
}
repeated PhoneNumber phones = 4;
+
+ google.protobuf.Timestamp last_updated = 5;
}
// Our address book file is just one of these.