chrome_searchbox_stats.proto 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. // Copyright 2022 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. option java_outer_classname = "ChromeSearchboxStatsProtos";
  8. package metrics;
  9. // Chrome-specific version of searchbox_stats.proto containing a strict subset
  10. // of the fields in searchbox_stats.proto.
  11. //
  12. // This proto is serialized and sent over by Chrome as a Base64-encoded URL
  13. // param for logging. Note that this proto is not itself persisted in logs. It
  14. // is instead decoded and deserialized into the searchbox_stats.proto which is
  15. // persisted in logs.
  16. //
  17. // Field types, IDs, labels, annotations, optional-ness, and default values MUST
  18. // match those of their counterparts.
  19. //
  20. // See searchbox_stats.proto for documentation of these fields and do not
  21. // duplicate comments here.
  22. message ChromeSearchboxStats {
  23. optional string client_name = 2;
  24. message SuggestionInfo {
  25. optional int32 index = 1 [default = -1];
  26. optional uint32 type = 2;
  27. repeated uint32 subtypes = 3;
  28. }
  29. optional SuggestionInfo assisted_query_info = 5;
  30. repeated SuggestionInfo available_suggestions = 6;
  31. optional bool zero_prefix_enabled = 38;
  32. optional uint32 num_zero_prefix_suggestions_shown = 37;
  33. optional string experiment_stats = 26 [deprecated = true];
  34. message ExperimentStatsV2 {
  35. optional int32 type_int = 4;
  36. optional string string_value = 2;
  37. optional int32 int_value = 3;
  38. }
  39. repeated ExperimentStatsV2 experiment_stats_v2 = 60;
  40. message GroupInfo {
  41. optional uint32 groups_set_index = 1;
  42. optional uint32 side_type = 2;
  43. optional uint32 why_this_result_reason = 3;
  44. }
  45. repeated GroupInfo group_infos = 103;
  46. }