web.proto revision 731df977c0511bca2206b5f333555b1205ff1f43
1// Copyright 2009 Google Inc. All Rights Reserved.
2// Author: jaceks@google.com (Jacek Surazski)
3
4syntax = "proto2";
5
6package userfeedback;
7
8option optimize_for = LITE_RUNTIME;
9
10// Data present in Web related feedbacks
11
12import "annotations.proto";
13import "dom.proto";
14import "math.proto";
15
16// Data present in feedbacks sent from web extension.
17message WebData {
18  // Data captured from DOM Navigator object.
19  optional Navigator navigator = 1;
20
21  // Details of the extension from which this data was sent.
22  optional ExtensionDetails extension_details = 2;
23
24  // The URL of the document.
25  // Useful when user opts out from sending html structure.
26  optional string url = 3;
27
28  // A list of annotations.
29  repeated Annotation annotation = 4;
30
31  // The ID of the suggestion selected by the user.
32  // Possible values:
33  // - Not set if no suggestions were shown, either because the version of
34  //   the client did not support suggestions, suggestions were disabled or
35  //   no matching suggestions were found.
36  // - NONE_OF_THE_ABOVE if the user has chosen "None of the above".
37  // - Empty string if suggestions were shown but the user hasn't chosen
38  //   any of them (and also she hasn't chosen "None of the above").
39  // - Actual suggestion identifier as returned from the server.
40  optional string suggestion_id = 5;
41
42  repeated ProductSpecificData product_specific_data = 6;
43
44  // Name of the binary data stored. Replicated from
45  // ProductSpecificBinaryData.name which is stored as a separate
46  // column in Feedbacks3 megastore table.
47  repeated string product_specific_binary_data_name = 7;
48};
49
50message ExtensionDetails {
51  // Indicates browser and mpm release.
52  required string extension_version = 1;
53
54  required string protocol_version = 2;
55};
56
57// Additional data sent by the internal version.
58message InternalWebData {
59  // List of user names in google.com domain to which feedback should be sent
60  // directly apart from submitting it to server.
61  repeated string email_receiver = 1;
62
63  // Subject of the problem entered by user.
64  optional string subject = 2;
65
66  // If this flag is set then product support team should be notified
67  // immediately.
68  optional bool DEPRECATED_urgent = 3 [default = false];
69};
70
71// Product specific data. Contains one key/value pair that is specific to the
72// product for which feedback is submitted.
73message ProductSpecificData {
74  required string key = 1;
75  optional string value = 2;
76};
77
78message ProductSpecificBinaryData {
79  required string name = 1;
80
81  // mime_type of data
82  optional string mime_type = 2;
83
84  // raw data
85  optional bytes data = 3;
86};
87