Dinesh Belwalkar | 4122960 | 2019-06-21 16:58:06 +0000 | [diff] [blame] | 1 | syntax = "proto3"; |
| 2 | |
| 3 | |
| 4 | package importer; |
| 5 | |
| 6 | import "google/protobuf/empty.proto"; |
| 7 | //import "google/api/annotations.proto"; |
| 8 | |
| 9 | |
| 10 | message DeviceInfo { |
| 11 | string ip_address = 1; |
| 12 | uint32 frequency = 2; |
| 13 | } |
| 14 | |
Dinesh Belwalkar | f57ee2e | 2019-07-11 17:46:00 +0000 | [diff] [blame] | 15 | message EventList { |
| 16 | string event_ip_address = 1; |
| 17 | repeated string events = 2; |
| 18 | } |
| 19 | |
Dinesh Belwalkar | 4122960 | 2019-06-21 16:58:06 +0000 | [diff] [blame] | 20 | |
| 21 | service device_management { |
Dinesh Belwalkar | f57ee2e | 2019-07-11 17:46:00 +0000 | [diff] [blame] | 22 | rpc SendDeviceInfo(DeviceInfo) returns (google.protobuf.Empty) {} |
| 23 | |
| 24 | rpc SetFrequency(DeviceInfo) returns (google.protobuf.Empty) {} |
| 25 | |
| 26 | rpc GetEventList(DeviceInfo) returns (EventList) {} |
| 27 | |
| 28 | rpc SubsrcribeGivenEvents(EventList) returns (google.protobuf.Empty) {} |
| 29 | |
| 30 | rpc UnSubsrcribeGivenEvents(EventList) returns (google.protobuf.Empty) {} |
Dinesh Belwalkar | 4122960 | 2019-06-21 16:58:06 +0000 | [diff] [blame] | 31 | } |
| 32 | |
| 33 | |
Dinesh Belwalkar | f57ee2e | 2019-07-11 17:46:00 +0000 | [diff] [blame] | 34 | |