@azure/web-pubsub-client-protobuf 1.0.0-alpha.20240828.1 → 1.0.0-alpha.20240912.1

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.
Files changed (57) hide show
  1. package/dist/{index.js → commonjs/generated/clientProto.js} +147 -3080
  2. package/dist/commonjs/index.d.ts +10 -0
  3. package/dist/commonjs/index.d.ts.map +1 -0
  4. package/dist/commonjs/index.js +22 -0
  5. package/dist/commonjs/index.js.map +1 -0
  6. package/dist/commonjs/logger.d.ts +5 -0
  7. package/dist/commonjs/logger.d.ts.map +1 -0
  8. package/dist/commonjs/logger.js +11 -0
  9. package/dist/commonjs/logger.js.map +1 -0
  10. package/dist/commonjs/package.json +3 -0
  11. package/dist/commonjs/tsdoc-metadata.json +11 -0
  12. package/dist/commonjs/webPubSubProtobufProtocol.d.ts +25 -0
  13. package/dist/commonjs/webPubSubProtobufProtocol.d.ts.map +1 -0
  14. package/dist/commonjs/webPubSubProtobufProtocol.js +37 -0
  15. package/dist/commonjs/webPubSubProtobufProtocol.js.map +1 -0
  16. package/dist/commonjs/webPubSubProtobufProtocolBase.d.ts +20 -0
  17. package/dist/commonjs/webPubSubProtobufProtocolBase.d.ts.map +1 -0
  18. package/dist/commonjs/webPubSubProtobufProtocolBase.js +191 -0
  19. package/dist/commonjs/webPubSubProtobufProtocolBase.js.map +1 -0
  20. package/dist/commonjs/webPubSubProtobufReliableProtocol.d.ts +25 -0
  21. package/dist/commonjs/webPubSubProtobufReliableProtocol.d.ts.map +1 -0
  22. package/dist/commonjs/webPubSubProtobufReliableProtocol.js +37 -0
  23. package/dist/commonjs/webPubSubProtobufReliableProtocol.js.map +1 -0
  24. package/dist/esm/generated/clientProto.d.ts +1644 -0
  25. package/dist/esm/index.d.ts +10 -0
  26. package/dist/esm/index.d.ts.map +1 -0
  27. package/{dist-esm/src → dist/esm}/index.js +2 -2
  28. package/dist/esm/index.js.map +1 -0
  29. package/dist/esm/logger.d.ts +5 -0
  30. package/dist/esm/logger.d.ts.map +1 -0
  31. package/dist/esm/package.json +3 -0
  32. package/dist/esm/webPubSubProtobufProtocol.d.ts +25 -0
  33. package/dist/esm/webPubSubProtobufProtocol.d.ts.map +1 -0
  34. package/{dist-esm/src → dist/esm}/webPubSubProtobufProtocol.js +1 -1
  35. package/dist/esm/webPubSubProtobufProtocol.js.map +1 -0
  36. package/dist/esm/webPubSubProtobufProtocolBase.d.ts +20 -0
  37. package/dist/esm/webPubSubProtobufProtocolBase.d.ts.map +1 -0
  38. package/{dist-esm/src → dist/esm}/webPubSubProtobufProtocolBase.js +1 -1
  39. package/dist/esm/webPubSubProtobufProtocolBase.js.map +1 -0
  40. package/dist/esm/webPubSubProtobufReliableProtocol.d.ts +25 -0
  41. package/dist/esm/webPubSubProtobufReliableProtocol.d.ts.map +1 -0
  42. package/{dist-esm/src → dist/esm}/webPubSubProtobufReliableProtocol.js +1 -1
  43. package/dist/esm/webPubSubProtobufReliableProtocol.js.map +1 -0
  44. package/package.json +54 -54
  45. package/dist/index.js.map +0 -1
  46. package/dist-esm/samples-dev/basicusage.js +0 -63
  47. package/dist-esm/samples-dev/basicusage.js.map +0 -1
  48. package/dist-esm/src/index.js.map +0 -1
  49. package/dist-esm/src/webPubSubProtobufProtocol.js.map +0 -1
  50. package/dist-esm/src/webPubSubProtobufProtocolBase.js.map +0 -1
  51. package/dist-esm/src/webPubSubProtobufReliableProtocol.js.map +0 -1
  52. package/dist-esm/test/client.spec.js +0 -294
  53. package/dist-esm/test/client.spec.js.map +0 -1
  54. /package/{dist-esm/src → dist/esm}/generated/clientProto.js +0 -0
  55. /package/{dist-esm/src → dist/esm}/logger.js +0 -0
  56. /package/{dist-esm/src → dist/esm}/logger.js.map +0 -0
  57. /package/{types → dist}/web-pubsub-client-protobuf.d.ts +0 -0
