def.proto 422 B

1234567891011121314151617181920212223
  1. syntax = "proto2";
  2. message PointXY {
  3. required float x = 1;
  4. required float y = 2;
  5. }
  6. message clouds {
  7. repeated PointXY clamp_1 = 1;
  8. repeated PointXY clamp_2 = 2;
  9. repeated PointXY clamp_3 = 3;
  10. repeated PointXY clamp_4 = 4;
  11. }
  12. message RequestCmd {
  13. optional bool start = 1;
  14. }
  15. service StreamServer{
  16. rpc OpenStream(RequestCmd) returns(stream clouds){}
  17. rpc CloseStream(RequestCmd) returns(stream clouds){}
  18. }