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

Update survey proto to support data sharing agreement #1940

Merged
merged 10 commits into from
Aug 8, 2024
33 changes: 33 additions & 0 deletions proto/src/ground/v1beta1/survey.proto
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,39 @@ message Survey {

// Required. User id of the survey owner.
string owner_id = 5;

// Defines the terms data collectors must agree to before
// collecting data.
message DataSharingTerms {
// Defines the type of data sharing terms the user will see.
enum Type {
// Default value when the type is missing.
TYPE_UNSPECIFIED = 0;

// Data will only be shared with survey organizers.
PRIVATE = 1;

// Data can be made public with no constraints. Data
// collectors waive all rights to collected data, making
// it available under the CC0 "No Rights Reserved" license.
PUBLIC_CC0 = 2;

// Terms are defined by survey organizers.
CUSTOM = 3;
}

// Required. Type of data sharing terms the data collectors must
// agree to before collecting data.
Type type = 1;

// If type is CUSTOM, this field contains the custom data sharing
// terms text specified by the survey organizer.
string custom_text = 2;
}

// Defines the terms data collectors must agree to before
// collecting data.
DataSharingTerms data_sharing_terms = 6;
}

// Defines a user's role in a survey.
Expand Down
Loading