You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
619 B

10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
  1. syntax = "proto3";
  2. package schema_pb;
  3. option go_package = "github.com/seaweedfs/seaweedfs/weed/pb/schema_pb";
  4. message RecordType {
  5. repeated Field fields = 1;
  6. }
  7. message Field {
  8. string name = 1;
  9. Type type = 2;
  10. int32 index = 3;
  11. bool is_repeated = 4;
  12. }
  13. message Type {
  14. oneof kind {
  15. ScalarType scalar_type = 1;
  16. RecordType record_type = 2;
  17. // MapType map_type = 3;
  18. }
  19. }
  20. enum ScalarType {
  21. BOOLEAN = 0;
  22. INTEGER = 1;
  23. LONG = 3;
  24. FLOAT = 4;
  25. DOUBLE = 5;
  26. BYTES = 6;
  27. STRING = 7;
  28. }
  29. message MapType {
  30. // key is always string
  31. Type value = 1;
  32. }