Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom_maximum_frequency_per_user field into DeterministicCount methodology #197

Merged
merged 4 commits into from
Mar 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,12 @@ message DeterministicCountDistinct {}
message DeterministicDistribution {}

// Parameters used when applying the deterministic count methodology.
message DeterministicCount {}
message DeterministicCount {
// Custom maximum frequency per user value calculated by the
// DataProvider. If this is specified, the maximum_frequency_per_user in
// measurement_spec will be ignored.
int32 custom_maximum_frequency_per_user = 1;
}

// Parameters used when applying the deterministic sum methodology.
message DeterministicSum {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,13 @@ message MeasurementSpec {
// Differential privacy parameters.
DifferentialPrivacyParams privacy_params = 1;

// Maximum frequency per user that will be included in this measurement.
int32 maximum_frequency_per_user = 2;
// Maximum frequency per user that would be included in this measurement.
//
// If the custom_maximum_frequency_per_user in the DeterministicCount
// methodology is specified, this field will be ignored and the value from
// that message will be used instead.
int32 maximum_frequency_per_user = 2
[(google.api.field_behavior) = REQUIRED];
}

// Parameters for a duration measurement.
Expand Down
Loading