pycupra 0.1.11__py3-2ndver-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.
@@ -0,0 +1,155 @@
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
+ // Request and reply to the "checkin server" devices poll every few hours.
6
+
7
+ syntax = "proto2";
8
+
9
+ option optimize_for = LITE_RUNTIME;
10
+
11
+ package checkin_proto;
12
+
13
+ import "android_checkin.proto";
14
+
15
+ // A concrete name/value pair sent to the device's Gservices database.
16
+ message GservicesSetting {
17
+ required bytes name = 1;
18
+ required bytes value = 2;
19
+ }
20
+
21
+ // Devices send this every few hours to tell us how they're doing.
22
+ message AndroidCheckinRequest {
23
+ // IMEI (used by GSM phones) is sent and stored as 15 decimal
24
+ // digits; the 15th is a check digit.
25
+ optional string imei = 1; // IMEI, reported but not logged.
26
+
27
+ // MEID (used by CDMA phones) is sent and stored as 14 hexadecimal
28
+ // digits (no check digit).
29
+ optional string meid = 10; // MEID, reported but not logged.
30
+
31
+ // MAC address (used by non-phone devices). 12 hexadecimal digits;
32
+ // no separators (eg "0016E6513AC2", not "00:16:E6:51:3A:C2").
33
+ repeated string mac_addr = 9; // MAC address, reported but not logged.
34
+
35
+ // An array parallel to mac_addr, describing the type of interface.
36
+ // Currently accepted values: "wifi", "ethernet", "bluetooth". If
37
+ // not present, "wifi" is assumed.
38
+ repeated string mac_addr_type = 19;
39
+
40
+ // Serial number (a manufacturer-defined unique hardware
41
+ // identifier). Alphanumeric, case-insensitive.
42
+ optional string serial_number = 16;
43
+
44
+ // Older CDMA networks use an ESN (8 hex digits) instead of an MEID.
45
+ optional string esn = 17; // ESN, reported but not logged
46
+
47
+ optional int64 id = 2; // Android device ID, not logged
48
+ optional int64 logging_id = 7; // Pseudonymous logging ID for Sawmill
49
+ optional string digest = 3; // Digest of device provisioning, not logged.
50
+ optional string locale = 6; // Current locale in standard (xx_XX) format
51
+ required AndroidCheckinProto checkin = 4;
52
+
53
+ // DEPRECATED, see AndroidCheckinProto.requested_group
54
+ optional string desired_build = 5;
55
+
56
+ // Blob of data from the Market app to be passed to Market API server
57
+ optional string market_checkin = 8;
58
+
59
+ // SID cookies of any google accounts stored on the phone. Not logged.
60
+ repeated string account_cookie = 11;
61
+
62
+ // Time zone. Not currently logged.
63
+ optional string time_zone = 12;
64
+
65
+ // Security token used to validate the checkin request.
66
+ // Required for android IDs issued to Froyo+ devices, not for legacy IDs.
67
+ optional fixed64 security_token = 13;
68
+
69
+ // Version of checkin protocol.
70
+ //
71
+ // There are currently two versions:
72
+ //
73
+ // - version field missing: android IDs are assigned based on
74
+ // hardware identifiers. unsecured in the sense that you can
75
+ // "unregister" someone's phone by sending a registration request
76
+ // with their IMEI/MEID/MAC.
77
+ //
78
+ // - version=2: android IDs are assigned randomly. The device is
79
+ // sent a security token that must be included in all future
80
+ // checkins for that android id.
81
+ //
82
+ // - version=3: same as version 2, but the 'fragment' field is
83
+ // provided, and the device understands incremental updates to the
84
+ // gservices table (ie, only returning the keys whose values have
85
+ // changed.)
86
+ //
87
+ // (version=1 was skipped to avoid confusion with the "missing"
88
+ // version field that is effectively version 1.)
89
+ optional int32 version = 14;
90
+
91
+ // OTA certs accepted by device (base-64 SHA-1 of cert files). Not
92
+ // logged.
93
+ repeated string ota_cert = 15;
94
+
95
+ // Honeycomb and newer devices send configuration data with their checkin.
96
+ // optional DeviceConfigurationProto device_configuration = 18;
97
+
98
+ // A single CheckinTask on the device may lead to multiple checkin
99
+ // requests if there is too much log data to upload in a single
100
+ // request. For version 3 and up, this field will be filled in with
101
+ // the number of the request, starting with 0.
102
+ optional int32 fragment = 20;
103
+
104
+ // For devices supporting multiple users, the name of the current
105
+ // profile (they all check in independently, just as if they were
106
+ // multiple physical devices). This may not be set, even if the
107
+ // device is using multiuser. (checkin.user_number should be set to
108
+ // the ordinal of the user.)
109
+ optional string user_name = 21;
110
+
111
+ // For devices supporting multiple user profiles, the serial number
112
+ // for the user checking in. Not logged. May not be set, even if
113
+ // the device supportes multiuser. checkin.user_number is the
114
+ // ordinal of the user (0, 1, 2, ...), which may be reused if users
115
+ // are deleted and re-created. user_serial_number is never reused
116
+ // (unless the device is wiped).
117
+ optional int32 user_serial_number = 22;
118
+
119
+ // NEXT TAG: 23
120
+ }
121
+
122
+ // The response to the device.
123
+ message AndroidCheckinResponse {
124
+ required bool stats_ok = 1; // Whether statistics were recorded properly.
125
+ optional int64 time_msec = 3; // Time of day from server (Java epoch).
126
+ // repeated AndroidIntentProto intent = 2;
127
+
128
+ // Provisioning is sent if the request included an obsolete digest.
129
+ //
130
+ // For version <= 2, 'digest' contains the digest that should be
131
+ // sent back to the server on the next checkin, and 'setting'
132
+ // contains the entire gservices table (which replaces the entire
133
+ // current table on the device).
134
+ //
135
+ // for version >= 3, 'digest' will be absent. If 'settings_diff'
136
+ // is false, then 'setting' contains the entire table, as in version
137
+ // 2. If 'settings_diff' is true, then 'delete_setting' contains
138
+ // the keys to delete, and 'setting' contains only keys to be added
139
+ // or for which the value has changed. All other keys in the
140
+ // current table should be left untouched. If 'settings_diff' is
141
+ // absent, don't touch the existing gservices table.
142
+ //
143
+ optional string digest = 4;
144
+ optional bool settings_diff = 9;
145
+ repeated string delete_setting = 10;
146
+ repeated GservicesSetting setting = 5;
147
+
148
+ optional bool market_ok = 6; // If Market got the market_checkin data OK.
149
+
150
+ optional fixed64 android_id = 7; // From the request, or newly assigned
151
+ optional fixed64 security_token = 8; // The associated security token
152
+
153
+ optional string version_info = 11;
154
+ // NEXT TAG: 12
155
+ }
@@ -0,0 +1,31 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: checkin.proto
3
+ """Generated protocol buffer code."""
4
+
5
+ from google.protobuf import descriptor as _descriptor
6
+ from google.protobuf import descriptor_pool as _descriptor_pool
7
+ from google.protobuf import symbol_database as _symbol_database
8
+ from google.protobuf.internal import builder as _builder
9
+
10
+ # @@protoc_insertion_point(imports)
11
+
12
+ _sym_db = _symbol_database.Default()
13
+
14
+
15
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
16
+ b'\n\rcheckin.proto\x12\rcheckin_proto\x1a\x15\x61ndroid_checkin.proto"/\n\x10GservicesSetting\x12\x0c\n\x04name\x18\x01 \x02(\x0c\x12\r\n\x05value\x18\x02 \x02(\x0c"\xcb\x03\n\x15\x41ndroidCheckinRequest\x12\x0c\n\x04imei\x18\x01 \x01(\t\x12\x0c\n\x04meid\x18\n \x01(\t\x12\x10\n\x08mac_addr\x18\t \x03(\t\x12\x15\n\rmac_addr_type\x18\x13 \x03(\t\x12\x15\n\rserial_number\x18\x10 \x01(\t\x12\x0b\n\x03\x65sn\x18\x11 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\x03\x12\x12\n\nlogging_id\x18\x07 \x01(\x03\x12\x0e\n\x06\x64igest\x18\x03 \x01(\t\x12\x0e\n\x06locale\x18\x06 \x01(\t\x12\x33\n\x07\x63heckin\x18\x04 \x02(\x0b\x32".checkin_proto.AndroidCheckinProto\x12\x15\n\rdesired_build\x18\x05 \x01(\t\x12\x16\n\x0emarket_checkin\x18\x08 \x01(\t\x12\x16\n\x0e\x61\x63\x63ount_cookie\x18\x0b \x03(\t\x12\x11\n\ttime_zone\x18\x0c \x01(\t\x12\x16\n\x0esecurity_token\x18\r \x01(\x06\x12\x0f\n\x07version\x18\x0e \x01(\x05\x12\x10\n\x08ota_cert\x18\x0f \x03(\t\x12\x10\n\x08\x66ragment\x18\x14 \x01(\x05\x12\x11\n\tuser_name\x18\x15 \x01(\t\x12\x1a\n\x12user_serial_number\x18\x16 \x01(\x05"\x83\x02\n\x16\x41ndroidCheckinResponse\x12\x10\n\x08stats_ok\x18\x01 \x02(\x08\x12\x11\n\ttime_msec\x18\x03 \x01(\x03\x12\x0e\n\x06\x64igest\x18\x04 \x01(\t\x12\x15\n\rsettings_diff\x18\t \x01(\x08\x12\x16\n\x0e\x64\x65lete_setting\x18\n \x03(\t\x12\x30\n\x07setting\x18\x05 \x03(\x0b\x32\x1f.checkin_proto.GservicesSetting\x12\x11\n\tmarket_ok\x18\x06 \x01(\x08\x12\x12\n\nandroid_id\x18\x07 \x01(\x06\x12\x16\n\x0esecurity_token\x18\x08 \x01(\x06\x12\x14\n\x0cversion_info\x18\x0b \x01(\tB\x02H\x03'
17
+ )
18
+
19
+ _globals = globals()
20
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
21
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "checkin_pb2", _globals)
22
+ if _descriptor._USE_C_DESCRIPTORS == False:
23
+ _globals["DESCRIPTOR"]._options = None
24
+ _globals["DESCRIPTOR"]._serialized_options = b"H\003"
25
+ _globals["_GSERVICESSETTING"]._serialized_start = 55
26
+ _globals["_GSERVICESSETTING"]._serialized_end = 102
27
+ _globals["_ANDROIDCHECKINREQUEST"]._serialized_start = 105
28
+ _globals["_ANDROIDCHECKINREQUEST"]._serialized_end = 564
29
+ _globals["_ANDROIDCHECKINRESPONSE"]._serialized_start = 567
30
+ _globals["_ANDROIDCHECKINRESPONSE"]._serialized_end = 826
31
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,424 @@
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
+ Request and reply to the "checkin server" devices poll every few hours.
9
+ """
10
+
11
+ from . import android_checkin_pb2
12
+ import builtins
13
+ import collections.abc
14
+ import google.protobuf.descriptor
15
+ import google.protobuf.internal.containers
16
+ import google.protobuf.message
17
+ import sys
18
+
19
+ if sys.version_info >= (3, 8):
20
+ import typing as typing_extensions
21
+ else:
22
+ import typing_extensions
23
+
24
+ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
25
+
26
+ @typing_extensions.final
27
+ class GservicesSetting(google.protobuf.message.Message):
28
+ """A concrete name/value pair sent to the device's Gservices database."""
29
+
30
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
31
+
32
+ NAME_FIELD_NUMBER: builtins.int
33
+ VALUE_FIELD_NUMBER: builtins.int
34
+ name: builtins.bytes
35
+ value: builtins.bytes
36
+ def __init__(
37
+ self,
38
+ *,
39
+ name: builtins.bytes | None = ...,
40
+ value: builtins.bytes | None = ...,
41
+ ) -> None: ...
42
+ def HasField(
43
+ self, field_name: typing_extensions.Literal["name", b"name", "value", b"value"]
44
+ ) -> builtins.bool: ...
45
+ def ClearField(
46
+ self, field_name: typing_extensions.Literal["name", b"name", "value", b"value"]
47
+ ) -> None: ...
48
+
49
+ global___GservicesSetting = GservicesSetting
50
+
51
+ @typing_extensions.final
52
+ class AndroidCheckinRequest(google.protobuf.message.Message):
53
+ """Devices send this every few hours to tell us how they're doing."""
54
+
55
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
56
+
57
+ IMEI_FIELD_NUMBER: builtins.int
58
+ MEID_FIELD_NUMBER: builtins.int
59
+ MAC_ADDR_FIELD_NUMBER: builtins.int
60
+ MAC_ADDR_TYPE_FIELD_NUMBER: builtins.int
61
+ SERIAL_NUMBER_FIELD_NUMBER: builtins.int
62
+ ESN_FIELD_NUMBER: builtins.int
63
+ ID_FIELD_NUMBER: builtins.int
64
+ LOGGING_ID_FIELD_NUMBER: builtins.int
65
+ DIGEST_FIELD_NUMBER: builtins.int
66
+ LOCALE_FIELD_NUMBER: builtins.int
67
+ CHECKIN_FIELD_NUMBER: builtins.int
68
+ DESIRED_BUILD_FIELD_NUMBER: builtins.int
69
+ MARKET_CHECKIN_FIELD_NUMBER: builtins.int
70
+ ACCOUNT_COOKIE_FIELD_NUMBER: builtins.int
71
+ TIME_ZONE_FIELD_NUMBER: builtins.int
72
+ SECURITY_TOKEN_FIELD_NUMBER: builtins.int
73
+ VERSION_FIELD_NUMBER: builtins.int
74
+ OTA_CERT_FIELD_NUMBER: builtins.int
75
+ FRAGMENT_FIELD_NUMBER: builtins.int
76
+ USER_NAME_FIELD_NUMBER: builtins.int
77
+ USER_SERIAL_NUMBER_FIELD_NUMBER: builtins.int
78
+ imei: builtins.str
79
+ """IMEI (used by GSM phones) is sent and stored as 15 decimal
80
+ digits; the 15th is a check digit.
81
+ IMEI, reported but not logged.
82
+ """
83
+ meid: builtins.str
84
+ """MEID (used by CDMA phones) is sent and stored as 14 hexadecimal
85
+ digits (no check digit).
86
+ MEID, reported but not logged.
87
+ """
88
+ @property
89
+ def mac_addr(
90
+ self,
91
+ ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
92
+ """MAC address (used by non-phone devices). 12 hexadecimal digits;
93
+ no separators (eg "0016E6513AC2", not "00:16:E6:51:3A:C2").
94
+ MAC address, reported but not logged.
95
+ """
96
+ @property
97
+ def mac_addr_type(
98
+ self,
99
+ ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
100
+ """An array parallel to mac_addr, describing the type of interface.
101
+ Currently accepted values: "wifi", "ethernet", "bluetooth". If
102
+ not present, "wifi" is assumed.
103
+ """
104
+ serial_number: builtins.str
105
+ """Serial number (a manufacturer-defined unique hardware
106
+ identifier). Alphanumeric, case-insensitive.
107
+ """
108
+ esn: builtins.str
109
+ """Older CDMA networks use an ESN (8 hex digits) instead of an MEID.
110
+ ESN, reported but not logged
111
+ """
112
+ id: builtins.int
113
+ """Android device ID, not logged"""
114
+ logging_id: builtins.int
115
+ """Pseudonymous logging ID for Sawmill"""
116
+ digest: builtins.str
117
+ """Digest of device provisioning, not logged."""
118
+ locale: builtins.str
119
+ """Current locale in standard (xx_XX) format"""
120
+ @property
121
+ def checkin(self) -> android_checkin_pb2.AndroidCheckinProto: ...
122
+ desired_build: builtins.str
123
+ """DEPRECATED, see AndroidCheckinProto.requested_group"""
124
+ market_checkin: builtins.str
125
+ """Blob of data from the Market app to be passed to Market API server"""
126
+ @property
127
+ def account_cookie(
128
+ self,
129
+ ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
130
+ """SID cookies of any google accounts stored on the phone. Not logged."""
131
+ time_zone: builtins.str
132
+ """Time zone. Not currently logged."""
133
+ security_token: builtins.int
134
+ """Security token used to validate the checkin request.
135
+ Required for android IDs issued to Froyo+ devices, not for legacy IDs.
136
+ """
137
+ version: builtins.int
138
+ """Version of checkin protocol.
139
+
140
+ There are currently two versions:
141
+
142
+ - version field missing: android IDs are assigned based on
143
+ hardware identifiers. unsecured in the sense that you can
144
+ "unregister" someone's phone by sending a registration request
145
+ with their IMEI/MEID/MAC.
146
+
147
+ - version=2: android IDs are assigned randomly. The device is
148
+ sent a security token that must be included in all future
149
+ checkins for that android id.
150
+
151
+ - version=3: same as version 2, but the 'fragment' field is
152
+ provided, and the device understands incremental updates to the
153
+ gservices table (ie, only returning the keys whose values have
154
+ changed.)
155
+
156
+ (version=1 was skipped to avoid confusion with the "missing"
157
+ version field that is effectively version 1.)
158
+ """
159
+ @property
160
+ def ota_cert(
161
+ self,
162
+ ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
163
+ """OTA certs accepted by device (base-64 SHA-1 of cert files). Not
164
+ logged.
165
+ """
166
+ fragment: builtins.int
167
+ """Honeycomb and newer devices send configuration data with their checkin.
168
+ optional DeviceConfigurationProto device_configuration = 18;
169
+
170
+ A single CheckinTask on the device may lead to multiple checkin
171
+ requests if there is too much log data to upload in a single
172
+ request. For version 3 and up, this field will be filled in with
173
+ the number of the request, starting with 0.
174
+ """
175
+ user_name: builtins.str
176
+ """For devices supporting multiple users, the name of the current
177
+ profile (they all check in independently, just as if they were
178
+ multiple physical devices). This may not be set, even if the
179
+ device is using multiuser. (checkin.user_number should be set to
180
+ the ordinal of the user.)
181
+ """
182
+ user_serial_number: builtins.int
183
+ """For devices supporting multiple user profiles, the serial number
184
+ for the user checking in. Not logged. May not be set, even if
185
+ the device supportes multiuser. checkin.user_number is the
186
+ ordinal of the user (0, 1, 2, ...), which may be reused if users
187
+ are deleted and re-created. user_serial_number is never reused
188
+ (unless the device is wiped).
189
+ """
190
+ def __init__(
191
+ self,
192
+ *,
193
+ imei: builtins.str | None = ...,
194
+ meid: builtins.str | None = ...,
195
+ mac_addr: collections.abc.Iterable[builtins.str] | None = ...,
196
+ mac_addr_type: collections.abc.Iterable[builtins.str] | None = ...,
197
+ serial_number: builtins.str | None = ...,
198
+ esn: builtins.str | None = ...,
199
+ id: builtins.int | None = ...,
200
+ logging_id: builtins.int | None = ...,
201
+ digest: builtins.str | None = ...,
202
+ locale: builtins.str | None = ...,
203
+ checkin: android_checkin_pb2.AndroidCheckinProto | None = ...,
204
+ desired_build: builtins.str | None = ...,
205
+ market_checkin: builtins.str | None = ...,
206
+ account_cookie: collections.abc.Iterable[builtins.str] | None = ...,
207
+ time_zone: builtins.str | None = ...,
208
+ security_token: builtins.int | None = ...,
209
+ version: builtins.int | None = ...,
210
+ ota_cert: collections.abc.Iterable[builtins.str] | None = ...,
211
+ fragment: builtins.int | None = ...,
212
+ user_name: builtins.str | None = ...,
213
+ user_serial_number: builtins.int | None = ...,
214
+ ) -> None: ...
215
+ def HasField(
216
+ self,
217
+ field_name: typing_extensions.Literal[
218
+ "checkin",
219
+ b"checkin",
220
+ "desired_build",
221
+ b"desired_build",
222
+ "digest",
223
+ b"digest",
224
+ "esn",
225
+ b"esn",
226
+ "fragment",
227
+ b"fragment",
228
+ "id",
229
+ b"id",
230
+ "imei",
231
+ b"imei",
232
+ "locale",
233
+ b"locale",
234
+ "logging_id",
235
+ b"logging_id",
236
+ "market_checkin",
237
+ b"market_checkin",
238
+ "meid",
239
+ b"meid",
240
+ "security_token",
241
+ b"security_token",
242
+ "serial_number",
243
+ b"serial_number",
244
+ "time_zone",
245
+ b"time_zone",
246
+ "user_name",
247
+ b"user_name",
248
+ "user_serial_number",
249
+ b"user_serial_number",
250
+ "version",
251
+ b"version",
252
+ ],
253
+ ) -> builtins.bool: ...
254
+ def ClearField(
255
+ self,
256
+ field_name: typing_extensions.Literal[
257
+ "account_cookie",
258
+ b"account_cookie",
259
+ "checkin",
260
+ b"checkin",
261
+ "desired_build",
262
+ b"desired_build",
263
+ "digest",
264
+ b"digest",
265
+ "esn",
266
+ b"esn",
267
+ "fragment",
268
+ b"fragment",
269
+ "id",
270
+ b"id",
271
+ "imei",
272
+ b"imei",
273
+ "locale",
274
+ b"locale",
275
+ "logging_id",
276
+ b"logging_id",
277
+ "mac_addr",
278
+ b"mac_addr",
279
+ "mac_addr_type",
280
+ b"mac_addr_type",
281
+ "market_checkin",
282
+ b"market_checkin",
283
+ "meid",
284
+ b"meid",
285
+ "ota_cert",
286
+ b"ota_cert",
287
+ "security_token",
288
+ b"security_token",
289
+ "serial_number",
290
+ b"serial_number",
291
+ "time_zone",
292
+ b"time_zone",
293
+ "user_name",
294
+ b"user_name",
295
+ "user_serial_number",
296
+ b"user_serial_number",
297
+ "version",
298
+ b"version",
299
+ ],
300
+ ) -> None: ...
301
+
302
+ global___AndroidCheckinRequest = AndroidCheckinRequest
303
+
304
+ @typing_extensions.final
305
+ class AndroidCheckinResponse(google.protobuf.message.Message):
306
+ """The response to the device."""
307
+
308
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
309
+
310
+ STATS_OK_FIELD_NUMBER: builtins.int
311
+ TIME_MSEC_FIELD_NUMBER: builtins.int
312
+ DIGEST_FIELD_NUMBER: builtins.int
313
+ SETTINGS_DIFF_FIELD_NUMBER: builtins.int
314
+ DELETE_SETTING_FIELD_NUMBER: builtins.int
315
+ SETTING_FIELD_NUMBER: builtins.int
316
+ MARKET_OK_FIELD_NUMBER: builtins.int
317
+ ANDROID_ID_FIELD_NUMBER: builtins.int
318
+ SECURITY_TOKEN_FIELD_NUMBER: builtins.int
319
+ VERSION_INFO_FIELD_NUMBER: builtins.int
320
+ stats_ok: builtins.bool
321
+ """Whether statistics were recorded properly."""
322
+ time_msec: builtins.int
323
+ """Time of day from server (Java epoch)."""
324
+ digest: builtins.str
325
+ """repeated AndroidIntentProto intent = 2;
326
+
327
+ Provisioning is sent if the request included an obsolete digest.
328
+
329
+ For version <= 2, 'digest' contains the digest that should be
330
+ sent back to the server on the next checkin, and 'setting'
331
+ contains the entire gservices table (which replaces the entire
332
+ current table on the device).
333
+
334
+ for version >= 3, 'digest' will be absent. If 'settings_diff'
335
+ is false, then 'setting' contains the entire table, as in version
336
+ 2. If 'settings_diff' is true, then 'delete_setting' contains
337
+ the keys to delete, and 'setting' contains only keys to be added
338
+ or for which the value has changed. All other keys in the
339
+ current table should be left untouched. If 'settings_diff' is
340
+ absent, don't touch the existing gservices table.
341
+ """
342
+ settings_diff: builtins.bool
343
+ @property
344
+ def delete_setting(
345
+ self,
346
+ ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[
347
+ builtins.str
348
+ ]: ...
349
+ @property
350
+ def setting(
351
+ self,
352
+ ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
353
+ global___GservicesSetting
354
+ ]: ...
355
+ market_ok: builtins.bool
356
+ """If Market got the market_checkin data OK."""
357
+ android_id: builtins.int
358
+ """From the request, or newly assigned"""
359
+ security_token: builtins.int
360
+ """The associated security token"""
361
+ version_info: builtins.str
362
+ """NEXT TAG: 12"""
363
+ def __init__(
364
+ self,
365
+ *,
366
+ stats_ok: builtins.bool | None = ...,
367
+ time_msec: builtins.int | None = ...,
368
+ digest: builtins.str | None = ...,
369
+ settings_diff: builtins.bool | None = ...,
370
+ delete_setting: collections.abc.Iterable[builtins.str] | None = ...,
371
+ setting: collections.abc.Iterable[global___GservicesSetting] | None = ...,
372
+ market_ok: builtins.bool | None = ...,
373
+ android_id: builtins.int | None = ...,
374
+ security_token: builtins.int | None = ...,
375
+ version_info: builtins.str | None = ...,
376
+ ) -> None: ...
377
+ def HasField(
378
+ self,
379
+ field_name: typing_extensions.Literal[
380
+ "android_id",
381
+ b"android_id",
382
+ "digest",
383
+ b"digest",
384
+ "market_ok",
385
+ b"market_ok",
386
+ "security_token",
387
+ b"security_token",
388
+ "settings_diff",
389
+ b"settings_diff",
390
+ "stats_ok",
391
+ b"stats_ok",
392
+ "time_msec",
393
+ b"time_msec",
394
+ "version_info",
395
+ b"version_info",
396
+ ],
397
+ ) -> builtins.bool: ...
398
+ def ClearField(
399
+ self,
400
+ field_name: typing_extensions.Literal[
401
+ "android_id",
402
+ b"android_id",
403
+ "delete_setting",
404
+ b"delete_setting",
405
+ "digest",
406
+ b"digest",
407
+ "market_ok",
408
+ b"market_ok",
409
+ "security_token",
410
+ b"security_token",
411
+ "setting",
412
+ b"setting",
413
+ "settings_diff",
414
+ b"settings_diff",
415
+ "stats_ok",
416
+ b"stats_ok",
417
+ "time_msec",
418
+ b"time_msec",
419
+ "version_info",
420
+ b"version_info",
421
+ ],
422
+ ) -> None: ...
423
+
424
+ global___AndroidCheckinResponse = AndroidCheckinResponse
@@ -0,0 +1,32 @@
1
+ """Constants module."""
2
+
3
+ GCM_REGISTER_URL = "https://android.clients.google.com/c2dm/register3"
4
+ GCM_CHECKIN_URL = "https://android.clients.google.com/checkin"
5
+ GCM_SERVER_KEY_BIN = (
6
+ b"\x04\x33\x94\xf7\xdf\xa1\xeb\xb1\xdc\x03\xa2\x5e\x15\x71\xdb\x48\xd3"
7
+ + b"\x2e\xed\xed\xb2\x34\xdb\xb7\x47\x3a\x0c\x8f\xc4\xcc\xe1\x6f\x3c"
8
+ + b"\x8c\x84\xdf\xab\xb6\x66\x3e\xf2\x0c\xd4\x8b\xfe\xe3\xf9\x76\x2f"
9
+ + b"\x14\x1c\x63\x08\x6a\x6f\x2d\xb1\x1a\x95\xb0\xce\x37\xc0\x9c\x6e"
10
+ )
11
+ # urlsafe b64 encoding of the binary key with = padding removed
12
+ GCM_SERVER_KEY_B64 = (
13
+ "BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoM"
14
+ + "j8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4"
15
+ )
16
+
17
+ FCM_SUBSCRIBE_URL = "https://fcm.googleapis.com/fcm/connect/subscribe/"
18
+ FCM_SEND_URL = "https://fcm.googleapis.com/fcm/send/"
19
+
20
+ FCM_API = "https://fcm.googleapis.com/v1/"
21
+ FCM_REGISTRATION = "https://fcmregistrations.googleapis.com/v1/"
22
+ FCM_INSTALLATION = "https://firebaseinstallations.googleapis.com/v1/"
23
+ AUTH_VERSION = "FIS_v2"
24
+ SDK_VERSION = "w:0.6.6"
25
+
26
+ DOORBELLS_ENDPOINT = "/clients_api/doorbots/{0}"
27
+
28
+ MCS_VERSION = 41
29
+ MCS_HOST = "mtalk.google.com"
30
+ MCS_PORT = 5228
31
+ MCS_SELECTIVE_ACK_ID = 12
32
+ MCS_STREAM_ACK_ID = 13