-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmachine.proto
More file actions
33 lines (26 loc) · 766 Bytes
/
machine.proto
File metadata and controls
33 lines (26 loc) · 766 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
syntax = "proto3";
option csharp_namespace = "NetCoreMicroserviceSample.MachineService";
service MachineAccess {
rpc UpdateSettings(MachineSettingsUpdate) returns (MachineResponse);
rpc TriggerSwitch(SwitchTrigger) returns (MachineResponse);
rpc GetMeasurementStream(MeasurementRequest) returns (stream MeasurementResponse);
}
message MachineSettingsUpdate {
string MachineId = 1;
string SettingId = 2;
double Value = 3;
}
message SwitchTrigger {
string MachineId = 1;
string SwitchId = 2;
}
message MachineResponse {
int32 ResultCode = 1; // For demo purposes only, will always be 1
}
message MeasurementRequest {
string MachineId = 1;
}
message MeasurementResponse {
string MachineId = 1;
double Value = 2;
}