Time.proto 366 B

123456789101112131415
  1. syntax = "proto3";
  2. import "gRPC_Model/general.proto";
  3. option go_package ="./gRPC_Model";
  4. message Timestamp {
  5. int64 seconds = 1;
  6. }
  7. message StateSwitch{
  8. bool State = 1;
  9. }
  10. service Time {
  11. rpc GetTime (Empty) returns (Timestamp);
  12. rpc SetTime (Timestamp) returns (Empty);
  13. rpc AutoSet(StateSwitch) returns(Empty);
  14. rpc AutoSetState(Empty)returns(StateSwitch);
  15. }