pycupra 0.1.11__py3-none-any.whl → 0.1.13__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- example/PyCupra.py +603 -0
- pycupra/connection.py +3 -1
- pycupra/firebase_messaging/android_checkin.proto +96 -0
- pycupra/firebase_messaging/android_checkin_pb2.pyi +257 -257
- pycupra/firebase_messaging/checkin.proto +155 -0
- pycupra/firebase_messaging/mcs.proto +328 -0
- {pycupra-0.1.11.dist-info → pycupra-0.1.13.dist-info}/METADATA +4 -12
- {pycupra-0.1.11.dist-info → pycupra-0.1.13.dist-info}/RECORD +11 -8
- {pycupra-0.1.11.dist-info → pycupra-0.1.13.dist-info}/WHEEL +1 -1
- {pycupra-0.1.11.dist-info → pycupra-0.1.13.dist-info}/top_level.txt +1 -0
- pycupra/__version__.py +0 -6
- {pycupra-0.1.11.dist-info → pycupra-0.1.13.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,96 @@
|
|
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
|
+
//
|
5
|
+
// Logging information for Android "checkin" events (automatic, periodic
|
6
|
+
// requests made by Android devices to the server).
|
7
|
+
|
8
|
+
syntax = "proto2";
|
9
|
+
|
10
|
+
option optimize_for = LITE_RUNTIME;
|
11
|
+
package checkin_proto;
|
12
|
+
|
13
|
+
// Build characteristics unique to the Chrome browser, and Chrome OS
|
14
|
+
message ChromeBuildProto {
|
15
|
+
enum Platform {
|
16
|
+
PLATFORM_WIN = 1;
|
17
|
+
PLATFORM_MAC = 2;
|
18
|
+
PLATFORM_LINUX = 3;
|
19
|
+
PLATFORM_CROS = 4;
|
20
|
+
PLATFORM_IOS = 5;
|
21
|
+
// Just a placeholder. Likely don't need it due to the presence of the
|
22
|
+
// Android GCM on phone/tablet devices.
|
23
|
+
PLATFORM_ANDROID = 6;
|
24
|
+
}
|
25
|
+
|
26
|
+
enum Channel {
|
27
|
+
CHANNEL_STABLE = 1;
|
28
|
+
CHANNEL_BETA = 2;
|
29
|
+
CHANNEL_DEV = 3;
|
30
|
+
CHANNEL_CANARY = 4;
|
31
|
+
CHANNEL_UNKNOWN = 5; // for tip of tree or custom builds
|
32
|
+
}
|
33
|
+
|
34
|
+
// The platform of the device.
|
35
|
+
optional Platform platform = 1;
|
36
|
+
|
37
|
+
// The Chrome instance's version.
|
38
|
+
optional string chrome_version = 2;
|
39
|
+
|
40
|
+
// The Channel (build type) of Chrome.
|
41
|
+
optional Channel channel = 3;
|
42
|
+
}
|
43
|
+
|
44
|
+
// Information sent by the device in a "checkin" request.
|
45
|
+
message AndroidCheckinProto {
|
46
|
+
// Miliseconds since the Unix epoch of the device's last successful checkin.
|
47
|
+
optional int64 last_checkin_msec = 2;
|
48
|
+
|
49
|
+
// The current MCC+MNC of the mobile device's current cell.
|
50
|
+
optional string cell_operator = 6;
|
51
|
+
|
52
|
+
// The MCC+MNC of the SIM card (different from operator if the
|
53
|
+
// device is roaming, for instance).
|
54
|
+
optional string sim_operator = 7;
|
55
|
+
|
56
|
+
// The device's current roaming state (reported starting in eclair builds).
|
57
|
+
// Currently one of "{,not}mobile-{,not}roaming", if it is present at all.
|
58
|
+
optional string roaming = 8;
|
59
|
+
|
60
|
+
// For devices supporting multiple user profiles (which may be
|
61
|
+
// supported starting in jellybean), the ordinal number of the
|
62
|
+
// profile that is checking in. This is 0 for the primary profile
|
63
|
+
// (which can't be changed without wiping the device), and 1,2,3,...
|
64
|
+
// for additional profiles (which can be added and deleted freely).
|
65
|
+
optional int32 user_number = 9;
|
66
|
+
|
67
|
+
// Class of device. Indicates the type of build proto
|
68
|
+
// (IosBuildProto/ChromeBuildProto/AndroidBuildProto)
|
69
|
+
// That is included in this proto
|
70
|
+
optional DeviceType type = 12 [default = DEVICE_ANDROID_OS];
|
71
|
+
|
72
|
+
// For devices running MCS on Chrome, build-specific characteristics
|
73
|
+
// of the browser. There are no hardware aspects (except for ChromeOS).
|
74
|
+
// This will only be populated for Chrome builds/ChromeOS devices
|
75
|
+
optional checkin_proto.ChromeBuildProto chrome_build = 13;
|
76
|
+
|
77
|
+
// Note: Some of the Android specific optional fields were skipped to limit
|
78
|
+
// the protobuf definition.
|
79
|
+
// Next 14
|
80
|
+
}
|
81
|
+
|
82
|
+
// enum values correspond to the type of device.
|
83
|
+
// Used in the AndroidCheckinProto and Device proto.
|
84
|
+
enum DeviceType {
|
85
|
+
// Android Device
|
86
|
+
DEVICE_ANDROID_OS = 1;
|
87
|
+
|
88
|
+
// Apple IOS device
|
89
|
+
DEVICE_IOS_OS = 2;
|
90
|
+
|
91
|
+
// Chrome browser - Not Chrome OS. No hardware records.
|
92
|
+
DEVICE_CHROME_BROWSER = 3;
|
93
|
+
|
94
|
+
// Chrome OS
|
95
|
+
DEVICE_CHROME_OS = 4;
|
96
|
+
}
|
@@ -1,257 +1,257 @@
|
|
1
|
-
"""
|
2
|
-
@generated by mypy-protobuf. Do not edit manually!
|
3
|
-
isort:skip_file
|
4
|
-
Copyright 2014 The Chromium Authors. All rights reserved.
|
5
|
-
Use of this source code is governed by a BSD-style license that can be
|
6
|
-
found in the LICENSE file.
|
7
|
-
|
8
|
-
Logging information for Android "checkin" events (automatic, periodic
|
9
|
-
requests made by Android devices to the server).
|
10
|
-
"""
|
11
|
-
|
12
|
-
import builtins
|
13
|
-
import google.protobuf.descriptor
|
14
|
-
import google.protobuf.internal.enum_type_wrapper
|
15
|
-
import google.protobuf.message
|
16
|
-
import sys
|
17
|
-
import typing
|
18
|
-
|
19
|
-
if sys.version_info >= (3, 10):
|
20
|
-
import typing as typing_extensions
|
21
|
-
else:
|
22
|
-
import typing_extensions
|
23
|
-
|
24
|
-
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
25
|
-
|
26
|
-
class _DeviceType:
|
27
|
-
ValueType = typing.NewType("ValueType", builtins.int)
|
28
|
-
V: typing_extensions.TypeAlias = ValueType
|
29
|
-
|
30
|
-
class _DeviceTypeEnumTypeWrapper(
|
31
|
-
google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_DeviceType.ValueType],
|
32
|
-
builtins.type,
|
33
|
-
):
|
34
|
-
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
35
|
-
DEVICE_ANDROID_OS: _DeviceType.ValueType # 1
|
36
|
-
"""Android Device"""
|
37
|
-
DEVICE_IOS_OS: _DeviceType.ValueType # 2
|
38
|
-
"""Apple IOS device"""
|
39
|
-
DEVICE_CHROME_BROWSER: _DeviceType.ValueType # 3
|
40
|
-
"""Chrome browser - Not Chrome OS. No hardware records."""
|
41
|
-
DEVICE_CHROME_OS: _DeviceType.ValueType # 4
|
42
|
-
"""Chrome OS"""
|
43
|
-
|
44
|
-
class DeviceType(_DeviceType, metaclass=_DeviceTypeEnumTypeWrapper):
|
45
|
-
"""enum values correspond to the type of device.
|
46
|
-
Used in the AndroidCheckinProto and Device proto.
|
47
|
-
"""
|
48
|
-
|
49
|
-
DEVICE_ANDROID_OS: DeviceType.ValueType # 1
|
50
|
-
"""Android Device"""
|
51
|
-
DEVICE_IOS_OS: DeviceType.ValueType # 2
|
52
|
-
"""Apple IOS device"""
|
53
|
-
DEVICE_CHROME_BROWSER: DeviceType.ValueType # 3
|
54
|
-
"""Chrome browser - Not Chrome OS. No hardware records."""
|
55
|
-
DEVICE_CHROME_OS: DeviceType.ValueType # 4
|
56
|
-
"""Chrome OS"""
|
57
|
-
global___DeviceType = DeviceType
|
58
|
-
|
59
|
-
@typing_extensions.final
|
60
|
-
class ChromeBuildProto(google.protobuf.message.Message):
|
61
|
-
"""Build characteristics unique to the Chrome browser, and Chrome OS"""
|
62
|
-
|
63
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
64
|
-
|
65
|
-
class _Platform:
|
66
|
-
ValueType = typing.NewType("ValueType", builtins.int)
|
67
|
-
V: typing_extensions.TypeAlias = ValueType
|
68
|
-
|
69
|
-
class _PlatformEnumTypeWrapper(
|
70
|
-
google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[
|
71
|
-
ChromeBuildProto._Platform.ValueType
|
72
|
-
],
|
73
|
-
builtins.type,
|
74
|
-
):
|
75
|
-
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
76
|
-
PLATFORM_WIN: ChromeBuildProto._Platform.ValueType # 1
|
77
|
-
PLATFORM_MAC: ChromeBuildProto._Platform.ValueType # 2
|
78
|
-
PLATFORM_LINUX: ChromeBuildProto._Platform.ValueType # 3
|
79
|
-
PLATFORM_CROS: ChromeBuildProto._Platform.ValueType # 4
|
80
|
-
PLATFORM_IOS: ChromeBuildProto._Platform.ValueType # 5
|
81
|
-
PLATFORM_ANDROID: ChromeBuildProto._Platform.ValueType # 6
|
82
|
-
"""Just a placeholder. Likely don't need it due to the presence of the
|
83
|
-
Android GCM on phone/tablet devices.
|
84
|
-
"""
|
85
|
-
|
86
|
-
class Platform(_Platform, metaclass=_PlatformEnumTypeWrapper): ...
|
87
|
-
PLATFORM_WIN: ChromeBuildProto.Platform.ValueType # 1
|
88
|
-
PLATFORM_MAC: ChromeBuildProto.Platform.ValueType # 2
|
89
|
-
PLATFORM_LINUX: ChromeBuildProto.Platform.ValueType # 3
|
90
|
-
PLATFORM_CROS: ChromeBuildProto.Platform.ValueType # 4
|
91
|
-
PLATFORM_IOS: ChromeBuildProto.Platform.ValueType # 5
|
92
|
-
PLATFORM_ANDROID: ChromeBuildProto.Platform.ValueType # 6
|
93
|
-
"""Just a placeholder. Likely don't need it due to the presence of the
|
94
|
-
Android GCM on phone/tablet devices.
|
95
|
-
"""
|
96
|
-
|
97
|
-
class _Channel:
|
98
|
-
ValueType = typing.NewType("ValueType", builtins.int)
|
99
|
-
V: typing_extensions.TypeAlias = ValueType
|
100
|
-
|
101
|
-
class _ChannelEnumTypeWrapper(
|
102
|
-
google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[
|
103
|
-
ChromeBuildProto._Channel.ValueType
|
104
|
-
],
|
105
|
-
builtins.type,
|
106
|
-
):
|
107
|
-
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
108
|
-
CHANNEL_STABLE: ChromeBuildProto._Channel.ValueType # 1
|
109
|
-
CHANNEL_BETA: ChromeBuildProto._Channel.ValueType # 2
|
110
|
-
CHANNEL_DEV: ChromeBuildProto._Channel.ValueType # 3
|
111
|
-
CHANNEL_CANARY: ChromeBuildProto._Channel.ValueType # 4
|
112
|
-
CHANNEL_UNKNOWN: ChromeBuildProto._Channel.ValueType # 5
|
113
|
-
"""for tip of tree or custom builds"""
|
114
|
-
|
115
|
-
class Channel(_Channel, metaclass=_ChannelEnumTypeWrapper): ...
|
116
|
-
CHANNEL_STABLE: ChromeBuildProto.Channel.ValueType # 1
|
117
|
-
CHANNEL_BETA: ChromeBuildProto.Channel.ValueType # 2
|
118
|
-
CHANNEL_DEV: ChromeBuildProto.Channel.ValueType # 3
|
119
|
-
CHANNEL_CANARY: ChromeBuildProto.Channel.ValueType # 4
|
120
|
-
CHANNEL_UNKNOWN: ChromeBuildProto.Channel.ValueType # 5
|
121
|
-
"""for tip of tree or custom builds"""
|
122
|
-
|
123
|
-
PLATFORM_FIELD_NUMBER: builtins.int
|
124
|
-
CHROME_VERSION_FIELD_NUMBER: builtins.int
|
125
|
-
CHANNEL_FIELD_NUMBER: builtins.int
|
126
|
-
platform: global___ChromeBuildProto.Platform.ValueType
|
127
|
-
"""The platform of the device."""
|
128
|
-
chrome_version: builtins.str
|
129
|
-
"""The Chrome instance's version."""
|
130
|
-
channel: global___ChromeBuildProto.Channel.ValueType
|
131
|
-
"""The Channel (build type) of Chrome."""
|
132
|
-
def __init__(
|
133
|
-
self,
|
134
|
-
*,
|
135
|
-
platform: global___ChromeBuildProto.Platform.ValueType | None = ...,
|
136
|
-
chrome_version: builtins.str | None = ...,
|
137
|
-
channel: global___ChromeBuildProto.Channel.ValueType | None = ...,
|
138
|
-
) -> None: ...
|
139
|
-
def HasField(
|
140
|
-
self,
|
141
|
-
field_name: typing_extensions.Literal[
|
142
|
-
"channel",
|
143
|
-
b"channel",
|
144
|
-
"chrome_version",
|
145
|
-
b"chrome_version",
|
146
|
-
"platform",
|
147
|
-
b"platform",
|
148
|
-
],
|
149
|
-
) -> builtins.bool: ...
|
150
|
-
def ClearField(
|
151
|
-
self,
|
152
|
-
field_name: typing_extensions.Literal[
|
153
|
-
"channel",
|
154
|
-
b"channel",
|
155
|
-
"chrome_version",
|
156
|
-
b"chrome_version",
|
157
|
-
"platform",
|
158
|
-
b"platform",
|
159
|
-
],
|
160
|
-
) -> None: ...
|
161
|
-
|
162
|
-
global___ChromeBuildProto = ChromeBuildProto
|
163
|
-
|
164
|
-
@typing_extensions.final
|
165
|
-
class AndroidCheckinProto(google.protobuf.message.Message):
|
166
|
-
"""Information sent by the device in a "checkin" request."""
|
167
|
-
|
168
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
169
|
-
|
170
|
-
LAST_CHECKIN_MSEC_FIELD_NUMBER: builtins.int
|
171
|
-
CELL_OPERATOR_FIELD_NUMBER: builtins.int
|
172
|
-
SIM_OPERATOR_FIELD_NUMBER: builtins.int
|
173
|
-
ROAMING_FIELD_NUMBER: builtins.int
|
174
|
-
USER_NUMBER_FIELD_NUMBER: builtins.int
|
175
|
-
TYPE_FIELD_NUMBER: builtins.int
|
176
|
-
CHROME_BUILD_FIELD_NUMBER: builtins.int
|
177
|
-
last_checkin_msec: builtins.int
|
178
|
-
"""Miliseconds since the Unix epoch of the device's last successful checkin."""
|
179
|
-
cell_operator: builtins.str
|
180
|
-
"""The current MCC+MNC of the mobile device's current cell."""
|
181
|
-
sim_operator: builtins.str
|
182
|
-
"""The MCC+MNC of the SIM card (different from operator if the
|
183
|
-
device is roaming, for instance).
|
184
|
-
"""
|
185
|
-
roaming: builtins.str
|
186
|
-
"""The device's current roaming state (reported starting in eclair builds).
|
187
|
-
Currently one of "{,not}mobile-{,not}roaming", if it is present at all.
|
188
|
-
"""
|
189
|
-
user_number: builtins.int
|
190
|
-
"""For devices supporting multiple user profiles (which may be
|
191
|
-
supported starting in jellybean), the ordinal number of the
|
192
|
-
profile that is checking in. This is 0 for the primary profile
|
193
|
-
(which can't be changed without wiping the device), and 1,2,3,...
|
194
|
-
for additional profiles (which can be added and deleted freely).
|
195
|
-
"""
|
196
|
-
type: global___DeviceType.ValueType
|
197
|
-
"""Class of device. Indicates the type of build proto
|
198
|
-
(IosBuildProto/ChromeBuildProto/AndroidBuildProto)
|
199
|
-
That is included in this proto
|
200
|
-
"""
|
201
|
-
@property
|
202
|
-
def chrome_build(self) -> global___ChromeBuildProto:
|
203
|
-
"""For devices running MCS on Chrome, build-specific characteristics
|
204
|
-
of the browser. There are no hardware aspects (except for ChromeOS).
|
205
|
-
This will only be populated for Chrome builds/ChromeOS devices
|
206
|
-
"""
|
207
|
-
def __init__(
|
208
|
-
self,
|
209
|
-
*,
|
210
|
-
last_checkin_msec: builtins.int | None = ...,
|
211
|
-
cell_operator: builtins.str | None = ...,
|
212
|
-
sim_operator: builtins.str | None = ...,
|
213
|
-
roaming: builtins.str | None = ...,
|
214
|
-
user_number: builtins.int | None = ...,
|
215
|
-
type: global___DeviceType.ValueType | None = ...,
|
216
|
-
chrome_build: global___ChromeBuildProto | None = ...,
|
217
|
-
) -> None: ...
|
218
|
-
def HasField(
|
219
|
-
self,
|
220
|
-
field_name: typing_extensions.Literal[
|
221
|
-
"cell_operator",
|
222
|
-
b"cell_operator",
|
223
|
-
"chrome_build",
|
224
|
-
b"chrome_build",
|
225
|
-
"last_checkin_msec",
|
226
|
-
b"last_checkin_msec",
|
227
|
-
"roaming",
|
228
|
-
b"roaming",
|
229
|
-
"sim_operator",
|
230
|
-
b"sim_operator",
|
231
|
-
"type",
|
232
|
-
b"type",
|
233
|
-
"user_number",
|
234
|
-
b"user_number",
|
235
|
-
],
|
236
|
-
) -> builtins.bool: ...
|
237
|
-
def ClearField(
|
238
|
-
self,
|
239
|
-
field_name: typing_extensions.Literal[
|
240
|
-
"cell_operator",
|
241
|
-
b"cell_operator",
|
242
|
-
"chrome_build",
|
243
|
-
b"chrome_build",
|
244
|
-
"last_checkin_msec",
|
245
|
-
b"last_checkin_msec",
|
246
|
-
"roaming",
|
247
|
-
b"roaming",
|
248
|
-
"sim_operator",
|
249
|
-
b"sim_operator",
|
250
|
-
"type",
|
251
|
-
b"type",
|
252
|
-
"user_number",
|
253
|
-
b"user_number",
|
254
|
-
],
|
255
|
-
) -> None: ...
|
256
|
-
|
257
|
-
global___AndroidCheckinProto = AndroidCheckinProto
|
1
|
+
"""
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
3
|
+
isort:skip_file
|
4
|
+
Copyright 2014 The Chromium Authors. All rights reserved.
|
5
|
+
Use of this source code is governed by a BSD-style license that can be
|
6
|
+
found in the LICENSE file.
|
7
|
+
|
8
|
+
Logging information for Android "checkin" events (automatic, periodic
|
9
|
+
requests made by Android devices to the server).
|
10
|
+
"""
|
11
|
+
|
12
|
+
import builtins
|
13
|
+
import google.protobuf.descriptor
|
14
|
+
import google.protobuf.internal.enum_type_wrapper
|
15
|
+
import google.protobuf.message
|
16
|
+
import sys
|
17
|
+
import typing
|
18
|
+
|
19
|
+
if sys.version_info >= (3, 10):
|
20
|
+
import typing as typing_extensions
|
21
|
+
else:
|
22
|
+
import typing_extensions
|
23
|
+
|
24
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
25
|
+
|
26
|
+
class _DeviceType:
|
27
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
28
|
+
V: typing_extensions.TypeAlias = ValueType
|
29
|
+
|
30
|
+
class _DeviceTypeEnumTypeWrapper(
|
31
|
+
google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_DeviceType.ValueType],
|
32
|
+
builtins.type,
|
33
|
+
):
|
34
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
35
|
+
DEVICE_ANDROID_OS: _DeviceType.ValueType # 1
|
36
|
+
"""Android Device"""
|
37
|
+
DEVICE_IOS_OS: _DeviceType.ValueType # 2
|
38
|
+
"""Apple IOS device"""
|
39
|
+
DEVICE_CHROME_BROWSER: _DeviceType.ValueType # 3
|
40
|
+
"""Chrome browser - Not Chrome OS. No hardware records."""
|
41
|
+
DEVICE_CHROME_OS: _DeviceType.ValueType # 4
|
42
|
+
"""Chrome OS"""
|
43
|
+
|
44
|
+
class DeviceType(_DeviceType, metaclass=_DeviceTypeEnumTypeWrapper):
|
45
|
+
"""enum values correspond to the type of device.
|
46
|
+
Used in the AndroidCheckinProto and Device proto.
|
47
|
+
"""
|
48
|
+
|
49
|
+
DEVICE_ANDROID_OS: DeviceType.ValueType # 1
|
50
|
+
"""Android Device"""
|
51
|
+
DEVICE_IOS_OS: DeviceType.ValueType # 2
|
52
|
+
"""Apple IOS device"""
|
53
|
+
DEVICE_CHROME_BROWSER: DeviceType.ValueType # 3
|
54
|
+
"""Chrome browser - Not Chrome OS. No hardware records."""
|
55
|
+
DEVICE_CHROME_OS: DeviceType.ValueType # 4
|
56
|
+
"""Chrome OS"""
|
57
|
+
global___DeviceType = DeviceType
|
58
|
+
|
59
|
+
@typing_extensions.final
|
60
|
+
class ChromeBuildProto(google.protobuf.message.Message):
|
61
|
+
"""Build characteristics unique to the Chrome browser, and Chrome OS"""
|
62
|
+
|
63
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
64
|
+
|
65
|
+
class _Platform:
|
66
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
67
|
+
V: typing_extensions.TypeAlias = ValueType
|
68
|
+
|
69
|
+
class _PlatformEnumTypeWrapper(
|
70
|
+
google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[
|
71
|
+
ChromeBuildProto._Platform.ValueType
|
72
|
+
],
|
73
|
+
builtins.type,
|
74
|
+
):
|
75
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
76
|
+
PLATFORM_WIN: ChromeBuildProto._Platform.ValueType # 1
|
77
|
+
PLATFORM_MAC: ChromeBuildProto._Platform.ValueType # 2
|
78
|
+
PLATFORM_LINUX: ChromeBuildProto._Platform.ValueType # 3
|
79
|
+
PLATFORM_CROS: ChromeBuildProto._Platform.ValueType # 4
|
80
|
+
PLATFORM_IOS: ChromeBuildProto._Platform.ValueType # 5
|
81
|
+
PLATFORM_ANDROID: ChromeBuildProto._Platform.ValueType # 6
|
82
|
+
"""Just a placeholder. Likely don't need it due to the presence of the
|
83
|
+
Android GCM on phone/tablet devices.
|
84
|
+
"""
|
85
|
+
|
86
|
+
class Platform(_Platform, metaclass=_PlatformEnumTypeWrapper): ...
|
87
|
+
PLATFORM_WIN: ChromeBuildProto.Platform.ValueType # 1
|
88
|
+
PLATFORM_MAC: ChromeBuildProto.Platform.ValueType # 2
|
89
|
+
PLATFORM_LINUX: ChromeBuildProto.Platform.ValueType # 3
|
90
|
+
PLATFORM_CROS: ChromeBuildProto.Platform.ValueType # 4
|
91
|
+
PLATFORM_IOS: ChromeBuildProto.Platform.ValueType # 5
|
92
|
+
PLATFORM_ANDROID: ChromeBuildProto.Platform.ValueType # 6
|
93
|
+
"""Just a placeholder. Likely don't need it due to the presence of the
|
94
|
+
Android GCM on phone/tablet devices.
|
95
|
+
"""
|
96
|
+
|
97
|
+
class _Channel:
|
98
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
99
|
+
V: typing_extensions.TypeAlias = ValueType
|
100
|
+
|
101
|
+
class _ChannelEnumTypeWrapper(
|
102
|
+
google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[
|
103
|
+
ChromeBuildProto._Channel.ValueType
|
104
|
+
],
|
105
|
+
builtins.type,
|
106
|
+
):
|
107
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
108
|
+
CHANNEL_STABLE: ChromeBuildProto._Channel.ValueType # 1
|
109
|
+
CHANNEL_BETA: ChromeBuildProto._Channel.ValueType # 2
|
110
|
+
CHANNEL_DEV: ChromeBuildProto._Channel.ValueType # 3
|
111
|
+
CHANNEL_CANARY: ChromeBuildProto._Channel.ValueType # 4
|
112
|
+
CHANNEL_UNKNOWN: ChromeBuildProto._Channel.ValueType # 5
|
113
|
+
"""for tip of tree or custom builds"""
|
114
|
+
|
115
|
+
class Channel(_Channel, metaclass=_ChannelEnumTypeWrapper): ...
|
116
|
+
CHANNEL_STABLE: ChromeBuildProto.Channel.ValueType # 1
|
117
|
+
CHANNEL_BETA: ChromeBuildProto.Channel.ValueType # 2
|
118
|
+
CHANNEL_DEV: ChromeBuildProto.Channel.ValueType # 3
|
119
|
+
CHANNEL_CANARY: ChromeBuildProto.Channel.ValueType # 4
|
120
|
+
CHANNEL_UNKNOWN: ChromeBuildProto.Channel.ValueType # 5
|
121
|
+
"""for tip of tree or custom builds"""
|
122
|
+
|
123
|
+
PLATFORM_FIELD_NUMBER: builtins.int
|
124
|
+
CHROME_VERSION_FIELD_NUMBER: builtins.int
|
125
|
+
CHANNEL_FIELD_NUMBER: builtins.int
|
126
|
+
platform: global___ChromeBuildProto.Platform.ValueType
|
127
|
+
"""The platform of the device."""
|
128
|
+
chrome_version: builtins.str
|
129
|
+
"""The Chrome instance's version."""
|
130
|
+
channel: global___ChromeBuildProto.Channel.ValueType
|
131
|
+
"""The Channel (build type) of Chrome."""
|
132
|
+
def __init__(
|
133
|
+
self,
|
134
|
+
*,
|
135
|
+
platform: global___ChromeBuildProto.Platform.ValueType | None = ...,
|
136
|
+
chrome_version: builtins.str | None = ...,
|
137
|
+
channel: global___ChromeBuildProto.Channel.ValueType | None = ...,
|
138
|
+
) -> None: ...
|
139
|
+
def HasField(
|
140
|
+
self,
|
141
|
+
field_name: typing_extensions.Literal[
|
142
|
+
"channel",
|
143
|
+
b"channel",
|
144
|
+
"chrome_version",
|
145
|
+
b"chrome_version",
|
146
|
+
"platform",
|
147
|
+
b"platform",
|
148
|
+
],
|
149
|
+
) -> builtins.bool: ...
|
150
|
+
def ClearField(
|
151
|
+
self,
|
152
|
+
field_name: typing_extensions.Literal[
|
153
|
+
"channel",
|
154
|
+
b"channel",
|
155
|
+
"chrome_version",
|
156
|
+
b"chrome_version",
|
157
|
+
"platform",
|
158
|
+
b"platform",
|
159
|
+
],
|
160
|
+
) -> None: ...
|
161
|
+
|
162
|
+
global___ChromeBuildProto = ChromeBuildProto
|
163
|
+
|
164
|
+
@typing_extensions.final
|
165
|
+
class AndroidCheckinProto(google.protobuf.message.Message):
|
166
|
+
"""Information sent by the device in a "checkin" request."""
|
167
|
+
|
168
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
169
|
+
|
170
|
+
LAST_CHECKIN_MSEC_FIELD_NUMBER: builtins.int
|
171
|
+
CELL_OPERATOR_FIELD_NUMBER: builtins.int
|
172
|
+
SIM_OPERATOR_FIELD_NUMBER: builtins.int
|
173
|
+
ROAMING_FIELD_NUMBER: builtins.int
|
174
|
+
USER_NUMBER_FIELD_NUMBER: builtins.int
|
175
|
+
TYPE_FIELD_NUMBER: builtins.int
|
176
|
+
CHROME_BUILD_FIELD_NUMBER: builtins.int
|
177
|
+
last_checkin_msec: builtins.int
|
178
|
+
"""Miliseconds since the Unix epoch of the device's last successful checkin."""
|
179
|
+
cell_operator: builtins.str
|
180
|
+
"""The current MCC+MNC of the mobile device's current cell."""
|
181
|
+
sim_operator: builtins.str
|
182
|
+
"""The MCC+MNC of the SIM card (different from operator if the
|
183
|
+
device is roaming, for instance).
|
184
|
+
"""
|
185
|
+
roaming: builtins.str
|
186
|
+
"""The device's current roaming state (reported starting in eclair builds).
|
187
|
+
Currently one of "{,not}mobile-{,not}roaming", if it is present at all.
|
188
|
+
"""
|
189
|
+
user_number: builtins.int
|
190
|
+
"""For devices supporting multiple user profiles (which may be
|
191
|
+
supported starting in jellybean), the ordinal number of the
|
192
|
+
profile that is checking in. This is 0 for the primary profile
|
193
|
+
(which can't be changed without wiping the device), and 1,2,3,...
|
194
|
+
for additional profiles (which can be added and deleted freely).
|
195
|
+
"""
|
196
|
+
type: global___DeviceType.ValueType
|
197
|
+
"""Class of device. Indicates the type of build proto
|
198
|
+
(IosBuildProto/ChromeBuildProto/AndroidBuildProto)
|
199
|
+
That is included in this proto
|
200
|
+
"""
|
201
|
+
@property
|
202
|
+
def chrome_build(self) -> global___ChromeBuildProto:
|
203
|
+
"""For devices running MCS on Chrome, build-specific characteristics
|
204
|
+
of the browser. There are no hardware aspects (except for ChromeOS).
|
205
|
+
This will only be populated for Chrome builds/ChromeOS devices
|
206
|
+
"""
|
207
|
+
def __init__(
|
208
|
+
self,
|
209
|
+
*,
|
210
|
+
last_checkin_msec: builtins.int | None = ...,
|
211
|
+
cell_operator: builtins.str | None = ...,
|
212
|
+
sim_operator: builtins.str | None = ...,
|
213
|
+
roaming: builtins.str | None = ...,
|
214
|
+
user_number: builtins.int | None = ...,
|
215
|
+
type: global___DeviceType.ValueType | None = ...,
|
216
|
+
chrome_build: global___ChromeBuildProto | None = ...,
|
217
|
+
) -> None: ...
|
218
|
+
def HasField(
|
219
|
+
self,
|
220
|
+
field_name: typing_extensions.Literal[
|
221
|
+
"cell_operator",
|
222
|
+
b"cell_operator",
|
223
|
+
"chrome_build",
|
224
|
+
b"chrome_build",
|
225
|
+
"last_checkin_msec",
|
226
|
+
b"last_checkin_msec",
|
227
|
+
"roaming",
|
228
|
+
b"roaming",
|
229
|
+
"sim_operator",
|
230
|
+
b"sim_operator",
|
231
|
+
"type",
|
232
|
+
b"type",
|
233
|
+
"user_number",
|
234
|
+
b"user_number",
|
235
|
+
],
|
236
|
+
) -> builtins.bool: ...
|
237
|
+
def ClearField(
|
238
|
+
self,
|
239
|
+
field_name: typing_extensions.Literal[
|
240
|
+
"cell_operator",
|
241
|
+
b"cell_operator",
|
242
|
+
"chrome_build",
|
243
|
+
b"chrome_build",
|
244
|
+
"last_checkin_msec",
|
245
|
+
b"last_checkin_msec",
|
246
|
+
"roaming",
|
247
|
+
b"roaming",
|
248
|
+
"sim_operator",
|
249
|
+
b"sim_operator",
|
250
|
+
"type",
|
251
|
+
b"type",
|
252
|
+
"user_number",
|
253
|
+
b"user_number",
|
254
|
+
],
|
255
|
+
) -> None: ...
|
256
|
+
|
257
|
+
global___AndroidCheckinProto = AndroidCheckinProto
|