forked from xtech/self-o-mat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
api.proto
132 lines (104 loc) · 3.25 KB
/
api.proto
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
syntax = "proto2";
package xtech.selfomat;
message Status {
enum State {
INITIALIZING = 0;
RUNNING = 1;
ERROR = 2;
}
required State current_state = 1;
}
message BoothError {
required int32 code = 1;
required string title = 2;
required string message = 3;
}
message IntUpdate {
required int64 value = 1;
}
message BoolUpdate {
required bool value = 1;
}
message FloatUpdate {
required float value = 1;
}
message ReadOnlySetting {
required string name = 1;
required string value = 2;
}
message PostSetting {
required string name = 1;
required string post_url = 2;
optional string alert = 3;
}
message FileUploadSetting {
required string name = 1;
required string post_url = 2;
optional string input_accept = 3;
}
message LinkSetting {
required string name = 1;
required string url = 2;
}
message ListSetting {
required string name = 1;
required int32 currentIndex = 2;
repeated string values = 3;
required string update_url = 4;
}
message BoolSetting {
required string name = 1;
required bool currentValue = 2;
required string update_url = 3;
}
message FloatSetting {
required string name = 1;
required float currentValue = 2;
required float minValue = 3;
required float maxValue = 4;
required string update_url = 5;
}
message IntSetting {
required string name = 1;
required int64 currentValue = 2;
required int64 minValue = 3;
required int64 maxValue = 4;
required string update_url = 5;
}
message CameraSettings {
required ListSetting iso = 1;
required ListSetting shutter_speed = 2;
required ListSetting aperture = 3;
required ListSetting exposure_compensation = 4;
required ListSetting exposure_compensation_trigger = 5;
required ListSetting image_format = 6;
required ReadOnlySetting camera_name = 7;
required ReadOnlySetting lens_name = 8;
optional PostSetting focus = 10;
}
message BoothSettings {
required ListSetting language_choice = 5;
required BoolSetting storage_enabled = 10;
required BoolSetting printer_enabled = 11;
required BoolSetting print_confirmation_enabled = 12;
required ListSetting filter_choice = 20;
required FloatSetting filter_gain = 21;
optional FileUploadSetting template_upload = 30;
optional BoolSetting template_enabled = 31;
optional ListSetting led_mode = 40;
optional ListSetting led_count = 41;
required PostSetting led_offset_clockwise = 42;
required PostSetting led_offset_counter_clockwise = 43;
required ListSetting countdown_duration = 44;
optional IntSetting max_led_brightness = 45;
required BoolSetting autofocus_before_trigger = 46;
optional LinkSetting cups_link = 50;
required PostSetting update_mode = 51;
optional BoolSetting flash_enabled = 200;
optional BoolSetting flashMode = 201;
optional IntSetting flash_duration_micros = 202;
optional PostSetting flash_test = 203;
optional BoolSetting debug_log_enabled = 240;
required ReadOnlySetting trigger_counter = 250;
required ReadOnlySetting software_version = 255;
}