File: mcs_pb2.pyi

package info (click to toggle)
python-firebase-messaging 0.4.4-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 652 kB
  • sloc: python: 1,454; makefile: 14
file content (1118 lines) | stat: -rw-r--r-- 33,959 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
"""
@generated by mypy-protobuf.  Do not edit manually!
isort:skip_file
Copyright 2013 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.

MCS protocol for communication between Chrome client and Mobile Connection
Server .
"""

import builtins
import collections.abc
import google.protobuf.descriptor
import google.protobuf.internal.containers
import google.protobuf.internal.enum_type_wrapper
import google.protobuf.message
import sys
import typing

if sys.version_info >= (3, 10):
    import typing as typing_extensions
else:
    import typing_extensions

DESCRIPTOR: google.protobuf.descriptor.FileDescriptor

@typing_extensions.final
class HeartbeatPing(google.protobuf.message.Message):
    """
    Common fields/comments:

    stream_id: no longer sent by server, each side keeps a counter
    last_stream_id_received: sent only if a packet was received since last time
    a last_stream was sent
    status: new bitmask including the 'idle' as bit 0.

    *
    TAG: 0
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    STREAM_ID_FIELD_NUMBER: builtins.int
    LAST_STREAM_ID_RECEIVED_FIELD_NUMBER: builtins.int
    STATUS_FIELD_NUMBER: builtins.int
    stream_id: builtins.int
    last_stream_id_received: builtins.int
    status: builtins.int
    def __init__(
        self,
        *,
        stream_id: builtins.int | None = ...,
        last_stream_id_received: builtins.int | None = ...,
        status: builtins.int | None = ...,
    ) -> None: ...
    def HasField(
        self,
        field_name: typing_extensions.Literal[
            "last_stream_id_received",
            b"last_stream_id_received",
            "status",
            b"status",
            "stream_id",
            b"stream_id",
        ],
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "last_stream_id_received",
            b"last_stream_id_received",
            "status",
            b"status",
            "stream_id",
            b"stream_id",
        ],
    ) -> None: ...

global___HeartbeatPing = HeartbeatPing

@typing_extensions.final
class HeartbeatAck(google.protobuf.message.Message):
    """*
    TAG: 1
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    STREAM_ID_FIELD_NUMBER: builtins.int
    LAST_STREAM_ID_RECEIVED_FIELD_NUMBER: builtins.int
    STATUS_FIELD_NUMBER: builtins.int
    stream_id: builtins.int
    last_stream_id_received: builtins.int
    status: builtins.int
    def __init__(
        self,
        *,
        stream_id: builtins.int | None = ...,
        last_stream_id_received: builtins.int | None = ...,
        status: builtins.int | None = ...,
    ) -> None: ...
    def HasField(
        self,
        field_name: typing_extensions.Literal[
            "last_stream_id_received",
            b"last_stream_id_received",
            "status",
            b"status",
            "stream_id",
            b"stream_id",
        ],
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "last_stream_id_received",
            b"last_stream_id_received",
            "status",
            b"status",
            "stream_id",
            b"stream_id",
        ],
    ) -> None: ...

global___HeartbeatAck = HeartbeatAck

@typing_extensions.final
class ErrorInfo(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    CODE_FIELD_NUMBER: builtins.int
    MESSAGE_FIELD_NUMBER: builtins.int
    TYPE_FIELD_NUMBER: builtins.int
    EXTENSION_FIELD_NUMBER: builtins.int
    code: builtins.int
    message: builtins.str
    type: builtins.str
    @property
    def extension(self) -> global___Extension: ...
    def __init__(
        self,
        *,
        code: builtins.int | None = ...,
        message: builtins.str | None = ...,
        type: builtins.str | None = ...,
        extension: global___Extension | None = ...,
    ) -> None: ...
    def HasField(
        self,
        field_name: typing_extensions.Literal[
            "code",
            b"code",
            "extension",
            b"extension",
            "message",
            b"message",
            "type",
            b"type",
        ],
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "code",
            b"code",
            "extension",
            b"extension",
            "message",
            b"message",
            "type",
            b"type",
        ],
    ) -> None: ...

