@azure/web-pubsub-client-protobuf 1.0.0-beta.2 → 1.0.0-beta.3

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