From 45cacb0f4cb33a158d787b4fb0924ecef3f664f8 Mon Sep 17 00:00:00 2001 From: CWA Technical User <67319337+Corona-Warn-App-Technical-User@users.noreply.github.com> Date: Tue, 3 Nov 2020 05:09:38 +0100 Subject: [PATCH] Protocol Buffer update for release 1.7.x at Fri Oct 30 10:36:51 UTC 2020 (#1506) * Update from https://github.com/corona-warn-app/cwa-protocol-buffers/commit/a5a77c4be423c272316b3e30206d561d8217e46f * Update from https://github.com/corona-warn-app/cwa-protocol-buffers/commit/2cb89bb9aad80ce530e03c420942ff5a7e18b8cb * Update from https://github.com/corona-warn-app/cwa-protocol-buffers/commit/ca2fbdfae1b1a74244659f40b1e95f877ad3432f Co-authored-by: AlexanderAlferov <64849422+AlexanderAlferov@users.noreply.github.com> Co-authored-by: Matthias Urhahn <matthias.urhahn@sap.com> Co-authored-by: Ralf Gehrer <ralfgehrer@users.noreply.github.com> --- .../src/main/proto/internal/app_config.proto | 8 +++++ .../exposure_detection_parameters.proto | 16 +++++++++ .../internal/key_download_parameters.proto | 33 +++++++++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 Server-Protocol-Buffer/src/main/proto/internal/exposure_detection_parameters.proto create mode 100644 Server-Protocol-Buffer/src/main/proto/internal/key_download_parameters.proto diff --git a/Server-Protocol-Buffer/src/main/proto/internal/app_config.proto b/Server-Protocol-Buffer/src/main/proto/internal/app_config.proto index 5811db50f..e1e5437df 100644 --- a/Server-Protocol-Buffer/src/main/proto/internal/app_config.proto +++ b/Server-Protocol-Buffer/src/main/proto/internal/app_config.proto @@ -7,6 +7,8 @@ import "internal/risk_score_parameters.proto"; import "internal/app_version_config.proto"; import "internal/attenuation_duration.proto"; import "internal/app_features.proto"; +import "internal/exposure_detection_parameters.proto"; +import "internal/key_download_parameters.proto"; message ApplicationConfiguration { @@ -23,4 +25,10 @@ message ApplicationConfiguration { AppFeatures appFeatures = 6; repeated string supportedCountries = 7; + + KeyDownloadParametersIOS iosKeyDownloadParameters = 8; + KeyDownloadParametersAndroid androidKeyDownloadParameters = 9; + + ExposureDetectionParametersIOS iosExposureDetectionParameters = 10; + ExposureDetectionParametersAndroid androidExposureDetectionParameters= 11; } diff --git a/Server-Protocol-Buffer/src/main/proto/internal/exposure_detection_parameters.proto b/Server-Protocol-Buffer/src/main/proto/internal/exposure_detection_parameters.proto new file mode 100644 index 000000000..b998a852f --- /dev/null +++ b/Server-Protocol-Buffer/src/main/proto/internal/exposure_detection_parameters.proto @@ -0,0 +1,16 @@ +// This file is auto-generated, DO NOT make any changes here +syntax = "proto3"; +package de.rki.coronawarnapp.server.protocols.internal; + + +message ExposureDetectionParametersIOS { + + int32 maxExposureDetectionsPerInterval = 1; +} + +message ExposureDetectionParametersAndroid { + + int32 maxExposureDetectionsPerInterval = 1; + + int32 overallTimeoutInSeconds = 2; +} \ No newline at end of file diff --git a/Server-Protocol-Buffer/src/main/proto/internal/key_download_parameters.proto b/Server-Protocol-Buffer/src/main/proto/internal/key_download_parameters.proto new file mode 100644 index 000000000..00c58f526 --- /dev/null +++ b/Server-Protocol-Buffer/src/main/proto/internal/key_download_parameters.proto @@ -0,0 +1,33 @@ +// This file is auto-generated, DO NOT make any changes here +syntax = "proto3"; +package de.rki.coronawarnapp.server.protocols.internal; + + +message KeyDownloadParametersIOS { + + repeated DayPackageMetadata cachedDayPackagesToUpdateOnETagMismatch = 1; + repeated HourPackageMetadata cachedHourPackagesToUpdateOnETagMismatch = 2; +} + +message KeyDownloadParametersAndroid { + + repeated DayPackageMetadata cachedDayPackagesToUpdateOnETagMismatch = 1; + repeated HourPackageMetadata cachedHourPackagesToUpdateOnETagMismatch = 2; + + int32 downloadTimeoutInSeconds = 3; + + int32 overallTimeoutInSeconds = 4; +} + +message DayPackageMetadata { + string region = 1; + string date = 2; + string etag = 3; +} + +message HourPackageMetadata { + string region = 1; + string date = 2; + int32 hour = 3; + string etag = 4; +} \ No newline at end of file -- GitLab