Here are three examples of protobuf syntax.
-
item { name: "/m/01g317" id: 1 display_name: "person" } item { name: "/m/0199g" id: 2 display_name: "bicycle" } ...
-
anotherfield { foo: 123 bar: 456 } anotherfield { foo: 222 bar: 333 }
-
syntax = "proto3"; message SearchRequest { string query = 1; int32 page_number = 2; int32 result_per_page = 3; }
Official (#3) example is obviously differs from #1 and #2. Did I miss a paragraph in official documentation which states that colon can be used instead of equal sign?
Official documentation describes a JSON Mapping, but there is not a single example that looks like #1 and #2. Also #1 and #2 is not a valid JSON either (missing quotes around keys, missing commas).
Q: where are #1 and #2 syntax came from?
Link to better (than official docs) syntax description is appreciated.