json.proto 679 B

123456789101112131415161718192021222324252627282930
  1. // Everything below is located in the js-namespace
  2. package js;
  3. // Represents a JavaScript value.
  4. // Contains exactly one or zero fields.
  5. message Value {
  6. oneof type {
  7. sint32 integer = 1;
  8. double double = 2;
  9. string string = 3;
  10. bool boolean = 4;
  11. bool null = 5;
  12. Array array = 6;
  13. Object object = 7;
  14. // if none is set: undefined
  15. }
  16. }
  17. // Represents a JavaScript array.
  18. // Contains zero to N values.
  19. message Array {
  20. repeated Value values = 1;
  21. }
  22. // Represents a JavaScript object.
  23. // Contains zero to N keys with associated values.
  24. message Object {
  25. repeated Value keys = 1;
  26. repeated Value values = 2;
  27. }