Add basic support for all google.protobuf types

This commit is contained in:
boukeversteegh
2020-05-29 15:37:14 +02:00
parent 53ce1255d3
commit 2a3e1e1827
3 changed files with 13 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
{
"maybe": false,
"ts": "1972-01-01T10:00:20.021Z",
"duration": "1.200s"
"duration": "1.200s",
"important": 10,
"empty": {}
}

View File

@@ -3,10 +3,12 @@ syntax = "proto3";
import "google/protobuf/duration.proto";
import "google/protobuf/timestamp.proto";
import "google/protobuf/wrappers.proto";
import "google/protobuf/empty.proto";
message Test {
google.protobuf.BoolValue maybe = 1;
google.protobuf.Timestamp ts = 2;
google.protobuf.Duration duration = 3;
google.protobuf.Int32Value important = 4;
google.protobuf.Empty empty = 5;
}