You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by qi...@apache.org on 2018/03/14 03:33:12 UTC

[4/5] mesos git commit: Added a new protobuf message `MapMessage` for protobuf tests.

Added a new protobuf message `MapMessage` for protobuf tests.

Review: https://reviews.apache.org/r/59988/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/98358c01
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/98358c01
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/98358c01

Branch: refs/heads/master
Commit: 98358c01af6ebb1c9f2fcea9dca96389f3a6e1ed
Parents: 5b22614
Author: Qian Zhang <zh...@gmail.com>
Authored: Mon Jul 10 15:22:20 2017 +0800
Committer: Qian Zhang <zh...@gmail.com>
Committed: Wed Mar 14 08:18:53 2018 +0800

----------------------------------------------------------------------
 3rdparty/stout/tests/protobuf_tests.proto | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/98358c01/3rdparty/stout/tests/protobuf_tests.proto
----------------------------------------------------------------------
diff --git a/3rdparty/stout/tests/protobuf_tests.proto b/3rdparty/stout/tests/protobuf_tests.proto
index cf8aadc..5e20215 100644
--- a/3rdparty/stout/tests/protobuf_tests.proto
+++ b/3rdparty/stout/tests/protobuf_tests.proto
@@ -105,3 +105,28 @@ message EnumMessage {
   optional Enum e2 = 2;
   repeated Enum repeated_enum = 3;
 }
+
+
+// A message for testing map.
+message MapMessage {
+  map<string, string> string_to_string = 1;
+  map<string, bool> string_to_bool = 2;
+  map<string, bytes> string_to_bytes = 3;
+  map<string, int32> string_to_int32 = 4;
+  map<string, int64> string_to_int64 = 5;
+  map<string, uint32> string_to_uint32 = 6;
+  map<string, uint64> string_to_uint64 = 7;
+  map<string, sint32> string_to_sint32 = 8;
+  map<string, sint64> string_to_sint64 = 9;
+  map<string, float> string_to_float = 10;
+  map<string, double> string_to_double = 11;
+  map<string, Enum> string_to_enum = 12;
+  map<string, Nested> string_to_nested = 13;
+  map<bool, string> bool_to_string = 14;
+  map<int32, string> int32_to_string = 15;
+  map<int64, string> int64_to_string = 16;
+  map<uint32,string> uint32_to_string = 17;
+  map<uint64, string> uint64_to_string = 18;
+  map<sint32, string> sint32_to_string = 19;
+  map<sint64, string> sint64_to_string = 20;
+}