Built motion from commit 6a09e18b.|2.6.11
[motion2.git] / legacy-libs / grpc / node_modules / protobufjs / examples / protoify / json.proto
diff --git a/legacy-libs/grpc/node_modules/protobufjs/examples/protoify/json.proto b/legacy-libs/grpc/node_modules/protobufjs/examples/protoify/json.proto
new file mode 100644 (file)
index 0000000..d543392
--- /dev/null
@@ -0,0 +1,30 @@
+// Everything below is located in the js-namespace\r
+package js;\r
+\r
+// Represents a JavaScript value.\r
+// Contains exactly one or zero fields.\r
+message Value {\r
+    oneof type {\r
+        sint32 integer = 1;\r
+        double double = 2;\r
+        string string = 3;\r
+        bool boolean = 4;\r
+        bool null = 5;\r
+        Array array = 6;\r
+        Object object = 7;\r
+        // if none is set: undefined\r
+    }\r
+}\r
+\r
+// Represents a JavaScript array.\r
+// Contains zero to N values.\r
+message Array {\r
+    repeated Value values = 1;\r
+}\r
+\r
+// Represents a JavaScript object.\r
+// Contains zero to N keys with associated values.\r
+message Object {\r
+    repeated Value keys = 1;\r
+    repeated Value values = 2;\r
+}\r