global___ErrorInfo = ErrorInfo

@typing_extensions.final
class Setting(google.protobuf.message.Message):
    """MobileSettings class.
    "u:f", "u:b", "u:s" - multi user devices reporting foreground, background
    and stopped users.
    hbping: heatbeat ping interval
    rmq2v: include explicit stream IDs
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    NAME_FIELD_NUMBER: builtins.int
    VALUE_FIELD_NUMBER: builtins.int
    name: builtins.str
    value: builtins.str
    def __init__(
        self,
        *,
        name: builtins.str | None = ...,
        value: builtins.str | None = ...,
    ) -> None: ...
    def HasField(
        self, field_name: typing_extensions.Literal["name", b"name", "value", b"value"]
    ) -> builtins.bool: ...
    def ClearField(
        self, field_name: typing_extensions.Literal["name", b"name", "value", b"value"]
    ) -> None: ...

global___Setting = Setting

@typing_extensions.final
class HeartbeatStat(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    IP_FIELD_NUMBER: builtins.int
    TIMEOUT_FIELD_NUMBER: builtins.int
    INTERVAL_MS_FIELD_NUMBER: builtins.int
    ip: builtins.str
    timeout: builtins.bool
    interval_ms: builtins.int
    def __init__(
        self,
        *,
        ip: builtins.str | None = ...,
        timeout: builtins.bool | None = ...,
        interval_ms: builtins.int | None = ...,
    ) -> None: ...
    def HasField(
        self,
        field_name: typing_extensions.Literal[
            "interval_ms", b"interval_ms", "ip", b"ip", "timeout", b"timeout"
        ],
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "interval_ms", b"interval_ms", "ip", b"ip", "timeout", b"timeout"
        ],
    ) -> None: ...

global___HeartbeatStat = HeartbeatStat

@typing_extensions.final
class HeartbeatConfig(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    UPLOAD_STAT_FIELD_NUMBER: builtins.int
    IP_FIELD_NUMBER: builtins.int
    INTERVAL_MS_FIELD_NUMBER: builtins.int
    upload_stat: builtins.bool
    ip: builtins.str
    interval_ms: builtins.int
    def __init__(
        self,
        *,
        upload_stat: builtins.bool | None = ...,
        ip: builtins.str | None = ...,
        interval_ms: builtins.int | None = ...,
    ) -> None: ...
    def HasField(
        self,
        field_name: typing_extensions.Literal[
            "interval_ms", b"interval_ms", "ip", b"ip", "upload_stat", b"upload_stat"
        ],
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "interval_ms", b"interval_ms", "ip", b"ip", "upload_stat", b"upload_stat"
        ],
    ) -> None: ...

global___HeartbeatConfig = HeartbeatConfig

@typing_extensions.final
class ClientEvent(google.protobuf.message.Message):
    """ClientEvents are used to inform the server of failed and successful
    connections.
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    class _Type:
        ValueType = typing.NewType("ValueType", builtins.int)
        V: typing_extensions.TypeAlias = ValueType

    class _TypeEnumTypeWrapper(
        google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[
            ClientEvent._Type.ValueType
        ],
        builtins.type,
    ):
        DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
        UNKNOWN: ClientEvent._Type.ValueType  # 0
        DISCARDED_EVENTS: ClientEvent._Type.ValueType  # 1
        """Count of discarded events if the buffer filled up and was trimmed."""
        FAILED_CONNECTION: ClientEvent._Type.ValueType  # 2
        """Failed connection event: the connection failed to be established or we
        had a login error.
        """
        SUCCESSFUL_CONNECTION: ClientEvent._Type.ValueType  # 3
        """Successful connection event: information about the last successful
        connection, including the time at which it was established.
        """

    class Type(_Type, metaclass=_TypeEnumTypeWrapper): ...
    UNKNOWN: ClientEvent.Type.ValueType  # 0
    DISCARDED_EVENTS: ClientEvent.Type.ValueType  # 1
    """Count of discarded events if the buffer filled up and was trimmed."""
    FAILED_CONNECTION: ClientEvent.Type.ValueType  # 2
    """Failed connection event: the connection failed to be established or we
    had a login error.
    """
    SUCCESSFUL_CONNECTION: ClientEvent.Type.ValueType  # 3
    """Successful connection event: information about the last successful
    connection, including the time at which it was established.
    """

    TYPE_FIELD_NUMBER: builtins.int
    NUMBER_DISCARDED_EVENTS_FIELD_NUMBER: builtins.int
    NETWORK_TYPE_FIELD_NUMBER: builtins.int
    TIME_CONNECTION_STARTED_MS_FIELD_NUMBER: builtins.int
    TIME_CONNECTION_ENDED_MS_FIELD_NUMBER: builtins.int
    ERROR_CODE_FIELD_NUMBER: builtins.int
    TIME_CONNECTION_ESTABLISHED_MS_FIELD_NUMBER: builtins.int
    type: global___ClientEvent.Type.ValueType
    """Common fields [1-99]"""
    number_discarded_events: builtins.int
    """Fields for DISCARDED_EVENTS messages [100-199]"""
    network_type: builtins.int
    """Fields for FAILED_CONNECTION and SUCCESSFUL_CONNECTION messages [200-299]
    Network type is a value in net::NetworkChangeNotifier::ConnectionType.
    """
    time_connection_started_ms: builtins.int
    time_connection_ended_ms: builtins.int
    error_code: builtins.int
    """Error code should be a net::Error value."""
    time_connection_established_ms: builtins.int
    """Fields for SUCCESSFUL_CONNECTION messages [300-399]"""
    def __init__(
        self,
        *,
        type: global___ClientEvent.Type.ValueType | None = ...,
        number_discarded_events: builtins.int | None = ...,
        network_type: builtins.int | None = ...,
        time_connection_started_ms: builtins.int | None = ...,
        time_connection_ended_ms: builtins.int | None = ...,
        error_code: builtins.int | None = ...,
        time_connection_established_ms: builtins.int | None = ...,
    ) -> None: ...
    def HasField(
        self,
        field_name: typing_extensions.Literal[
            "error_code",
            b"error_code",
            "network_type",
            b"network_type",
            "number_discarded_events",
            b"number_discarded_events",
            "time_connection_ended_ms",
            b"time_connection_ended_ms",
            "time_connection_established_ms",
            b"time_connection_established_ms",
            "time_connection_started_ms",
            b"time_connection_started_ms",
            "type",
            b"type",
        ],
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "error_code",
            b"error_code",
            "network_type",
            b"network_type",
            "number_discarded_events",
            b"number_discarded_events",
            "time_connection_ended_ms",
            b"time_connection_ended_ms",
            "time_connection_established_ms",
            b"time_connection_established_ms",
            "time_connection_started_ms",
            b"time_connection_started_ms",
            "type",
            b"type",
        ],
    ) -> None: ...

