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 { |
Dinesh Belwalkar | a0493ad | 2019-07-22 19:58:42 +0000 | [diff] [blame] | 11 | string ip_address = 1; |
| 12 | uint32 frequency = 2; |
| 13 | string vendor = 3; |
Dinesh Belwalkar | e1e85ad | 2019-07-31 23:06:47 +0000 | [diff] [blame] | 14 | string protocol = 4; |
Dinesh Belwalkar | 4122960 | 2019-06-21 16:58:06 +0000 | [diff] [blame] | 15 | } |
| 16 | |
Dinesh Belwalkar | f57ee2e | 2019-07-11 17:46:00 +0000 | [diff] [blame] | 17 | message EventList { |
Dinesh Belwalkar | a0493ad | 2019-07-22 19:58:42 +0000 | [diff] [blame] | 18 | string event_ip_address = 1; |
Dinesh Belwalkar | f57ee2e | 2019-07-11 17:46:00 +0000 | [diff] [blame] | 19 | repeated string events = 2; |
| 20 | } |
| 21 | |
Dinesh Belwalkar | a0493ad | 2019-07-22 19:58:42 +0000 | [diff] [blame] | 22 | message SupportedEventList { |
| 23 | repeated string events = 1; |
| 24 | } |
Dinesh Belwalkar | 4122960 | 2019-06-21 16:58:06 +0000 | [diff] [blame] | 25 | |
| 26 | service device_management { |
Dinesh Belwalkar | f57ee2e | 2019-07-11 17:46:00 +0000 | [diff] [blame] | 27 | rpc SendDeviceInfo(DeviceInfo) returns (google.protobuf.Empty) {} |
| 28 | |
| 29 | rpc SetFrequency(DeviceInfo) returns (google.protobuf.Empty) {} |
| 30 | |
Dinesh Belwalkar | a0493ad | 2019-07-22 19:58:42 +0000 | [diff] [blame] | 31 | rpc GetEventList(DeviceInfo) returns (SupportedEventList) {} |
Dinesh Belwalkar | f57ee2e | 2019-07-11 17:46:00 +0000 | [diff] [blame] | 32 | |
| 33 | rpc SubsrcribeGivenEvents(EventList) returns (google.protobuf.Empty) {} |
| 34 | |
| 35 | rpc UnSubsrcribeGivenEvents(EventList) returns (google.protobuf.Empty) {} |
Dinesh Belwalkar | 4122960 | 2019-06-21 16:58:06 +0000 | [diff] [blame] | 36 | } |
| 37 | |
| 38 | |
Dinesh Belwalkar | f57ee2e | 2019-07-11 17:46:00 +0000 | [diff] [blame] | 39 | |