vex_mqtt_rust/proto/publish.proto

41 lines
815 B
Protocol Buffer

2024-01-15 11:42:12 -07:00
syntax = "proto2";
package tm;
message RobotEventsOptions {
optional bool enabled = 1;
optional string types = 2;
optional int32 divisionToPublish = 3;
optional int32 mappedDivisionId = 4;
}
message CustomUrlOption {
optional bool enabled = 1;
optional string url = 2;
}
message TwitterOption {
optional bool enabled = 1;
optional string username = 2;
optional string accessKey = 3;
optional string accessSecret = 4;
}
message PublishOptions {
enum PublishOptionId {
VEXSCORES = 1;
CUSTOM = 2;
TWITTER = 3;
ROBOTEVENTS = 4;
WORLDS = 1000;
}
optional tm.CustomUrlOption customUrl = 2;
optional tm.TwitterOption twitter = 3;
optional tm.RobotEventsOptions robotevents = 4;
}
message PublishStatus {
required bool success = 1;
required string userMsg = 2;
}