global___ClientEvent = ClientEvent

@typing_extensions.final
class LoginRequest(google.protobuf.message.Message):
    """*
    TAG: 2
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    class _AuthService:
        ValueType = typing.NewType("ValueType", builtins.int)
        V: typing_extensions.TypeAlias = ValueType

    class _AuthServiceEnumTypeWrapper(
        google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[
            LoginRequest._AuthService.ValueType
        ],
        builtins.type,
    ):
        DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
        ANDROID_ID: LoginRequest._AuthService.ValueType  # 2

    class AuthService(_AuthService, metaclass=_AuthServiceEnumTypeWrapper): ...
    ANDROID_ID: LoginRequest.AuthService.ValueType  # 2

    ID_FIELD_NUMBER: builtins.int
    DOMAIN_FIELD_NUMBER: builtins.int
    USER_FIELD_NUMBER: builtins.int
    RESOURCE_FIELD_NUMBER: builtins.int
    AUTH_TOKEN_FIELD_NUMBER: builtins.int
    DEVICE_ID_FIELD_NUMBER: builtins.int
    LAST_RMQ_ID_FIELD_NUMBER: builtins.int
    SETTING_FIELD_NUMBER: builtins.int
    RECEIVED_PERSISTENT_ID_FIELD_NUMBER: builtins.int
    ADAPTIVE_HEARTBEAT_FIELD_NUMBER: builtins.int
    HEARTBEAT_STAT_FIELD_NUMBER: builtins.int
    USE_RMQ2_FIELD_NUMBER: builtins.int
    ACCOUNT_ID_FIELD_NUMBER: builtins.int
    AUTH_SERVICE_FIELD_NUMBER: builtins.int
    NETWORK_TYPE_FIELD_NUMBER: builtins.int
    STATUS_FIELD_NUMBER: builtins.int
    CLIENT_EVENT_FIELD_NUMBER: builtins.int
    id: builtins.str
    """Must be present ( proto required ), may be empty"""
    domain: builtins.str
    """string.
    mcs.android.com.
    """
    user: builtins.str
    """Decimal android ID"""
    resource: builtins.str
    auth_token: builtins.str
    """Secret"""
    device_id: builtins.str
    """Format is: android-HEX_DEVICE_ID
    The user is the decimal value.
    """
    last_rmq_id: builtins.int
    """RMQ1 - no longer used"""
    @property
    def setting(
        self,
    ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
        global___Setting
    ]: ...
    @property
    def received_persistent_id(
        self,
    ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
        """optional int32 compress = 9;"""
    adaptive_heartbeat: builtins.bool
    """Replaced by "rmq2v" setting
    optional bool include_stream_ids = 11;
    """
    @property
    def heartbeat_stat(self) -> global___HeartbeatStat: ...
    use_rmq2: builtins.bool
    """Must be true."""
    account_id: builtins.int
    auth_service: global___LoginRequest.AuthService.ValueType
    """ANDROID_ID = 2"""
    network_type: builtins.int
    status: builtins.int
    @property
    def client_event(
        self,
    ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
        global___ClientEvent
    ]:
        """Events recorded on the client after the last successful connection."""
    def __init__(
        self,
        *,
        id: builtins.str | None = ...,
        domain: builtins.str | None = ...,
        user: builtins.str | None = ...,
        resource: builtins.str | None = ...,
        auth_token: builtins.str | None = ...,
        device_id: builtins.str | None = ...,
        last_rmq_id: builtins.int | None = ...,
        setting: collections.abc.Iterable[global___Setting] | None = ...,
        received_persistent_id: collections.abc.Iterable[builtins.str] | None = ...,
        adaptive_heartbeat: builtins.bool | None = ...,
        heartbeat_stat: global___HeartbeatStat | None = ...,
        use_rmq2: builtins.bool | None = ...,
        account_id: builtins.int | None = ...,
        auth_service: global___LoginRequest.AuthService.ValueType | None = ...,
        network_type: builtins.int | None = ...,
        status: builtins.int | None = ...,
        client_event: collections.abc.Iterable[global___ClientEvent] | None = ...,
    ) -> None: ...
    def HasField(
        self,
        field_name: typing_extensions.Literal[
            "account_id",
            b"account_id",
            "adaptive_heartbeat",
            b"adaptive_heartbeat",
            "auth_service",
            b"auth_service",
            "auth_token",
            b"auth_token",
            "device_id",
            b"device_id",
            "domain",
            b"domain",
            "heartbeat_stat",
            b"heartbeat_stat",
            "id",
            b"id",
            "last_rmq_id",
            b"last_rmq_id",
            "network_type",
            b"network_type",
            "resource",
            b"resource",
            "status",
            b"status",
            "use_rmq2",
            b"use_rmq2",
            "user",
            b"user",
        ],
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "account_id",
            b"account_id",
            "adaptive_heartbeat",
            b"adaptive_heartbeat",
            "auth_service",
            b"auth_service",
            "auth_token",
            b"auth_token",
            "client_event",
            b"client_event",
            "device_id",
            b"device_id",
            "domain",
            b"domain",
            "heartbeat_stat",
            b"heartbeat_stat",
            "id",
            b"id",
            "last_rmq_id",
            b"last_rmq_id",
            "network_type",
            b"network_type",
            "received_persistent_id",
            b"received_persistent_id",
            "resource",
            b"resource",
            "setting",
            b"setting",
            "status",
            b"status",
            "use_rmq2",
            b"use_rmq2",
            "user",
            b"user",
        ],
    ) -> None: ...

global___LoginRequest = LoginRequest

@typing_extensions.final
class LoginResponse(google.protobuf.message.Message):
    """*
    TAG: 3
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    ID_FIELD_NUMBER: builtins.int
    JID_FIELD_NUMBER: builtins.int
    ERROR_FIELD_NUMBER: builtins.int
    SETTING_FIELD_NUMBER: builtins.int
    STREAM_ID_FIELD_NUMBER: builtins.int
    LAST_STREAM_ID_RECEIVED_FIELD_NUMBER: builtins.int
    HEARTBEAT_CONFIG_FIELD_NUMBER: builtins.int
    SERVER_TIMESTAMP_FIELD_NUMBER: builtins.int
    id: builtins.str
    jid: builtins.str
    """Not used."""
    @property
    def error(self) -> global___ErrorInfo:
        """Null if login was ok."""
    @property
    def setting(
        self,
    ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
        global___Setting
    ]: ...
    stream_id: builtins.int
    last_stream_id_received: builtins.int
    """Should be "1" """
    @property
    def heartbeat_config(self) -> global___HeartbeatConfig: ...
    server_timestamp: builtins.int
    """used by the client to synchronize with the server timestamp."""
    def __init__(
        self,
        *,
        id: builtins.str | None = ...,
        jid: builtins.str | None = ...,
        error: global___ErrorInfo | None = ...,
        setting: collections.abc.Iterable[global___Setting] | None = ...,
        stream_id: builtins.int | None = ...,
        last_stream_id_received: builtins.int | None = ...,
        heartbeat_config: global___HeartbeatConfig | None = ...,
        server_timestamp: builtins.int | None = ...,
    ) -> None: ...
    def HasField(
        self,
        field_name: typing_extensions.Literal[
            "error",
            b"error",
            "heartbeat_config",
            b"heartbeat_config",
            "id",
            b"id",
            "jid",
            b"jid",
            "last_stream_id_received",
            b"last_stream_id_received",
            "server_timestamp",
            b"server_timestamp",
            "stream_id",
            b"stream_id",
        ],
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "error",
            b"error",
            "heartbeat_config",
            b"heartbeat_config",
            "id",
            b"id",
            "jid",
            b"jid",
            "last_stream_id_received",
            b"last_stream_id_received",
            "server_timestamp",
            b"server_timestamp",
            "setting",
            b"setting",
            "stream_id",
            b"stream_id",
        ],
    ) -> None: ...

