clientanalytics.proto 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. // Copyright 2022 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto2";
  15. // This is in a separate file so it can be used as proto2.
  16. // To describe the network connectivity of the client.
  17. // Copied from android/play/playlog/proto/clientanalytics.proto
  18. // Next tag: 3
  19. message NetworkConnectionInfo {
  20. enum NetworkType {
  21. NONE = -1;
  22. MOBILE = 0;
  23. WIFI = 1;
  24. MOBILE_MMS = 2;
  25. MOBILE_SUPL = 3;
  26. MOBILE_DUN = 4;
  27. MOBILE_HIPRI = 5;
  28. WIMAX = 6;
  29. BLUETOOTH = 7;
  30. DUMMY = 8;
  31. ETHERNET = 9;
  32. MOBILE_FOTA = 10;
  33. MOBILE_IMS = 11;
  34. MOBILE_CBS = 12;
  35. WIFI_P2P = 13;
  36. MOBILE_IA = 14;
  37. MOBILE_EMERGENCY = 15;
  38. PROXY = 16;
  39. VPN = 17;
  40. }
  41. enum MobileSubtype {
  42. UNKNOWN_MOBILE_SUBTYPE = 0;
  43. GPRS = 1;
  44. EDGE = 2;
  45. UMTS = 3;
  46. CDMA = 4;
  47. EVDO_0 = 5;
  48. EVDO_A = 6;
  49. RTT = 7;
  50. HSDPA = 8;
  51. HSUPA = 9;
  52. HSPA = 10;
  53. IDEN = 11;
  54. EVDO_B = 12;
  55. LTE = 13;
  56. EHRPD = 14;
  57. HSPAP = 15;
  58. GSM = 16;
  59. TD_SCDMA = 17;
  60. IWLAN = 18;
  61. LTE_CA = 19;
  62. // COMBINED has value -1 in NetworkIdentity.java, but is given the value
  63. // 100 here to save (disk) space. The value -1 takes up the full 10 bytes in
  64. // a varint for enums, but the value 100 only takes up 1 byte.
  65. COMBINED = 100;
  66. }
  67. // The current network connectivity type when the event was logged in the
  68. // client
  69. optional NetworkType network_type = 1 [default = NONE];
  70. // The current mobile connectivity subtype when the event was logged in the
  71. // client
  72. optional MobileSubtype mobile_subtype = 2 [default = UNKNOWN_MOBILE_SUBTYPE];
  73. }