More features, refactoring

This commit is contained in:
Daniel G. Taylor
2019-10-08 00:23:11 -07:00
parent 6ed3b09f44
commit c932fbc72c
14 changed files with 276 additions and 112 deletions

View File

@@ -0,0 +1,3 @@
{
"count": -123.45
}

View File

@@ -0,0 +1,3 @@
{
"count": 123.45
}

View File

@@ -0,0 +1,5 @@
syntax = "proto3";
message Test {
double count = 1;
}

View File

@@ -0,0 +1,3 @@
{
"greeting": 1
}

View File

@@ -0,0 +1,14 @@
syntax = "proto3";
// Enum for the different greeting types
enum Greeting {
HI = 0;
HEY = 1;
// Formal greeting
HELLO = 2;
}
message Test {
// Greeting enum example
Greeting greeting = 1;
}

View File

@@ -1,3 +1,5 @@
{
"counts": [1, 2, -1, -2]
"counts": [1, 2, -1, -2],
"signed": [1, 2, -1, -2],
"fixed": [1.0, 2.7, 3.4]
}

View File

@@ -2,4 +2,6 @@ syntax = "proto3";
message Test {
repeated int32 counts = 1;
repeated sint64 signed = 2;
repeated double fixed = 3;
}