web.proto 2.6 KB

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