data.proto 711 B

1234567891011121314151617181920212223242526272829303132
  1. syntax = "proto3";
  2. option go_package = "git.mokkon.com/sainw/fho_forward_proto";
  3. option java_multiple_files = true;
  4. package fho;
  5. import "google/protobuf/timestamp.proto";
  6. service DataService {
  7. rpc GetData(DataRequest) returns (DataReply) {}
  8. rpc StreamData(DataRequest) returns (stream DataReply) {}
  9. rpc UpdateData(DataRequest) returns (DataReply) {}
  10. }
  11. message DataRequest {
  12. string object =1;
  13. google.protobuf.Timestamp updated_after = 2;
  14. string data = 3;
  15. }
  16. message DataReply {
  17. enum ReplyStatus {
  18. SCHEDULE_TYPE_UNSPECIFIED = 0;
  19. OK = 1;
  20. ERROR = 2;
  21. }
  22. string data = 1;
  23. ReplyStatus reply_status = 2;
  24. string error_msg = 3;
  25. google.protobuf.Timestamp latest_updated_time = 4;
  26. }