Fix DataCollectionConsent

to allow multiple entries
This commit is contained in:
fatsbrown
2026-05-15 08:04:05 -03:00
parent 66770e2d49
commit ef042ff3ef
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ message BikeUpgrade {
}
message DataCollectionConsent {
optional string device = 1;
optional string signature = 1;
optional int32 consent = 2;
optional uint64 time = 3;
}
+2 -2
View File
@@ -13,7 +13,7 @@ _sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x12user_storage.proto\".\n\x0bUserStorage\x12\x1f\n\nattributes\x18\x02 \x03(\x0b\x32\x0b.Attributes\"\xf7\x01\n\nAttributes\x12$\n\rgame_settings\x18\x16 \x01(\x0b\x32\r.GameSettings\x12\x35\n\x14garage_last_selected\x18\x17 \x01(\x0b\x32\x17.GarageItemLastSelected\x12$\n\rbike_progress\x18\x18 \x01(\x0b\x32\r.BikeProgress\x12-\n\x12special_event_seen\x18\x19 \x01(\x0b\x32\x11.SpecialEventSeen\x12\x37\n\x17\x64\x61ta_collection_consent\x18\x1d \x01(\x0b\x32\x16.DataCollectionConsent\"\xec\x03\n\x0cGameSettings\x12\n\n\x02\x66\x32\x18\x02 \x01(\x02\x12\x1c\n\x14minimal_leaderboards\x18\x03 \x01(\x05\x12\x19\n\x11power_meter_slot0\x18\x04 \x01(\x05\x12\x19\n\x11power_meter_slot1\x18\x05 \x01(\x05\x12\x19\n\x11power_meter_slot2\x18\x06 \x01(\x05\x12\x19\n\x11power_meter_slot3\x18\x07 \x01(\x05\x12\x1f\n\x17\x63limb_graph_sensitivity\x18\t \x01(\x05\x12\x1a\n\x12screen_shake_scale\x18\n \x01(\x02\x12\x1d\n\x15streaks_flair_visuals\x18\x0b \x01(\x05\x12\x18\n\x10ride_stats_slot0\x18\r \x01(\x05\x12\x18\n\x10ride_stats_slot1\x18\x0e \x01(\x05\x12\x1b\n\x13workout_stats_slot0\x18\x0f \x01(\x05\x12\x1b\n\x13workout_stats_slot1\x18\x10 \x01(\x05\x12\x1b\n\x13workout_stats_slot2\x18\x11 \x01(\x05\x12\x1b\n\x13workout_stats_slot3\x18\x12 \x01(\x05\x12 \n\x18ride_stats_workout_slot0\x18\x13 \x01(\x05\x12 \n\x18ride_stats_workout_slot1\x18\x14 \x01(\x05\"9\n\x16GarageItemLastSelected\x12\x11\n\tsignature\x18\x01 \x01(\t\x12\x0c\n\x04time\x18\x02 \x01(\x04\"3\n\x10SpecialEventSeen\x12\x11\n\tsignature\x18\x01 \x01(\t\x12\x0c\n\x04time\x18\x02 \x01(\x04\"\xbf\x02\n\x0c\x42ikeProgress\x12\x11\n\tsignature\x18\x01 \x01(\t\x12\r\n\x05level\x18\x02 \x01(\r\x12\x16\n\x0elevel_distance\x18\x03 \x01(\x02\x12\x16\n\x0etotal_distance\x18\x04 \x01(\x02\x12\x17\n\x0flevel_elevation\x18\x05 \x01(\x02\x12\x17\n\x0ftotal_elevation\x18\x06 \x01(\x02\x12\x19\n\x11level_moving_time\x18\x07 \x01(\x02\x12\x19\n\x11total_moving_time\x18\x08 \x01(\x02\x12\x14\n\x0clast_upgrade\x18\n \x01(\x04\x12\x0c\n\x04time\x18\x0b \x01(\x04\x12#\n\rbike_upgrades\x18\x0c \x03(\x0b\x32\x0c.BikeUpgrade\x12\x0b\n\x03\x66\x31\x34\x18\x0e \x01(\r\x12\x12\n\npercentage\x18\x0f \x01(\x02\x12\x0b\n\x03\x66\x31\x36\x18\x10 \x01(\r\"9\n\x0b\x42ikeUpgrade\x12\x0c\n\x04time\x18\x01 \x01(\x04\x12\r\n\x05level\x18\x02 \x01(\r\x12\r\n\x05price\x18\x03 \x01(\r\"F\n\x15\x44\x61taCollectionConsent\x12\x0e\n\x06\x64\x65vice\x18\x01 \x01(\t\x12\x0f\n\x07\x63onsent\x18\x02 \x01(\x05\x12\x0c\n\x04time\x18\x03 \x01(\x04')
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x12user_storage.proto\".\n\x0bUserStorage\x12\x1f\n\nattributes\x18\x02 \x03(\x0b\x32\x0b.Attributes\"\xf7\x01\n\nAttributes\x12$\n\rgame_settings\x18\x16 \x01(\x0b\x32\r.GameSettings\x12\x35\n\x14garage_last_selected\x18\x17 \x01(\x0b\x32\x17.GarageItemLastSelected\x12$\n\rbike_progress\x18\x18 \x01(\x0b\x32\r.BikeProgress\x12-\n\x12special_event_seen\x18\x19 \x01(\x0b\x32\x11.SpecialEventSeen\x12\x37\n\x17\x64\x61ta_collection_consent\x18\x1d \x01(\x0b\x32\x16.DataCollectionConsent\"\xec\x03\n\x0cGameSettings\x12\n\n\x02\x66\x32\x18\x02 \x01(\x02\x12\x1c\n\x14minimal_leaderboards\x18\x03 \x01(\x05\x12\x19\n\x11power_meter_slot0\x18\x04 \x01(\x05\x12\x19\n\x11power_meter_slot1\x18\x05 \x01(\x05\x12\x19\n\x11power_meter_slot2\x18\x06 \x01(\x05\x12\x19\n\x11power_meter_slot3\x18\x07 \x01(\x05\x12\x1f\n\x17\x63limb_graph_sensitivity\x18\t \x01(\x05\x12\x1a\n\x12screen_shake_scale\x18\n \x01(\x02\x12\x1d\n\x15streaks_flair_visuals\x18\x0b \x01(\x05\x12\x18\n\x10ride_stats_slot0\x18\r \x01(\x05\x12\x18\n\x10ride_stats_slot1\x18\x0e \x01(\x05\x12\x1b\n\x13workout_stats_slot0\x18\x0f \x01(\x05\x12\x1b\n\x13workout_stats_slot1\x18\x10 \x01(\x05\x12\x1b\n\x13workout_stats_slot2\x18\x11 \x01(\x05\x12\x1b\n\x13workout_stats_slot3\x18\x12 \x01(\x05\x12 \n\x18ride_stats_workout_slot0\x18\x13 \x01(\x05\x12 \n\x18ride_stats_workout_slot1\x18\x14 \x01(\x05\"9\n\x16GarageItemLastSelected\x12\x11\n\tsignature\x18\x01 \x01(\t\x12\x0c\n\x04time\x18\x02 \x01(\x04\"3\n\x10SpecialEventSeen\x12\x11\n\tsignature\x18\x01 \x01(\t\x12\x0c\n\x04time\x18\x02 \x01(\x04\"\xbf\x02\n\x0c\x42ikeProgress\x12\x11\n\tsignature\x18\x01 \x01(\t\x12\r\n\x05level\x18\x02 \x01(\r\x12\x16\n\x0elevel_distance\x18\x03 \x01(\x02\x12\x16\n\x0etotal_distance\x18\x04 \x01(\x02\x12\x17\n\x0flevel_elevation\x18\x05 \x01(\x02\x12\x17\n\x0ftotal_elevation\x18\x06 \x01(\x02\x12\x19\n\x11level_moving_time\x18\x07 \x01(\x02\x12\x19\n\x11total_moving_time\x18\x08 \x01(\x02\x12\x14\n\x0clast_upgrade\x18\n \x01(\x04\x12\x0c\n\x04time\x18\x0b \x01(\x04\x12#\n\rbike_upgrades\x18\x0c \x03(\x0b\x32\x0c.BikeUpgrade\x12\x0b\n\x03\x66\x31\x34\x18\x0e \x01(\r\x12\x12\n\npercentage\x18\x0f \x01(\x02\x12\x0b\n\x03\x66\x31\x36\x18\x10 \x01(\r\"9\n\x0b\x42ikeUpgrade\x12\x0c\n\x04time\x18\x01 \x01(\x04\x12\r\n\x05level\x18\x02 \x01(\r\x12\r\n\x05price\x18\x03 \x01(\r\"I\n\x15\x44\x61taCollectionConsent\x12\x11\n\tsignature\x18\x01 \x01(\t\x12\x0f\n\x07\x63onsent\x18\x02 \x01(\x05\x12\x0c\n\x04time\x18\x03 \x01(\x04')
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'user_storage_pb2', globals())
@@ -35,5 +35,5 @@ if _descriptor._USE_C_DESCRIPTORS == False:
_BIKEUPGRADE._serialized_start=1249
_BIKEUPGRADE._serialized_end=1306
_DATACOLLECTIONCONSENT._serialized_start=1308
_DATACOLLECTIONCONSENT._serialized_end=1378
_DATACOLLECTIONCONSENT._serialized_end=1381
# @@protoc_insertion_point(module_scope)