blob: 1ec491b9a3ba149965f0d30e2a9b65f3f6c0379e [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 {
Dinesh Belwalkara0493ad2019-07-22 19:58:42 +000011 string ip_address = 1;
12 uint32 frequency = 2;
13 string vendor = 3;
Dinesh Belwalkare1e85ad2019-07-31 23:06:47 +000014 string protocol = 4;
Dinesh Belwalkar41229602019-06-21 16:58:06 +000015}
16
Dinesh Belwalkarf57ee2e2019-07-11 17:46:00 +000017message EventList {
Dinesh Belwalkara0493ad2019-07-22 19:58:42 +000018 string event_ip_address = 1;
Dinesh Belwalkarf57ee2e2019-07-11 17:46:00 +000019 repeated string events = 2;
20}
21
Dinesh Belwalkara0493ad2019-07-22 19:58:42 +000022message SupportedEventList {
23 repeated string events = 1;
24}
Dinesh Belwalkar41229602019-06-21 16:58:06 +000025
26service device_management {
Dinesh Belwalkarf57ee2e2019-07-11 17:46:00 +000027 rpc SendDeviceInfo(DeviceInfo) returns (google.protobuf.Empty) {}
28
29 rpc SetFrequency(DeviceInfo) returns (google.protobuf.Empty) {}
30
Dinesh Belwalkara0493ad2019-07-22 19:58:42 +000031 rpc GetEventList(DeviceInfo) returns (SupportedEventList) {}
Dinesh Belwalkarf57ee2e2019-07-11 17:46:00 +000032
33 rpc SubsrcribeGivenEvents(EventList) returns (google.protobuf.Empty) {}
34
35 rpc UnSubsrcribeGivenEvents(EventList) returns (google.protobuf.Empty) {}
Dinesh Belwalkar41229602019-06-21 16:58:06 +000036}
37
38
Dinesh Belwalkarf57ee2e2019-07-11 17:46:00 +000039