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.
- pycupra/__init__.py +8 -0
- pycupra/__version__.py +6 -0
- pycupra/connection.py +1895 -0
- pycupra/const.py +195 -0
- pycupra/dashboard.py +1527 -0
- pycupra/exceptions.py +87 -0
- pycupra/firebase.py +90 -0
- pycupra/firebase_messaging/__init__.py +30 -0
- pycupra/firebase_messaging/android_checkin.proto +96 -0
- pycupra/firebase_messaging/android_checkin_pb2.py +36 -0
- pycupra/firebase_messaging/android_checkin_pb2.pyi +257 -0
- pycupra/firebase_messaging/checkin.proto +155 -0
- pycupra/firebase_messaging/checkin_pb2.py +31 -0
- pycupra/firebase_messaging/checkin_pb2.pyi +424 -0
- pycupra/firebase_messaging/const.py +32 -0
- pycupra/firebase_messaging/fcmpushclient.py +812 -0
- pycupra/firebase_messaging/fcmregister.py +519 -0
- pycupra/firebase_messaging/mcs.proto +328 -0
- pycupra/firebase_messaging/mcs_pb2.py +65 -0
- pycupra/firebase_messaging/mcs_pb2.pyi +1118 -0
- pycupra/firebase_messaging/py.typed +0 -0
- pycupra/utilities.py +116 -0
- pycupra/vehicle.py +3453 -0
- pycupra-0.1.11.dist-info/METADATA +13 -0
- pycupra-0.1.11.dist-info/RECORD +28 -0
- pycupra-0.1.11.dist-info/WHEEL +5 -0
- pycupra-0.1.11.dist-info/licenses/LICENSE +201 -0
- pycupra-0.1.11.dist-info/top_level.txt +1 -0
@@ -0,0 +1,1118 @@
|
|
1
|
+
"""
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
3
|
+
isort:skip_file
|
4
|
+
Copyright 2013 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
|
+
MCS protocol for communication between Chrome client and Mobile Connection
|
9
|
+
Server .
|
10
|
+
"""
|
11
|
+
|
12
|
+
import builtins
|
13
|
+
import collections.abc
|
14
|
+
import google.protobuf.descriptor
|
15
|
+
import google.protobuf.internal.containers
|
16
|
+
import google.protobuf.internal.enum_type_wrapper
|
17
|
+
import google.protobuf.message
|
18
|
+
import sys
|
19
|
+
import typing
|
20
|
+
|
21
|
+
if sys.version_info >= (3, 10):
|
22
|
+
import typing as typing_extensions
|
23
|
+
else:
|
24
|
+
import typing_extensions
|
25
|
+
|
26
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
27
|
+
|
28
|
+
@typing_extensions.final
|
29
|
+
class HeartbeatPing(google.protobuf.message.Message):
|
30
|
+
"""
|
31
|
+
Common fields/comments:
|
32
|
+
|
33
|
+
stream_id: no longer sent by server, each side keeps a counter
|
34
|
+
last_stream_id_received: sent only if a packet was received since last time
|
35
|
+
a last_stream was sent
|
36
|
+
status: new bitmask including the 'idle' as bit 0.
|
37
|
+
|
38
|
+
*
|
39
|
+
TAG: 0
|
40
|
+
"""
|
41
|
+
|
42
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
43
|
+
|
44
|
+
STREAM_ID_FIELD_NUMBER: builtins.int
|
45
|
+
LAST_STREAM_ID_RECEIVED_FIELD_NUMBER: builtins.int
|
46
|
+
STATUS_FIELD_NUMBER: builtins.int
|
47
|
+
stream_id: builtins.int
|
48
|
+
last_stream_id_received: builtins.int
|
49
|
+
status: builtins.int
|
50
|
+
def __init__(
|
51
|
+
self,
|
52
|
+
*,
|
53
|
+
stream_id: builtins.int | None = ...,
|
54
|
+
last_stream_id_received: builtins.int | None = ...,
|
55
|
+
status: builtins.int | None = ...,
|
56
|
+
) -> None: ...
|
57
|
+
def HasField(
|
58
|
+
self,
|
59
|
+
field_name: typing_extensions.Literal[
|
60
|
+
"last_stream_id_received",
|
61
|
+
b"last_stream_id_received",
|
62
|
+
"status",
|
63
|
+
b"status",
|
64
|
+
"stream_id",
|
65
|
+
b"stream_id",
|
66
|
+
],
|
67
|
+
) -> builtins.bool: ...
|
68
|
+
def ClearField(
|
69
|
+
self,
|
70
|
+
field_name: typing_extensions.Literal[
|
71
|
+
"last_stream_id_received",
|
72
|
+
b"last_stream_id_received",
|
73
|
+
"status",
|
74
|
+
b"status",
|
75
|
+
"stream_id",
|
76
|
+
b"stream_id",
|
77
|
+
],
|
78
|
+
) -> None: ...
|
79
|
+
|
80
|
+
global___HeartbeatPing = HeartbeatPing
|
81
|
+
|
82
|
+
@typing_extensions.final
|
83
|
+
class HeartbeatAck(google.protobuf.message.Message):
|
84
|
+
"""*
|
85
|
+
TAG: 1
|
86
|
+
"""
|
87
|
+
|
88
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
89
|
+
|
90
|
+
STREAM_ID_FIELD_NUMBER: builtins.int
|
91
|
+
LAST_STREAM_ID_RECEIVED_FIELD_NUMBER: builtins.int
|
92
|
+
STATUS_FIELD_NUMBER: builtins.int
|
93
|
+
stream_id: builtins.int
|
94
|
+
last_stream_id_received: builtins.int
|
95
|
+
status: builtins.int
|
96
|
+
def __init__(
|
97
|
+
self,
|
98
|
+
*,
|
99
|
+
stream_id: builtins.int | None = ...,
|
100
|
+
last_stream_id_received: builtins.int | None = ...,
|
101
|
+
status: builtins.int | None = ...,
|
102
|
+
) -> None: ...
|
103
|
+
def HasField(
|
104
|
+
self,
|
105
|
+
field_name: typing_extensions.Literal[
|
106
|
+
"last_stream_id_received",
|
107
|
+
b"last_stream_id_received",
|
108
|
+
"status",
|
109
|
+
b"status",
|
110
|
+
"stream_id",
|
111
|
+
b"stream_id",
|
112
|
+
],
|
113
|
+
) -> builtins.bool: ...
|
114
|
+
def ClearField(
|
115
|
+
self,
|
116
|
+
field_name: typing_extensions.Literal[
|
117
|
+
"last_stream_id_received",
|
118
|
+
b"last_stream_id_received",
|
119
|
+
"status",
|
120
|
+
b"status",
|
121
|
+
"stream_id",
|
122
|
+
b"stream_id",
|
123
|
+
],
|
124
|
+
) -> None: ...
|
125
|
+
|
126
|
+
global___HeartbeatAck = HeartbeatAck
|
127
|
+
|
128
|
+
@typing_extensions.final
|
129
|
+
class ErrorInfo(google.protobuf.message.Message):
|
130
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
131
|
+
|
132
|
+
CODE_FIELD_NUMBER: builtins.int
|
133
|
+
MESSAGE_FIELD_NUMBER: builtins.int
|
134
|
+
TYPE_FIELD_NUMBER: builtins.int
|
135
|
+
EXTENSION_FIELD_NUMBER: builtins.int
|
136
|
+
code: builtins.int
|
137
|
+
message: builtins.str
|
138
|
+
type: builtins.str
|
139
|
+
@property
|
140
|
+
def extension(self) -> global___Extension: ...
|
141
|
+
def __init__(
|
142
|
+
self,
|
143
|
+
*,
|
144
|
+
code: builtins.int | None = ...,
|
145
|
+
message: builtins.str | None = ...,
|
146
|
+
type: builtins.str | None = ...,
|
147
|
+
extension: global___Extension | None = ...,
|
148
|
+
) -> None: ...
|
149
|
+
def HasField(
|
150
|
+
self,
|
151
|
+
field_name: typing_extensions.Literal[
|
152
|
+
"code",
|
153
|
+
b"code",
|
154
|
+
"extension",
|
155
|
+
b"extension",
|
156
|
+
"message",
|
157
|
+
b"message",
|
158
|
+
"type",
|
159
|
+
b"type",
|
160
|
+
],
|
161
|
+
) -> builtins.bool: ...
|
162
|
+
def ClearField(
|
163
|
+
self,
|
164
|
+
field_name: typing_extensions.Literal[
|
165
|
+
"code",
|
166
|
+
b"code",
|
167
|
+
"extension",
|
168
|
+
b"extension",
|
169
|
+
"message",
|
170
|
+
b"message",
|
171
|
+
"type",
|
172
|
+
b"type",
|
173
|
+
],
|
174
|
+
) -> None: ...
|
175
|
+
|
176
|
+
global___ErrorInfo = ErrorInfo
|
177
|
+
|
178
|
+
@typing_extensions.final
|
179
|
+
class Setting(google.protobuf.message.Message):
|
180
|
+
"""MobileSettings class.
|
181
|
+
"u:f", "u:b", "u:s" - multi user devices reporting foreground, background
|
182
|
+
and stopped users.
|
183
|
+
hbping: heatbeat ping interval
|
184
|
+
rmq2v: include explicit stream IDs
|
185
|
+
"""
|
186
|
+
|
187
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
188
|
+
|
189
|
+
NAME_FIELD_NUMBER: builtins.int
|
190
|
+
VALUE_FIELD_NUMBER: builtins.int
|
191
|
+
name: builtins.str
|
192
|
+
value: builtins.str
|
193
|
+
def __init__(
|
194
|
+
self,
|
195
|
+
*,
|
196
|
+
name: builtins.str | None = ...,
|
197
|
+
value: builtins.str | None = ...,
|
198
|
+
) -> None: ...
|
199
|
+
def HasField(
|
200
|
+
self, field_name: typing_extensions.Literal["name", b"name", "value", b"value"]
|
201
|
+
) -> builtins.bool: ...
|
202
|
+
def ClearField(
|
203
|
+
self, field_name: typing_extensions.Literal["name", b"name", "value", b"value"]
|
204
|
+
) -> None: ...
|
205
|
+
|
206
|
+
global___Setting = Setting
|
207
|
+
|
208
|
+
@typing_extensions.final
|
209
|
+
class HeartbeatStat(google.protobuf.message.Message):
|
210
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
211
|
+
|
212
|
+
IP_FIELD_NUMBER: builtins.int
|
213
|
+
TIMEOUT_FIELD_NUMBER: builtins.int
|
214
|
+
INTERVAL_MS_FIELD_NUMBER: builtins.int
|
215
|
+
ip: builtins.str
|
216
|
+
timeout: builtins.bool
|
217
|
+
interval_ms: builtins.int
|
218
|
+
def __init__(
|
219
|
+
self,
|
220
|
+
*,
|
221
|
+
ip: builtins.str | None = ...,
|
222
|
+
timeout: builtins.bool | None = ...,
|
223
|
+
interval_ms: builtins.int | None = ...,
|
224
|
+
) -> None: ...
|
225
|
+
def HasField(
|
226
|
+
self,
|
227
|
+
field_name: typing_extensions.Literal[
|
228
|
+
"interval_ms", b"interval_ms", "ip", b"ip", "timeout", b"timeout"
|
229
|
+
],
|
230
|
+
) -> builtins.bool: ...
|
231
|
+
def ClearField(
|
232
|
+
self,
|
233
|
+
field_name: typing_extensions.Literal[
|
234
|
+
"interval_ms", b"interval_ms", "ip", b"ip", "timeout", b"timeout"
|
235
|
+
],
|
236
|
+
) -> None: ...
|
237
|
+
|
238
|
+
global___HeartbeatStat = HeartbeatStat
|
239
|
+
|
240
|
+
@typing_extensions.final
|
241
|
+
class HeartbeatConfig(google.protobuf.message.Message):
|
242
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
243
|
+
|
244
|
+
UPLOAD_STAT_FIELD_NUMBER: builtins.int
|
245
|
+
IP_FIELD_NUMBER: builtins.int
|
246
|
+
INTERVAL_MS_FIELD_NUMBER: builtins.int
|
247
|
+
upload_stat: builtins.bool
|
248
|
+
ip: builtins.str
|
249
|
+
interval_ms: builtins.int
|
250
|
+
def __init__(
|
251
|
+
self,
|
252
|
+
*,
|
253
|
+
upload_stat: builtins.bool | None = ...,
|
254
|
+
ip: builtins.str | None = ...,
|
255
|
+
interval_ms: builtins.int | None = ...,
|
256
|
+
) -> None: ...
|
257
|
+
def HasField(
|
258
|
+
self,
|
259
|
+
field_name: typing_extensions.Literal[
|
260
|
+
"interval_ms", b"interval_ms", "ip", b"ip", "upload_stat", b"upload_stat"
|
261
|
+
],
|
262
|
+
) -> builtins.bool: ...
|
263
|
+
def ClearField(
|
264
|
+
self,
|
265
|
+
field_name: typing_extensions.Literal[
|
266
|
+
"interval_ms", b"interval_ms", "ip", b"ip", "upload_stat", b"upload_stat"
|
267
|
+
],
|
268
|
+
) -> None: ...
|
269
|
+
|
270
|
+
global___HeartbeatConfig = HeartbeatConfig
|
271
|
+
|
272
|
+
@typing_extensions.final
|
273
|
+
class ClientEvent(google.protobuf.message.Message):
|
274
|
+
"""ClientEvents are used to inform the server of failed and successful
|
275
|
+
connections.
|
276
|
+
"""
|
277
|
+
|
278
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
279
|
+
|
280
|
+
class _Type:
|
281
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
282
|
+
V: typing_extensions.TypeAlias = ValueType
|
283
|
+
|
284
|
+
class _TypeEnumTypeWrapper(
|
285
|
+
google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[
|
286
|
+
ClientEvent._Type.ValueType
|
287
|
+
],
|
288
|
+
builtins.type,
|
289
|
+
):
|
290
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
291
|
+
UNKNOWN: ClientEvent._Type.ValueType # 0
|
292
|
+
DISCARDED_EVENTS: ClientEvent._Type.ValueType # 1
|
293
|
+
"""Count of discarded events if the buffer filled up and was trimmed."""
|
294
|
+
FAILED_CONNECTION: ClientEvent._Type.ValueType # 2
|
295
|
+
"""Failed connection event: the connection failed to be established or we
|
296
|
+
had a login error.
|
297
|
+
"""
|
298
|
+
SUCCESSFUL_CONNECTION: ClientEvent._Type.ValueType # 3
|
299
|
+
"""Successful connection event: information about the last successful
|
300
|
+
connection, including the time at which it was established.
|
301
|
+
"""
|
302
|
+
|
303
|
+
class Type(_Type, metaclass=_TypeEnumTypeWrapper): ...
|
304
|
+
UNKNOWN: ClientEvent.Type.ValueType # 0
|
305
|
+
DISCARDED_EVENTS: ClientEvent.Type.ValueType # 1
|
306
|
+
"""Count of discarded events if the buffer filled up and was trimmed."""
|
307
|
+
FAILED_CONNECTION: ClientEvent.Type.ValueType # 2
|
308
|
+
"""Failed connection event: the connection failed to be established or we
|
309
|
+
had a login error.
|
310
|
+
"""
|
311
|
+
SUCCESSFUL_CONNECTION: ClientEvent.Type.ValueType # 3
|
312
|
+
"""Successful connection event: information about the last successful
|
313
|
+
connection, including the time at which it was established.
|
314
|
+
"""
|
315
|
+
|
316
|
+
TYPE_FIELD_NUMBER: builtins.int
|
317
|
+
NUMBER_DISCARDED_EVENTS_FIELD_NUMBER: builtins.int
|
318
|
+
NETWORK_TYPE_FIELD_NUMBER: builtins.int
|
319
|
+
TIME_CONNECTION_STARTED_MS_FIELD_NUMBER: builtins.int
|
320
|
+
TIME_CONNECTION_ENDED_MS_FIELD_NUMBER: builtins.int
|
321
|
+
ERROR_CODE_FIELD_NUMBER: builtins.int
|
322
|
+
TIME_CONNECTION_ESTABLISHED_MS_FIELD_NUMBER: builtins.int
|
323
|
+
type: global___ClientEvent.Type.ValueType
|
324
|
+
"""Common fields [1-99]"""
|
325
|
+
number_discarded_events: builtins.int
|
326
|
+
"""Fields for DISCARDED_EVENTS messages [100-199]"""
|
327
|
+
network_type: builtins.int
|
328
|
+
"""Fields for FAILED_CONNECTION and SUCCESSFUL_CONNECTION messages [200-299]
|
329
|
+
Network type is a value in net::NetworkChangeNotifier::ConnectionType.
|
330
|
+
"""
|
331
|
+
time_connection_started_ms: builtins.int
|
332
|
+
time_connection_ended_ms: builtins.int
|
333
|
+
error_code: builtins.int
|
334
|
+
"""Error code should be a net::Error value."""
|
335
|
+
time_connection_established_ms: builtins.int
|
336
|
+
"""Fields for SUCCESSFUL_CONNECTION messages [300-399]"""
|
337
|
+
def __init__(
|
338
|
+
self,
|
339
|
+
*,
|
340
|
+
type: global___ClientEvent.Type.ValueType | None = ...,
|
341
|
+
number_discarded_events: builtins.int | None = ...,
|
342
|
+
network_type: builtins.int | None = ...,
|
343
|
+
time_connection_started_ms: builtins.int | None = ...,
|
344
|
+
time_connection_ended_ms: builtins.int | None = ...,
|
345
|
+
error_code: builtins.int | None = ...,
|
346
|
+
time_connection_established_ms: builtins.int | None = ...,
|
347
|
+
) -> None: ...
|
348
|
+
def HasField(
|
349
|
+
self,
|
350
|
+
field_name: typing_extensions.Literal[
|
351
|
+
"error_code",
|
352
|
+
b"error_code",
|
353
|
+
"network_type",
|
354
|
+
b"network_type",
|
355
|
+
"number_discarded_events",
|
356
|
+
b"number_discarded_events",
|
357
|
+
"time_connection_ended_ms",
|
358
|
+
b"time_connection_ended_ms",
|
359
|
+
"time_connection_established_ms",
|
360
|
+
b"time_connection_established_ms",
|
361
|
+
"time_connection_started_ms",
|
362
|
+
b"time_connection_started_ms",
|
363
|
+
"type",
|
364
|
+
b"type",
|
365
|
+
],
|
366
|
+
) -> builtins.bool: ...
|
367
|
+
def ClearField(
|
368
|
+
self,
|
369
|
+
field_name: typing_extensions.Literal[
|
370
|
+
"error_code",
|
371
|
+
b"error_code",
|
372
|
+
"network_type",
|
373
|
+
b"network_type",
|
374
|
+
"number_discarded_events",
|
375
|
+
b"number_discarded_events",
|
376
|
+
"time_connection_ended_ms",
|
377
|
+
b"time_connection_ended_ms",
|
378
|
+
"time_connection_established_ms",
|
379
|
+
b"time_connection_established_ms",
|
380
|
+
"time_connection_started_ms",
|
381
|
+
b"time_connection_started_ms",
|
382
|
+
"type",
|
383
|
+
b"type",
|
384
|
+
],
|
385
|
+
) -> None: ...
|
386
|
+
|
387
|
+
global___ClientEvent = ClientEvent
|
388
|
+
|
389
|
+
@typing_extensions.final
|
390
|
+
class LoginRequest(google.protobuf.message.Message):
|
391
|
+
"""*
|
392
|
+
TAG: 2
|
393
|
+
"""
|
394
|
+
|
395
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
396
|
+
|
397
|
+
class _AuthService:
|
398
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
399
|
+
V: typing_extensions.TypeAlias = ValueType
|
400
|
+
|
401
|
+
class _AuthServiceEnumTypeWrapper(
|
402
|
+
google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[
|
403
|
+
LoginRequest._AuthService.ValueType
|
404
|
+
],
|
405
|
+
builtins.type,
|
406
|
+
):
|
407
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
408
|
+
ANDROID_ID: LoginRequest._AuthService.ValueType # 2
|
409
|
+
|
410
|
+
class AuthService(_AuthService, metaclass=_AuthServiceEnumTypeWrapper): ...
|
411
|
+
ANDROID_ID: LoginRequest.AuthService.ValueType # 2
|
412
|
+
|
413
|
+
ID_FIELD_NUMBER: builtins.int
|
414
|
+
DOMAIN_FIELD_NUMBER: builtins.int
|
415
|
+
USER_FIELD_NUMBER: builtins.int
|
416
|
+
RESOURCE_FIELD_NUMBER: builtins.int
|
417
|
+
AUTH_TOKEN_FIELD_NUMBER: builtins.int
|
418
|
+
DEVICE_ID_FIELD_NUMBER: builtins.int
|
419
|
+
LAST_RMQ_ID_FIELD_NUMBER: builtins.int
|
420
|
+
SETTING_FIELD_NUMBER: builtins.int
|
421
|
+
RECEIVED_PERSISTENT_ID_FIELD_NUMBER: builtins.int
|
422
|
+
ADAPTIVE_HEARTBEAT_FIELD_NUMBER: builtins.int
|
423
|
+
HEARTBEAT_STAT_FIELD_NUMBER: builtins.int
|
424
|
+
USE_RMQ2_FIELD_NUMBER: builtins.int
|
425
|
+
ACCOUNT_ID_FIELD_NUMBER: builtins.int
|
426
|
+
AUTH_SERVICE_FIELD_NUMBER: builtins.int
|
427
|
+
NETWORK_TYPE_FIELD_NUMBER: builtins.int
|
428
|
+
STATUS_FIELD_NUMBER: builtins.int
|
429
|
+
CLIENT_EVENT_FIELD_NUMBER: builtins.int
|
430
|
+
id: builtins.str
|
431
|
+
"""Must be present ( proto required ), may be empty"""
|
432
|
+
domain: builtins.str
|
433
|
+
"""string.
|
434
|
+
mcs.android.com.
|
435
|
+
"""
|
436
|
+
user: builtins.str
|
437
|
+
"""Decimal android ID"""
|
438
|
+
resource: builtins.str
|
439
|
+
auth_token: builtins.str
|
440
|
+
"""Secret"""
|
441
|
+
device_id: builtins.str
|
442
|
+
"""Format is: android-HEX_DEVICE_ID
|
443
|
+
The user is the decimal value.
|
444
|
+
"""
|
445
|
+
last_rmq_id: builtins.int
|
446
|
+
"""RMQ1 - no longer used"""
|
447
|
+
@property
|
448
|
+
def setting(
|
449
|
+
self,
|
450
|
+
) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
|
451
|
+
global___Setting
|
452
|
+
]: ...
|
453
|
+
@property
|
454
|
+
def received_persistent_id(
|
455
|
+
self,
|
456
|
+
) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
457
|
+
"""optional int32 compress = 9;"""
|
458
|
+
adaptive_heartbeat: builtins.bool
|
459
|
+
"""Replaced by "rmq2v" setting
|
460
|
+
optional bool include_stream_ids = 11;
|
461
|
+
"""
|
462
|
+
@property
|
463
|
+
def heartbeat_stat(self) -> global___HeartbeatStat: ...
|
464
|
+
use_rmq2: builtins.bool
|
465
|
+
"""Must be true."""
|
466
|
+
account_id: builtins.int
|
467
|
+
auth_service: global___LoginRequest.AuthService.ValueType
|
468
|
+
"""ANDROID_ID = 2"""
|
469
|
+
network_type: builtins.int
|
470
|
+
status: builtins.int
|
471
|
+
@property
|
472
|
+
def client_event(
|
473
|
+
self,
|
474
|
+
) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
|
475
|
+
global___ClientEvent
|
476
|
+
]:
|
477
|
+
"""Events recorded on the client after the last successful connection."""
|
478
|
+
def __init__(
|
479
|
+
self,
|
480
|
+
*,
|
481
|
+
id: builtins.str | None = ...,
|
482
|
+
domain: builtins.str | None = ...,
|
483
|
+
user: builtins.str | None = ...,
|
484
|
+
resource: builtins.str | None = ...,
|
485
|
+
auth_token: builtins.str | None = ...,
|
486
|
+
device_id: builtins.str | None = ...,
|
487
|
+
last_rmq_id: builtins.int | None = ...,
|
488
|
+
setting: collections.abc.Iterable[global___Setting] | None = ...,
|
489
|
+
received_persistent_id: collections.abc.Iterable[builtins.str] | None = ...,
|
490
|
+
adaptive_heartbeat: builtins.bool | None = ...,
|
491
|
+
heartbeat_stat: global___HeartbeatStat | None = ...,
|
492
|
+
use_rmq2: builtins.bool | None = ...,
|
493
|
+
account_id: builtins.int | None = ...,
|
494
|
+
auth_service: global___LoginRequest.AuthService.ValueType | None = ...,
|
495
|
+
network_type: builtins.int | None = ...,
|
496
|
+
status: builtins.int | None = ...,
|
497
|
+
client_event: collections.abc.Iterable[global___ClientEvent] | None = ...,
|
498
|
+
) -> None: ...
|
499
|
+
def HasField(
|
500
|
+
self,
|
501
|
+
field_name: typing_extensions.Literal[
|
502
|
+
"account_id",
|
503
|
+
b"account_id",
|
504
|
+
"adaptive_heartbeat",
|
505
|
+
b"adaptive_heartbeat",
|
506
|
+
"auth_service",
|
507
|
+
b"auth_service",
|
508
|
+
"auth_token",
|
509
|
+
b"auth_token",
|
510
|
+
"device_id",
|
511
|
+
b"device_id",
|
512
|
+
"domain",
|
513
|
+
b"domain",
|
514
|
+
"heartbeat_stat",
|
515
|
+
b"heartbeat_stat",
|
516
|
+
"id",
|
517
|
+
b"id",
|
518
|
+
"last_rmq_id",
|
519
|
+
b"last_rmq_id",
|
520
|
+
"network_type",
|
521
|
+
b"network_type",
|
522
|
+
"resource",
|
523
|
+
b"resource",
|
524
|
+
"status",
|
525
|
+
b"status",
|
526
|
+
"use_rmq2",
|
527
|
+
b"use_rmq2",
|
528
|
+
"user",
|
529
|
+
b"user",
|
530
|
+
],
|
531
|
+
) -> builtins.bool: ...
|
532
|
+
def ClearField(
|
533
|
+
self,
|
534
|
+
field_name: typing_extensions.Literal[
|
535
|
+
"account_id",
|
536
|
+
b"account_id",
|
537
|
+
"adaptive_heartbeat",
|
538
|
+
b"adaptive_heartbeat",
|
539
|
+
"auth_service",
|
540
|
+
b"auth_service",
|
541
|
+
"auth_token",
|
542
|
+
b"auth_token",
|
543
|
+
"client_event",
|
544
|
+
b"client_event",
|
545
|
+
"device_id",
|
546
|
+
b"device_id",
|
547
|
+
"domain",
|
548
|
+
b"domain",
|
549
|
+
"heartbeat_stat",
|
550
|
+
b"heartbeat_stat",
|
551
|
+
"id",
|
552
|
+
b"id",
|
553
|
+
"last_rmq_id",
|
554
|
+
b"last_rmq_id",
|
555
|
+
"network_type",
|
556
|
+
b"network_type",
|
557
|
+
"received_persistent_id",
|
558
|
+
b"received_persistent_id",
|
559
|
+
"resource",
|
560
|
+
b"resource",
|
561
|
+
"setting",
|
562
|
+
b"setting",
|
563
|
+
"status",
|
564
|
+
b"status",
|
565
|
+
"use_rmq2",
|
566
|
+
b"use_rmq2",
|
567
|
+
"user",
|
568
|
+
b"user",
|
569
|
+
],
|
570
|
+
) -> None: ...
|
571
|
+
|
572
|
+
global___LoginRequest = LoginRequest
|
573
|
+
|
574
|
+
@typing_extensions.final
|
575
|
+
class LoginResponse(google.protobuf.message.Message):
|
576
|
+
"""*
|
577
|
+
TAG: 3
|
578
|
+
"""
|
579
|
+
|
580
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
581
|
+
|
582
|
+
ID_FIELD_NUMBER: builtins.int
|
583
|
+
JID_FIELD_NUMBER: builtins.int
|
584
|
+
ERROR_FIELD_NUMBER: builtins.int
|
585
|
+
SETTING_FIELD_NUMBER: builtins.int
|
586
|
+
STREAM_ID_FIELD_NUMBER: builtins.int
|
587
|
+
LAST_STREAM_ID_RECEIVED_FIELD_NUMBER: builtins.int
|
588
|
+
HEARTBEAT_CONFIG_FIELD_NUMBER: builtins.int
|
589
|
+
SERVER_TIMESTAMP_FIELD_NUMBER: builtins.int
|
590
|
+
id: builtins.str
|
591
|
+
jid: builtins.str
|
592
|
+
"""Not used."""
|
593
|
+
@property
|
594
|
+
def error(self) -> global___ErrorInfo:
|
595
|
+
"""Null if login was ok."""
|
596
|
+
@property
|
597
|
+
def setting(
|
598
|
+
self,
|
599
|
+
) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
|
600
|
+
global___Setting
|
601
|
+
]: ...
|
602
|
+
stream_id: builtins.int
|
603
|
+
last_stream_id_received: builtins.int
|
604
|
+
"""Should be "1" """
|
605
|
+
@property
|
606
|
+
def heartbeat_config(self) -> global___HeartbeatConfig: ...
|
607
|
+
server_timestamp: builtins.int
|
608
|
+
"""used by the client to synchronize with the server timestamp."""
|
609
|
+
def __init__(
|
610
|
+
self,
|
611
|
+
*,
|
612
|
+
id: builtins.str | None = ...,
|
613
|
+
jid: builtins.str | None = ...,
|
614
|
+
error: global___ErrorInfo | None = ...,
|
615
|
+
setting: collections.abc.Iterable[global___Setting] | None = ...,
|
616
|
+
stream_id: builtins.int | None = ...,
|
617
|
+
last_stream_id_received: builtins.int | None = ...,
|
618
|
+
heartbeat_config: global___HeartbeatConfig | None = ...,
|
619
|
+
server_timestamp: builtins.int | None = ...,
|
620
|
+
) -> None: ...
|
621
|
+
def HasField(
|
622
|
+
self,
|
623
|
+
field_name: typing_extensions.Literal[
|
624
|
+
"error",
|
625
|
+
b"error",
|
626
|
+
"heartbeat_config",
|
627
|
+
b"heartbeat_config",
|
628
|
+
"id",
|
629
|
+
b"id",
|
630
|
+
"jid",
|
631
|
+
b"jid",
|
632
|
+
"last_stream_id_received",
|
633
|
+
b"last_stream_id_received",
|
634
|
+
"server_timestamp",
|
635
|
+
b"server_timestamp",
|
636
|
+
"stream_id",
|
637
|
+
b"stream_id",
|
638
|
+
],
|
639
|
+
) -> builtins.bool: ...
|
640
|
+
def ClearField(
|
641
|
+
self,
|
642
|
+
field_name: typing_extensions.Literal[
|
643
|
+
"error",
|
644
|
+
b"error",
|
645
|
+
"heartbeat_config",
|
646
|
+
b"heartbeat_config",
|
647
|
+
"id",
|
648
|
+
b"id",
|
649
|
+
"jid",
|
650
|
+
b"jid",
|
651
|
+
"last_stream_id_received",
|
652
|
+
b"last_stream_id_received",
|
653
|
+
"server_timestamp",
|
654
|
+
b"server_timestamp",
|
655
|
+
"setting",
|
656
|
+
b"setting",
|
657
|
+
"stream_id",
|
658
|
+
b"stream_id",
|
659
|
+
],
|
660
|
+
) -> None: ...
|
661
|
+
|
662
|
+
global___LoginResponse = LoginResponse
|
663
|
+
|
664
|
+
@typing_extensions.final
|
665
|
+
class StreamErrorStanza(google.protobuf.message.Message):
|
666
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
667
|
+
|
668
|
+
TYPE_FIELD_NUMBER: builtins.int
|
669
|
+
TEXT_FIELD_NUMBER: builtins.int
|
670
|
+
type: builtins.str
|
671
|
+
text: builtins.str
|
672
|
+
def __init__(
|
673
|
+
self,
|
674
|
+
*,
|
675
|
+
type: builtins.str | None = ...,
|
676
|
+
text: builtins.str | None = ...,
|
677
|
+
) -> None: ...
|
678
|
+
def HasField(
|
679
|
+
self, field_name: typing_extensions.Literal["text", b"text", "type", b"type"]
|
680
|
+
) -> builtins.bool: ...
|
681
|
+
def ClearField(
|
682
|
+
self, field_name: typing_extensions.Literal["text", b"text", "type", b"type"]
|
683
|
+
) -> None: ...
|
684
|
+
|
685
|
+
global___StreamErrorStanza = StreamErrorStanza
|
686
|
+
|
687
|
+
@typing_extensions.final
|
688
|
+
class Close(google.protobuf.message.Message):
|
689
|
+
"""*
|
690
|
+
TAG: 4
|
691
|
+
"""
|
692
|
+
|
693
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
694
|
+
|
695
|
+
def __init__(
|
696
|
+
self,
|
697
|
+
) -> None: ...
|
698
|
+
|
699
|
+
global___Close = Close
|
700
|
+
|
701
|
+
@typing_extensions.final
|
702
|
+
class Extension(google.protobuf.message.Message):
|
703
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
704
|
+
|
705
|
+
ID_FIELD_NUMBER: builtins.int
|
706
|
+
DATA_FIELD_NUMBER: builtins.int
|
707
|
+
id: builtins.int
|
708
|
+
"""12: SelectiveAck
|
709
|
+
13: StreamAck
|
710
|
+
"""
|
711
|
+
data: builtins.bytes
|
712
|
+
def __init__(
|
713
|
+
self,
|
714
|
+
*,
|
715
|
+
id: builtins.int | None = ...,
|
716
|
+
data: builtins.bytes | None = ...,
|
717
|
+
) -> None: ...
|
718
|
+
def HasField(
|
719
|
+
self, field_name: typing_extensions.Literal["data", b"data", "id", b"id"]
|
720
|
+
) -> builtins.bool: ...
|
721
|
+
def ClearField(
|
722
|
+
self, field_name: typing_extensions.Literal["data", b"data", "id", b"id"]
|
723
|
+
) -> None: ...
|
724
|
+
|
725
|
+
global___Extension = Extension
|
726
|
+
|
727
|
+
@typing_extensions.final
|
728
|
+
class IqStanza(google.protobuf.message.Message):
|
729
|
+
"""*
|
730
|
+
TAG: 7
|
731
|
+
IqRequest must contain a single extension. IqResponse may contain 0 or 1
|
732
|
+
extensions.
|
733
|
+
"""
|
734
|
+
|
735
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
736
|
+
|
737
|
+
class _IqType:
|
738
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
739
|
+
V: typing_extensions.TypeAlias = ValueType
|
740
|
+
|
741
|
+
class _IqTypeEnumTypeWrapper(
|
742
|
+
google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[
|
743
|
+
IqStanza._IqType.ValueType
|
744
|
+
],
|
745
|
+
builtins.type,
|
746
|
+
):
|
747
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
748
|
+
GET: IqStanza._IqType.ValueType # 0
|
749
|
+
SET: IqStanza._IqType.ValueType # 1
|
750
|
+
RESULT: IqStanza._IqType.ValueType # 2
|
751
|
+
IQ_ERROR: IqStanza._IqType.ValueType # 3
|
752
|
+
|
753
|
+
class IqType(_IqType, metaclass=_IqTypeEnumTypeWrapper): ...
|
754
|
+
GET: IqStanza.IqType.ValueType # 0
|
755
|
+
SET: IqStanza.IqType.ValueType # 1
|
756
|
+
RESULT: IqStanza.IqType.ValueType # 2
|
757
|
+
IQ_ERROR: IqStanza.IqType.ValueType # 3
|
758
|
+
|
759
|
+
RMQ_ID_FIELD_NUMBER: builtins.int
|
760
|
+
TYPE_FIELD_NUMBER: builtins.int
|
761
|
+
ID_FIELD_NUMBER: builtins.int
|
762
|
+
FROM_FIELD_NUMBER: builtins.int
|
763
|
+
TO_FIELD_NUMBER: builtins.int
|
764
|
+
ERROR_FIELD_NUMBER: builtins.int
|
765
|
+
EXTENSION_FIELD_NUMBER: builtins.int
|
766
|
+
PERSISTENT_ID_FIELD_NUMBER: builtins.int
|
767
|
+
STREAM_ID_FIELD_NUMBER: builtins.int
|
768
|
+
LAST_STREAM_ID_RECEIVED_FIELD_NUMBER: builtins.int
|
769
|
+
ACCOUNT_ID_FIELD_NUMBER: builtins.int
|
770
|
+
STATUS_FIELD_NUMBER: builtins.int
|
771
|
+
rmq_id: builtins.int
|
772
|
+
type: global___IqStanza.IqType.ValueType
|
773
|
+
id: builtins.str
|
774
|
+
to: builtins.str
|
775
|
+
@property
|
776
|
+
def error(self) -> global___ErrorInfo: ...
|
777
|
+
@property
|
778
|
+
def extension(self) -> global___Extension:
|
779
|
+
"""Only field used in the 38+ protocol (besides common last_stream_id_received, status, rmq_id)"""
|
780
|
+
persistent_id: builtins.str
|
781
|
+
stream_id: builtins.int
|
782
|
+
last_stream_id_received: builtins.int
|
783
|
+
account_id: builtins.int
|
784
|
+
status: builtins.int
|
785
|
+
def __init__(
|
786
|
+
self,
|
787
|
+
*,
|
788
|
+
rmq_id: builtins.int | None = ...,
|
789
|
+
type: global___IqStanza.IqType.ValueType | None = ...,
|
790
|
+
id: builtins.str | None = ...,
|
791
|
+
to: builtins.str | None = ...,
|
792
|
+
error: global___ErrorInfo | None = ...,
|
793
|
+
extension: global___Extension | None = ...,
|
794
|
+
persistent_id: builtins.str | None = ...,
|
795
|
+
stream_id: builtins.int | None = ...,
|
796
|
+
last_stream_id_received: builtins.int | None = ...,
|
797
|
+
account_id: builtins.int | None = ...,
|
798
|
+
status: builtins.int | None = ...,
|
799
|
+
) -> None: ...
|
800
|
+
def HasField(
|
801
|
+
self,
|
802
|
+
field_name: typing_extensions.Literal[
|
803
|
+
"account_id",
|
804
|
+
b"account_id",
|
805
|
+
"error",
|
806
|
+
b"error",
|
807
|
+
"extension",
|
808
|
+
b"extension",
|
809
|
+
"from",
|
810
|
+
b"from",
|
811
|
+
"id",
|
812
|
+
b"id",
|
813
|
+
"last_stream_id_received",
|
814
|
+
b"last_stream_id_received",
|
815
|
+
"persistent_id",
|
816
|
+
b"persistent_id",
|
817
|
+
"rmq_id",
|
818
|
+
b"rmq_id",
|
819
|
+
"status",
|
820
|
+
b"status",
|
821
|
+
"stream_id",
|
822
|
+
b"stream_id",
|
823
|
+
"to",
|
824
|
+
b"to",
|
825
|
+
"type",
|
826
|
+
b"type",
|
827
|
+
],
|
828
|
+
) -> builtins.bool: ...
|
829
|
+
def ClearField(
|
830
|
+
self,
|
831
|
+
field_name: typing_extensions.Literal[
|
832
|
+
"account_id",
|
833
|
+
b"account_id",
|
834
|
+
"error",
|
835
|
+
b"error",
|
836
|
+
"extension",
|
837
|
+
b"extension",
|
838
|
+
"from",
|
839
|
+
b"from",
|
840
|
+
"id",
|
841
|
+
b"id",
|
842
|
+
"last_stream_id_received",
|
843
|
+
b"last_stream_id_received",
|
844
|
+
"persistent_id",
|
845
|
+
b"persistent_id",
|
846
|
+
"rmq_id",
|
847
|
+
b"rmq_id",
|
848
|
+
"status",
|
849
|
+
b"status",
|
850
|
+
"stream_id",
|
851
|
+
b"stream_id",
|
852
|
+
"to",
|
853
|
+
b"to",
|
854
|
+
"type",
|
855
|
+
b"type",
|
856
|
+
],
|
857
|
+
) -> None: ...
|
858
|
+
|
859
|
+
global___IqStanza = IqStanza
|
860
|
+
|
861
|
+
@typing_extensions.final
|
862
|
+
class AppData(google.protobuf.message.Message):
|
863
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
864
|
+
|
865
|
+
KEY_FIELD_NUMBER: builtins.int
|
866
|
+
VALUE_FIELD_NUMBER: builtins.int
|
867
|
+
key: builtins.str
|
868
|
+
value: builtins.str
|
869
|
+
def __init__(
|
870
|
+
self,
|
871
|
+
*,
|
872
|
+
key: builtins.str | None = ...,
|
873
|
+
value: builtins.str | None = ...,
|
874
|
+
) -> None: ...
|
875
|
+
def HasField(
|
876
|
+
self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]
|
877
|
+
) -> builtins.bool: ...
|
878
|
+
def ClearField(
|
879
|
+
self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]
|
880
|
+
) -> None: ...
|
881
|
+
|
882
|
+
global___AppData = AppData
|
883
|
+
|
884
|
+
@typing_extensions.final
|
885
|
+
class DataMessageStanza(google.protobuf.message.Message):
|
886
|
+
"""*
|
887
|
+
TAG: 8
|
888
|
+
Not used.
|
889
|
+
optional int64 rmq_id = 1;
|
890
|
+
"""
|
891
|
+
|
892
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
893
|
+
|
894
|
+
ID_FIELD_NUMBER: builtins.int
|
895
|
+
FROM_FIELD_NUMBER: builtins.int
|
896
|
+
TO_FIELD_NUMBER: builtins.int
|
897
|
+
CATEGORY_FIELD_NUMBER: builtins.int
|
898
|
+
TOKEN_FIELD_NUMBER: builtins.int
|
899
|
+
APP_DATA_FIELD_NUMBER: builtins.int
|
900
|
+
FROM_TRUSTED_SERVER_FIELD_NUMBER: builtins.int
|
901
|
+
PERSISTENT_ID_FIELD_NUMBER: builtins.int
|
902
|
+
STREAM_ID_FIELD_NUMBER: builtins.int
|
903
|
+
LAST_STREAM_ID_RECEIVED_FIELD_NUMBER: builtins.int
|
904
|
+
REG_ID_FIELD_NUMBER: builtins.int
|
905
|
+
DEVICE_USER_ID_FIELD_NUMBER: builtins.int
|
906
|
+
TTL_FIELD_NUMBER: builtins.int
|
907
|
+
SENT_FIELD_NUMBER: builtins.int
|
908
|
+
QUEUED_FIELD_NUMBER: builtins.int
|
909
|
+
STATUS_FIELD_NUMBER: builtins.int
|
910
|
+
RAW_DATA_FIELD_NUMBER: builtins.int
|
911
|
+
IMMEDIATE_ACK_FIELD_NUMBER: builtins.int
|
912
|
+
id: builtins.str
|
913
|
+
"""This is the message ID, set by client, DMP.9 (message_id)"""
|
914
|
+
to: builtins.str
|
915
|
+
"""Part of DMRequest - also the key in DataMessageProto."""
|
916
|
+
category: builtins.str
|
917
|
+
"""Package name. DMP.2"""
|
918
|
+
token: builtins.str
|
919
|
+
"""The collapsed key, DMP.3"""
|
920
|
+
@property
|
921
|
+
def app_data(
|
922
|
+
self,
|
923
|
+
) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
|
924
|
+
global___AppData
|
925
|
+
]:
|
926
|
+
"""User data + GOOGLE. prefixed special entries, DMP.4"""
|
927
|
+
from_trusted_server: builtins.bool
|
928
|
+
"""Not used."""
|
929
|
+
persistent_id: builtins.str
|
930
|
+
"""Part of the ACK protocol, returned in DataMessageResponse on server side.
|
931
|
+
It's part of the key of DMP.
|
932
|
+
"""
|
933
|
+
stream_id: builtins.int
|
934
|
+
"""In-stream ack. Increments on each message sent - a bit redundant
|
935
|
+
Not used in DMP/DMR.
|
936
|
+
"""
|
937
|
+
last_stream_id_received: builtins.int
|
938
|
+
reg_id: builtins.str
|
939
|
+
"""Not used.
|
940
|
+
optional string permission = 12;
|
941
|
+
|
942
|
+
Sent by the device shortly after registration.
|
943
|
+
"""
|
944
|
+
device_user_id: builtins.int
|
945
|
+
"""Not used.
|
946
|
+
optional string pkg_signature = 14;
|
947
|
+
Not used.
|
948
|
+
optional string client_id = 15;
|
949
|
+
|
950
|
+
serial number of the target user, DMP.8
|
951
|
+
It is the 'serial number' according to user manager.
|
952
|
+
"""
|
953
|
+
ttl: builtins.int
|
954
|
+
"""Time to live, in seconds."""
|
955
|
+
sent: builtins.int
|
956
|
+
"""Timestamp ( according to client ) when message was sent by app, in seconds"""
|
957
|
+
queued: builtins.int
|
958
|
+
"""How long has the message been queued before the flush, in seconds.
|
959
|
+
This is needed to account for the time difference between server and
|
960
|
+
client: server should adjust 'sent' based on its 'receive' time.
|
961
|
+
"""
|
962
|
+
status: builtins.int
|
963
|
+
raw_data: builtins.bytes
|
964
|
+
"""Optional field containing the binary payload of the message."""
|
965
|
+
immediate_ack: builtins.bool
|
966
|
+
"""Not used.
|
967
|
+
How long the message was delayed before it was sent, in seconds.
|
968
|
+
optional int32 actual_delay = 23;
|
969
|
+
|
970
|
+
If set the server requests immediate ack. Used for important messages and
|
971
|
+
for testing.
|
972
|
+
"""
|
973
|
+
def __init__(
|
974
|
+
self,
|
975
|
+
*,
|
976
|
+
id: builtins.str | None = ...,
|
977
|
+
to: builtins.str | None = ...,
|
978
|
+
category: builtins.str | None = ...,
|
979
|
+
token: builtins.str | None = ...,
|
980
|
+
app_data: collections.abc.Iterable[global___AppData] | None = ...,
|
981
|
+
from_trusted_server: builtins.bool | None = ...,
|
982
|
+
persistent_id: builtins.str | None = ...,
|
983
|
+
stream_id: builtins.int | None = ...,
|
984
|
+
last_stream_id_received: builtins.int | None = ...,
|
985
|
+
reg_id: builtins.str | None = ...,
|
986
|
+
device_user_id: builtins.int | None = ...,
|
987
|
+
ttl: builtins.int | None = ...,
|
988
|
+
sent: builtins.int | None = ...,
|
989
|
+
queued: builtins.int | None = ...,
|
990
|
+
status: builtins.int | None = ...,
|
991
|
+
raw_data: builtins.bytes | None = ...,
|
992
|
+
immediate_ack: builtins.bool | None = ...,
|
993
|
+
) -> None: ...
|
994
|
+
def HasField(
|
995
|
+
self,
|
996
|
+
field_name: typing_extensions.Literal[
|
997
|
+
"category",
|
998
|
+
b"category",
|
999
|
+
"device_user_id",
|
1000
|
+
b"device_user_id",
|
1001
|
+
"from",
|
1002
|
+
b"from",
|
1003
|
+
"from_trusted_server",
|
1004
|
+
b"from_trusted_server",
|
1005
|
+
"id",
|
1006
|
+
b"id",
|
1007
|
+
"immediate_ack",
|
1008
|
+
b"immediate_ack",
|
1009
|
+
"last_stream_id_received",
|
1010
|
+
b"last_stream_id_received",
|
1011
|
+
"persistent_id",
|
1012
|
+
b"persistent_id",
|
1013
|
+
"queued",
|
1014
|
+
b"queued",
|
1015
|
+
"raw_data",
|
1016
|
+
b"raw_data",
|
1017
|
+
"reg_id",
|
1018
|
+
b"reg_id",
|
1019
|
+
"sent",
|
1020
|
+
b"sent",
|
1021
|
+
"status",
|
1022
|
+
b"status",
|
1023
|
+
"stream_id",
|
1024
|
+
b"stream_id",
|
1025
|
+
"to",
|
1026
|
+
b"to",
|
1027
|
+
"token",
|
1028
|
+
b"token",
|
1029
|
+
"ttl",
|
1030
|
+
b"ttl",
|
1031
|
+
],
|
1032
|
+
) -> builtins.bool: ...
|
1033
|
+
def ClearField(
|
1034
|
+
self,
|
1035
|
+
field_name: typing_extensions.Literal[
|
1036
|
+
"app_data",
|
1037
|
+
b"app_data",
|
1038
|
+
"category",
|
1039
|
+
b"category",
|
1040
|
+
"device_user_id",
|
1041
|
+
b"device_user_id",
|
1042
|
+
"from",
|
1043
|
+
b"from",
|
1044
|
+
"from_trusted_server",
|
1045
|
+
b"from_trusted_server",
|
1046
|
+
"id",
|
1047
|
+
b"id",
|
1048
|
+
"immediate_ack",
|
1049
|
+
b"immediate_ack",
|
1050
|
+
"last_stream_id_received",
|
1051
|
+
b"last_stream_id_received",
|
1052
|
+
"persistent_id",
|
1053
|
+
b"persistent_id",
|
1054
|
+
"queued",
|
1055
|
+
b"queued",
|
1056
|
+
"raw_data",
|
1057
|
+
b"raw_data",
|
1058
|
+
"reg_id",
|
1059
|
+
b"reg_id",
|
1060
|
+
"sent",
|
1061
|
+
b"sent",
|
1062
|
+
"status",
|
1063
|
+
b"status",
|
1064
|
+
"stream_id",
|
1065
|
+
b"stream_id",
|
1066
|
+
"to",
|
1067
|
+
b"to",
|
1068
|
+
"token",
|
1069
|
+
b"token",
|
1070
|
+
"ttl",
|
1071
|
+
b"ttl",
|
1072
|
+
],
|
1073
|
+
) -> None: ...
|
1074
|
+
|
1075
|
+
global___DataMessageStanza = DataMessageStanza
|
1076
|
+
|
1077
|
+
@typing_extensions.final
|
1078
|
+
class StreamAck(google.protobuf.message.Message):
|
1079
|
+
"""*
|
1080
|
+
Included in IQ with ID 13, sent from client or server after 10 unconfirmed
|
1081
|
+
messages.
|
1082
|
+
No last_streamid_received required. This is included within an IqStanza,
|
1083
|
+
which includes the last_stream_id_received.
|
1084
|
+
"""
|
1085
|
+
|
1086
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
1087
|
+
|
1088
|
+
def __init__(
|
1089
|
+
self,
|
1090
|
+
) -> None: ...
|
1091
|
+
|
1092
|
+
global___StreamAck = StreamAck
|
1093
|
+
|
1094
|
+
@typing_extensions.final
|
1095
|
+
class SelectiveAck(google.protobuf.message.Message):
|
1096
|
+
"""*
|
1097
|
+
Included in IQ sent after LoginResponse from server with ID 12.
|
1098
|
+
"""
|
1099
|
+
|
1100
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
1101
|
+
|
1102
|
+
ID_FIELD_NUMBER: builtins.int
|
1103
|
+
@property
|
1104
|
+
def id(
|
1105
|
+
self,
|
1106
|
+
) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[
|
1107
|
+
builtins.str
|
1108
|
+
]: ...
|
1109
|
+
def __init__(
|
1110
|
+
self,
|
1111
|
+
*,
|
1112
|
+
id: collections.abc.Iterable[builtins.str] | None = ...,
|
1113
|
+
) -> None: ...
|
1114
|
+
def ClearField(
|
1115
|
+
self, field_name: typing_extensions.Literal["id", b"id"]
|
1116
|
+
) -> None: ...
|
1117
|
+
|
1118
|
+
global___SelectiveAck = SelectiveAck
|