From 74bf45f379b35e1d103940f35d7a04545b0235d4 Mon Sep 17 00:00:00 2001 From: Feng Xiao Date: Fri, 8 Sep 2017 15:44:09 -0700 Subject: 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 . --- examples/addressbook.proto | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'examples/addressbook.proto') 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. -- cgit v1.2.3