blob: e7117b12004b832204cea0dad392f0f948fec8c6 [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 Belwalkarb5db83f2019-10-24 17:27:58 +000017message GivenEventList {
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 Belwalkarb5db83f2019-10-24 17:27:58 +000022message EventList {
Dinesh Belwalkara0493ad2019-07-22 19:58:42 +000023 repeated string events = 1;
24}
Dinesh Belwalkar41229602019-06-21 16:58:06 +000025
Dinesh Belwalkarb5db83f2019-10-24 17:27:58 +000026message FreqInfo {
27 string IpAddress = 1;
28 uint32 Frequency = 2;
29}
30
31message VendorInfo {
32 string Vendor = 1;
33}
34
35message Device {
36 string IpAddress = 1;
37}
38
dileepbk86ef0102019-11-13 00:08:33 +000039message DeviceList {
40 repeated string ip = 1;
41}
Dinesh Belwalkarb5db83f2019-10-24 17:27:58 +000042
43message Empty {}
dileepbk86ef0102019-11-13 00:08:33 +000044
Dinesh Belwalkar41229602019-06-21 16:58:06 +000045service device_management {
Dinesh Belwalkarf57ee2e2019-07-11 17:46:00 +000046 rpc SendDeviceInfo(DeviceInfo) returns (google.protobuf.Empty) {}
47
Dinesh Belwalkarb5db83f2019-10-24 17:27:58 +000048 rpc SetFrequency(FreqInfo) returns (google.protobuf.Empty) {}
Dinesh Belwalkarf57ee2e2019-07-11 17:46:00 +000049
Dinesh Belwalkarb5db83f2019-10-24 17:27:58 +000050 rpc GetEventList(VendorInfo) returns (EventList) {}
Dinesh Belwalkarf57ee2e2019-07-11 17:46:00 +000051
Dinesh Belwalkarb5db83f2019-10-24 17:27:58 +000052 rpc SubsrcribeGivenEvents(GivenEventList) returns (google.protobuf.Empty) {}
Dinesh Belwalkarf57ee2e2019-07-11 17:46:00 +000053
Dinesh Belwalkarb5db83f2019-10-24 17:27:58 +000054 rpc UnSubsrcribeGivenEvents(GivenEventList) returns (google.protobuf.Empty) {}
55
56 rpc GetCurrentEventList(Device) returns (EventList) {}
57
58 rpc ClearCurrentEventList(Device) returns (google.protobuf.Empty) {}
59
dileepbk86ef0102019-11-13 00:08:33 +000060 rpc GetCurrentDevices(Empty) returns (DeviceList) {}
Dinesh Belwalkar41229602019-06-21 16:58:06 +000061}
62
63
Dinesh Belwalkarf57ee2e2019-07-11 17:46:00 +000064