all: Use protobuf to generate config structs (fixes #6734) (#6900)

This commit is contained in:
Audrius Butkevicius
2020-08-25 08:11:14 +02:00
committed by GitHub
parent 5b953033c7
commit d507d932b8
84 changed files with 3807 additions and 542 deletions
+20
View File
@@ -0,0 +1,20 @@
syntax = "proto3";
package config;
import "google/protobuf/timestamp.proto";
import "ext.proto";
message ObservedFolder {
google.protobuf.Timestamp time = 1 [(ext.xml) = "time,attr"];
string id = 2 [(ext.goname) = "ID", (ext.xml) = "id,attr"];
string label = 3 [(ext.xml) = "label,attr"];
}
message ObservedDevice {
google.protobuf.Timestamp time = 1 [(ext.xml) = "time,attr"];
bytes id = 2 [(ext.goname) = "ID", (ext.json) = "deviceID", (ext.xml) = "id,attr", (ext.device_id) = true];
string name = 3 [(ext.xml) = "name,attr"];
string address = 4 [(ext.xml) = "address,attr"];
}