-
Notifications
You must be signed in to change notification settings - Fork 0
/
mmtp.d.ts
1763 lines (1460 loc) · 61.3 KB
/
mmtp.d.ts
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
import * as $protobuf from "protobufjs";
import Long = require("long");
/** Properties of an ApplicationMessage. */
export interface IApplicationMessage {
/** ApplicationMessage header */
header?: (IApplicationMessageHeader|null);
/** ApplicationMessage body */
body?: (Uint8Array|null);
/** ApplicationMessage signature */
signature?: (Uint8Array|null);
}
/** Represents an ApplicationMessage. */
export class ApplicationMessage implements IApplicationMessage {
/**
* Constructs a new ApplicationMessage.
* @param [properties] Properties to set
*/
constructor(properties?: IApplicationMessage);
/** ApplicationMessage header. */
public header?: (IApplicationMessageHeader|null);
/** ApplicationMessage body. */
public body: Uint8Array;
/** ApplicationMessage signature. */
public signature: Uint8Array;
/**
* Creates a new ApplicationMessage instance using the specified properties.
* @param [properties] Properties to set
* @returns ApplicationMessage instance
*/
public static create(properties?: IApplicationMessage): ApplicationMessage;
/**
* Encodes the specified ApplicationMessage message. Does not implicitly {@link ApplicationMessage.verify|verify} messages.
* @param message ApplicationMessage message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: IApplicationMessage, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified ApplicationMessage message, length delimited. Does not implicitly {@link ApplicationMessage.verify|verify} messages.
* @param message ApplicationMessage message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: IApplicationMessage, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes an ApplicationMessage message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns ApplicationMessage
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ApplicationMessage;
/**
* Decodes an ApplicationMessage message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns ApplicationMessage
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ApplicationMessage;
/**
* Verifies an ApplicationMessage message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates an ApplicationMessage message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns ApplicationMessage
*/
public static fromObject(object: { [k: string]: any }): ApplicationMessage;
/**
* Creates a plain object from an ApplicationMessage message. Also converts values to other types if specified.
* @param message ApplicationMessage
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: ApplicationMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this ApplicationMessage to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for ApplicationMessage
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of an ApplicationMessageHeader. */
export interface IApplicationMessageHeader {
/** ApplicationMessageHeader subject */
subject?: (string|null);
/** ApplicationMessageHeader recipients */
recipients?: (IRecipients|null);
/** ApplicationMessageHeader expires */
expires?: (number|Long|null);
/** ApplicationMessageHeader sender */
sender?: (string|null);
/** ApplicationMessageHeader qosProfile */
qosProfile?: (string|null);
/** ApplicationMessageHeader bodySizeNumBytes */
bodySizeNumBytes?: (number|null);
}
/** Represents an ApplicationMessageHeader. */
export class ApplicationMessageHeader implements IApplicationMessageHeader {
/**
* Constructs a new ApplicationMessageHeader.
* @param [properties] Properties to set
*/
constructor(properties?: IApplicationMessageHeader);
/** ApplicationMessageHeader subject. */
public subject?: (string|null);
/** ApplicationMessageHeader recipients. */
public recipients?: (IRecipients|null);
/** ApplicationMessageHeader expires. */
public expires: (number|Long);
/** ApplicationMessageHeader sender. */
public sender: string;
/** ApplicationMessageHeader qosProfile. */
public qosProfile?: (string|null);
/** ApplicationMessageHeader bodySizeNumBytes. */
public bodySizeNumBytes: number;
/** ApplicationMessageHeader SubjectOrRecipient. */
public SubjectOrRecipient?: ("subject"|"recipients");
/** ApplicationMessageHeader _qosProfile. */
public _qosProfile?: "qosProfile";
/**
* Creates a new ApplicationMessageHeader instance using the specified properties.
* @param [properties] Properties to set
* @returns ApplicationMessageHeader instance
*/
public static create(properties?: IApplicationMessageHeader): ApplicationMessageHeader;
/**
* Encodes the specified ApplicationMessageHeader message. Does not implicitly {@link ApplicationMessageHeader.verify|verify} messages.
* @param message ApplicationMessageHeader message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: IApplicationMessageHeader, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified ApplicationMessageHeader message, length delimited. Does not implicitly {@link ApplicationMessageHeader.verify|verify} messages.
* @param message ApplicationMessageHeader message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: IApplicationMessageHeader, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes an ApplicationMessageHeader message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns ApplicationMessageHeader
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ApplicationMessageHeader;
/**
* Decodes an ApplicationMessageHeader message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns ApplicationMessageHeader
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ApplicationMessageHeader;
/**
* Verifies an ApplicationMessageHeader message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates an ApplicationMessageHeader message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns ApplicationMessageHeader
*/
public static fromObject(object: { [k: string]: any }): ApplicationMessageHeader;
/**
* Creates a plain object from an ApplicationMessageHeader message. Also converts values to other types if specified.
* @param message ApplicationMessageHeader
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: ApplicationMessageHeader, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this ApplicationMessageHeader to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for ApplicationMessageHeader
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a Recipients. */
export interface IRecipients {
/** Recipients recipients */
recipients?: (string[]|null);
}
/** Represents a Recipients. */
export class Recipients implements IRecipients {
/**
* Constructs a new Recipients.
* @param [properties] Properties to set
*/
constructor(properties?: IRecipients);
/** Recipients recipients. */
public recipients: string[];
/**
* Creates a new Recipients instance using the specified properties.
* @param [properties] Properties to set
* @returns Recipients instance
*/
public static create(properties?: IRecipients): Recipients;
/**
* Encodes the specified Recipients message. Does not implicitly {@link Recipients.verify|verify} messages.
* @param message Recipients message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: IRecipients, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified Recipients message, length delimited. Does not implicitly {@link Recipients.verify|verify} messages.
* @param message Recipients message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: IRecipients, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a Recipients message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns Recipients
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Recipients;
/**
* Decodes a Recipients message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns Recipients
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Recipients;
/**
* Verifies a Recipients message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a Recipients message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns Recipients
*/
public static fromObject(object: { [k: string]: any }): Recipients;
/**
* Creates a plain object from a Recipients message. Also converts values to other types if specified.
* @param message Recipients
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: Recipients, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this Recipients to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for Recipients
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a MmtpMessage. */
export interface IMmtpMessage {
/** MmtpMessage msgType */
msgType?: (MsgType|null);
/** MmtpMessage uuid */
uuid?: (string|null);
/** MmtpMessage protocolMessage */
protocolMessage?: (IProtocolMessage|null);
/** MmtpMessage responseMessage */
responseMessage?: (IResponseMessage|null);
}
/** Represents a MmtpMessage. */
export class MmtpMessage implements IMmtpMessage {
/**
* Constructs a new MmtpMessage.
* @param [properties] Properties to set
*/
constructor(properties?: IMmtpMessage);
/** MmtpMessage msgType. */
public msgType: MsgType;
/** MmtpMessage uuid. */
public uuid: string;
/** MmtpMessage protocolMessage. */
public protocolMessage?: (IProtocolMessage|null);
/** MmtpMessage responseMessage. */
public responseMessage?: (IResponseMessage|null);
/** MmtpMessage body. */
public body?: ("protocolMessage"|"responseMessage");
/**
* Creates a new MmtpMessage instance using the specified properties.
* @param [properties] Properties to set
* @returns MmtpMessage instance
*/
public static create(properties?: IMmtpMessage): MmtpMessage;
/**
* Encodes the specified MmtpMessage message. Does not implicitly {@link MmtpMessage.verify|verify} messages.
* @param message MmtpMessage message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: IMmtpMessage, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified MmtpMessage message, length delimited. Does not implicitly {@link MmtpMessage.verify|verify} messages.
* @param message MmtpMessage message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: IMmtpMessage, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a MmtpMessage message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns MmtpMessage
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): MmtpMessage;
/**
* Decodes a MmtpMessage message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns MmtpMessage
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): MmtpMessage;
/**
* Verifies a MmtpMessage message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a MmtpMessage message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns MmtpMessage
*/
public static fromObject(object: { [k: string]: any }): MmtpMessage;
/**
* Creates a plain object from a MmtpMessage message. Also converts values to other types if specified.
* @param message MmtpMessage
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: MmtpMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this MmtpMessage to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for MmtpMessage
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** MsgType enum. */
export enum MsgType {
UNSPECIFIED_MESSAGE = 0,
PROTOCOL_MESSAGE = 1,
RESPONSE_MESSAGE = 2
}
/** Properties of a ProtocolMessage. */
export interface IProtocolMessage {
/** ProtocolMessage protocolMsgType */
protocolMsgType?: (ProtocolMessageType|null);
/** ProtocolMessage subscribeMessage */
subscribeMessage?: (ISubscribe|null);
/** ProtocolMessage unsubscribeMessage */
unsubscribeMessage?: (IUnsubscribe|null);
/** ProtocolMessage sendMessage */
sendMessage?: (ISend|null);
/** ProtocolMessage receiveMessage */
receiveMessage?: (IReceive|null);
/** ProtocolMessage fetchMessage */
fetchMessage?: (IFetch|null);
/** ProtocolMessage disconnectMessage */
disconnectMessage?: (IDisconnect|null);
/** ProtocolMessage connectMessage */
connectMessage?: (IConnect|null);
/** ProtocolMessage notifyMessage */
notifyMessage?: (INotify|null);
}
/** Represents a ProtocolMessage. */
export class ProtocolMessage implements IProtocolMessage {
/**
* Constructs a new ProtocolMessage.
* @param [properties] Properties to set
*/
constructor(properties?: IProtocolMessage);
/** ProtocolMessage protocolMsgType. */
public protocolMsgType: ProtocolMessageType;
/** ProtocolMessage subscribeMessage. */
public subscribeMessage?: (ISubscribe|null);
/** ProtocolMessage unsubscribeMessage. */
public unsubscribeMessage?: (IUnsubscribe|null);
/** ProtocolMessage sendMessage. */
public sendMessage?: (ISend|null);
/** ProtocolMessage receiveMessage. */
public receiveMessage?: (IReceive|null);
/** ProtocolMessage fetchMessage. */
public fetchMessage?: (IFetch|null);
/** ProtocolMessage disconnectMessage. */
public disconnectMessage?: (IDisconnect|null);
/** ProtocolMessage connectMessage. */
public connectMessage?: (IConnect|null);
/** ProtocolMessage notifyMessage. */
public notifyMessage?: (INotify|null);
/** ProtocolMessage body. */
public body?: ("subscribeMessage"|"unsubscribeMessage"|"sendMessage"|"receiveMessage"|"fetchMessage"|"disconnectMessage"|"connectMessage"|"notifyMessage");
/**
* Creates a new ProtocolMessage instance using the specified properties.
* @param [properties] Properties to set
* @returns ProtocolMessage instance
*/
public static create(properties?: IProtocolMessage): ProtocolMessage;
/**
* Encodes the specified ProtocolMessage message. Does not implicitly {@link ProtocolMessage.verify|verify} messages.
* @param message ProtocolMessage message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: IProtocolMessage, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified ProtocolMessage message, length delimited. Does not implicitly {@link ProtocolMessage.verify|verify} messages.
* @param message ProtocolMessage message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: IProtocolMessage, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a ProtocolMessage message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns ProtocolMessage
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ProtocolMessage;
/**
* Decodes a ProtocolMessage message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns ProtocolMessage
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ProtocolMessage;
/**
* Verifies a ProtocolMessage message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a ProtocolMessage message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns ProtocolMessage
*/
public static fromObject(object: { [k: string]: any }): ProtocolMessage;
/**
* Creates a plain object from a ProtocolMessage message. Also converts values to other types if specified.
* @param message ProtocolMessage
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: ProtocolMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this ProtocolMessage to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for ProtocolMessage
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** ProtocolMessageType enum. */
export enum ProtocolMessageType {
UNSPECIFIED = 0,
SUBSCRIBE_MESSAGE = 1,
UNSUBSCRIBE_MESSAGE = 2,
SEND_MESSAGE = 3,
RECEIVE_MESSAGE = 4,
FETCH_MESSAGE = 5,
DISCONNECT_MESSAGE = 6,
CONNECT_MESSAGE = 7,
NOTIFY_MESSAGE = 8
}
/** Properties of a Subscribe. */
export interface ISubscribe {
/** Subscribe subject */
subject?: (string|null);
/** Subscribe directMessages */
directMessages?: (boolean|null);
}
/** Represents a Subscribe. */
export class Subscribe implements ISubscribe {
/**
* Constructs a new Subscribe.
* @param [properties] Properties to set
*/
constructor(properties?: ISubscribe);
/** Subscribe subject. */
public subject?: (string|null);
/** Subscribe directMessages. */
public directMessages?: (boolean|null);
/** Subscribe subjectOrDirectMessages. */
public subjectOrDirectMessages?: ("subject"|"directMessages");
/**
* Creates a new Subscribe instance using the specified properties.
* @param [properties] Properties to set
* @returns Subscribe instance
*/
public static create(properties?: ISubscribe): Subscribe;
/**
* Encodes the specified Subscribe message. Does not implicitly {@link Subscribe.verify|verify} messages.
* @param message Subscribe message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: ISubscribe, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified Subscribe message, length delimited. Does not implicitly {@link Subscribe.verify|verify} messages.
* @param message Subscribe message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: ISubscribe, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a Subscribe message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns Subscribe
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Subscribe;
/**
* Decodes a Subscribe message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns Subscribe
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Subscribe;
/**
* Verifies a Subscribe message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a Subscribe message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns Subscribe
*/
public static fromObject(object: { [k: string]: any }): Subscribe;
/**
* Creates a plain object from a Subscribe message. Also converts values to other types if specified.
* @param message Subscribe
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: Subscribe, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this Subscribe to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for Subscribe
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of an Unsubscribe. */
export interface IUnsubscribe {
/** Unsubscribe subject */
subject?: (string|null);
/** Unsubscribe directMessages */
directMessages?: (boolean|null);
}
/** Represents an Unsubscribe. */
export class Unsubscribe implements IUnsubscribe {
/**
* Constructs a new Unsubscribe.
* @param [properties] Properties to set
*/
constructor(properties?: IUnsubscribe);
/** Unsubscribe subject. */
public subject?: (string|null);
/** Unsubscribe directMessages. */
public directMessages?: (boolean|null);
/** Unsubscribe subjectOrDirectMessages. */
public subjectOrDirectMessages?: ("subject"|"directMessages");
/**
* Creates a new Unsubscribe instance using the specified properties.
* @param [properties] Properties to set
* @returns Unsubscribe instance
*/
public static create(properties?: IUnsubscribe): Unsubscribe;
/**
* Encodes the specified Unsubscribe message. Does not implicitly {@link Unsubscribe.verify|verify} messages.
* @param message Unsubscribe message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: IUnsubscribe, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified Unsubscribe message, length delimited. Does not implicitly {@link Unsubscribe.verify|verify} messages.
* @param message Unsubscribe message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: IUnsubscribe, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes an Unsubscribe message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns Unsubscribe
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Unsubscribe;
/**
* Decodes an Unsubscribe message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns Unsubscribe
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Unsubscribe;
/**
* Verifies an Unsubscribe message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates an Unsubscribe message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns Unsubscribe
*/
public static fromObject(object: { [k: string]: any }): Unsubscribe;
/**
* Creates a plain object from an Unsubscribe message. Also converts values to other types if specified.
* @param message Unsubscribe
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: Unsubscribe, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this Unsubscribe to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for Unsubscribe
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a Send. */
export interface ISend {
/** Send applicationMessage */
applicationMessage?: (IApplicationMessage|null);
}
/** Represents a Send. */
export class Send implements ISend {
/**
* Constructs a new Send.
* @param [properties] Properties to set
*/
constructor(properties?: ISend);
/** Send applicationMessage. */
public applicationMessage?: (IApplicationMessage|null);
/**
* Creates a new Send instance using the specified properties.
* @param [properties] Properties to set
* @returns Send instance
*/
public static create(properties?: ISend): Send;
/**
* Encodes the specified Send message. Does not implicitly {@link Send.verify|verify} messages.
* @param message Send message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: ISend, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified Send message, length delimited. Does not implicitly {@link Send.verify|verify} messages.
* @param message Send message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: ISend, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a Send message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns Send
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Send;
/**
* Decodes a Send message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns Send
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Send;
/**
* Verifies a Send message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a Send message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns Send
*/
public static fromObject(object: { [k: string]: any }): Send;
/**
* Creates a plain object from a Send message. Also converts values to other types if specified.
* @param message Send
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: Send, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this Send to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for Send
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a Receive. */
export interface IReceive {
/** Receive filter */
filter?: (IFilter|null);
}
/** Represents a Receive. */
export class Receive implements IReceive {
/**
* Constructs a new Receive.
* @param [properties] Properties to set
*/
constructor(properties?: IReceive);
/** Receive filter. */
public filter?: (IFilter|null);
/** Receive _filter. */
public _filter?: "filter";
/**
* Creates a new Receive instance using the specified properties.
* @param [properties] Properties to set
* @returns Receive instance
*/
public static create(properties?: IReceive): Receive;
/**
* Encodes the specified Receive message. Does not implicitly {@link Receive.verify|verify} messages.
* @param message Receive message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: IReceive, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified Receive message, length delimited. Does not implicitly {@link Receive.verify|verify} messages.
* @param message Receive message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: IReceive, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a Receive message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns Receive
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Receive;
/**
* Decodes a Receive message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns Receive
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Receive;