@@ -0,0 +1,1644 @@
1
+ import * as $protobuf from "protobufjs";
2
+ import Long = require("long");
3
+ /** Properties of an UpstreamMessage. */
4
+ export interface IUpstreamMessage {
5
+
6
+ /** UpstreamMessage sendToGroupMessage */
7
+ sendToGroupMessage?: (UpstreamMessage.ISendToGroupMessage|null);
8
+
9
+ /** UpstreamMessage eventMessage */
10
+ eventMessage?: (UpstreamMessage.IEventMessage|null);
11
+
12
+ /** UpstreamMessage joinGroupMessage */
13
+ joinGroupMessage?: (UpstreamMessage.IJoinGroupMessage|null);
14
+
15
+ /** UpstreamMessage leaveGroupMessage */
16
+ leaveGroupMessage?: (UpstreamMessage.ILeaveGroupMessage|null);
17
+
18
+ /** UpstreamMessage sequenceAckMessage */
19
+ sequenceAckMessage?: (UpstreamMessage.ISequenceAckMessage|null);
20
+ }
21
+
22
+ /** Represents an UpstreamMessage. */
23
+ export class UpstreamMessage implements IUpstreamMessage {
24
+
25
+ /**
26
+ * Constructs a new UpstreamMessage.
27
+ * @param [properties] Properties to set
28
+ */
29
+ constructor(properties?: IUpstreamMessage);
30
+
31
+ /** UpstreamMessage sendToGroupMessage. */
32
+ public sendToGroupMessage?: (UpstreamMessage.ISendToGroupMessage|null);
33
+
34
+ /** UpstreamMessage eventMessage. */
35
+ public eventMessage?: (UpstreamMessage.IEventMessage|null);
36
+
37
+ /** UpstreamMessage joinGroupMessage. */
38
+ public joinGroupMessage?: (UpstreamMessage.IJoinGroupMessage|null);
39
+
40
+ /** UpstreamMessage leaveGroupMessage. */
41
+ public leaveGroupMessage?: (UpstreamMessage.ILeaveGroupMessage|null);
42
+
43
+ /** UpstreamMessage sequenceAckMessage. */
44
+ public sequenceAckMessage?: (UpstreamMessage.ISequenceAckMessage|null);
45
+
46
+ /** UpstreamMessage message. */
47
+ public message?: ("sendToGroupMessage"|"eventMessage"|"joinGroupMessage"|"leaveGroupMessage"|"sequenceAckMessage");
48
+
49
+ /**
50
+ * Creates a new UpstreamMessage instance using the specified properties.
51
+ * @param [properties] Properties to set
52
+ * @returns UpstreamMessage instance
53
+ */
54
+ public static create(properties?: IUpstreamMessage): UpstreamMessage;
55
+
56
+ /**
57
+ * Encodes the specified UpstreamMessage message. Does not implicitly {@link UpstreamMessage.verify|verify} messages.
58
+ * @param message UpstreamMessage message or plain object to encode
59
+ * @param [writer] Writer to encode to
60
+ * @returns Writer
61
+ */
62
+ public static encode(message: IUpstreamMessage, writer?: $protobuf.Writer): $protobuf.Writer;
63
+
64
+ /**
65
+ * Encodes the specified UpstreamMessage message, length delimited. Does not implicitly {@link UpstreamMessage.verify|verify} messages.
66
+ * @param message UpstreamMessage message or plain object to encode
67
+ * @param [writer] Writer to encode to
68
+ * @returns Writer
69
+ */
70
+ public static encodeDelimited(message: IUpstreamMessage, writer?: $protobuf.Writer): $protobuf.Writer;
71
+
72
+ /**
73
+ * Decodes an UpstreamMessage message from the specified reader or buffer.
74
+ * @param reader Reader or buffer to decode from
75
+ * @param [length] Message length if known beforehand
76
+ * @returns UpstreamMessage
77
+ * @throws {Error} If the payload is not a reader or valid buffer
78
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
79
+ */
80
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UpstreamMessage;
81
+
82
+ /**
83
+ * Decodes an UpstreamMessage message from the specified reader or buffer, length delimited.
84
+ * @param reader Reader or buffer to decode from
85
+ * @returns UpstreamMessage
86
+ * @throws {Error} If the payload is not a reader or valid buffer
87
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
88
+ */
89
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UpstreamMessage;
90
+
91
+ /**
92
+ * Verifies an UpstreamMessage message.
93
+ * @param message Plain object to verify
94
+ * @returns `null` if valid, otherwise the reason why it is not
95
+ */
96
+ public static verify(message: { [k: string]: any }): (string|null);
97
+
98
+ /**
99
+ * Creates an UpstreamMessage message from a plain object. Also converts values to their respective internal types.
100
+ * @param object Plain object
101
+ * @returns UpstreamMessage
102
+ */
103
+ public static fromObject(object: { [k: string]: any }): UpstreamMessage;
104
+
105
+ /**
106
+ * Creates a plain object from an UpstreamMessage message. Also converts values to other types if specified.
107
+ * @param message UpstreamMessage
108
+ * @param [options] Conversion options
109
+ * @returns Plain object
110
+ */
111
+ public static toObject(message: UpstreamMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
112
+
113
+ /**
114
+ * Converts this UpstreamMessage to JSON.
115
+ * @returns JSON object
116
+ */
117
+ public toJSON(): { [k: string]: any };
118
+
119
+ /**
120
+ * Gets the default type url for UpstreamMessage
121
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
122
+ * @returns The default type url
123
+ */
124
+ public static getTypeUrl(typeUrlPrefix?: string): string;
125
+ }
126
+
127
+ export namespace UpstreamMessage {
128
+
129
+ /** Properties of a SendToGroupMessage. */
130
+ interface ISendToGroupMessage {
131
+
132
+ /** SendToGroupMessage group */
133
+ group?: (string|null);
134
+
135
+ /** SendToGroupMessage ackId */
136
+ ackId?: (number|Long|null);
137
+
138
+ /** SendToGroupMessage data */
139
+ data?: (IMessageData|null);
140
+
141
+ /** SendToGroupMessage noEcho */
142
+ noEcho?: (boolean|null);
143
+ }
144
+
145
+ /** Represents a SendToGroupMessage. */
146
+ class SendToGroupMessage implements ISendToGroupMessage {
147
+
148
+ /**
149
+ * Constructs a new SendToGroupMessage.
150
+ * @param [properties] Properties to set
151
+ */
152
+ constructor(properties?: UpstreamMessage.ISendToGroupMessage);
153
+
154
+ /** SendToGroupMessage group. */
155
+ public group: string;
156
+
157
+ /** SendToGroupMessage ackId. */
158
+ public ackId?: (number|Long|null);
159
+
160
+ /** SendToGroupMessage data. */
161
+ public data?: (IMessageData|null);
162
+
163
+ /** SendToGroupMessage noEcho. */
164
+ public noEcho?: (boolean|null);
165
+
166
+ /**
167
+ * Creates a new SendToGroupMessage instance using the specified properties.
168
+ * @param [properties] Properties to set
169
+ * @returns SendToGroupMessage instance
170
+ */
171
+ public static create(properties?: UpstreamMessage.ISendToGroupMessage): UpstreamMessage.SendToGroupMessage;
172
+
173
+ /**
174
+ * Encodes the specified SendToGroupMessage message. Does not implicitly {@link UpstreamMessage.SendToGroupMessage.verify|verify} messages.
175
+ * @param message SendToGroupMessage message or plain object to encode
176
+ * @param [writer] Writer to encode to
177
+ * @returns Writer
178
+ */
179
+ public static encode(message: UpstreamMessage.ISendToGroupMessage, writer?: $protobuf.Writer): $protobuf.Writer;
180
+
181
+ /**
182
+ * Encodes the specified SendToGroupMessage message, length delimited. Does not implicitly {@link UpstreamMessage.SendToGroupMessage.verify|verify} messages.
183
+ * @param message SendToGroupMessage message or plain object to encode
184
+ * @param [writer] Writer to encode to
185
+ * @returns Writer
186
+ */
187
+ public static encodeDelimited(message: UpstreamMessage.ISendToGroupMessage, writer?: $protobuf.Writer): $protobuf.Writer;
188
+
189
+ /**
190
+ * Decodes a SendToGroupMessage message from the specified reader or buffer.
191
+ * @param reader Reader or buffer to decode from
192
+ * @param [length] Message length if known beforehand
193
+ * @returns SendToGroupMessage
194
+ * @throws {Error} If the payload is not a reader or valid buffer
195
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
196
+ */
197
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UpstreamMessage.SendToGroupMessage;
198
+
199
+ /**
200
+ * Decodes a SendToGroupMessage message from the specified reader or buffer, length delimited.
201
+ * @param reader Reader or buffer to decode from
202
+ * @returns SendToGroupMessage
203
+ * @throws {Error} If the payload is not a reader or valid buffer
204
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
205
+ */
206
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UpstreamMessage.SendToGroupMessage;
207
+
208
+ /**
209
+ * Verifies a SendToGroupMessage message.
210
+ * @param message Plain object to verify
211
+ * @returns `null` if valid, otherwise the reason why it is not
212
+ */
213
+ public static verify(message: { [k: string]: any }): (string|null);
214
+
215
+ /**
216
+ * Creates a SendToGroupMessage message from a plain object. Also converts values to their respective internal types.
217
+ * @param object Plain object
218
+ * @returns SendToGroupMessage
219
+ */
220
+ public static fromObject(object: { [k: string]: any }): UpstreamMessage.SendToGroupMessage;
221
+
222
+ /**
223
+ * Creates a plain object from a SendToGroupMessage message. Also converts values to other types if specified.
224
+ * @param message SendToGroupMessage
225
+ * @param [options] Conversion options
226
+ * @returns Plain object
227
+ */
228
+ public static toObject(message: UpstreamMessage.SendToGroupMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
229
+
230
+ /**
231
+ * Converts this SendToGroupMessage to JSON.
232
+ * @returns JSON object
233
+ */
234
+ public toJSON(): { [k: string]: any };
235
+
236
+ /**
237
+ * Gets the default type url for SendToGroupMessage
238
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
239
+ * @returns The default type url
240
+ */
241
+ public static getTypeUrl(typeUrlPrefix?: string): string;
242
+ }
243
+
244
+ /** Properties of an EventMessage. */
245
+ interface IEventMessage {
246
+
247
+ /** EventMessage event */
248
+ event?: (string|null);
249
+
250
+ /** EventMessage data */
251
+ data?: (IMessageData|null);
252
+
253
+ /** EventMessage ackId */
254
+ ackId?: (number|Long|null);
255
+ }
256
+
257
+ /** Represents an EventMessage. */
258
+ class EventMessage implements IEventMessage {
259
+
260
+ /**
261
+ * Constructs a new EventMessage.
262
+ * @param [properties] Properties to set
263
+ */
264
+ constructor(properties?: UpstreamMessage.IEventMessage);
265
+
266
+ /** EventMessage event. */
267
+ public event: string;
268
+
269
+ /** EventMessage data. */
270
+ public data?: (IMessageData|null);
271
+
272
+ /** EventMessage ackId. */
273
+ public ackId?: (number|Long|null);
274
+
275
+ /**
276
+ * Creates a new EventMessage instance using the specified properties.
277
+ * @param [properties] Properties to set
278
+ * @returns EventMessage instance
279
+ */
280
+ public static create(properties?: UpstreamMessage.IEventMessage): UpstreamMessage.EventMessage;
281
+
282
+ /**
283
+ * Encodes the specified EventMessage message. Does not implicitly {@link UpstreamMessage.EventMessage.verify|verify} messages.
284
+ * @param message EventMessage message or plain object to encode
285
+ * @param [writer] Writer to encode to
286
+ * @returns Writer
287
+ */
288
+ public static encode(message: UpstreamMessage.IEventMessage, writer?: $protobuf.Writer): $protobuf.Writer;
289
+
290
+ /**
291
+ * Encodes the specified EventMessage message, length delimited. Does not implicitly {@link UpstreamMessage.EventMessage.verify|verify} messages.
292
+ * @param message EventMessage message or plain object to encode
293
+ * @param [writer] Writer to encode to
294
+ * @returns Writer
295
+ */
296
+ public static encodeDelimited(message: UpstreamMessage.IEventMessage, writer?: $protobuf.Writer): $protobuf.Writer;
297
+
298
+ /**
299
+ * Decodes an EventMessage message from the specified reader or buffer.
300
+ * @param reader Reader or buffer to decode from
301
+ * @param [length] Message length if known beforehand
302
+ * @returns EventMessage
303
+ * @throws {Error} If the payload is not a reader or valid buffer
304
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
305
+ */
306
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UpstreamMessage.EventMessage;
307
+
308
+ /**
309
+ * Decodes an EventMessage message from the specified reader or buffer, length delimited.
310
+ * @param reader Reader or buffer to decode from
311
+ * @returns EventMessage
312
+ * @throws {Error} If the payload is not a reader or valid buffer
313
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
314
+ */
315
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UpstreamMessage.EventMessage;
316
+
317
+ /**
318
+ * Verifies an EventMessage message.
319
+ * @param message Plain object to verify
320
+ * @returns `null` if valid, otherwise the reason why it is not
321
+ */
322
+ public static verify(message: { [k: string]: any }): (string|null);
323
+
324
+ /**
325
+ * Creates an EventMessage message from a plain object. Also converts values to their respective internal types.
326
+ * @param object Plain object
327
+ * @returns EventMessage
328
+ */
329
+ public static fromObject(object: { [k: string]: any }): UpstreamMessage.EventMessage;
330
+
331
+ /**
332
+ * Creates a plain object from an EventMessage message. Also converts values to other types if specified.
333
+ * @param message EventMessage
334
+ * @param [options] Conversion options
335
+ * @returns Plain object
336
+ */
337
+ public static toObject(message: UpstreamMessage.EventMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
338
+
339
+ /**
340
+ * Converts this EventMessage to JSON.
341
+ * @returns JSON object
342
+ */
343
+ public toJSON(): { [k: string]: any };
344
+
345
+ /**
346
+ * Gets the default type url for EventMessage
347
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
348
+ * @returns The default type url
349
+ */
350
+ public static getTypeUrl(typeUrlPrefix?: string): string;
351
+ }
352
+
353
+ /** Properties of a JoinGroupMessage. */
354
+ interface IJoinGroupMessage {
355
+
356
+ /** JoinGroupMessage group */
357
+ group?: (string|null);
358
+
359
+ /** JoinGroupMessage ackId */
360
+ ackId?: (number|Long|null);
361
+ }
362
+
363
+ /** Represents a JoinGroupMessage. */
364
+ class JoinGroupMessage implements IJoinGroupMessage {
365
+
366
+ /**
367
+ * Constructs a new JoinGroupMessage.
368
+ * @param [properties] Properties to set
369
+ */
370
+ constructor(properties?: UpstreamMessage.IJoinGroupMessage);
371
+
372
+ /** JoinGroupMessage group. */
373
+ public group: string;
374
+
375
+ /** JoinGroupMessage ackId. */
376
+ public ackId?: (number|Long|null);
377
+
378
+ /**
379
+ * Creates a new JoinGroupMessage instance using the specified properties.
380
+ * @param [properties] Properties to set
381
+ * @returns JoinGroupMessage instance
382
+ */
383
+ public static create(properties?: UpstreamMessage.IJoinGroupMessage): UpstreamMessage.JoinGroupMessage;
384
+
385
+ /**
386
+ * Encodes the specified JoinGroupMessage message. Does not implicitly {@link UpstreamMessage.JoinGroupMessage.verify|verify} messages.
387
+ * @param message JoinGroupMessage message or plain object to encode
388
+ * @param [writer] Writer to encode to
389
+ * @returns Writer
390
+ */
391
+ public static encode(message: UpstreamMessage.IJoinGroupMessage, writer?: $protobuf.Writer): $protobuf.Writer;
392
+
393
+ /**
394
+ * Encodes the specified JoinGroupMessage message, length delimited. Does not implicitly {@link UpstreamMessage.JoinGroupMessage.verify|verify} messages.
395
+ * @param message JoinGroupMessage message or plain object to encode
396
+ * @param [writer] Writer to encode to
397
+ * @returns Writer
398
+ */
399
+ public static encodeDelimited(message: UpstreamMessage.IJoinGroupMessage, writer?: $protobuf.Writer): $protobuf.Writer;
400
+
401
+ /**
402
+ * Decodes a JoinGroupMessage message from the specified reader or buffer.
403
+ * @param reader Reader or buffer to decode from
404
+ * @param [length] Message length if known beforehand
405
+ * @returns JoinGroupMessage
406
+ * @throws {Error} If the payload is not a reader or valid buffer
407
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
408
+ */
409
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UpstreamMessage.JoinGroupMessage;
410
+
411
+ /**
412
+ * Decodes a JoinGroupMessage message from the specified reader or buffer, length delimited.
413
+ * @param reader Reader or buffer to decode from
414
+ * @returns JoinGroupMessage
415
+ * @throws {Error} If the payload is not a reader or valid buffer
416
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
417
+ */
418
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UpstreamMessage.JoinGroupMessage;
419
+
420
+ /**
421
+ * Verifies a JoinGroupMessage message.
422
+ * @param message Plain object to verify
423
+ * @returns `null` if valid, otherwise the reason why it is not
424
+ */
425
+ public static verify(message: { [k: string]: any }): (string|null);
426
+
427
+ /**
428
+ * Creates a JoinGroupMessage message from a plain object. Also converts values to their respective internal types.
429
+ * @param object Plain object
430
+ * @returns JoinGroupMessage
431
+ */
432
+ public static fromObject(object: { [k: string]: any }): UpstreamMessage.JoinGroupMessage;
433
+
434
+ /**
435
+ * Creates a plain object from a JoinGroupMessage message. Also converts values to other types if specified.
436
+ * @param message JoinGroupMessage
437
+ * @param [options] Conversion options
438
+ * @returns Plain object
439
+ */
440
+ public static toObject(message: UpstreamMessage.JoinGroupMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
441
+
442
+ /**
443
+ * Converts this JoinGroupMessage to JSON.
444
+ * @returns JSON object
445
+ */
446
+ public toJSON(): { [k: string]: any };
447
+
448
+ /**
449
+ * Gets the default type url for JoinGroupMessage
450
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
451
+ * @returns The default type url
452
+ */
453
+ public static getTypeUrl(typeUrlPrefix?: string): string;
454
+ }
455
+
456
+ /** Properties of a LeaveGroupMessage. */
457
+ interface ILeaveGroupMessage {
458
+
459
+ /** LeaveGroupMessage group */
460
+ group?: (string|null);
461
+
462
+ /** LeaveGroupMessage ackId */
463
+ ackId?: (number|Long|null);
464
+ }
465
+
466
+ /** Represents a LeaveGroupMessage. */
467
+ class LeaveGroupMessage implements ILeaveGroupMessage {
468
+
469
+ /**
470
+ * Constructs a new LeaveGroupMessage.
471
+ * @param [properties] Properties to set
472
+ */
473
+ constructor(properties?: UpstreamMessage.ILeaveGroupMessage);
474
+
475
+ /** LeaveGroupMessage group. */
476
+ public group: string;
477
+
478
+ /** LeaveGroupMessage ackId. */
479
+ public ackId?: (number|Long|null);
480
+
481
+ /**
482
+ * Creates a new LeaveGroupMessage instance using the specified properties.
483
+ * @param [properties] Properties to set
484
+ * @returns LeaveGroupMessage instance
485
+ */
486
+ public static create(properties?: UpstreamMessage.ILeaveGroupMessage): UpstreamMessage.LeaveGroupMessage;
487
+
488
+ /**
489
+ * Encodes the specified LeaveGroupMessage message. Does not implicitly {@link UpstreamMessage.LeaveGroupMessage.verify|verify} messages.
490
+ * @param message LeaveGroupMessage message or plain object to encode
491
+ * @param [writer] Writer to encode to
492
+ * @returns Writer
493
+ */
494
+ public static encode(message: UpstreamMessage.ILeaveGroupMessage, writer?: $protobuf.Writer): $protobuf.Writer;
495
+
496
+ /**
497
+ * Encodes the specified LeaveGroupMessage message, length delimited. Does not implicitly {@link UpstreamMessage.LeaveGroupMessage.verify|verify} messages.
498
+ * @param message LeaveGroupMessage message or plain object to encode
499
+ * @param [writer] Writer to encode to
500
+ * @returns Writer
501
+ */
502
+ public static encodeDelimited(message: UpstreamMessage.ILeaveGroupMessage, writer?: $protobuf.Writer): $protobuf.Writer;
503
+
504
+ /**
505
+ * Decodes a LeaveGroupMessage message from the specified reader or buffer.
506
+ * @param reader Reader or buffer to decode from
507
+ * @param [length] Message length if known beforehand
508
+ * @returns LeaveGroupMessage
509
+ * @throws {Error} If the payload is not a reader or valid buffer
510
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
511
+ */
512
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UpstreamMessage.LeaveGroupMessage;
513
+
514
+ /**
515
+ * Decodes a LeaveGroupMessage message from the specified reader or buffer, length delimited.
516
+ * @param reader Reader or buffer to decode from
517
+ * @returns LeaveGroupMessage
518
+ * @throws {Error} If the payload is not a reader or valid buffer
519
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
520
+ */
521
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UpstreamMessage.LeaveGroupMessage;
522
+
523
+ /**
524
+ * Verifies a LeaveGroupMessage message.
525
+ * @param message Plain object to verify
526
+ * @returns `null` if valid, otherwise the reason why it is not
527
+ */
528
+ public static verify(message: { [k: string]: any }): (string|null);
529
+
530
+ /**
531
+ * Creates a LeaveGroupMessage message from a plain object. Also converts values to their respective internal types.
532
+ * @param object Plain object
533
+ * @returns LeaveGroupMessage
534
+ */
535
+ public static fromObject(object: { [k: string]: any }): UpstreamMessage.LeaveGroupMessage;
536
+
537
+ /**
538
+ * Creates a plain object from a LeaveGroupMessage message. Also converts values to other types if specified.
539
+ * @param message LeaveGroupMessage
540
+ * @param [options] Conversion options
541
+ * @returns Plain object
542
+ */
543
+ public static toObject(message: UpstreamMessage.LeaveGroupMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
544
+
545
+ /**
546
+ * Converts this LeaveGroupMessage to JSON.
547
+ * @returns JSON object
548
+ */
549
+ public toJSON(): { [k: string]: any };
550
+
551
+ /**
552
+ * Gets the default type url for LeaveGroupMessage
553
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
554
+ * @returns The default type url
555
+ */
556
+ public static getTypeUrl(typeUrlPrefix?: string): string;
557
+ }
558
+
559
+ /** Properties of a SequenceAckMessage. */
560
+ interface ISequenceAckMessage {
561
+
562
+ /** SequenceAckMessage sequenceId */
563
+ sequenceId?: (number|Long|null);
564
+ }
565
+
566
+ /** Represents a SequenceAckMessage. */
567
+ class SequenceAckMessage implements ISequenceAckMessage {
568
+
569
+ /**
570
+ * Constructs a new SequenceAckMessage.
571
+ * @param [properties] Properties to set
572
+ */
573
+ constructor(properties?: UpstreamMessage.ISequenceAckMessage);
574
+
575
+ /** SequenceAckMessage sequenceId. */
576
+ public sequenceId: (number|Long);
577
+
578
+ /**
579
+ * Creates a new SequenceAckMessage instance using the specified properties.
580
+ * @param [properties] Properties to set
581
+ * @returns SequenceAckMessage instance
582
+ */
583
+ public static create(properties?: UpstreamMessage.ISequenceAckMessage): UpstreamMessage.SequenceAckMessage;
584
+
585
+ /**
586
+ * Encodes the specified SequenceAckMessage message. Does not implicitly {@link UpstreamMessage.SequenceAckMessage.verify|verify} messages.
587
+ * @param message SequenceAckMessage message or plain object to encode
588
+ * @param [writer] Writer to encode to
589
+ * @returns Writer
590
+ */
591
+ public static encode(message: UpstreamMessage.ISequenceAckMessage, writer?: $protobuf.Writer): $protobuf.Writer;
592
+
593
+ /**
594
+ * Encodes the specified SequenceAckMessage message, length delimited. Does not implicitly {@link UpstreamMessage.SequenceAckMessage.verify|verify} messages.
595
+ * @param message SequenceAckMessage message or plain object to encode
596
+ * @param [writer] Writer to encode to
597
+ * @returns Writer
598
+ */
599
+ public static encodeDelimited(message: UpstreamMessage.ISequenceAckMessage, writer?: $protobuf.Writer): $protobuf.Writer;
600
+
601
+ /**
602
+ * Decodes a SequenceAckMessage message from the specified reader or buffer.
603
+ * @param reader Reader or buffer to decode from
604
+ * @param [length] Message length if known beforehand
605
+ * @returns SequenceAckMessage
606
+ * @throws {Error} If the payload is not a reader or valid buffer
607
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
608
+ */
609
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UpstreamMessage.SequenceAckMessage;
610
+
611
+ /**
612
+ * Decodes a SequenceAckMessage message from the specified reader or buffer, length delimited.
613
+ * @param reader Reader or buffer to decode from
614
+ * @returns SequenceAckMessage
615
+ * @throws {Error} If the payload is not a reader or valid buffer
616
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
617
+ */
618
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UpstreamMessage.SequenceAckMessage;
619
+
620
+ /**
621
+ * Verifies a SequenceAckMessage message.
622
+ * @param message Plain object to verify
623
+ * @returns `null` if valid, otherwise the reason why it is not
624
+ */
625
+ public static verify(message: { [k: string]: any }): (string|null);
626
+
627
+ /**
628
+ * Creates a SequenceAckMessage message from a plain object. Also converts values to their respective internal types.
629
+ * @param object Plain object
630
+ * @returns SequenceAckMessage
631
+ */
632
+ public static fromObject(object: { [k: string]: any }): UpstreamMessage.SequenceAckMessage;
633
+
634
+ /**
635
+ * Creates a plain object from a SequenceAckMessage message. Also converts values to other types if specified.
636
+ * @param message SequenceAckMessage
637
+ * @param [options] Conversion options
638
+ * @returns Plain object
639
+ */
640
+ public static toObject(message: UpstreamMessage.SequenceAckMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
641
+
642
+ /**
643
+ * Converts this SequenceAckMessage to JSON.
644
+ * @returns JSON object
645
+ */
646
+ public toJSON(): { [k: string]: any };
647
+
648
+ /**
649
+ * Gets the default type url for SequenceAckMessage
650
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
651
+ * @returns The default type url
652
+ */
653
+ public static getTypeUrl(typeUrlPrefix?: string): string;
654
+ }
655
+ }
656
+
657
+ /** Properties of a DownstreamMessage. */
658
+ export interface IDownstreamMessage {
659
+
660
+ /** DownstreamMessage ackMessage */
661
+ ackMessage?: (DownstreamMessage.IAckMessage|null);
662
+
663
+ /** DownstreamMessage dataMessage */
664
+ dataMessage?: (DownstreamMessage.IDataMessage|null);
665
+
666
+ /** DownstreamMessage systemMessage */
667
+ systemMessage?: (DownstreamMessage.ISystemMessage|null);
668
+ }
669
+
670
+ /** Represents a DownstreamMessage. */
671
+ export class DownstreamMessage implements IDownstreamMessage {
672
+
673
+ /**
674
+ * Constructs a new DownstreamMessage.
675
+ * @param [properties] Properties to set
676
+ */
677
+ constructor(properties?: IDownstreamMessage);
678
+
679
+ /** DownstreamMessage ackMessage. */
680
+ public ackMessage?: (DownstreamMessage.IAckMessage|null);
681
+
682
+ /** DownstreamMessage dataMessage. */
683
+ public dataMessage?: (DownstreamMessage.IDataMessage|null);
684
+
685
+ /** DownstreamMessage systemMessage. */
686
+ public systemMessage?: (DownstreamMessage.ISystemMessage|null);
687
+
688
+ /** DownstreamMessage message. */
689
+ public message?: ("ackMessage"|"dataMessage"|"systemMessage");
690
+
691
+ /**
692
+ * Creates a new DownstreamMessage instance using the specified properties.
693
+ * @param [properties] Properties to set
694
+ * @returns DownstreamMessage instance
695
+ */
696
+ public static create(properties?: IDownstreamMessage): DownstreamMessage;
697
+
698
+ /**
699
+ * Encodes the specified DownstreamMessage message. Does not implicitly {@link DownstreamMessage.verify|verify} messages.
700
+ * @param message DownstreamMessage message or plain object to encode
701
+ * @param [writer] Writer to encode to
702
+ * @returns Writer
703
+ */
704
+ public static encode(message: IDownstreamMessage, writer?: $protobuf.Writer): $protobuf.Writer;
705
+
706
+ /**
707
+ * Encodes the specified DownstreamMessage message, length delimited. Does not implicitly {@link DownstreamMessage.verify|verify} messages.
708
+ * @param message DownstreamMessage message or plain object to encode
709
+ * @param [writer] Writer to encode to
710
+ * @returns Writer
711
+ */
712
+ public static encodeDelimited(message: IDownstreamMessage, writer?: $protobuf.Writer): $protobuf.Writer;
713
+
714
+ /**
715
+ * Decodes a DownstreamMessage message from the specified reader or buffer.
716
+ * @param reader Reader or buffer to decode from
717
+ * @param [length] Message length if known beforehand
718
+ * @returns DownstreamMessage
719
+ * @throws {Error} If the payload is not a reader or valid buffer
720
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
721
+ */
722
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): DownstreamMessage;
723
+
724
+ /**
725
+ * Decodes a DownstreamMessage message from the specified reader or buffer, length delimited.
726
+ * @param reader Reader or buffer to decode from
727
+ * @returns DownstreamMessage
728
+ * @throws {Error} If the payload is not a reader or valid buffer
729
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
730
+ */
731
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): DownstreamMessage;
732
+
733
+ /**
734
+ * Verifies a DownstreamMessage message.
735
+ * @param message Plain object to verify
736
+ * @returns `null` if valid, otherwise the reason why it is not
737
+ */
738
+ public static verify(message: { [k: string]: any }): (string|null);
739
+
740
+ /**
741
+ * Creates a DownstreamMessage message from a plain object. Also converts values to their respective internal types.
742
+ * @param object Plain object
743
+ * @returns DownstreamMessage
744
+ */
745
+ public static fromObject(object: { [k: string]: any }): DownstreamMessage;
746
+
747
+ /**
748
+ * Creates a plain object from a DownstreamMessage message. Also converts values to other types if specified.
749
+ * @param message DownstreamMessage
750
+ * @param [options] Conversion options
751
+ * @returns Plain object
752
+ */
753
+ public static toObject(message: DownstreamMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
754
+
755
+ /**
756
+ * Converts this DownstreamMessage to JSON.
757
+ * @returns JSON object
758
+ */
759
+ public toJSON(): { [k: string]: any };
760
+
761
+ /**
762
+ * Gets the default type url for DownstreamMessage
763
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
764
+ * @returns The default type url
765
+ */
766
+ public static getTypeUrl(typeUrlPrefix?: string): string;
767
+ }
768
+
769
+ export namespace DownstreamMessage {
770
+
771
+ /** Properties of an AckMessage. */
772
+ interface IAckMessage {
773
+
774
+ /** AckMessage ackId */
775
+ ackId?: (number|Long|null);
776
+
777
+ /** AckMessage success */
778
+ success?: (boolean|null);
779
+
780
+ /** AckMessage error */
781
+ error?: (DownstreamMessage.AckMessage.IErrorMessage|null);
782
+ }
783
+
784
+ /** Represents an AckMessage. */
785
+ class AckMessage implements IAckMessage {
786
+
787
+ /**
788
+ * Constructs a new AckMessage.
789
+ * @param [properties] Properties to set
790
+ */
791
+ constructor(properties?: DownstreamMessage.IAckMessage);
792
+
793
+ /** AckMessage ackId. */
794
+ public ackId: (number|Long);
795
+
796
+ /** AckMessage success. */
797
+ public success: boolean;
798
+
799
+ /** AckMessage error. */
800
+ public error?: (DownstreamMessage.AckMessage.IErrorMessage|null);
801
+
802
+ /**
803
+ * Creates a new AckMessage instance using the specified properties.
804
+ * @param [properties] Properties to set
805
+ * @returns AckMessage instance
806
+ */
807
+ public static create(properties?: DownstreamMessage.IAckMessage): DownstreamMessage.AckMessage;
808
+
809
+ /**
810
+ * Encodes the specified AckMessage message. Does not implicitly {@link DownstreamMessage.AckMessage.verify|verify} messages.
811
+ * @param message AckMessage message or plain object to encode
812
+ * @param [writer] Writer to encode to
813
+ * @returns Writer
814
+ */
815
+ public static encode(message: DownstreamMessage.IAckMessage, writer?: $protobuf.Writer): $protobuf.Writer;
816
+
817
+ /**
818
+ * Encodes the specified AckMessage message, length delimited. Does not implicitly {@link DownstreamMessage.AckMessage.verify|verify} messages.
819
+ * @param message AckMessage message or plain object to encode
820
+ * @param [writer] Writer to encode to
821
+ * @returns Writer
822
+ */
823
+ public static encodeDelimited(message: DownstreamMessage.IAckMessage, writer?: $protobuf.Writer): $protobuf.Writer;
824
+
825
+ /**
826
+ * Decodes an AckMessage message from the specified reader or buffer.
827
+ * @param reader Reader or buffer to decode from
828
+ * @param [length] Message length if known beforehand
829
+ * @returns AckMessage
830
+ * @throws {Error} If the payload is not a reader or valid buffer
831
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
832
+ */
833
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): DownstreamMessage.AckMessage;
834
+
835
+ /**
836
+ * Decodes an AckMessage message from the specified reader or buffer, length delimited.
837
+ * @param reader Reader or buffer to decode from
838
+ * @returns AckMessage
839
+ * @throws {Error} If the payload is not a reader or valid buffer
840
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
841
+ */
842
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): DownstreamMessage.AckMessage;
843
+
844
+ /**
845
+ * Verifies an AckMessage message.
846
+ * @param message Plain object to verify
847
+ * @returns `null` if valid, otherwise the reason why it is not
848
+ */
849
+ public static verify(message: { [k: string]: any }): (string|null);
850
+
851
+ /**
852
+ * Creates an AckMessage message from a plain object. Also converts values to their respective internal types.
853
+ * @param object Plain object
854
+ * @returns AckMessage
855
+ */
856
+ public static fromObject(object: { [k: string]: any }): DownstreamMessage.AckMessage;
857
+
858
+ /**
859
+ * Creates a plain object from an AckMessage message. Also converts values to other types if specified.
860
+ * @param message AckMessage
861
+ * @param [options] Conversion options
862
+ * @returns Plain object
863
+ */
864
+ public static toObject(message: DownstreamMessage.AckMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
865
+
866
+ /**
867
+ * Converts this AckMessage to JSON.
868
+ * @returns JSON object
869
+ */
870
+ public toJSON(): { [k: string]: any };
871
+
872
+ /**
873
+ * Gets the default type url for AckMessage
874
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
875
+ * @returns The default type url
876
+ */
877
+ public static getTypeUrl(typeUrlPrefix?: string): string;
878
+ }
879
+
880
+ namespace AckMessage {
881
+
882
+ /** Properties of an ErrorMessage. */
883
+ interface IErrorMessage {
884
+
885
+ /** ErrorMessage name */
886
+ name?: (string|null);
887
+
888
+ /** ErrorMessage message */
889
+ message?: (string|null);
890
+ }
891
+
892
+ /** Represents an ErrorMessage. */
893
+ class ErrorMessage implements IErrorMessage {
894
+
895
+ /**
896
+ * Constructs a new ErrorMessage.
897
+ * @param [properties] Properties to set
898
+ */
899
+ constructor(properties?: DownstreamMessage.AckMessage.IErrorMessage);
900
+
901
+ /** ErrorMessage name. */
902
+ public name: string;
903
+
904
+ /** ErrorMessage message. */
905
+ public message: string;
906
+
907
+ /**
908
+ * Creates a new ErrorMessage instance using the specified properties.
909
+ * @param [properties] Properties to set
910
+ * @returns ErrorMessage instance
911
+ */
912
+ public static create(properties?: DownstreamMessage.AckMessage.IErrorMessage): DownstreamMessage.AckMessage.ErrorMessage;
913
+
914
+ /**
915
+ * Encodes the specified ErrorMessage message. Does not implicitly {@link DownstreamMessage.AckMessage.ErrorMessage.verify|verify} messages.
916
+ * @param message ErrorMessage message or plain object to encode
917
+ * @param [writer] Writer to encode to
918
+ * @returns Writer
919
+ */
920
+ public static encode(message: DownstreamMessage.AckMessage.IErrorMessage, writer?: $protobuf.Writer): $protobuf.Writer;
921
+
922
+ /**
923
+ * Encodes the specified ErrorMessage message, length delimited. Does not implicitly {@link DownstreamMessage.AckMessage.ErrorMessage.verify|verify} messages.
924
+ * @param message ErrorMessage message or plain object to encode
925
+ * @param [writer] Writer to encode to
926
+ * @returns Writer
927
+ */
928
+ public static encodeDelimited(message: DownstreamMessage.AckMessage.IErrorMessage, writer?: $protobuf.Writer): $protobuf.Writer;
929
+
930
+ /**
931
+ * Decodes an ErrorMessage message from the specified reader or buffer.
932
+ * @param reader Reader or buffer to decode from
933
+ * @param [length] Message length if known beforehand
934
+ * @returns ErrorMessage
935
+ * @throws {Error} If the payload is not a reader or valid buffer
936
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
937
+ */
938
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): DownstreamMessage.AckMessage.ErrorMessage;
939
+
940
+ /**
941
+ * Decodes an ErrorMessage message from the specified reader or buffer, length delimited.
942
+ * @param reader Reader or buffer to decode from
943
+ * @returns ErrorMessage
944
+ * @throws {Error} If the payload is not a reader or valid buffer
945
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
946
+ */
947
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): DownstreamMessage.AckMessage.ErrorMessage;
948
+
949
+ /**
950
+ * Verifies an ErrorMessage message.
951
+ * @param message Plain object to verify
952
+ * @returns `null` if valid, otherwise the reason why it is not
953
+ */
954
+ public static verify(message: { [k: string]: any }): (string|null);
955
+
956
+ /**
957
+ * Creates an ErrorMessage message from a plain object. Also converts values to their respective internal types.
958
+ * @param object Plain object
959
+ * @returns ErrorMessage
960
+ */
961
+ public static fromObject(object: { [k: string]: any }): DownstreamMessage.AckMessage.ErrorMessage;
962
+
963
+ /**
964
+ * Creates a plain object from an ErrorMessage message. Also converts values to other types if specified.
965
+ * @param message ErrorMessage
966
+ * @param [options] Conversion options
967
+ * @returns Plain object
968
+ */
969
+ public static toObject(message: DownstreamMessage.AckMessage.ErrorMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
970
+
971
+ /**
972
+ * Converts this ErrorMessage to JSON.
973
+ * @returns JSON object
974
+ */
975
+ public toJSON(): { [k: string]: any };
976
+
977
+ /**
978
+ * Gets the default type url for ErrorMessage
979
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
980
+ * @returns The default type url
981
+ */
982
+ public static getTypeUrl(typeUrlPrefix?: string): string;
983
+ }
984
+ }
985
+
986
+ /** Properties of a DataMessage. */
987
+ interface IDataMessage {
988
+
989
+ /** DataMessage from */
990
+ from?: (string|null);
991
+
992
+ /** DataMessage group */
993
+ group?: (string|null);
994
+
995
+ /** DataMessage data */
996
+ data?: (IMessageData|null);
997
+
998
+ /** DataMessage sequenceId */
999
+ sequenceId?: (number|Long|null);
1000
+ }
1001
+
1002
+ /** Represents a DataMessage. */
1003
+ class DataMessage implements IDataMessage {
1004
+
1005
+ /**
1006
+ * Constructs a new DataMessage.
1007
+ * @param [properties] Properties to set
1008
+ */
1009
+ constructor(properties?: DownstreamMessage.IDataMessage);
1010
+
1011
+ /** DataMessage from. */
1012
+ public from: string;
1013
+
1014
+ /** DataMessage group. */
1015
+ public group?: (string|null);
1016
+
1017
+ /** DataMessage data. */
1018
+ public data?: (IMessageData|null);
1019
+
1020
+ /** DataMessage sequenceId. */
1021
+ public sequenceId?: (number|Long|null);
1022
+
1023
+ /**
1024
+ * Creates a new DataMessage instance using the specified properties.
1025
+ * @param [properties] Properties to set
1026
+ * @returns DataMessage instance
1027
+ */
1028
+ public static create(properties?: DownstreamMessage.IDataMessage): DownstreamMessage.DataMessage;
1029
+
1030
+ /**
1031
+ * Encodes the specified DataMessage message. Does not implicitly {@link DownstreamMessage.DataMessage.verify|verify} messages.
1032
+ * @param message DataMessage message or plain object to encode
1033
+ * @param [writer] Writer to encode to
1034
+ * @returns Writer
1035
+ */
1036
+ public static encode(message: DownstreamMessage.IDataMessage, writer?: $protobuf.Writer): $protobuf.Writer;
1037
+
1038
+ /**
1039
+ * Encodes the specified DataMessage message, length delimited. Does not implicitly {@link DownstreamMessage.DataMessage.verify|verify} messages.
1040
+ * @param message DataMessage message or plain object to encode
1041
+ * @param [writer] Writer to encode to
1042
+ * @returns Writer
1043
+ */
1044
+ public static encodeDelimited(message: DownstreamMessage.IDataMessage, writer?: $protobuf.Writer): $protobuf.Writer;
1045
+
1046
+ /**
1047
+ * Decodes a DataMessage message from the specified reader or buffer.
1048
+ * @param reader Reader or buffer to decode from
1049
+ * @param [length] Message length if known beforehand
1050
+ * @returns DataMessage
1051
+ * @throws {Error} If the payload is not a reader or valid buffer
1052
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1053
+ */
1054
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): DownstreamMessage.DataMessage;
1055
+
1056
+ /**
1057
+ * Decodes a DataMessage message from the specified reader or buffer, length delimited.
1058
+ * @param reader Reader or buffer to decode from
1059
+ * @returns DataMessage
1060
+ * @throws {Error} If the payload is not a reader or valid buffer
1061
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1062
+ */
1063
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): DownstreamMessage.DataMessage;
1064
+
1065
+ /**
1066
+ * Verifies a DataMessage message.
1067
+ * @param message Plain object to verify
1068
+ * @returns `null` if valid, otherwise the reason why it is not
1069
+ */
1070
+ public static verify(message: { [k: string]: any }): (string|null);
1071
+
1072
+ /**
1073
+ * Creates a DataMessage message from a plain object. Also converts values to their respective internal types.
1074
+ * @param object Plain object
1075
+ * @returns DataMessage
1076
+ */
1077
+ public static fromObject(object: { [k: string]: any }): DownstreamMessage.DataMessage;
1078
+
1079
+ /**
1080
+ * Creates a plain object from a DataMessage message. Also converts values to other types if specified.
1081
+ * @param message DataMessage
1082
+ * @param [options] Conversion options
1083
+ * @returns Plain object
1084
+ */
1085
+ public static toObject(message: DownstreamMessage.DataMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
1086
+
1087
+ /**
1088
+ * Converts this DataMessage to JSON.
1089
+ * @returns JSON object
1090
+ */
1091
+ public toJSON(): { [k: string]: any };
1092
+
1093
+ /**
1094
+ * Gets the default type url for DataMessage
1095
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1096
+ * @returns The default type url
1097
+ */
1098
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1099
+ }
1100
+
1101
+ /** Properties of a SystemMessage. */
1102
+ interface ISystemMessage {
1103
+
1104
+ /** SystemMessage connectedMessage */
1105
+ connectedMessage?: (DownstreamMessage.SystemMessage.IConnectedMessage|null);
1106
+
1107
+ /** SystemMessage disconnectedMessage */
1108
+ disconnectedMessage?: (DownstreamMessage.SystemMessage.IDisconnectedMessage|null);
1109
+ }
1110
+
1111
+ /** Represents a SystemMessage. */
1112
+ class SystemMessage implements ISystemMessage {
1113
+
1114
+ /**
1115
+ * Constructs a new SystemMessage.
1116
+ * @param [properties] Properties to set
1117
+ */
1118
+ constructor(properties?: DownstreamMessage.ISystemMessage);
1119
+
1120
+ /** SystemMessage connectedMessage. */
1121
+ public connectedMessage?: (DownstreamMessage.SystemMessage.IConnectedMessage|null);
1122
+
1123
+ /** SystemMessage disconnectedMessage. */
1124
+ public disconnectedMessage?: (DownstreamMessage.SystemMessage.IDisconnectedMessage|null);
1125
+
1126
+ /** SystemMessage message. */
1127
+ public message?: ("connectedMessage"|"disconnectedMessage");
1128
+
1129
+ /**
1130
+ * Creates a new SystemMessage instance using the specified properties.
1131
+ * @param [properties] Properties to set
1132
+ * @returns SystemMessage instance
1133
+ */
1134
+ public static create(properties?: DownstreamMessage.ISystemMessage): DownstreamMessage.SystemMessage;
1135
+
1136
+ /**
1137
+ * Encodes the specified SystemMessage message. Does not implicitly {@link DownstreamMessage.SystemMessage.verify|verify} messages.
1138
+ * @param message SystemMessage message or plain object to encode
1139
+ * @param [writer] Writer to encode to
1140
+ * @returns Writer
1141
+ */
1142
+ public static encode(message: DownstreamMessage.ISystemMessage, writer?: $protobuf.Writer): $protobuf.Writer;
1143
+
1144
+ /**
1145
+ * Encodes the specified SystemMessage message, length delimited. Does not implicitly {@link DownstreamMessage.SystemMessage.verify|verify} messages.
1146
+ * @param message SystemMessage message or plain object to encode
1147
+ * @param [writer] Writer to encode to
1148
+ * @returns Writer
1149
+ */
1150
+ public static encodeDelimited(message: DownstreamMessage.ISystemMessage, writer?: $protobuf.Writer): $protobuf.Writer;
1151
+
1152
+ /**
1153
+ * Decodes a SystemMessage message from the specified reader or buffer.
1154
+ * @param reader Reader or buffer to decode from
1155
+ * @param [length] Message length if known beforehand
1156
+ * @returns SystemMessage
1157
+ * @throws {Error} If the payload is not a reader or valid buffer
1158
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1159
+ */
1160
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): DownstreamMessage.SystemMessage;
1161
+
1162
+ /**
1163
+ * Decodes a SystemMessage message from the specified reader or buffer, length delimited.
1164
+ * @param reader Reader or buffer to decode from
1165
+ * @returns SystemMessage
1166
+ * @throws {Error} If the payload is not a reader or valid buffer
1167
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1168
+ */
1169
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): DownstreamMessage.SystemMessage;
1170
+
1171
+ /**
1172
+ * Verifies a SystemMessage message.
1173
+ * @param message Plain object to verify
1174
+ * @returns `null` if valid, otherwise the reason why it is not
1175
+ */
1176
+ public static verify(message: { [k: string]: any }): (string|null);
1177
+
1178
+ /**
1179
+ * Creates a SystemMessage message from a plain object. Also converts values to their respective internal types.
1180
+ * @param object Plain object
1181
+ * @returns SystemMessage
1182
+ */
1183
+ public static fromObject(object: { [k: string]: any }): DownstreamMessage.SystemMessage;
1184
+
1185
+ /**
1186
+ * Creates a plain object from a SystemMessage message. Also converts values to other types if specified.
1187
+ * @param message SystemMessage
1188
+ * @param [options] Conversion options
1189
+ * @returns Plain object
1190
+ */
1191
+ public static toObject(message: DownstreamMessage.SystemMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
1192
+
1193
+ /**
1194
+ * Converts this SystemMessage to JSON.
1195
+ * @returns JSON object
1196
+ */
1197
+ public toJSON(): { [k: string]: any };
1198
+
1199
+ /**
1200
+ * Gets the default type url for SystemMessage
1201
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1202
+ * @returns The default type url
1203
+ */
1204
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1205
+ }
1206
+
1207
+ namespace SystemMessage {
1208
+
1209
+ /** Properties of a ConnectedMessage. */
1210
+ interface IConnectedMessage {
1211
+
1212
+ /** ConnectedMessage connectionId */
1213
+ connectionId?: (string|null);
1214
+
1215
+ /** ConnectedMessage userId */
1216
+ userId?: (string|null);
1217
+
1218
+ /** ConnectedMessage reconnectionToken */
1219
+ reconnectionToken?: (string|null);
1220
+ }
1221
+
1222
+ /** Represents a ConnectedMessage. */
1223
+ class ConnectedMessage implements IConnectedMessage {
1224
+
1225
+ /**
1226
+ * Constructs a new ConnectedMessage.
1227
+ * @param [properties] Properties to set
1228
+ */
1229
+ constructor(properties?: DownstreamMessage.SystemMessage.IConnectedMessage);
1230
+
1231
+ /** ConnectedMessage connectionId. */
1232
+ public connectionId: string;
1233
+
1234
+ /** ConnectedMessage userId. */
1235
+ public userId: string;
1236
+
1237
+ /** ConnectedMessage reconnectionToken. */
1238
+ public reconnectionToken: string;
1239
+
1240
+ /**
1241
+ * Creates a new ConnectedMessage instance using the specified properties.
1242
+ * @param [properties] Properties to set
1243
+ * @returns ConnectedMessage instance
1244
+ */
1245
+ public static create(properties?: DownstreamMessage.SystemMessage.IConnectedMessage): DownstreamMessage.SystemMessage.ConnectedMessage;
1246
+
1247
+ /**
1248
+ * Encodes the specified ConnectedMessage message. Does not implicitly {@link DownstreamMessage.SystemMessage.ConnectedMessage.verify|verify} messages.
1249
+ * @param message ConnectedMessage message or plain object to encode
1250
+ * @param [writer] Writer to encode to
1251
+ * @returns Writer
1252
+ */
1253
+ public static encode(message: DownstreamMessage.SystemMessage.IConnectedMessage, writer?: $protobuf.Writer): $protobuf.Writer;
1254
+
1255
+ /**
1256
+ * Encodes the specified ConnectedMessage message, length delimited. Does not implicitly {@link DownstreamMessage.SystemMessage.ConnectedMessage.verify|verify} messages.
1257
+ * @param message ConnectedMessage message or plain object to encode
1258
+ * @param [writer] Writer to encode to
1259
+ * @returns Writer
1260
+ */
1261
+ public static encodeDelimited(message: DownstreamMessage.SystemMessage.IConnectedMessage, writer?: $protobuf.Writer): $protobuf.Writer;
1262
+
1263
+ /**
1264
+ * Decodes a ConnectedMessage message from the specified reader or buffer.
1265
+ * @param reader Reader or buffer to decode from
1266
+ * @param [length] Message length if known beforehand
1267
+ * @returns ConnectedMessage
1268
+ * @throws {Error} If the payload is not a reader or valid buffer
1269
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1270
+ */
1271
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): DownstreamMessage.SystemMessage.ConnectedMessage;
1272
+
1273
+ /**
1274
+ * Decodes a ConnectedMessage message from the specified reader or buffer, length delimited.
1275
+ * @param reader Reader or buffer to decode from
1276
+ * @returns ConnectedMessage
1277
+ * @throws {Error} If the payload is not a reader or valid buffer
1278
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1279
+ */
1280
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): DownstreamMessage.SystemMessage.ConnectedMessage;
1281
+
1282
+ /**
1283
+ * Verifies a ConnectedMessage message.
1284
+ * @param message Plain object to verify
1285
+ * @returns `null` if valid, otherwise the reason why it is not
1286
+ */
1287
+ public static verify(message: { [k: string]: any }): (string|null);
1288
+
1289
+ /**
1290
+ * Creates a ConnectedMessage message from a plain object. Also converts values to their respective internal types.
1291
+ * @param object Plain object
1292
+ * @returns ConnectedMessage
1293
+ */
1294
+ public static fromObject(object: { [k: string]: any }): DownstreamMessage.SystemMessage.ConnectedMessage;
1295
+
1296
+ /**
1297
+ * Creates a plain object from a ConnectedMessage message. Also converts values to other types if specified.
1298
+ * @param message ConnectedMessage
1299
+ * @param [options] Conversion options
1300
+ * @returns Plain object
1301
+ */
1302
+ public static toObject(message: DownstreamMessage.SystemMessage.ConnectedMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
1303
+
1304
+ /**
1305
+ * Converts this ConnectedMessage to JSON.
1306
+ * @returns JSON object
1307
+ */
1308
+ public toJSON(): { [k: string]: any };
1309
+
1310
+ /**
1311
+ * Gets the default type url for ConnectedMessage
1312
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1313
+ * @returns The default type url
1314
+ */
1315
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1316
+ }
1317
+
1318
+ /** Properties of a DisconnectedMessage. */
1319
+ interface IDisconnectedMessage {
1320
+
1321
+ /** DisconnectedMessage reason */
1322
+ reason?: (string|null);
1323
+ }
1324
+
1325
+ /** Represents a DisconnectedMessage. */
1326
+ class DisconnectedMessage implements IDisconnectedMessage {
1327
+
1328
+ /**
1329
+ * Constructs a new DisconnectedMessage.
1330
+ * @param [properties] Properties to set
1331
+ */
1332
+ constructor(properties?: DownstreamMessage.SystemMessage.IDisconnectedMessage);
1333
+
1334
+ /** DisconnectedMessage reason. */
1335
+ public reason: string;
1336
+
1337
+ /**
1338
+ * Creates a new DisconnectedMessage instance using the specified properties.
1339
+ * @param [properties] Properties to set
1340
+ * @returns DisconnectedMessage instance
1341
+ */
1342
+ public static create(properties?: DownstreamMessage.SystemMessage.IDisconnectedMessage): DownstreamMessage.SystemMessage.DisconnectedMessage;
1343
+
1344
+ /**
1345
+ * Encodes the specified DisconnectedMessage message. Does not implicitly {@link DownstreamMessage.SystemMessage.DisconnectedMessage.verify|verify} messages.
1346
+ * @param message DisconnectedMessage message or plain object to encode
1347
+ * @param [writer] Writer to encode to
1348
+ * @returns Writer
1349
+ */
1350
+ public static encode(message: DownstreamMessage.SystemMessage.IDisconnectedMessage, writer?: $protobuf.Writer): $protobuf.Writer;
1351
+
1352
+ /**
1353
+ * Encodes the specified DisconnectedMessage message, length delimited. Does not implicitly {@link DownstreamMessage.SystemMessage.DisconnectedMessage.verify|verify} messages.
1354
+ * @param message DisconnectedMessage message or plain object to encode
1355
+ * @param [writer] Writer to encode to
1356
+ * @returns Writer
1357
+ */
1358
+ public static encodeDelimited(message: DownstreamMessage.SystemMessage.IDisconnectedMessage, writer?: $protobuf.Writer): $protobuf.Writer;
1359
+
1360
+ /**
1361
+ * Decodes a DisconnectedMessage message from the specified reader or buffer.
1362
+ * @param reader Reader or buffer to decode from
1363
+ * @param [length] Message length if known beforehand
1364
+ * @returns DisconnectedMessage
1365
+ * @throws {Error} If the payload is not a reader or valid buffer
1366
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1367
+ */
1368
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): DownstreamMessage.SystemMessage.DisconnectedMessage;
1369
+
1370
+ /**
1371
+ * Decodes a DisconnectedMessage message from the specified reader or buffer, length delimited.
1372
+ * @param reader Reader or buffer to decode from
1373
+ * @returns DisconnectedMessage
1374
+ * @throws {Error} If the payload is not a reader or valid buffer
1375
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1376
+ */
1377
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): DownstreamMessage.SystemMessage.DisconnectedMessage;
1378
+
1379
+ /**
1380
+ * Verifies a DisconnectedMessage message.
1381
+ * @param message Plain object to verify
1382
+ * @returns `null` if valid, otherwise the reason why it is not
1383
+ */
1384
+ public static verify(message: { [k: string]: any }): (string|null);
1385
+
1386
+ /**
1387
+ * Creates a DisconnectedMessage message from a plain object. Also converts values to their respective internal types.
1388
+ * @param object Plain object
1389
+ * @returns DisconnectedMessage
1390
+ */
1391
+ public static fromObject(object: { [k: string]: any }): DownstreamMessage.SystemMessage.DisconnectedMessage;
1392
+
1393
+ /**
1394
+ * Creates a plain object from a DisconnectedMessage message. Also converts values to other types if specified.
1395
+ * @param message DisconnectedMessage
1396
+ * @param [options] Conversion options
1397
+ * @returns Plain object
1398
+ */
1399
+ public static toObject(message: DownstreamMessage.SystemMessage.DisconnectedMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
1400
+
1401
+ /**
1402
+ * Converts this DisconnectedMessage to JSON.
1403
+ * @returns JSON object
1404
+ */
1405
+ public toJSON(): { [k: string]: any };
1406
+
1407
+ /**
1408
+ * Gets the default type url for DisconnectedMessage
1409
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1410
+ * @returns The default type url
1411
+ */
1412
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1413
+ }
1414
+ }
1415
+ }
1416
+
1417
+ /** Properties of a MessageData. */
1418
+ export interface IMessageData {
1419
+
1420
+ /** MessageData textData */
1421
+ textData?: (string|null);
1422
+
1423
+ /** MessageData binaryData */
1424
+ binaryData?: (Uint8Array|null);
1425
+
1426
+ /** MessageData protobufData */
1427
+ protobufData?: (google.protobuf.IAny|null);
1428
+
1429
+ /** MessageData jsonData */
1430
+ jsonData?: (string|null);
1431
+ }
1432
+
1433
+ /** Represents a MessageData. */
1434
+ export class MessageData implements IMessageData {
1435
+
1436
+ /**
1437
+ * Constructs a new MessageData.
1438
+ * @param [properties] Properties to set
1439
+ */
1440
+ constructor(properties?: IMessageData);
1441
+
1442
+ /** MessageData textData. */
1443
+ public textData?: (string|null);
1444
+
1445
+ /** MessageData binaryData. */
1446
+ public binaryData?: (Uint8Array|null);
1447
+
1448
+ /** MessageData protobufData. */
1449
+ public protobufData?: (google.protobuf.IAny|null);
1450
+
1451
+ /** MessageData jsonData. */
1452
+ public jsonData?: (string|null);
1453
+
1454
+ /** MessageData data. */
1455
+ public data?: ("textData"|"binaryData"|"protobufData"|"jsonData");
1456
+
1457
+ /**
1458
+ * Creates a new MessageData instance using the specified properties.
1459
+ * @param [properties] Properties to set
1460
+ * @returns MessageData instance
1461
+ */
1462
+ public static create(properties?: IMessageData): MessageData;
1463
+
1464
+ /**
1465
+ * Encodes the specified MessageData message. Does not implicitly {@link MessageData.verify|verify} messages.
1466
+ * @param message MessageData message or plain object to encode
1467
+ * @param [writer] Writer to encode to
1468
+ * @returns Writer
1469
+ */
1470
+ public static encode(message: IMessageData, writer?: $protobuf.Writer): $protobuf.Writer;
1471
+
1472
+ /**
1473
+ * Encodes the specified MessageData message, length delimited. Does not implicitly {@link MessageData.verify|verify} messages.
1474
+ * @param message MessageData message or plain object to encode
1475
+ * @param [writer] Writer to encode to
1476
+ * @returns Writer
1477
+ */
1478
+ public static encodeDelimited(message: IMessageData, writer?: $protobuf.Writer): $protobuf.Writer;
1479
+
1480
+ /**
1481
+ * Decodes a MessageData message from the specified reader or buffer.
1482
+ * @param reader Reader or buffer to decode from
1483
+ * @param [length] Message length if known beforehand
1484
+ * @returns MessageData
1485
+ * @throws {Error} If the payload is not a reader or valid buffer
1486
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1487
+ */
1488
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): MessageData;
1489
+
1490
+ /**
1491
+ * Decodes a MessageData message from the specified reader or buffer, length delimited.
1492
+ * @param reader Reader or buffer to decode from
1493
+ * @returns MessageData
1494
+ * @throws {Error} If the payload is not a reader or valid buffer
1495
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1496
+ */
1497
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): MessageData;
1498
+
1499
+ /**
1500
+ * Verifies a MessageData message.
1501
+ * @param message Plain object to verify
1502
+ * @returns `null` if valid, otherwise the reason why it is not
1503
+ */
1504
+ public static verify(message: { [k: string]: any }): (string|null);
1505
+
1506
+ /**
1507
+ * Creates a MessageData message from a plain object. Also converts values to their respective internal types.
1508
+ * @param object Plain object
1509
+ * @returns MessageData
1510
+ */
1511
+ public static fromObject(object: { [k: string]: any }): MessageData;
1512
+
1513
+ /**
1514
+ * Creates a plain object from a MessageData message. Also converts values to other types if specified.
1515
+ * @param message MessageData
1516
+ * @param [options] Conversion options
1517
+ * @returns Plain object
1518
+ */
1519
+ public static toObject(message: MessageData, options?: $protobuf.IConversionOptions): { [k: string]: any };
1520
+
1521
+ /**
1522
+ * Converts this MessageData to JSON.
1523
+ * @returns JSON object
1524
+ */
1525
+ public toJSON(): { [k: string]: any };
1526
+
1527
+ /**
1528
+ * Gets the default type url for MessageData
1529
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1530
+ * @returns The default type url
1531
+ */
1532
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1533
+ }
1534
+
1535
+ /** Namespace google. */
1536
+ export namespace google {
1537
+
1538
+ /** Namespace protobuf. */
1539
+ namespace protobuf {
1540
+
1541
+ /** Properties of an Any. */
1542
+ interface IAny {
1543
+
1544
+ /** Any type_url */
1545
+ type_url?: (string|null);
1546
+
1547
+ /** Any value */
1548
+ value?: (Uint8Array|null);
1549
+ }
1550
+
1551
+ /** Represents an Any. */
1552
+ class Any implements IAny {
1553
+
1554
+ /**
1555
+ * Constructs a new Any.
1556
+ * @param [properties] Properties to set
1557
+ */
1558
+ constructor(properties?: google.protobuf.IAny);
1559
+
1560
+ /** Any type_url. */
1561
+ public type_url: string;
1562
+
1563
+ /** Any value. */
1564
+ public value: Uint8Array;
1565
+
1566
+ /**
1567
+ * Creates a new Any instance using the specified properties.
1568
+ * @param [properties] Properties to set
1569
+ * @returns Any instance
1570
+ */
1571
+ public static create(properties?: google.protobuf.IAny): google.protobuf.Any;
1572
+
1573
+ /**
1574
+ * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
1575
+ * @param message Any message or plain object to encode
1576
+ * @param [writer] Writer to encode to
1577
+ * @returns Writer
1578
+ */
1579
+ public static encode(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
1580
+
1581
+ /**
1582
+ * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
1583
+ * @param message Any message or plain object to encode
1584
+ * @param [writer] Writer to encode to
1585
+ * @returns Writer
1586
+ */
1587
+ public static encodeDelimited(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
1588
+
1589
+ /**
1590
+ * Decodes an Any message from the specified reader or buffer.
1591
+ * @param reader Reader or buffer to decode from
1592
+ * @param [length] Message length if known beforehand
1593
+ * @returns Any
1594
+ * @throws {Error} If the payload is not a reader or valid buffer
1595
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1596
+ */
1597
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Any;
1598
+
1599
+ /**
1600
+ * Decodes an Any message from the specified reader or buffer, length delimited.
1601
+ * @param reader Reader or buffer to decode from
1602
+ * @returns Any
1603
+ * @throws {Error} If the payload is not a reader or valid buffer
1604
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1605
+ */
1606
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Any;
1607
+
1608
+ /**
1609
+ * Verifies an Any message.
1610
+ * @param message Plain object to verify
1611
+ * @returns `null` if valid, otherwise the reason why it is not
1612
+ */
1613
+ public static verify(message: { [k: string]: any }): (string|null);
1614
+
1615
+ /**
1616
+ * Creates an Any message from a plain object. Also converts values to their respective internal types.
1617
+ * @param object Plain object
1618
+ * @returns Any
1619
+ */
1620
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Any;
1621
+
1622
+ /**
1623
+ * Creates a plain object from an Any message. Also converts values to other types if specified.
1624
+ * @param message Any
1625
+ * @param [options] Conversion options
1626
+ * @returns Plain object
1627
+ */
1628
+ public static toObject(message: google.protobuf.Any, options?: $protobuf.IConversionOptions): { [k: string]: any };
1629
+
1630
+ /**
1631
+ * Converts this Any to JSON.
1632
+ * @returns JSON object
1633
+ */
1634
+ public toJSON(): { [k: string]: any };
1635
+
1636
+ /**
1637
+ * Gets the default type url for Any
1638
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1639
+ * @returns The default type url
1640
+ */
1641
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1642
+ }
1643
+ }
1644
+ }