data.proto 639 B

123456789101112131415161718192021222324252627282930
  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. }
  10. message DataRequest {
  11. string object =1;
  12. google.protobuf.Timestamp updated_after = 2;
  13. }
  14. message DataReply {
  15. enum ReplyStatus {
  16. SCHEDULE_TYPE_UNSPECIFIED = 0;
  17. OK = 1;
  18. ERROR = 2;
  19. }
  20. string data = 1;
  21. ReplyStatus reply_status = 2;
  22. string error_msg = 3;
  23. google.protobuf.Timestamp latest_updated_time = 4;
  24. }