dynamic_value.proto 897 B

123456789101112131415161718192021222324252627282930313233343536
  1. syntax = "proto3";
  2. import "google/protobuf/timestamp.proto";
  3. import "google/protobuf/duration.proto";
  4. package pyth_lazer;
  5. // A dynamically typed value similar to `google.protobuf.Value`
  6. // but supporting more types.
  7. message DynamicValue {
  8. message List {
  9. repeated DynamicValue items = 1;
  10. }
  11. message MapItem {
  12. // [required] Must be unique.
  13. optional string key = 1;
  14. // [required]
  15. optional DynamicValue value = 2;
  16. }
  17. message Map {
  18. repeated MapItem items = 1;
  19. }
  20. oneof value {
  21. string string_value = 1;
  22. double double_value = 2;
  23. uint64 uint_value = 3;
  24. sint64 int_value = 4;
  25. bool bool_value = 5;
  26. bytes bytes_value = 6;
  27. google.protobuf.Duration duration_value = 7;
  28. google.protobuf.Timestamp timestamp_value = 8;
  29. List list = 9;
  30. Map map = 10;
  31. }
  32. }