global___LoginResponse = LoginResponse

@typing_extensions.final
class StreamErrorStanza(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    TYPE_FIELD_NUMBER: builtins.int
    TEXT_FIELD_NUMBER: builtins.int
    type: builtins.str
    text: builtins.str
    def __init__(
        self,
        *,
        type: builtins.str | None = ...,
        text: builtins.str | None = ...,
    ) -> None: ...
    def HasField(
        self, field_name: typing_extensions.Literal["text", b"text", "type", b"type"]
    ) -> builtins.bool: ...
    def ClearField(
        self, field_name: typing_extensions.Literal["text", b"text", "type", b"type"]
    ) -> None: ...

global___StreamErrorStanza = StreamErrorStanza

@typing_extensions.final
class Close(google.protobuf.message.Message):
    """*
    TAG: 4
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    def __init__(
        self,
    ) -> None: ...

global___Close = Close

@typing_extensions.final
class Extension(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    ID_FIELD_NUMBER: builtins.int
    DATA_FIELD_NUMBER: builtins.int
    id: builtins.int
    """12: SelectiveAck
    13: StreamAck
    """
    data: builtins.bytes
    def __init__(
        self,
        *,
        id: builtins.int | None = ...,
        data: builtins.bytes | None = ...,
    ) -> None: ...
    def HasField(
        self, field_name: typing_extensions.Literal["data", b"data", "id", b"id"]
    ) -> builtins.bool: ...
    def ClearField(
        self, field_name: typing_extensions.Literal["data", b"data", "id", b"id"]
    ) -> None: ...

global___Extension = Extension

@typing_extensions.final
class IqStanza(google.protobuf.message.Message):
    """*
    TAG: 7
    IqRequest must contain a single extension.  IqResponse may contain 0 or 1
    extensions.
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    class _IqType:
        ValueType = typing.NewType("ValueType", builtins.int)
        V: typing_extensions.TypeAlias = ValueType

    class _IqTypeEnumTypeWrapper(
        google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[
            IqStanza._IqType.ValueType
        ],
        builtins.type,
    ):
        DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
        GET: IqStanza._IqType.ValueType  # 0
        SET: IqStanza._IqType.ValueType  # 1
        RESULT: IqStanza._IqType.ValueType  # 2
        IQ_ERROR: IqStanza._IqType.ValueType  # 3

    class IqType(_IqType, metaclass=_IqTypeEnumTypeWrapper): ...
    GET: IqStanza.IqType.ValueType  # 0
    SET: IqStanza.IqType.ValueType  # 1
    RESULT: IqStanza.IqType.ValueType  # 2
    IQ_ERROR: IqStanza.IqType.ValueType  # 3

    RMQ_ID_FIELD_NUMBER: builtins.int
    TYPE_FIELD_NUMBER: builtins.int
    ID_FIELD_NUMBER: builtins.int
    FROM_FIELD_NUMBER: builtins.int
    TO_FIELD_NUMBER: builtins.int
    ERROR_FIELD_NUMBER: builtins.int
    EXTENSION_FIELD_NUMBER: builtins.int
    PERSISTENT_ID_FIELD_NUMBER: builtins.int
    STREAM_ID_FIELD_NUMBER: builtins.int
    LAST_STREAM_ID_RECEIVED_FIELD_NUMBER: builtins.int
    ACCOUNT_ID_FIELD_NUMBER: builtins.int
    STATUS_FIELD_NUMBER: builtins.int
    rmq_id: builtins.int
    type: global___IqStanza.IqType.ValueType
    id: builtins.str
    to: builtins.str
    @property
    def error(self) -> global___ErrorInfo: ...
    @property
    def extension(self) -> global___Extension:
        """Only field used in the 38+ protocol (besides common last_stream_id_received, status, rmq_id)"""
    persistent_id: builtins.str
    stream_id: builtins.int
    last_stream_id_received: builtins.int
    account_id: builtins.int
    status: builtins.int
    def __init__(
        self,
        *,
        rmq_id: builtins.int | None = ...,
        type: global___IqStanza.IqType.ValueType | None = ...,
        id: builtins.str | None = ...,
        to: builtins.str | None = ...,
        error: global___ErrorInfo | None = ...,
        extension: global___Extension | None = ...,
        persistent_id: builtins.str | None = ...,
        stream_id: builtins.int | None = ...,
        last_stream_id_received: builtins.int | None = ...,
        account_id: builtins.int | None = ...,
        status: builtins.int | None = ...,
    ) -> None: ...
    def HasField(
        self,
        field_name: typing_extensions.Literal[
            "account_id",
            b"account_id",
            "error",
            b"error",
            "extension",
            b"extension",
            "from",
            b"from",
            "id",
            b"id",
            "last_stream_id_received",
            b"last_stream_id_received",
            "persistent_id",
            b"persistent_id",
            "rmq_id",
            b"rmq_id",
            "status",
            b"status",
            "stream_id",
            b"stream_id",
            "to",
            b"to",
            "type",
            b"type",
        ],
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "account_id",
            b"account_id",
            "error",
            b"error",
            "extension",
            b"extension",
            "from",
            b"from",
            "id",
            b"id",
            "last_stream_id_received",
            b"last_stream_id_received",
            "persistent_id",
            b"persistent_id",
            "rmq_id",
            b"rmq_id",
            "status",
            b"status",
            "stream_id",
            b"stream_id",
            "to",
            b"to",
            "type",
            b"type",
        ],
    ) -> None: ...

