vex_mqtt_rust/proto/award.proto

114 lines
2.7 KiB
Protocol Buffer

2024-01-15 11:42:12 -07:00
syntax = "proto2";
package tm;
import "team.proto";
import "division.proto";
message DivisionAward {
optional tm.Division division = 1;
optional bool givenAtEvent = 2 [default = true];
optional tm.TeamInfo team = 3;
optional string recipient = 4;
optional string description = 5;
}
message Award {
enum AwardType {
TEAM = 1;
INDIVIDUAL = 2;
NONE = 3;
CLUB = 4;
}
optional int32 id = 1;
optional tm.Award.AwardType type = 2 [default = NONE];
optional string name = 3;
optional bool isUserDefined = 4 [default = false];
optional uint32 sortOrder = 5 [default = 0];
repeated tm.DivisionAward divAwards = 6;
optional int32 robotEventsId = 7 [default = 0];
}
message AwardList {
repeated tm.Award awards = 1;
}
message AwardReference {
optional int32 awardId = 1;
optional int32 divisionId = 2;
}
message DisplaySlide {
message Alliance {
enum AllianceEnum {
NO_ALLIANCE = 0;
WINNER = 1;
FINALIST1 = 2;
FINALIST2 = 3;
RUNNER_UP = 4;
SEED_1 = 5;
SEED_2 = 6;
SEED_3 = 7;
SEED_4 = 8;
SEED_5 = 9;
SEED_6 = 10;
SEED_7 = 11;
SEED_8 = 12;
SEED_9 = 13;
SEED_10 = 14;
}
optional string name = 1;
optional tm.DisplaySlide.Alliance.AllianceEnum id = 2;
optional int32 divisionId = 3;
}
message Speaker {
optional string name = 1;
optional string title = 2;
optional string org = 3;
}
message Custom {
optional string OBSOLETE_line1 = 1;
optional string OBSOLETE_line2 = 2;
repeated string data = 3;
}
enum SlideType {
NONE = 0;
INTRO = 1;
SINGLE_AWARD = 2;
SINGLE_AWARD_MULTIPLE_DIVISIONS = 3;
MULTIPLE_AWARDS = 4;
ELIM_ALLIANCE = 5;
SPEAKER = 6;
MULTIPLE_SPEAKERS = 7;
IMAGE = 8;
SEPARATOR = 9;
CUSTOM_SINGLE_AWARD = 10;
CUSTOM_MULTIPLE_AWARDS = 11;
}
enum LogoSelectMode {
LOGO_MODE_AUTO = 0;
LOGO_MODE_VRC = 1;
LOGO_MODE_VIQ = 2;
LOGO_MODE_WORLDS = 3;
LOGO_MODE_VEXU = 4;
LOGO_MODE_RADC = 5;
LOGO_MODE_BELL = 6;
}
optional int32 id = 1;
optional uint32 sortOrder = 2 [default = 0];
optional tm.DisplaySlide.SlideType type = 3 [default = NONE];
optional string title = 4;
optional bool overlay = 5 [default = true];
repeated tm.AwardReference awards = 6;
optional tm.DisplaySlide.Alliance alliance = 7;
repeated tm.DisplaySlide.Speaker speakers = 8;
optional bytes image = 9;
optional int32 winnerId = 10;
repeated tm.DisplaySlide.Custom customInfo = 11;
optional bool useCustomSlideTitle = 12 [default = false];
optional tm.DisplaySlide.LogoSelectMode logoSelectMode = 13 [default = LOGO_MODE_AUTO];
}
message DisplaySlideList {
repeated tm.DisplaySlide slides = 1;
}