Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Side by Side Diff: third_party/dom_distiller_js/protoc_plugins/README.md

Issue 2034373002: Generate the proto JSON converter for DOM distiller (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Windows-specific fixes Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 # protoc plugin for JSON converter
2
3 These protoc plugins use a simple JSON encoding.
4
5 An instance of the following protobuf:
6
7 ```
8 message Foo {
9 message Bar {
10 repeated string rabbits = 1;
11 }
12 optional string cat = 1;
13 repeated int32 dog = 2;
14 optional Bar rabbit_den = 3;
15 }
16 ```
17
18 could be encoded to something like:
19
20 ```
21 {
22 "1": "kitty",
23 "2": [4, 16, 9],
24 "3": { "1": ["thumper", "oreo", "daisy"] }
25 }
26 ```
27
28 Only a limited part of the protocol buffer IDL is supported.
29
30 * Supported field types: `float`, `double`, `int32`, `bool`, `string`, `messag e`, and `enum`
31
32 * Supported field rules: `optional`, `repeated`
33
34 * Unsupported features:
35
36 * default values
37 * imports
38 * extensions
39 * services
40 * non-file-level options
OLDNEW
« no previous file with comments | « third_party/dom_distiller_js/README.chromium ('k') | third_party/dom_distiller_js/protoc_plugins/json_values_converter.bat » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698