global___IqStanza = IqStanza

@typing_extensions.final
class AppData(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    KEY_FIELD_NUMBER: builtins.int
    VALUE_FIELD_NUMBER: builtins.int
    key: builtins.str
    value: builtins.str
    def __init__(
        self,
        *,
        key: builtins.str | None = ...,
        value: builtins.str | None = ...,
    ) -> None: ...
    def HasField(
        self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]
    ) -> builtins.bool: ...
    def ClearField(
        self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]
    ) -> None: ...

global___AppData = AppData

@typing_extensions.final
class DataMessageStanza(google.protobuf.message.Message):
    """*
    TAG: 8
    Not used.
    optional int64 rmq_id = 1;
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    ID_FIELD_NUMBER: builtins.int
    FROM_FIELD_NUMBER: builtins.int
    TO_FIELD_NUMBER: builtins.int
    CATEGORY_FIELD_NUMBER: builtins.int
    TOKEN_FIELD_NUMBER: builtins.int
    APP_DATA_FIELD_NUMBER: builtins.int
    FROM_TRUSTED_SERVER_FIELD_NUMBER: builtins.int
    PERSISTENT_ID_FIELD_NUMBER: builtins.int
    STREAM_ID_FIELD_NUMBER: builtins.int
    LAST_STREAM_ID_RECEIVED_FIELD_NUMBER: builtins.int
    REG_ID_FIELD_NUMBER: builtins.int
    DEVICE_USER_ID_FIELD_NUMBER: builtins.int
    TTL_FIELD_NUMBER: builtins.int
    SENT_FIELD_NUMBER: builtins.int
    QUEUED_FIELD_NUMBER: builtins.int
    STATUS_FIELD_NUMBER: builtins.int
    RAW_DATA_FIELD_NUMBER: builtins.int
    IMMEDIATE_ACK_FIELD_NUMBER: builtins.int
    id: builtins.str
    """This is the message ID, set by client, DMP.9 (message_id)"""
    to: builtins.str
    """Part of DMRequest - also the key in DataMessageProto."""
    category: builtins.str
    """Package name. DMP.2"""
    token: builtins.str
    """The collapsed key, DMP.3"""
    @property
    def app_data(
        self,
    ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
        global___AppData
    ]:
        """User data + GOOGLE. prefixed special entries, DMP.4"""
    from_trusted_server: builtins.bool
    """Not used."""
    persistent_id: builtins.str
    """Part of the ACK protocol, returned in DataMessageResponse on server side.
    It's part of the key of DMP.
    """
    stream_id: builtins.int
    """In-stream ack. Increments on each message sent - a bit redundant
    Not used in DMP/DMR.
    """
    last_stream_id_received: builtins.int
    reg_id: builtins.str
    """Not used.
    optional string permission = 12;

    Sent by the device shortly after registration.
    """
    device_user_id: builtins.int
    """Not used.
    optional string pkg_signature = 14;
    Not used.
    optional string client_id = 15;

    serial number of the target user, DMP.8
    It is the 'serial number' according to user manager.
    """
    ttl: builtins.int
    """Time to live, in seconds."""
    sent: builtins.int
    """Timestamp ( according to client ) when message was sent by app, in seconds"""
    queued: builtins.int
    """How long has the message been queued before the flush, in seconds.
    This is needed to account for the time difference between server and
    client: server should adjust 'sent' based on its 'receive' time.
    """
    status: builtins.int
    raw_data: builtins.bytes
    """Optional field containing the binary payload of the message."""
    immediate_ack: builtins.bool
    """Not used.
    How long the message was delayed before it was sent, in seconds.
    optional int32 actual_delay = 23;

    If set the server requests immediate ack. Used for important messages and
    for testing.
    """
    def __init__(
        self,
        *,
        id: builtins.str | None = ...,
        to: builtins.str | None = ...,
        category: builtins.str | None = ...,
        token: builtins.str | None = ...,
        app_data: collections.abc.Iterable[global___AppData] | None = ...,
        from_trusted_server: builtins.bool | None = ...,
        persistent_id: builtins.str | None = ...,
        stream_id: builtins.int | None = ...,
        last_stream_id_received: builtins.int | None = ...,
        reg_id: builtins.str | None = ...,
        device_user_id: builtins.int | None = ...,
        ttl: builtins.int | None = ...,
        sent: builtins.int | None = ...,
        queued: builtins.int | None = ...,
        status: builtins.int | None = ...,
        raw_data: builtins.bytes | None = ...,
        immediate_ack: builtins.bool | None = ...,
    ) -> None: ...
    def HasField(
        self,
        field_name: typing_extensions.Literal[
            "category",
            b"category",
            "device_user_id",
            b"device_user_id",
            "from",
            b"from",
            "from_trusted_server",
            b"from_trusted_server",
            "id",
            b"id",
            "immediate_ack",
            b"immediate_ack",
            "last_stream_id_received",
            b"last_stream_id_received",
            "persistent_id",
            b"persistent_id",
            "queued",
            b"queued",
            "raw_data",
            b"raw_data",
            "reg_id",
            b"reg_id",
            "sent",
            b"sent",
            "status",
            b"status",
            "stream_id",
            b"stream_id",
            "to",
            b"to",
            "token",
            b"token",
            "ttl",
            b"ttl",
        ],
    ) -> builtins.bool: ...
    def ClearField(
        self,
        field_name: typing_extensions.Literal[
            "app_data",
            b"app_data",
            "category",
            b"category",
            "device_user_id",
            b"device_user_id",
            "from",
            b"from",
            "from_trusted_server",
            b"from_trusted_server",
            "id",
            b"id",
            "immediate_ack",
            b"immediate_ack",
            "last_stream_id_received",
            b"last_stream_id_received",
            "persistent_id",
            b"persistent_id",
            "queued",
            b"queued",
            "raw_data",
            b"raw_data",
            "reg_id",
            b"reg_id",
            "sent",
            b"sent",
            "status",
            b"status",
            "stream_id",
            b"stream_id",
            "to",
            b"to",
            "token",
            b"token",
            "ttl",
            b"ttl",
        ],
    ) -> None: ...

global___DataMessageStanza = DataMessageStanza

@typing_extensions.final
class StreamAck(google.protobuf.message.Message):
    """*
    Included in IQ with ID 13, sent from client or server after 10 unconfirmed
    messages.
    No last_streamid_received required.  This is included within an IqStanza,
    which includes the last_stream_id_received.
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    def __init__(
        self,
    ) -> None: ...

global___StreamAck = StreamAck

@typing_extensions.final
class SelectiveAck(google.protobuf.message.Message):
    """*
    Included in IQ sent after LoginResponse from server with ID 12.
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    ID_FIELD_NUMBER: builtins.int
    @property
    def id(
        self,
    ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[
        builtins.str
    ]: ...
    def __init__(
        self,
        *,
        id: collections.abc.Iterable[builtins.str] | None = ...,
    ) -> None: ...
    def ClearField(
        self, field_name: typing_extensions.Literal["id", b"id"]
    ) -> None: ...

global___SelectiveAck = SelectiveAck