Skip to content

Commit a3f5e28

Browse files
nwkottogino-m
andauthored
Update survey proto to support data sharing agreement (#1940)
Co-authored-by: Gino Miceli <[email protected]>
1 parent 581946f commit a3f5e28

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

proto/src/ground/v1beta1/survey.proto

+33
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,39 @@ message Survey {
3737

3838
// Required. User id of the survey owner.
3939
string owner_id = 5;
40+
41+
// Defines the terms data collectors must agree to before
42+
// collecting data.
43+
message DataSharingTerms {
44+
// Defines the type of data sharing terms the user will see.
45+
enum Type {
46+
// Default value when the type is missing.
47+
TYPE_UNSPECIFIED = 0;
48+
49+
// Data will only be shared with survey organizers.
50+
PRIVATE = 1;
51+
52+
// Data can be made public with no constraints. Data
53+
// collectors waive all rights to collected data, making
54+
// it available under the CC0 "No Rights Reserved" license.
55+
PUBLIC_CC0 = 2;
56+
57+
// Terms are defined by survey organizers.
58+
CUSTOM = 3;
59+
}
60+
61+
// Required. Type of data sharing terms the data collectors must
62+
// agree to before collecting data.
63+
Type type = 1;
64+
65+
// If type is CUSTOM, this field contains the custom data sharing
66+
// terms text specified by the survey organizer.
67+
string custom_text = 2;
68+
}
69+
70+
// Defines the terms data collectors must agree to before
71+
// collecting data.
72+
DataSharingTerms data_sharing_terms = 6;
4073
}
4174

4275
// Defines a user's role in a survey.

0 commit comments

Comments
 (0)