This commit is contained in:
Юрий Першин
2022-03-04 07:13:40 +05:00
parent 9841de322a
commit 2e2d1e68b0
3 changed files with 74 additions and 53 deletions

View File

@@ -3,13 +3,13 @@ import "profile.proto"; //enums PlayerType and Sport
message EventSubgroupProtobuf {
required uint64 id = 1; // 2395269
optional string description = 2; // "3R True2 Steady Ride [2.0w/kg avg] (C)"
optional string evs_f3 = 3; // ""
optional string title = 2; // ex: "3R True2 Steady Ride [2.0w/kg avg] (C)"
optional string description = 3; // ex: "Welcome to our sociable early morning/evening social group ride."
optional uint32 evs_f4 = 4; // ""
optional uint32 evs_f5 = 5; // 154
optional uint32 evs_f5 = 5; // 154 and others
optional uint32 evs_f6 = 6; // 0
optional string evs_f7 = 7; // "PT3600S"
optional uint64 rules_id = 8; // 320
optional string scode = 7; // ex: "PT3600S"
optional uint64 rules_id = 8; // 320 and others
optional uint64 registrationStart = 9;
optional uint64 registrationStartWT = 10;
optional uint64 registrationEnd = 11;
@@ -22,53 +22,59 @@ message EventSubgroupProtobuf {
optional uint64 eventSubgroupStartWT = 18;
optional uint64 evs_f19 = 19;
optional uint64 evs_f20 = 20; //tag416
optional bool evs_f21 = 21; // 0, tag424
optional bool evs_f21 = 21; // false, tag424
required uint64 route_id = 22; // 3366225080
repeated uint64 leaders = 23; // or sweepers? tag440
optional fixed32 evs_f24 = 24; //tag453
optional uint32 laps = 25; // 0, tag456
// no 26-28
repeated uint64 leaders = 23; // [189840] and others | or sweepers? tag440
optional float evs_f24 = 24; //timetrial: 16093.0 or bitfield, tag453
optional uint32 laps = 25; // 0 and others, tag456
// no 26-28
optional uint64 startLocation = 29; // 13, tag488 [>=6 -> 'bad start location'] valid values: 1..5 (0->1)
optional uint32 label = 30; // 3, tag496
optional uint32 paceType = 31; // 1, tag504
optional fixed32 evs_f32 = 32; // 1076258406, tag645
optional fixed32 evs_f33 = 33; // 1078774989, tag653
optional uint32 label = 30; // A:1, B:2, C:3, D:4, E:5 etc, tag496
optional uint32 paceType = 31; // 1 everywhere, tag504
optional float evs_f32 = 32; // 1.0 and others, tag645
optional float evs_f33 = 33; // 5.0 and others, tag653
optional uint32 duration = 34; // Duration of event in seconds, tag656
optional uint32 evs_f35 = 35; // tag664
optional uint64 jerseyHash = 36; // 493134166, tag672
optional bool evs_f37 = 37; // 0, tag680
optional uint32 evs_f38 = 38; // tag688
optional string audio = 39; // "https://cdn.zwift.com/AudioBroadcasts/wbrgrouprideaudiov4", tag698
optional uint64 evs_f40 = 40; // tag704
repeated uint64 sweepers = 41; // or leaders?, tag712
optional uint64 evs_f40 = 40; // 4208139356, tag704
repeated uint64 sweepers = 41; // [189840] and others | or leaders?, tag712
optional uint64 evs_f42 = 42; // tag720
optional string evs_f43 = 43; // tag730
optional bool evs_f44 = 44; // 0, tag736
optional string workout_url = 43; // https://cdn.zwift.com/events/upload/workouts/CafeRide1.zwo, tag730
optional bool evs_f44 = 44; // false, tag736
optional string tags = 45; // tag746, semi-colon delimited tags eg: "fenced;3r;created_ryan;communityevent;no_kick_mode;timestamp=1603911177622"
optional uint32 lateJoinInMinutes = 46; //tag752
optional uint64 map_id = 47; // 1, tag760
optional uint64 map_id = 47; // 1 and others: course?, tag760
optional uint64 evs_f48 = 48; //tag898
optional string evs_f49 = 49; //tag906
repeated int32 evs_f50 = 50; //tag912
optional bool evs_f51 = 51; //tag920
}
enum EventVisibility {
EV_NULL = 0;
EV_PUB_SHARE = 1; // event public shareable
EV_BY_RESOURCE = 2; // event defined by resource
EV_SHAREABLE = 3;
}
message MicroserviceEventData {
optional string msed_f1 = 1;
optional string msed_f2 = 2;
optional uint64 msed_f3 = 3;
optional string stype = 1; // "clubs" everywhere
optional bytes data = 2; // different 16-byte bb4538bfd13346c99a4df2b3cc3b5d95
optional EventVisibility vis = 3; // enum 1
}
message EventSeriesProtobuf {
optional uint64 es_f1 = 1;
optional string es_f2 = 2;
optional string es_f3 = 3;
optional uint64 id = 1; //5445 or 1485
optional string name = 2; //INEOSVTC or "Fast Friday"
optional string congrats = 3; //"" or "Congratulations, you crushed another week of workouts! ..."
}
message EventTimeTrialOptions {
optional uint32 evt_f1 = 1;
optional uint32 evt_f2 = 2;
optional uint32 evt_f3 = 3;
optional uint32 evt_f1 = 1; //15000 everywhere
optional uint32 evt_f2 = 2; //50 or 25
optional uint32 evt_f3 = 3; //10 everywhere
optional uint32 evt_f4 = 4;
optional uint64 evt_f5 = 5;
}
@@ -106,7 +112,7 @@ message Event { //real name: EventProtobuf
optional EventSeriesProtobuf evSeries = 30;
optional string tags = 31; // semi-colon delimited tags
optional uint64 e_f32 = 32;
optional bool e_f33 = 33;
optional bool e_wtrl = 33; //WTRL (World Tactical Racing Leagues)
optional uint32 lateJoinInMinutes = 34;
optional uint64 map_id = 35;
optional EventTimeTrialOptions tto = 36;

View File

@@ -2,6 +2,7 @@
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: events.proto
"""Generated protocol buffer code."""
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import message as _message
@@ -15,8 +16,14 @@ _sym_db = _symbol_database.Default()
import profile_pb2 as profile__pb2
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0c\x65vents.proto\x1a\rprofile.proto\"\x9e\x07\n\x15\x45ventSubgroupProtobuf\x12\n\n\x02id\x18\x01 \x02(\x04\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x0e\n\x06\x65vs_f3\x18\x03 \x01(\t\x12\x0e\n\x06\x65vs_f4\x18\x04 \x01(\r\x12\x0e\n\x06\x65vs_f5\x18\x05 \x01(\r\x12\x0e\n\x06\x65vs_f6\x18\x06 \x01(\r\x12\x0e\n\x06\x65vs_f7\x18\x07 \x01(\t\x12\x10\n\x08rules_id\x18\x08 \x01(\x04\x12\x19\n\x11registrationStart\x18\t \x01(\x04\x12\x1b\n\x13registrationStartWT\x18\n \x01(\x04\x12\x17\n\x0fregistrationEnd\x18\x0b \x01(\x04\x12\x19\n\x11registrationEndWT\x18\x0c \x01(\x04\x12\x13\n\x0blineUpStart\x18\r \x01(\x04\x12\x15\n\rlineUpStartWT\x18\x0e \x01(\x04\x12\x11\n\tlineUpEnd\x18\x0f \x01(\x04\x12\x13\n\x0blineUpEndWT\x18\x10 \x01(\x04\x12\x1a\n\x12\x65ventSubgroupStart\x18\x11 \x01(\x04\x12\x1c\n\x14\x65ventSubgroupStartWT\x18\x12 \x01(\x04\x12\x0f\n\x07\x65vs_f19\x18\x13 \x01(\x04\x12\x0f\n\x07\x65vs_f20\x18\x14 \x01(\x04\x12\x0f\n\x07\x65vs_f21\x18\x15 \x01(\x08\x12\x10\n\x08route_id\x18\x16 \x02(\x04\x12\x0f\n\x07leaders\x18\x17 \x03(\x04\x12\x0f\n\x07\x65vs_f24\x18\x18 \x01(\x07\x12\x0c\n\x04laps\x18\x19 \x01(\r\x12\x15\n\rstartLocation\x18\x1d \x01(\x04\x12\r\n\x05label\x18\x1e \x01(\r\x12\x10\n\x08paceType\x18\x1f \x01(\r\x12\x0f\n\x07\x65vs_f32\x18 \x01(\x07\x12\x0f\n\x07\x65vs_f33\x18! \x01(\x07\x12\x10\n\x08\x64uration\x18\" \x01(\r\x12\x0f\n\x07\x65vs_f35\x18# \x01(\r\x12\x12\n\njerseyHash\x18$ \x01(\x04\x12\x0f\n\x07\x65vs_f37\x18% \x01(\x08\x12\x0f\n\x07\x65vs_f38\x18& \x01(\r\x12\r\n\x05\x61udio\x18\' \x01(\t\x12\x0f\n\x07\x65vs_f40\x18( \x01(\x04\x12\x10\n\x08sweepers\x18) \x03(\x04\x12\x0f\n\x07\x65vs_f42\x18* \x01(\x04\x12\x0f\n\x07\x65vs_f43\x18+ \x01(\t\x12\x0f\n\x07\x65vs_f44\x18, \x01(\x08\x12\x0c\n\x04tags\x18- \x01(\t\x12\x19\n\x11lateJoinInMinutes\x18. \x01(\r\x12\x0e\n\x06map_id\x18/ \x01(\x04\x12\x0f\n\x07\x65vs_f48\x18\x30 \x01(\x04\x12\x0f\n\x07\x65vs_f49\x18\x31 \x01(\t\x12\x0f\n\x07\x65vs_f50\x18\x32 \x03(\x05\x12\x0f\n\x07\x65vs_f51\x18\x33 \x01(\x08\"J\n\x15MicroserviceEventData\x12\x0f\n\x07msed_f1\x18\x01 \x01(\t\x12\x0f\n\x07msed_f2\x18\x02 \x01(\t\x12\x0f\n\x07msed_f3\x18\x03 \x01(\x04\"B\n\x13\x45ventSeriesProtobuf\x12\r\n\x05\x65s_f1\x18\x01 \x01(\x04\x12\r\n\x05\x65s_f2\x18\x02 \x01(\t\x12\r\n\x05\x65s_f3\x18\x03 \x01(\t\"g\n\x15\x45ventTimeTrialOptions\x12\x0e\n\x06\x65vt_f1\x18\x01 \x01(\r\x12\x0e\n\x06\x65vt_f2\x18\x02 \x01(\r\x12\x0e\n\x06\x65vt_f3\x18\x03 \x01(\r\x12\x0e\n\x06\x65vt_f4\x18\x04 \x01(\r\x12\x0e\n\x06\x65vt_f5\x18\x05 \x01(\x04\"\xf9\x05\n\x05\x45vent\x12\n\n\x02id\x18\x01 \x02(\x04\x12\x14\n\x0cserver_realm\x18\x02 \x01(\x04\x12\r\n\x05title\x18\x03 \x02(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x12\n\neventStart\x18\x05 \x01(\x04\x12\x0c\n\x04\x65_f6\x18\x06 \x01(\t\x12\x0c\n\x04\x65_f7\x18\x07 \x01(\x07\x12\x0c\n\x04laps\x18\x08 \x01(\r\x12\x0c\n\x04\x65_f9\x18\t \x01(\r\x12(\n\x08\x63\x61tegory\x18\n \x03(\x0b\x32\x16.EventSubgroupProtobuf\x12\r\n\x05\x65_f11\x18\x0b \x01(\t\x12\x0f\n\x07pic_url\x18\x0c \x01(\t\x12\x10\n\x08\x64uration\x18\r \x01(\r\x12\x10\n\x08route_id\x18\x0e \x01(\x04\x12\x10\n\x08rules_id\x18\x0f \x01(\x04\x12\r\n\x05\x65_f16\x18\x10 \x01(\r\x12\r\n\x05\x65_f17\x18\x11 \x01(\x08\x12\r\n\x05\x65_f18\x18\x12 \x01(\x04\x12\r\n\x05\x65_f19\x18\x13 \x01(\t\x12\r\n\x05\x65_f20\x18\x14 \x01(\t\x12\r\n\x05\x65_f21\x18\x15 \x01(\t\x12\x15\n\x05sport\x18\x16 \x01(\x0e\x32\x06.Sport\x12\r\n\x05\x65_f23\x18\x17 \x01(\x04\x12\r\n\x05\x65_f24\x18\x18 \x01(\x04\x12\r\n\x05\x65_f25\x18\x19 \x01(\x04\x12\r\n\x05\x65_f26\x18\x1a \x01(\t\x12\r\n\x05\x65_f27\x18\x1b \x01(\x04\x12\r\n\x05\x65_f28\x18\x1c \x01(\x08\x12\r\n\x05\x65_f29\x18\x1d \x01(\x08\x12&\n\x08\x65vSeries\x18\x1e \x01(\x0b\x32\x14.EventSeriesProtobuf\x12\x0c\n\x04tags\x18\x1f \x01(\t\x12\r\n\x05\x65_f32\x18 \x01(\x04\x12\r\n\x05\x65_f33\x18! \x01(\x08\x12\x19\n\x11lateJoinInMinutes\x18\" \x01(\r\x12\x0e\n\x06map_id\x18# \x01(\x04\x12#\n\x03tto\x18$ \x01(\x0b\x32\x16.EventTimeTrialOptions\x12\r\n\x05\x65_f37\x18% \x01(\t\x12\r\n\x05\x65_f38\x18& \x01(\t\x12\r\n\x05\x65_f39\x18\' \x01(\r\x12$\n\x04msed\x18( \x01(\x0b\x32\x16.MicroserviceEventData\x12\r\n\x05\x65_f41\x18) \x03(\r\" \n\x06\x45vents\x12\x16\n\x06\x65vents\x18\x01 \x03(\x0b\x32\x06.Event')
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0c\x65vents.proto\x1a\rprofile.proto\"\xa0\x07\n\x15\x45ventSubgroupProtobuf\x12\n\n\x02id\x18\x01 \x02(\x04\x12\r\n\x05title\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x0e\n\x06\x65vs_f4\x18\x04 \x01(\r\x12\x0e\n\x06\x65vs_f5\x18\x05 \x01(\r\x12\x0e\n\x06\x65vs_f6\x18\x06 \x01(\r\x12\r\n\x05scode\x18\x07 \x01(\t\x12\x10\n\x08rules_id\x18\x08 \x01(\x04\x12\x19\n\x11registrationStart\x18\t \x01(\x04\x12\x1b\n\x13registrationStartWT\x18\n \x01(\x04\x12\x17\n\x0fregistrationEnd\x18\x0b \x01(\x04\x12\x19\n\x11registrationEndWT\x18\x0c \x01(\x04\x12\x13\n\x0blineUpStart\x18\r \x01(\x04\x12\x15\n\rlineUpStartWT\x18\x0e \x01(\x04\x12\x11\n\tlineUpEnd\x18\x0f \x01(\x04\x12\x13\n\x0blineUpEndWT\x18\x10 \x01(\x04\x12\x1a\n\x12\x65ventSubgroupStart\x18\x11 \x01(\x04\x12\x1c\n\x14\x65ventSubgroupStartWT\x18\x12 \x01(\x04\x12\x0f\n\x07\x65vs_f19\x18\x13 \x01(\x04\x12\x0f\n\x07\x65vs_f20\x18\x14 \x01(\x04\x12\x0f\n\x07\x65vs_f21\x18\x15 \x01(\x08\x12\x10\n\x08route_id\x18\x16 \x02(\x04\x12\x0f\n\x07leaders\x18\x17 \x03(\x04\x12\x0f\n\x07\x65vs_f24\x18\x18 \x01(\x02\x12\x0c\n\x04laps\x18\x19 \x01(\r\x12\x15\n\rstartLocation\x18\x1d \x01(\x04\x12\r\n\x05label\x18\x1e \x01(\r\x12\x10\n\x08paceType\x18\x1f \x01(\r\x12\x0f\n\x07\x65vs_f32\x18 \x01(\x02\x12\x0f\n\x07\x65vs_f33\x18! \x01(\x02\x12\x10\n\x08\x64uration\x18\" \x01(\r\x12\x0f\n\x07\x65vs_f35\x18# \x01(\r\x12\x12\n\njerseyHash\x18$ \x01(\x04\x12\x0f\n\x07\x65vs_f37\x18% \x01(\x08\x12\x0f\n\x07\x65vs_f38\x18& \x01(\r\x12\r\n\x05\x61udio\x18\' \x01(\t\x12\x0f\n\x07\x65vs_f40\x18( \x01(\x04\x12\x10\n\x08sweepers\x18) \x03(\x04\x12\x0f\n\x07\x65vs_f42\x18* \x01(\x04\x12\x13\n\x0bworkout_url\x18+ \x01(\t\x12\x0f\n\x07\x65vs_f44\x18, \x01(\x08\x12\x0c\n\x04tags\x18- \x01(\t\x12\x19\n\x11lateJoinInMinutes\x18. \x01(\r\x12\x0e\n\x06map_id\x18/ \x01(\x04\x12\x0f\n\x07\x65vs_f48\x18\x30 \x01(\x04\x12\x0f\n\x07\x65vs_f49\x18\x31 \x01(\t\x12\x0f\n\x07\x65vs_f50\x18\x32 \x03(\x05\x12\x0f\n\x07\x65vs_f51\x18\x33 \x01(\x08\"S\n\x15MicroserviceEventData\x12\r\n\x05stype\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\x12\x1d\n\x03vis\x18\x03 \x01(\x0e\x32\x10.EventVisibility\"A\n\x13\x45ventSeriesProtobuf\x12\n\n\x02id\x18\x01 \x01(\x04\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x10\n\x08\x63ongrats\x18\x03 \x01(\t\"g\n\x15\x45ventTimeTrialOptions\x12\x0e\n\x06\x65vt_f1\x18\x01 \x01(\r\x12\x0e\n\x06\x65vt_f2\x18\x02 \x01(\r\x12\x0e\n\x06\x65vt_f3\x18\x03 \x01(\r\x12\x0e\n\x06\x65vt_f4\x18\x04 \x01(\r\x12\x0e\n\x06\x65vt_f5\x18\x05 \x01(\x04\"\xfa\x05\n\x05\x45vent\x12\n\n\x02id\x18\x01 \x02(\x04\x12\x14\n\x0cserver_realm\x18\x02 \x01(\x04\x12\r\n\x05title\x18\x03 \x02(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x12\n\neventStart\x18\x05 \x01(\x04\x12\x0c\n\x04\x65_f6\x18\x06 \x01(\t\x12\x0c\n\x04\x65_f7\x18\x07 \x01(\x07\x12\x0c\n\x04laps\x18\x08 \x01(\r\x12\x0c\n\x04\x65_f9\x18\t \x01(\r\x12(\n\x08\x63\x61tegory\x18\n \x03(\x0b\x32\x16.EventSubgroupProtobuf\x12\r\n\x05\x65_f11\x18\x0b \x01(\t\x12\x0f\n\x07pic_url\x18\x0c \x01(\t\x12\x10\n\x08\x64uration\x18\r \x01(\r\x12\x10\n\x08route_id\x18\x0e \x01(\x04\x12\x10\n\x08rules_id\x18\x0f \x01(\x04\x12\r\n\x05\x65_f16\x18\x10 \x01(\r\x12\r\n\x05\x65_f17\x18\x11 \x01(\x08\x12\r\n\x05\x65_f18\x18\x12 \x01(\x04\x12\r\n\x05\x65_f19\x18\x13 \x01(\t\x12\r\n\x05\x65_f20\x18\x14 \x01(\t\x12\r\n\x05\x65_f21\x18\x15 \x01(\t\x12\x15\n\x05sport\x18\x16 \x01(\x0e\x32\x06.Sport\x12\r\n\x05\x65_f23\x18\x17 \x01(\x04\x12\r\n\x05\x65_f24\x18\x18 \x01(\x04\x12\r\n\x05\x65_f25\x18\x19 \x01(\x04\x12\r\n\x05\x65_f26\x18\x1a \x01(\t\x12\r\n\x05\x65_f27\x18\x1b \x01(\x04\x12\r\n\x05\x65_f28\x18\x1c \x01(\x08\x12\r\n\x05\x65_f29\x18\x1d \x01(\x08\x12&\n\x08\x65vSeries\x18\x1e \x01(\x0b\x32\x14.EventSeriesProtobuf\x12\x0c\n\x04tags\x18\x1f \x01(\t\x12\r\n\x05\x65_f32\x18 \x01(\x04\x12\x0e\n\x06\x65_wtrl\x18! \x01(\x08\x12\x19\n\x11lateJoinInMinutes\x18\" \x01(\r\x12\x0e\n\x06map_id\x18# \x01(\x04\x12#\n\x03tto\x18$ \x01(\x0b\x32\x16.EventTimeTrialOptions\x12\r\n\x05\x65_f37\x18% \x01(\t\x12\r\n\x05\x65_f38\x18& \x01(\t\x12\r\n\x05\x65_f39\x18\' \x01(\r\x12$\n\x04msed\x18( \x01(\x0b\x32\x16.MicroserviceEventData\x12\r\n\x05\x65_f41\x18) \x03(\r\" \n\x06\x45vents\x12\x16\n\x06\x65vents\x18\x01 \x03(\x0b\x32\x06.Event*V\n\x0f\x45ventVisibility\x12\x0b\n\x07\x45V_NULL\x10\x00\x12\x10\n\x0c\x45V_PUB_SHARE\x10\x01\x12\x12\n\x0e\x45V_BY_RESOURCE\x10\x02\x12\x10\n\x0c\x45V_SHAREABLE\x10\x03')
_EVENTVISIBILITY = DESCRIPTOR.enum_types_by_name['EventVisibility']
EventVisibility = enum_type_wrapper.EnumTypeWrapper(_EVENTVISIBILITY)
EV_NULL = 0
EV_PUB_SHARE = 1
EV_BY_RESOURCE = 2
EV_SHAREABLE = 3
_EVENTSUBGROUPPROTOBUF = DESCRIPTOR.message_types_by_name['EventSubgroupProtobuf']
@@ -70,16 +77,18 @@ _sym_db.RegisterMessage(Events)
if _descriptor._USE_C_DESCRIPTORS == False:
DESCRIPTOR._options = None
_EVENTVISIBILITY._serialized_start=2018
_EVENTVISIBILITY._serialized_end=2104
_EVENTSUBGROUPPROTOBUF._serialized_start=32
_EVENTSUBGROUPPROTOBUF._serialized_end=958
_MICROSERVICEEVENTDATA._serialized_start=960
_MICROSERVICEEVENTDATA._serialized_end=1034
_EVENTSERIESPROTOBUF._serialized_start=1036
_EVENTSERIESPROTOBUF._serialized_end=1102
_EVENTTIMETRIALOPTIONS._serialized_start=1104
_EVENTTIMETRIALOPTIONS._serialized_end=1207
_EVENT._serialized_start=1210
_EVENT._serialized_end=1971
_EVENTS._serialized_start=1973
_EVENTS._serialized_end=2005
_EVENTSUBGROUPPROTOBUF._serialized_end=960
_MICROSERVICEEVENTDATA._serialized_start=962
_MICROSERVICEEVENTDATA._serialized_end=1045
_EVENTSERIESPROTOBUF._serialized_start=1047
_EVENTSERIESPROTOBUF._serialized_end=1112
_EVENTTIMETRIALOPTIONS._serialized_start=1114
_EVENTTIMETRIALOPTIONS._serialized_end=1217
_EVENT._serialized_start=1220
_EVENT._serialized_end=1982
_EVENTS._serialized_start=1984
_EVENTS._serialized_end=2016
# @@protoc_insertion_point(module_scope)

File diff suppressed because one or more lines are too long