user_demographics.proto 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. option java_outer_classname = "UserDemographicsProtos";
  8. package metrics;
  9. // Limited demographics information about the user.
  10. //
  11. // This data is drawn from the signed-in user's GAIA id and is provided to
  12. // Chrome via syncable priority pref.
  13. //
  14. // Next tag: 3
  15. message UserDemographicsProto {
  16. // The (noisy) year of birth specified by the user. The value reported in this
  17. // field cannot safely be interpreted as the true value for the user; it may
  18. // be offset by a randomly chosen number of years from [-2, +2].
  19. optional int32 birth_year = 1;
  20. // The supported gender identifiers. These values correspond to those offered
  21. // in the "Gender" section of the Google Account settings. Note that these
  22. // values deliberately do not address the rich spectrum of possible gender
  23. // identities with high granularity because we do not want these values to be
  24. // highly identifying.
  25. //
  26. // Values from this enum are both sent to Chrome via Chrome Sync, and
  27. // selectively forwarded from Chrome to UMA logs.
  28. enum Gender {
  29. // The default value for clients that do not have any gender information.
  30. GENDER_UNKNOWN = 0;
  31. // The user specified that they prefer to be referred to as male.
  32. GENDER_MALE = 1;
  33. // The user specified that they prefer to be referred to as female.
  34. GENDER_FEMALE = 2;
  35. // The user specified that they prefer not to disclose a gender or the user
  36. // provided a custom gender identifier. This value may be synced to Chrome,
  37. // but it is not transmitted to UMA because the population size is
  38. // relatively small vs MALE/FEMALE and thus may be highly identifying.
  39. // Instead, these users will not submit any demographics, blending them into
  40. // the GENDER_UNKNOWN group (which is large).
  41. GENDER_CUSTOM_OR_OTHER = 3;
  42. }
  43. // The gender specified by the user. If the user's gender is unknown or non-
  44. // binary, this field will be omitted, corresponding to a default
  45. // value of GENDER_UNKNOWN.
  46. optional Gender gender = 2;
  47. }