Index: third_party/protobuf/src/google/protobuf/empty.proto |
diff --git a/third_party/protobuf/src/google/protobuf/unittest_import_lite.proto b/third_party/protobuf/src/google/protobuf/empty.proto |
similarity index 69% |
copy from third_party/protobuf/src/google/protobuf/unittest_import_lite.proto |
copy to third_party/protobuf/src/google/protobuf/empty.proto |
index 81b117fe8489ecc4cba5410dbf876b4ca473657b..b96daf280e7d5d5b7dfe0a5760face1a9c6975d4 100644 |
--- a/third_party/protobuf/src/google/protobuf/unittest_import_lite.proto |
+++ b/third_party/protobuf/src/google/protobuf/empty.proto |
@@ -1,6 +1,6 @@ |
// Protocol Buffers - Google's data interchange format |
// Copyright 2008 Google Inc. All rights reserved. |
-// http://code.google.com/p/protobuf/ |
+// https://developers.google.com/protocol-buffers/ |
// |
// Redistribution and use in source and binary forms, with or without |
// modification, are permitted provided that the following conditions are |
@@ -28,24 +28,25 @@ |
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
-// Author: kenton@google.com (Kenton Varda) |
-// |
-// This is like unittest_import.proto but with optimize_for = LITE_RUNTIME. |
- |
-package protobuf_unittest_import; |
+syntax = "proto3"; |
-option optimize_for = LITE_RUNTIME; |
+package google.protobuf; |
+option csharp_namespace = "Google.Protobuf.WellKnownTypes"; |
option java_package = "com.google.protobuf"; |
+option java_outer_classname = "EmptyProto"; |
+option java_multiple_files = true; |
+option java_generate_equals_and_hash = true; |
+option objc_class_prefix = "GPB"; |
+option cc_enable_arenas = true; |
-import public "google/protobuf/unittest_import_public_lite.proto"; |
- |
-message ImportMessageLite { |
- optional int32 d = 1; |
-} |
- |
-enum ImportEnumLite { |
- IMPORT_LITE_FOO = 7; |
- IMPORT_LITE_BAR = 8; |
- IMPORT_LITE_BAZ = 9; |
-} |
+// A generic empty message that you can re-use to avoid defining duplicated |
+// empty messages in your APIs. A typical example is to use it as the request |
+// or the response type of an API method. For instance: |
+// |
+// service Foo { |
+// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); |
+// } |
+// |
+// The JSON representation for `Empty` is empty JSON object `{}`. |
+message Empty {} |