summaryrefslogtreecommitdiffstats
path: root/sonar-core/src/test/protobuf
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2015-09-09 09:37:48 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2015-09-11 11:44:21 +0200
commit33a216e2071c028060d437fe2707b9e7012aae76 (patch)
tree4b52349f9a028aadde4e66d931ee38c55013d24d /sonar-core/src/test/protobuf
parent135df88fafd97a2fb78a9d7ec172fb8f39cdee3c (diff)
downloadsonarqube-33a216e2071c028060d437fe2707b9e7012aae76.tar.gz
sonarqube-33a216e2071c028060d437fe2707b9e7012aae76.zip
Upgrade protobuf lib to 3.0.0-beta-1
Diffstat (limited to 'sonar-core/src/test/protobuf')
-rw-r--r--sonar-core/src/test/protobuf/test.proto28
1 files changed, 19 insertions, 9 deletions
diff --git a/sonar-core/src/test/protobuf/test.proto b/sonar-core/src/test/protobuf/test.proto
index 2e1c09a00ae..fc86fe39521 100644
--- a/sonar-core/src/test/protobuf/test.proto
+++ b/sonar-core/src/test/protobuf/test.proto
@@ -34,7 +34,7 @@ enum FakeEnum {
GREEN = 2;
}
-message JsonTest {
+message PrimitiveTypeMsg {
optional string stringField = 1;
optional int32 intField = 2;
optional int64 longField = 3;
@@ -42,17 +42,27 @@ message JsonTest {
optional bool booleanField = 5;
optional FakeEnum enumField = 6;
optional bytes bytesField = 7;
- optional NestedJsonTest nested = 8;
- repeated string anArray = 9;
+ optional NestedMsg nested = 8;
}
-message JsonArrayTest {
-// naming convention. A boolean field is used
- // to know if the array field is present.
- optional bool aNullableArrayPresentIfEmpty = 1;
- repeated string aNullableArray = 2;
+message ArrayFieldMsg {
+ repeated string strings = 1;
+ repeated NestedMsg nesteds = 2;
+
+ // naming convention. A boolean field is used
+ // to know if the repeated field is present.
+ optional bool nullableArrayPresentIfEmpty = 3;
+ repeated string nullableArray = 4;
}
-message NestedJsonTest {
+message NestedMsg {
optional string label = 1;
}
+
+message MapMsg {
+ map<string,string> stringMap = 1;
+ map<string,NestedMsg> nestedMap = 2;
+
+ optional bool nullableStringMapPresentIfEmpty = 3;
+ map<string,string> nullableStringMap = 4;
+}