blob: 6a582a24ebb86980362520eb9f949b6d650568a4 [file] [log] [blame]
Dinesh Belwalkar41229602019-06-21 16:58:06 +00001syntax = "proto3";
2
3
4package importer;
5
6import "google/protobuf/empty.proto";
7//import "google/api/annotations.proto";
8
9
10message DeviceInfo {
11 string ip_address = 1;
12 uint32 frequency = 2;
13}
14
Dinesh Belwalkarf57ee2e2019-07-11 17:46:00 +000015message EventList {
16 string event_ip_address = 1;
17 repeated string events = 2;
18}
19
Dinesh Belwalkar41229602019-06-21 16:58:06 +000020
21service device_management {
Dinesh Belwalkarf57ee2e2019-07-11 17:46:00 +000022 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 Belwalkar41229602019-06-21 16:58:06 +000031}
32
33
Dinesh Belwalkarf57ee2e2019-07-11 17:46:00 +000034