chrome_os_app_list_launch_event.proto 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. // Copyright 2019 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. option optimize_for = LITE_RUNTIME;
  6. option java_package = "org.chromium.components.metrics";
  7. package metrics;
  8. // Provides information about the launch of an item (such as an app or a file)
  9. // from the ChromeOS launcher. One event is recorded for every launch
  10. // originating from any launcher UI component, and this is the only circumstance
  11. // that records events. All fields prefixed with "hashed_" are hashed-and-
  12. // peppered values: the value is concatenated with a user-specific secret value,
  13. // and then hashed. For privacy reasons this process is designed to be one-way,
  14. // so that the server cannot easily recover the original values.
  15. //
  16. // Next tag: 10
  17. message ChromeOSAppListLaunchEventProto {
  18. // A per-user, per-client ID that is used only for app list launch event
  19. // logging.
  20. optional fixed64 recurrence_ranker_user_id = 1;
  21. // Enumerates the different UI components of the launcher that a user can
  22. // perform a launch from.
  23. enum LaunchType {
  24. // No launch type specified. This is invalid and will cause the event to be
  25. // dropped.
  26. LAUNCH_TYPE_UNSPECIFIED = 0;
  27. // Launches from the zero-state suggested apps chips or app search result
  28. // tiles.
  29. APP_TILES = 1;
  30. // Launches from the non-apps search result list.
  31. RESULTS_LIST = 2;
  32. }
  33. optional LaunchType launch_type = 2;
  34. // Hour of the day from 0 to 23 inclusive. This is the user's local time
  35. // rounded to the nearest hour.
  36. optional int32 hour = 3;
  37. // String length of the search query associated with this launch. If there was
  38. // no query, this is zero.
  39. optional int32 search_query_length = 4;
  40. // Below here, all fields are hashed data.
  41. // The hashed target item of the launch, eg. an app ID, filepath, or omnibox
  42. // suggestion.
  43. optional fixed64 hashed_target = 5;
  44. // The hashed search query associated with the launch. Before hashing, the
  45. // query is the empty string if there is no search query for this launch.
  46. optional fixed64 hashed_query = 6;
  47. // Hashed of the most-recently-visited domain when this launch occurred.
  48. optional fixed64 hashed_domain = 7;
  49. // Hash of the app ID of the most-recently-opened app when this launch
  50. // occurred. This can be an app ID of a Chrome app, Arc++ app, or PWA.
  51. optional fixed64 hashed_app = 8;
  52. // Which search provider produced the launched item.
  53. enum SearchProviderType {
  54. // No result type specified.
  55. PROVIDER_UNSPECIFIED = 0;
  56. // Recent queries from the Omnibox provider.
  57. OMNIBOX = 1;
  58. // Zero-state files provider.
  59. ZERO_STATE_FILE = 2;
  60. // Drive QuickAccess provider.
  61. DRIVE_QUICK_ACCESS = 3;
  62. }
  63. optional SearchProviderType search_provider_type = 9;
  64. }