map.proto 246 B

1234567891011121314151617181920
  1. syntax = "proto3";
  2. package MapMessage;
  3. message Node {
  4. int32 id=1;
  5. float x=2;
  6. float y=3;
  7. }
  8. message Edge
  9. {
  10. int32 id1=1;
  11. int32 id2=2;
  12. bool directed=3; //是否单项
  13. }
  14. message Map {
  15. repeated Node nodes=1;
  16. repeated Edge edges=2;
  17. }