speedkey 0.1.0

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.
@@ -0,0 +1,2654 @@
1
+ import * as $protobuf from "protobufjs";
2
+ import Long = require("long");
3
+ /** Namespace command_request. */
4
+ export namespace command_request {
5
+
6
+ /** SimpleRoutes enum. */
7
+ enum SimpleRoutes {
8
+ AllNodes = 0,
9
+ AllPrimaries = 1,
10
+ Random = 2
11
+ }
12
+
13
+ /** SlotTypes enum. */
14
+ enum SlotTypes {
15
+ Primary = 0,
16
+ Replica = 1
17
+ }
18
+
19
+ /** Properties of a SlotIdRoute. */
20
+ interface ISlotIdRoute {
21
+
22
+ /** SlotIdRoute slotType */
23
+ slotType?: (command_request.SlotTypes|null);
24
+
25
+ /** SlotIdRoute slotId */
26
+ slotId?: (number|null);
27
+ }
28
+
29
+ /** Represents a SlotIdRoute. */
30
+ class SlotIdRoute implements ISlotIdRoute {
31
+
32
+ /**
33
+ * Constructs a new SlotIdRoute.
34
+ * @param [properties] Properties to set
35
+ */
36
+ constructor(properties?: command_request.ISlotIdRoute);
37
+
38
+ /** SlotIdRoute slotType. */
39
+ public slotType: command_request.SlotTypes;
40
+
41
+ /** SlotIdRoute slotId. */
42
+ public slotId: number;
43
+
44
+ /**
45
+ * Creates a new SlotIdRoute instance using the specified properties.
46
+ * @param [properties] Properties to set
47
+ * @returns SlotIdRoute instance
48
+ */
49
+ public static create(properties?: command_request.ISlotIdRoute): command_request.SlotIdRoute;
50
+
51
+ /**
52
+ * Encodes the specified SlotIdRoute message. Does not implicitly {@link command_request.SlotIdRoute.verify|verify} messages.
53
+ * @param message SlotIdRoute message or plain object to encode
54
+ * @param [writer] Writer to encode to
55
+ * @returns Writer
56
+ */
57
+ public static encode(message: command_request.ISlotIdRoute, writer?: $protobuf.Writer): $protobuf.Writer;
58
+
59
+ /**
60
+ * Encodes the specified SlotIdRoute message, length delimited. Does not implicitly {@link command_request.SlotIdRoute.verify|verify} messages.
61
+ * @param message SlotIdRoute message or plain object to encode
62
+ * @param [writer] Writer to encode to
63
+ * @returns Writer
64
+ */
65
+ public static encodeDelimited(message: command_request.ISlotIdRoute, writer?: $protobuf.Writer): $protobuf.Writer;
66
+
67
+ /**
68
+ * Decodes a SlotIdRoute message from the specified reader or buffer.
69
+ * @param reader Reader or buffer to decode from
70
+ * @param [length] Message length if known beforehand
71
+ * @returns SlotIdRoute
72
+ * @throws {Error} If the payload is not a reader or valid buffer
73
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
74
+ */
75
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): command_request.SlotIdRoute;
76
+
77
+ /**
78
+ * Decodes a SlotIdRoute message from the specified reader or buffer, length delimited.
79
+ * @param reader Reader or buffer to decode from
80
+ * @returns SlotIdRoute
81
+ * @throws {Error} If the payload is not a reader or valid buffer
82
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
83
+ */
84
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): command_request.SlotIdRoute;
85
+
86
+ /**
87
+ * Gets the default type url for SlotIdRoute
88
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
89
+ * @returns The default type url
90
+ */
91
+ public static getTypeUrl(typeUrlPrefix?: string): string;
92
+ }
93
+
94
+ /** Properties of a SlotKeyRoute. */
95
+ interface ISlotKeyRoute {
96
+
97
+ /** SlotKeyRoute slotType */
98
+ slotType?: (command_request.SlotTypes|null);
99
+
100
+ /** SlotKeyRoute slotKey */
101
+ slotKey?: (string|null);
102
+ }
103
+
104
+ /** Represents a SlotKeyRoute. */
105
+ class SlotKeyRoute implements ISlotKeyRoute {
106
+
107
+ /**
108
+ * Constructs a new SlotKeyRoute.
109
+ * @param [properties] Properties to set
110
+ */
111
+ constructor(properties?: command_request.ISlotKeyRoute);
112
+
113
+ /** SlotKeyRoute slotType. */
114
+ public slotType: command_request.SlotTypes;
115
+
116
+ /** SlotKeyRoute slotKey. */
117
+ public slotKey: string;
118
+
119
+ /**
120
+ * Creates a new SlotKeyRoute instance using the specified properties.
121
+ * @param [properties] Properties to set
122
+ * @returns SlotKeyRoute instance
123
+ */
124
+ public static create(properties?: command_request.ISlotKeyRoute): command_request.SlotKeyRoute;
125
+
126
+ /**
127
+ * Encodes the specified SlotKeyRoute message. Does not implicitly {@link command_request.SlotKeyRoute.verify|verify} messages.
128
+ * @param message SlotKeyRoute message or plain object to encode
129
+ * @param [writer] Writer to encode to
130
+ * @returns Writer
131
+ */
132
+ public static encode(message: command_request.ISlotKeyRoute, writer?: $protobuf.Writer): $protobuf.Writer;
133
+
134
+ /**
135
+ * Encodes the specified SlotKeyRoute message, length delimited. Does not implicitly {@link command_request.SlotKeyRoute.verify|verify} messages.
136
+ * @param message SlotKeyRoute message or plain object to encode
137
+ * @param [writer] Writer to encode to
138
+ * @returns Writer
139
+ */
140
+ public static encodeDelimited(message: command_request.ISlotKeyRoute, writer?: $protobuf.Writer): $protobuf.Writer;
141
+
142
+ /**
143
+ * Decodes a SlotKeyRoute message from the specified reader or buffer.
144
+ * @param reader Reader or buffer to decode from
145
+ * @param [length] Message length if known beforehand
146
+ * @returns SlotKeyRoute
147
+ * @throws {Error} If the payload is not a reader or valid buffer
148
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
149
+ */
150
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): command_request.SlotKeyRoute;
151
+
152
+ /**
153
+ * Decodes a SlotKeyRoute message from the specified reader or buffer, length delimited.
154
+ * @param reader Reader or buffer to decode from
155
+ * @returns SlotKeyRoute
156
+ * @throws {Error} If the payload is not a reader or valid buffer
157
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
158
+ */
159
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): command_request.SlotKeyRoute;
160
+
161
+ /**
162
+ * Gets the default type url for SlotKeyRoute
163
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
164
+ * @returns The default type url
165
+ */
166
+ public static getTypeUrl(typeUrlPrefix?: string): string;
167
+ }
168
+
169
+ /** Properties of a ByAddressRoute. */
170
+ interface IByAddressRoute {
171
+
172
+ /** ByAddressRoute host */
173
+ host?: (string|null);
174
+
175
+ /** ByAddressRoute port */
176
+ port?: (number|null);
177
+ }
178
+
179
+ /** Represents a ByAddressRoute. */
180
+ class ByAddressRoute implements IByAddressRoute {
181
+
182
+ /**
183
+ * Constructs a new ByAddressRoute.
184
+ * @param [properties] Properties to set
185
+ */
186
+ constructor(properties?: command_request.IByAddressRoute);
187
+
188
+ /** ByAddressRoute host. */
189
+ public host: string;
190
+
191
+ /** ByAddressRoute port. */
192
+ public port: number;
193
+
194
+ /**
195
+ * Creates a new ByAddressRoute instance using the specified properties.
196
+ * @param [properties] Properties to set
197
+ * @returns ByAddressRoute instance
198
+ */
199
+ public static create(properties?: command_request.IByAddressRoute): command_request.ByAddressRoute;
200
+
201
+ /**
202
+ * Encodes the specified ByAddressRoute message. Does not implicitly {@link command_request.ByAddressRoute.verify|verify} messages.
203
+ * @param message ByAddressRoute message or plain object to encode
204
+ * @param [writer] Writer to encode to
205
+ * @returns Writer
206
+ */
207
+ public static encode(message: command_request.IByAddressRoute, writer?: $protobuf.Writer): $protobuf.Writer;
208
+
209
+ /**
210
+ * Encodes the specified ByAddressRoute message, length delimited. Does not implicitly {@link command_request.ByAddressRoute.verify|verify} messages.
211
+ * @param message ByAddressRoute message or plain object to encode
212
+ * @param [writer] Writer to encode to
213
+ * @returns Writer
214
+ */
215
+ public static encodeDelimited(message: command_request.IByAddressRoute, writer?: $protobuf.Writer): $protobuf.Writer;
216
+
217
+ /**
218
+ * Decodes a ByAddressRoute message from the specified reader or buffer.
219
+ * @param reader Reader or buffer to decode from
220
+ * @param [length] Message length if known beforehand
221
+ * @returns ByAddressRoute
222
+ * @throws {Error} If the payload is not a reader or valid buffer
223
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
224
+ */
225
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): command_request.ByAddressRoute;
226
+
227
+ /**
228
+ * Decodes a ByAddressRoute message from the specified reader or buffer, length delimited.
229
+ * @param reader Reader or buffer to decode from
230
+ * @returns ByAddressRoute
231
+ * @throws {Error} If the payload is not a reader or valid buffer
232
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
233
+ */
234
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): command_request.ByAddressRoute;
235
+
236
+ /**
237
+ * Gets the default type url for ByAddressRoute
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 a Routes. */
245
+ interface IRoutes {
246
+
247
+ /** Routes simpleRoutes */
248
+ simpleRoutes?: (command_request.SimpleRoutes|null);
249
+
250
+ /** Routes slotKeyRoute */
251
+ slotKeyRoute?: (command_request.ISlotKeyRoute|null);
252
+
253
+ /** Routes slotIdRoute */
254
+ slotIdRoute?: (command_request.ISlotIdRoute|null);
255
+
256
+ /** Routes byAddressRoute */
257
+ byAddressRoute?: (command_request.IByAddressRoute|null);
258
+ }
259
+
260
+ /** Represents a Routes. */
261
+ class Routes implements IRoutes {
262
+
263
+ /**
264
+ * Constructs a new Routes.
265
+ * @param [properties] Properties to set
266
+ */
267
+ constructor(properties?: command_request.IRoutes);
268
+
269
+ /** Routes simpleRoutes. */
270
+ public simpleRoutes?: (command_request.SimpleRoutes|null);
271
+
272
+ /** Routes slotKeyRoute. */
273
+ public slotKeyRoute?: (command_request.ISlotKeyRoute|null);
274
+
275
+ /** Routes slotIdRoute. */
276
+ public slotIdRoute?: (command_request.ISlotIdRoute|null);
277
+
278
+ /** Routes byAddressRoute. */
279
+ public byAddressRoute?: (command_request.IByAddressRoute|null);
280
+
281
+ /** Routes value. */
282
+ public value?: ("simpleRoutes"|"slotKeyRoute"|"slotIdRoute"|"byAddressRoute");
283
+
284
+ /**
285
+ * Creates a new Routes instance using the specified properties.
286
+ * @param [properties] Properties to set
287
+ * @returns Routes instance
288
+ */
289
+ public static create(properties?: command_request.IRoutes): command_request.Routes;
290
+
291
+ /**
292
+ * Encodes the specified Routes message. Does not implicitly {@link command_request.Routes.verify|verify} messages.
293
+ * @param message Routes message or plain object to encode
294
+ * @param [writer] Writer to encode to
295
+ * @returns Writer
296
+ */
297
+ public static encode(message: command_request.IRoutes, writer?: $protobuf.Writer): $protobuf.Writer;
298
+
299
+ /**
300
+ * Encodes the specified Routes message, length delimited. Does not implicitly {@link command_request.Routes.verify|verify} messages.
301
+ * @param message Routes message or plain object to encode
302
+ * @param [writer] Writer to encode to
303
+ * @returns Writer
304
+ */
305
+ public static encodeDelimited(message: command_request.IRoutes, writer?: $protobuf.Writer): $protobuf.Writer;
306
+
307
+ /**
308
+ * Decodes a Routes 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 Routes
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): command_request.Routes;
316
+
317
+ /**
318
+ * Decodes a Routes message from the specified reader or buffer, length delimited.
319
+ * @param reader Reader or buffer to decode from
320
+ * @returns Routes
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)): command_request.Routes;
325
+
326
+ /**
327
+ * Gets the default type url for Routes
328
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
329
+ * @returns The default type url
330
+ */
331
+ public static getTypeUrl(typeUrlPrefix?: string): string;
332
+ }
333
+
334
+ /** RequestType enum. */
335
+ enum RequestType {
336
+ InvalidRequest = 0,
337
+ CustomCommand = 1,
338
+ BitCount = 101,
339
+ BitField = 102,
340
+ BitFieldReadOnly = 103,
341
+ BitOp = 104,
342
+ BitPos = 105,
343
+ GetBit = 106,
344
+ SetBit = 107,
345
+ Asking = 201,
346
+ ClusterAddSlots = 202,
347
+ ClusterAddSlotsRange = 203,
348
+ ClusterBumpEpoch = 204,
349
+ ClusterCountFailureReports = 205,
350
+ ClusterCountKeysInSlot = 206,
351
+ ClusterDelSlots = 207,
352
+ ClusterDelSlotsRange = 208,
353
+ ClusterFailover = 209,
354
+ ClusterFlushSlots = 210,
355
+ ClusterForget = 211,
356
+ ClusterGetKeysInSlot = 212,
357
+ ClusterInfo = 213,
358
+ ClusterKeySlot = 214,
359
+ ClusterLinks = 215,
360
+ ClusterMeet = 216,
361
+ ClusterMyId = 217,
362
+ ClusterMyShardId = 218,
363
+ ClusterNodes = 219,
364
+ ClusterReplicas = 220,
365
+ ClusterReplicate = 221,
366
+ ClusterReset = 222,
367
+ ClusterSaveConfig = 223,
368
+ ClusterSetConfigEpoch = 224,
369
+ ClusterSetslot = 225,
370
+ ClusterShards = 226,
371
+ ClusterSlaves = 227,
372
+ ClusterSlots = 228,
373
+ ReadOnly = 229,
374
+ ReadWrite = 230,
375
+ Auth = 301,
376
+ ClientCaching = 302,
377
+ ClientGetName = 303,
378
+ ClientGetRedir = 304,
379
+ ClientId = 305,
380
+ ClientInfo = 306,
381
+ ClientKillSimple = 307,
382
+ ClientKill = 308,
383
+ ClientList = 309,
384
+ ClientNoEvict = 310,
385
+ ClientNoTouch = 311,
386
+ ClientPause = 312,
387
+ ClientReply = 313,
388
+ ClientSetInfo = 314,
389
+ ClientSetName = 315,
390
+ ClientTracking = 316,
391
+ ClientTrackingInfo = 317,
392
+ ClientUnblock = 318,
393
+ ClientUnpause = 319,
394
+ Echo = 320,
395
+ Hello = 321,
396
+ Ping = 322,
397
+ Quit = 323,
398
+ Reset = 324,
399
+ Select = 325,
400
+ Copy = 401,
401
+ Del = 402,
402
+ Dump = 403,
403
+ Exists = 404,
404
+ Expire = 405,
405
+ ExpireAt = 406,
406
+ ExpireTime = 407,
407
+ Keys = 408,
408
+ Migrate = 409,
409
+ Move = 410,
410
+ ObjectEncoding = 411,
411
+ ObjectFreq = 412,
412
+ ObjectIdleTime = 413,
413
+ ObjectRefCount = 414,
414
+ Persist = 415,
415
+ PExpire = 416,
416
+ PExpireAt = 417,
417
+ PExpireTime = 418,
418
+ PTTL = 419,
419
+ RandomKey = 420,
420
+ Rename = 421,
421
+ RenameNX = 422,
422
+ Restore = 423,
423
+ Scan = 424,
424
+ Sort = 425,
425
+ SortReadOnly = 426,
426
+ Touch = 427,
427
+ TTL = 428,
428
+ Type = 429,
429
+ Unlink = 430,
430
+ Wait = 431,
431
+ WaitAof = 432,
432
+ GeoAdd = 501,
433
+ GeoDist = 502,
434
+ GeoHash = 503,
435
+ GeoPos = 504,
436
+ GeoRadius = 505,
437
+ GeoRadiusReadOnly = 506,
438
+ GeoRadiusByMember = 507,
439
+ GeoRadiusByMemberReadOnly = 508,
440
+ GeoSearch = 509,
441
+ GeoSearchStore = 510,
442
+ HDel = 601,
443
+ HExists = 602,
444
+ HGet = 603,
445
+ HGetAll = 604,
446
+ HIncrBy = 605,
447
+ HIncrByFloat = 606,
448
+ HKeys = 607,
449
+ HLen = 608,
450
+ HMGet = 609,
451
+ HMSet = 610,
452
+ HRandField = 611,
453
+ HScan = 612,
454
+ HSet = 613,
455
+ HSetNX = 614,
456
+ HStrlen = 615,
457
+ HVals = 616,
458
+ HSetEx = 617,
459
+ HGetEx = 618,
460
+ HExpire = 619,
461
+ HExpireAt = 620,
462
+ HPExpire = 621,
463
+ HPExpireAt = 622,
464
+ HPersist = 623,
465
+ HTtl = 624,
466
+ HPTtl = 625,
467
+ HExpireTime = 626,
468
+ HPExpireTime = 627,
469
+ PfAdd = 701,
470
+ PfCount = 702,
471
+ PfMerge = 703,
472
+ BLMove = 801,
473
+ BLMPop = 802,
474
+ BLPop = 803,
475
+ BRPop = 804,
476
+ BRPopLPush = 805,
477
+ LIndex = 806,
478
+ LInsert = 807,
479
+ LLen = 808,
480
+ LMove = 809,
481
+ LMPop = 810,
482
+ LPop = 811,
483
+ LPos = 812,
484
+ LPush = 813,
485
+ LPushX = 814,
486
+ LRange = 815,
487
+ LRem = 816,
488
+ LSet = 817,
489
+ LTrim = 818,
490
+ RPop = 819,
491
+ RPopLPush = 820,
492
+ RPush = 821,
493
+ RPushX = 822,
494
+ PSubscribe = 901,
495
+ Publish = 902,
496
+ PubSubChannels = 903,
497
+ PubSubNumPat = 904,
498
+ PubSubNumSub = 905,
499
+ PubSubShardChannels = 906,
500
+ PubSubShardNumSub = 907,
501
+ PUnsubscribe = 908,
502
+ SPublish = 909,
503
+ SSubscribe = 910,
504
+ Subscribe = 911,
505
+ SUnsubscribe = 912,
506
+ Unsubscribe = 913,
507
+ SubscribeBlocking = 914,
508
+ UnsubscribeBlocking = 915,
509
+ PSubscribeBlocking = 916,
510
+ PUnsubscribeBlocking = 917,
511
+ SSubscribeBlocking = 918,
512
+ SUnsubscribeBlocking = 919,
513
+ GetSubscriptions = 920,
514
+ Eval = 1001,
515
+ EvalReadOnly = 1002,
516
+ EvalSha = 1003,
517
+ EvalShaReadOnly = 1004,
518
+ FCall = 1005,
519
+ FCallReadOnly = 1006,
520
+ FunctionDelete = 1007,
521
+ FunctionDump = 1008,
522
+ FunctionFlush = 1009,
523
+ FunctionKill = 1010,
524
+ FunctionList = 1011,
525
+ FunctionLoad = 1012,
526
+ FunctionRestore = 1013,
527
+ FunctionStats = 1014,
528
+ ScriptDebug = 1015,
529
+ ScriptExists = 1016,
530
+ ScriptFlush = 1017,
531
+ ScriptKill = 1018,
532
+ ScriptLoad = 1019,
533
+ ScriptShow = 1020,
534
+ AclCat = 1101,
535
+ AclDelUser = 1102,
536
+ AclDryRun = 1103,
537
+ AclGenPass = 1104,
538
+ AclGetUser = 1105,
539
+ AclList = 1106,
540
+ AclLoad = 1107,
541
+ AclLog = 1108,
542
+ AclSave = 1109,
543
+ AclSetUser = 1110,
544
+ AclUsers = 1111,
545
+ AclWhoami = 1112,
546
+ BgRewriteAof = 1113,
547
+ BgSave = 1114,
548
+ Command_ = 1115,
549
+ CommandCount = 1116,
550
+ CommandDocs = 1117,
551
+ CommandGetKeys = 1118,
552
+ CommandGetKeysAndFlags = 1119,
553
+ CommandInfo = 1120,
554
+ CommandList = 1121,
555
+ ConfigGet = 1122,
556
+ ConfigResetStat = 1123,
557
+ ConfigRewrite = 1124,
558
+ ConfigSet = 1125,
559
+ DBSize = 1126,
560
+ FailOver = 1127,
561
+ FlushAll = 1128,
562
+ FlushDB = 1129,
563
+ Info = 1130,
564
+ LastSave = 1131,
565
+ LatencyDoctor = 1132,
566
+ LatencyGraph = 1133,
567
+ LatencyHistogram = 1134,
568
+ LatencyHistory = 1135,
569
+ LatencyLatest = 1136,
570
+ LatencyReset = 1137,
571
+ Lolwut = 1138,
572
+ MemoryDoctor = 1139,
573
+ MemoryMallocStats = 1140,
574
+ MemoryPurge = 1141,
575
+ MemoryStats = 1142,
576
+ MemoryUsage = 1143,
577
+ ModuleList = 1144,
578
+ ModuleLoad = 1145,
579
+ ModuleLoadEx = 1146,
580
+ ModuleUnload = 1147,
581
+ Monitor = 1148,
582
+ PSync = 1149,
583
+ ReplConf = 1150,
584
+ ReplicaOf = 1151,
585
+ RestoreAsking = 1152,
586
+ Role = 1153,
587
+ Save = 1154,
588
+ ShutDown = 1155,
589
+ SlaveOf = 1156,
590
+ SlowLogGet = 1157,
591
+ SlowLogLen = 1158,
592
+ SlowLogReset = 1159,
593
+ SwapDb = 1160,
594
+ Sync = 1161,
595
+ Time = 1162,
596
+ SAdd = 1201,
597
+ SCard = 1202,
598
+ SDiff = 1203,
599
+ SDiffStore = 1204,
600
+ SInter = 1205,
601
+ SInterCard = 1206,
602
+ SInterStore = 1207,
603
+ SIsMember = 1208,
604
+ SMembers = 1209,
605
+ SMIsMember = 1210,
606
+ SMove = 1211,
607
+ SPop = 1212,
608
+ SRandMember = 1213,
609
+ SRem = 1214,
610
+ SScan = 1215,
611
+ SUnion = 1216,
612
+ SUnionStore = 1217,
613
+ BZMPop = 1301,
614
+ BZPopMax = 1302,
615
+ BZPopMin = 1303,
616
+ ZAdd = 1304,
617
+ ZCard = 1305,
618
+ ZCount = 1306,
619
+ ZDiff = 1307,
620
+ ZDiffStore = 1308,
621
+ ZIncrBy = 1309,
622
+ ZInter = 1310,
623
+ ZInterCard = 1311,
624
+ ZInterStore = 1312,
625
+ ZLexCount = 1313,
626
+ ZMPop = 1314,
627
+ ZMScore = 1315,
628
+ ZPopMax = 1316,
629
+ ZPopMin = 1317,
630
+ ZRandMember = 1318,
631
+ ZRange = 1319,
632
+ ZRangeByLex = 1320,
633
+ ZRangeByScore = 1321,
634
+ ZRangeStore = 1322,
635
+ ZRank = 1323,
636
+ ZRem = 1324,
637
+ ZRemRangeByLex = 1325,
638
+ ZRemRangeByRank = 1326,
639
+ ZRemRangeByScore = 1327,
640
+ ZRevRange = 1328,
641
+ ZRevRangeByLex = 1329,
642
+ ZRevRangeByScore = 1330,
643
+ ZRevRank = 1331,
644
+ ZScan = 1332,
645
+ ZScore = 1333,
646
+ ZUnion = 1334,
647
+ ZUnionStore = 1335,
648
+ XAck = 1401,
649
+ XAdd = 1402,
650
+ XAutoClaim = 1403,
651
+ XClaim = 1404,
652
+ XDel = 1405,
653
+ XGroupCreate = 1406,
654
+ XGroupCreateConsumer = 1407,
655
+ XGroupDelConsumer = 1408,
656
+ XGroupDestroy = 1409,
657
+ XGroupSetId = 1410,
658
+ XInfoConsumers = 1411,
659
+ XInfoGroups = 1412,
660
+ XInfoStream = 1413,
661
+ XLen = 1414,
662
+ XPending = 1415,
663
+ XRange = 1416,
664
+ XRead = 1417,
665
+ XReadGroup = 1418,
666
+ XRevRange = 1419,
667
+ XSetId = 1420,
668
+ XTrim = 1421,
669
+ Append = 1501,
670
+ Decr = 1502,
671
+ DecrBy = 1503,
672
+ Get = 1504,
673
+ GetDel = 1505,
674
+ GetEx = 1506,
675
+ GetRange = 1507,
676
+ GetSet = 1508,
677
+ Incr = 1509,
678
+ IncrBy = 1510,
679
+ IncrByFloat = 1511,
680
+ LCS = 1512,
681
+ MGet = 1513,
682
+ MSet = 1514,
683
+ MSetNX = 1515,
684
+ PSetEx = 1516,
685
+ Set = 1517,
686
+ SetEx = 1518,
687
+ SetNX = 1519,
688
+ SetRange = 1520,
689
+ Strlen = 1521,
690
+ Substr = 1522,
691
+ Discard = 1601,
692
+ Exec = 1602,
693
+ Multi = 1603,
694
+ UnWatch = 1604,
695
+ Watch = 1605,
696
+ JsonArrAppend = 2001,
697
+ JsonArrIndex = 2002,
698
+ JsonArrInsert = 2003,
699
+ JsonArrLen = 2004,
700
+ JsonArrPop = 2005,
701
+ JsonArrTrim = 2006,
702
+ JsonClear = 2007,
703
+ JsonDebug = 2008,
704
+ JsonDel = 2009,
705
+ JsonForget = 2010,
706
+ JsonGet = 2011,
707
+ JsonMGet = 2012,
708
+ JsonNumIncrBy = 2013,
709
+ JsonNumMultBy = 2014,
710
+ JsonObjKeys = 2015,
711
+ JsonObjLen = 2016,
712
+ JsonResp = 2017,
713
+ JsonSet = 2018,
714
+ JsonStrAppend = 2019,
715
+ JsonStrLen = 2020,
716
+ JsonToggle = 2021,
717
+ JsonType = 2022,
718
+ FtList = 2101,
719
+ FtAggregate = 2102,
720
+ FtAliasAdd = 2103,
721
+ FtAliasDel = 2104,
722
+ FtAliasList = 2105,
723
+ FtAliasUpdate = 2106,
724
+ FtCreate = 2107,
725
+ FtDropIndex = 2108,
726
+ FtExplain = 2109,
727
+ FtExplainCli = 2110,
728
+ FtInfo = 2111,
729
+ FtProfile = 2112,
730
+ FtSearch = 2113
731
+ }
732
+
733
+ /** Properties of a Command. */
734
+ interface ICommand {
735
+
736
+ /** Command requestType */
737
+ requestType?: (command_request.RequestType|null);
738
+
739
+ /** Command argsArray */
740
+ argsArray?: (command_request.Command.IArgsArray|null);
741
+
742
+ /** Command argsVecPointer */
743
+ argsVecPointer?: (number|Long|null);
744
+ }
745
+
746
+ /** Represents a Command. */
747
+ class Command implements ICommand {
748
+
749
+ /**
750
+ * Constructs a new Command.
751
+ * @param [properties] Properties to set
752
+ */
753
+ constructor(properties?: command_request.ICommand);
754
+
755
+ /** Command requestType. */
756
+ public requestType: command_request.RequestType;
757
+
758
+ /** Command argsArray. */
759
+ public argsArray?: (command_request.Command.IArgsArray|null);
760
+
761
+ /** Command argsVecPointer. */
762
+ public argsVecPointer?: (number|Long|null);
763
+
764
+ /** Command args. */
765
+ public args?: ("argsArray"|"argsVecPointer");
766
+
767
+ /**
768
+ * Creates a new Command instance using the specified properties.
769
+ * @param [properties] Properties to set
770
+ * @returns Command instance
771
+ */
772
+ public static create(properties?: command_request.ICommand): command_request.Command;
773
+
774
+ /**
775
+ * Encodes the specified Command message. Does not implicitly {@link command_request.Command.verify|verify} messages.
776
+ * @param message Command message or plain object to encode
777
+ * @param [writer] Writer to encode to
778
+ * @returns Writer
779
+ */
780
+ public static encode(message: command_request.ICommand, writer?: $protobuf.Writer): $protobuf.Writer;
781
+
782
+ /**
783
+ * Encodes the specified Command message, length delimited. Does not implicitly {@link command_request.Command.verify|verify} messages.
784
+ * @param message Command message or plain object to encode
785
+ * @param [writer] Writer to encode to
786
+ * @returns Writer
787
+ */
788
+ public static encodeDelimited(message: command_request.ICommand, writer?: $protobuf.Writer): $protobuf.Writer;
789
+
790
+ /**
791
+ * Decodes a Command message from the specified reader or buffer.
792
+ * @param reader Reader or buffer to decode from
793
+ * @param [length] Message length if known beforehand
794
+ * @returns Command
795
+ * @throws {Error} If the payload is not a reader or valid buffer
796
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
797
+ */
798
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): command_request.Command;
799
+
800
+ /**
801
+ * Decodes a Command message from the specified reader or buffer, length delimited.
802
+ * @param reader Reader or buffer to decode from
803
+ * @returns Command
804
+ * @throws {Error} If the payload is not a reader or valid buffer
805
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
806
+ */
807
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): command_request.Command;
808
+
809
+ /**
810
+ * Gets the default type url for Command
811
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
812
+ * @returns The default type url
813
+ */
814
+ public static getTypeUrl(typeUrlPrefix?: string): string;
815
+ }
816
+
817
+ namespace Command {
818
+
819
+ /** Properties of an ArgsArray. */
820
+ interface IArgsArray {
821
+
822
+ /** ArgsArray args */
823
+ args?: (Uint8Array[]|null);
824
+ }
825
+
826
+ /** Represents an ArgsArray. */
827
+ class ArgsArray implements IArgsArray {
828
+
829
+ /**
830
+ * Constructs a new ArgsArray.
831
+ * @param [properties] Properties to set
832
+ */
833
+ constructor(properties?: command_request.Command.IArgsArray);
834
+
835
+ /** ArgsArray args. */
836
+ public args: Uint8Array[];
837
+
838
+ /**
839
+ * Creates a new ArgsArray instance using the specified properties.
840
+ * @param [properties] Properties to set
841
+ * @returns ArgsArray instance
842
+ */
843
+ public static create(properties?: command_request.Command.IArgsArray): command_request.Command.ArgsArray;
844
+
845
+ /**
846
+ * Encodes the specified ArgsArray message. Does not implicitly {@link command_request.Command.ArgsArray.verify|verify} messages.
847
+ * @param message ArgsArray message or plain object to encode
848
+ * @param [writer] Writer to encode to
849
+ * @returns Writer
850
+ */
851
+ public static encode(message: command_request.Command.IArgsArray, writer?: $protobuf.Writer): $protobuf.Writer;
852
+
853
+ /**
854
+ * Encodes the specified ArgsArray message, length delimited. Does not implicitly {@link command_request.Command.ArgsArray.verify|verify} messages.
855
+ * @param message ArgsArray message or plain object to encode
856
+ * @param [writer] Writer to encode to
857
+ * @returns Writer
858
+ */
859
+ public static encodeDelimited(message: command_request.Command.IArgsArray, writer?: $protobuf.Writer): $protobuf.Writer;
860
+
861
+ /**
862
+ * Decodes an ArgsArray message from the specified reader or buffer.
863
+ * @param reader Reader or buffer to decode from
864
+ * @param [length] Message length if known beforehand
865
+ * @returns ArgsArray
866
+ * @throws {Error} If the payload is not a reader or valid buffer
867
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
868
+ */
869
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): command_request.Command.ArgsArray;
870
+
871
+ /**
872
+ * Decodes an ArgsArray message from the specified reader or buffer, length delimited.
873
+ * @param reader Reader or buffer to decode from
874
+ * @returns ArgsArray
875
+ * @throws {Error} If the payload is not a reader or valid buffer
876
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
877
+ */
878
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): command_request.Command.ArgsArray;
879
+
880
+ /**
881
+ * Gets the default type url for ArgsArray
882
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
883
+ * @returns The default type url
884
+ */
885
+ public static getTypeUrl(typeUrlPrefix?: string): string;
886
+ }
887
+ }
888
+
889
+ /** Properties of a ScriptInvocationPointers. */
890
+ interface IScriptInvocationPointers {
891
+
892
+ /** ScriptInvocationPointers hash */
893
+ hash?: (string|null);
894
+
895
+ /** ScriptInvocationPointers keysPointer */
896
+ keysPointer?: (number|Long|null);
897
+
898
+ /** ScriptInvocationPointers argsPointer */
899
+ argsPointer?: (number|Long|null);
900
+ }
901
+
902
+ /** Represents a ScriptInvocationPointers. */
903
+ class ScriptInvocationPointers implements IScriptInvocationPointers {
904
+
905
+ /**
906
+ * Constructs a new ScriptInvocationPointers.
907
+ * @param [properties] Properties to set
908
+ */
909
+ constructor(properties?: command_request.IScriptInvocationPointers);
910
+
911
+ /** ScriptInvocationPointers hash. */
912
+ public hash: string;
913
+
914
+ /** ScriptInvocationPointers keysPointer. */
915
+ public keysPointer?: (number|Long|null);
916
+
917
+ /** ScriptInvocationPointers argsPointer. */
918
+ public argsPointer?: (number|Long|null);
919
+
920
+ /**
921
+ * Creates a new ScriptInvocationPointers instance using the specified properties.
922
+ * @param [properties] Properties to set
923
+ * @returns ScriptInvocationPointers instance
924
+ */
925
+ public static create(properties?: command_request.IScriptInvocationPointers): command_request.ScriptInvocationPointers;
926
+
927
+ /**
928
+ * Encodes the specified ScriptInvocationPointers message. Does not implicitly {@link command_request.ScriptInvocationPointers.verify|verify} messages.
929
+ * @param message ScriptInvocationPointers message or plain object to encode
930
+ * @param [writer] Writer to encode to
931
+ * @returns Writer
932
+ */
933
+ public static encode(message: command_request.IScriptInvocationPointers, writer?: $protobuf.Writer): $protobuf.Writer;
934
+
935
+ /**
936
+ * Encodes the specified ScriptInvocationPointers message, length delimited. Does not implicitly {@link command_request.ScriptInvocationPointers.verify|verify} messages.
937
+ * @param message ScriptInvocationPointers message or plain object to encode
938
+ * @param [writer] Writer to encode to
939
+ * @returns Writer
940
+ */
941
+ public static encodeDelimited(message: command_request.IScriptInvocationPointers, writer?: $protobuf.Writer): $protobuf.Writer;
942
+
943
+ /**
944
+ * Decodes a ScriptInvocationPointers message from the specified reader or buffer.
945
+ * @param reader Reader or buffer to decode from
946
+ * @param [length] Message length if known beforehand
947
+ * @returns ScriptInvocationPointers
948
+ * @throws {Error} If the payload is not a reader or valid buffer
949
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
950
+ */
951
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): command_request.ScriptInvocationPointers;
952
+
953
+ /**
954
+ * Decodes a ScriptInvocationPointers message from the specified reader or buffer, length delimited.
955
+ * @param reader Reader or buffer to decode from
956
+ * @returns ScriptInvocationPointers
957
+ * @throws {Error} If the payload is not a reader or valid buffer
958
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
959
+ */
960
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): command_request.ScriptInvocationPointers;
961
+
962
+ /**
963
+ * Gets the default type url for ScriptInvocationPointers
964
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
965
+ * @returns The default type url
966
+ */
967
+ public static getTypeUrl(typeUrlPrefix?: string): string;
968
+ }
969
+
970
+ /** Properties of a ScriptInvocation. */
971
+ interface IScriptInvocation {
972
+
973
+ /** ScriptInvocation hash */
974
+ hash?: (string|null);
975
+
976
+ /** ScriptInvocation keys */
977
+ keys?: (Uint8Array[]|null);
978
+
979
+ /** ScriptInvocation args */
980
+ args?: (Uint8Array[]|null);
981
+ }
982
+
983
+ /** Represents a ScriptInvocation. */
984
+ class ScriptInvocation implements IScriptInvocation {
985
+
986
+ /**
987
+ * Constructs a new ScriptInvocation.
988
+ * @param [properties] Properties to set
989
+ */
990
+ constructor(properties?: command_request.IScriptInvocation);
991
+
992
+ /** ScriptInvocation hash. */
993
+ public hash: string;
994
+
995
+ /** ScriptInvocation keys. */
996
+ public keys: Uint8Array[];
997
+
998
+ /** ScriptInvocation args. */
999
+ public args: Uint8Array[];
1000
+
1001
+ /**
1002
+ * Creates a new ScriptInvocation instance using the specified properties.
1003
+ * @param [properties] Properties to set
1004
+ * @returns ScriptInvocation instance
1005
+ */
1006
+ public static create(properties?: command_request.IScriptInvocation): command_request.ScriptInvocation;
1007
+
1008
+ /**
1009
+ * Encodes the specified ScriptInvocation message. Does not implicitly {@link command_request.ScriptInvocation.verify|verify} messages.
1010
+ * @param message ScriptInvocation message or plain object to encode
1011
+ * @param [writer] Writer to encode to
1012
+ * @returns Writer
1013
+ */
1014
+ public static encode(message: command_request.IScriptInvocation, writer?: $protobuf.Writer): $protobuf.Writer;
1015
+
1016
+ /**
1017
+ * Encodes the specified ScriptInvocation message, length delimited. Does not implicitly {@link command_request.ScriptInvocation.verify|verify} messages.
1018
+ * @param message ScriptInvocation message or plain object to encode
1019
+ * @param [writer] Writer to encode to
1020
+ * @returns Writer
1021
+ */
1022
+ public static encodeDelimited(message: command_request.IScriptInvocation, writer?: $protobuf.Writer): $protobuf.Writer;
1023
+
1024
+ /**
1025
+ * Decodes a ScriptInvocation message from the specified reader or buffer.
1026
+ * @param reader Reader or buffer to decode from
1027
+ * @param [length] Message length if known beforehand
1028
+ * @returns ScriptInvocation
1029
+ * @throws {Error} If the payload is not a reader or valid buffer
1030
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1031
+ */
1032
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): command_request.ScriptInvocation;
1033
+
1034
+ /**
1035
+ * Decodes a ScriptInvocation message from the specified reader or buffer, length delimited.
1036
+ * @param reader Reader or buffer to decode from
1037
+ * @returns ScriptInvocation
1038
+ * @throws {Error} If the payload is not a reader or valid buffer
1039
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1040
+ */
1041
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): command_request.ScriptInvocation;
1042
+
1043
+ /**
1044
+ * Gets the default type url for ScriptInvocation
1045
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1046
+ * @returns The default type url
1047
+ */
1048
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1049
+ }
1050
+
1051
+ /** Properties of a Batch. */
1052
+ interface IBatch {
1053
+
1054
+ /** Batch isAtomic */
1055
+ isAtomic?: (boolean|null);
1056
+
1057
+ /** Batch commands */
1058
+ commands?: (command_request.ICommand[]|null);
1059
+
1060
+ /** Batch raiseOnError */
1061
+ raiseOnError?: (boolean|null);
1062
+
1063
+ /** Batch timeout */
1064
+ timeout?: (number|null);
1065
+
1066
+ /** Batch retryServerError */
1067
+ retryServerError?: (boolean|null);
1068
+
1069
+ /** Batch retryConnectionError */
1070
+ retryConnectionError?: (boolean|null);
1071
+ }
1072
+
1073
+ /** Represents a Batch. */
1074
+ class Batch implements IBatch {
1075
+
1076
+ /**
1077
+ * Constructs a new Batch.
1078
+ * @param [properties] Properties to set
1079
+ */
1080
+ constructor(properties?: command_request.IBatch);
1081
+
1082
+ /** Batch isAtomic. */
1083
+ public isAtomic: boolean;
1084
+
1085
+ /** Batch commands. */
1086
+ public commands: command_request.ICommand[];
1087
+
1088
+ /** Batch raiseOnError. */
1089
+ public raiseOnError?: (boolean|null);
1090
+
1091
+ /** Batch timeout. */
1092
+ public timeout?: (number|null);
1093
+
1094
+ /** Batch retryServerError. */
1095
+ public retryServerError?: (boolean|null);
1096
+
1097
+ /** Batch retryConnectionError. */
1098
+ public retryConnectionError?: (boolean|null);
1099
+
1100
+ /**
1101
+ * Creates a new Batch instance using the specified properties.
1102
+ * @param [properties] Properties to set
1103
+ * @returns Batch instance
1104
+ */
1105
+ public static create(properties?: command_request.IBatch): command_request.Batch;
1106
+
1107
+ /**
1108
+ * Encodes the specified Batch message. Does not implicitly {@link command_request.Batch.verify|verify} messages.
1109
+ * @param message Batch message or plain object to encode
1110
+ * @param [writer] Writer to encode to
1111
+ * @returns Writer
1112
+ */
1113
+ public static encode(message: command_request.IBatch, writer?: $protobuf.Writer): $protobuf.Writer;
1114
+
1115
+ /**
1116
+ * Encodes the specified Batch message, length delimited. Does not implicitly {@link command_request.Batch.verify|verify} messages.
1117
+ * @param message Batch message or plain object to encode
1118
+ * @param [writer] Writer to encode to
1119
+ * @returns Writer
1120
+ */
1121
+ public static encodeDelimited(message: command_request.IBatch, writer?: $protobuf.Writer): $protobuf.Writer;
1122
+
1123
+ /**
1124
+ * Decodes a Batch message from the specified reader or buffer.
1125
+ * @param reader Reader or buffer to decode from
1126
+ * @param [length] Message length if known beforehand
1127
+ * @returns Batch
1128
+ * @throws {Error} If the payload is not a reader or valid buffer
1129
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1130
+ */
1131
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): command_request.Batch;
1132
+
1133
+ /**
1134
+ * Decodes a Batch message from the specified reader or buffer, length delimited.
1135
+ * @param reader Reader or buffer to decode from
1136
+ * @returns Batch
1137
+ * @throws {Error} If the payload is not a reader or valid buffer
1138
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1139
+ */
1140
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): command_request.Batch;
1141
+
1142
+ /**
1143
+ * Gets the default type url for Batch
1144
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1145
+ * @returns The default type url
1146
+ */
1147
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1148
+ }
1149
+
1150
+ /** Properties of a ClusterScan. */
1151
+ interface IClusterScan {
1152
+
1153
+ /** ClusterScan cursor */
1154
+ cursor?: (string|null);
1155
+
1156
+ /** ClusterScan matchPattern */
1157
+ matchPattern?: (Uint8Array|null);
1158
+
1159
+ /** ClusterScan count */
1160
+ count?: (number|Long|null);
1161
+
1162
+ /** ClusterScan objectType */
1163
+ objectType?: (string|null);
1164
+
1165
+ /** ClusterScan allowNonCoveredSlots */
1166
+ allowNonCoveredSlots?: (boolean|null);
1167
+ }
1168
+
1169
+ /** Represents a ClusterScan. */
1170
+ class ClusterScan implements IClusterScan {
1171
+
1172
+ /**
1173
+ * Constructs a new ClusterScan.
1174
+ * @param [properties] Properties to set
1175
+ */
1176
+ constructor(properties?: command_request.IClusterScan);
1177
+
1178
+ /** ClusterScan cursor. */
1179
+ public cursor: string;
1180
+
1181
+ /** ClusterScan matchPattern. */
1182
+ public matchPattern?: (Uint8Array|null);
1183
+
1184
+ /** ClusterScan count. */
1185
+ public count?: (number|Long|null);
1186
+
1187
+ /** ClusterScan objectType. */
1188
+ public objectType?: (string|null);
1189
+
1190
+ /** ClusterScan allowNonCoveredSlots. */
1191
+ public allowNonCoveredSlots: boolean;
1192
+
1193
+ /**
1194
+ * Creates a new ClusterScan instance using the specified properties.
1195
+ * @param [properties] Properties to set
1196
+ * @returns ClusterScan instance
1197
+ */
1198
+ public static create(properties?: command_request.IClusterScan): command_request.ClusterScan;
1199
+
1200
+ /**
1201
+ * Encodes the specified ClusterScan message. Does not implicitly {@link command_request.ClusterScan.verify|verify} messages.
1202
+ * @param message ClusterScan message or plain object to encode
1203
+ * @param [writer] Writer to encode to
1204
+ * @returns Writer
1205
+ */
1206
+ public static encode(message: command_request.IClusterScan, writer?: $protobuf.Writer): $protobuf.Writer;
1207
+
1208
+ /**
1209
+ * Encodes the specified ClusterScan message, length delimited. Does not implicitly {@link command_request.ClusterScan.verify|verify} messages.
1210
+ * @param message ClusterScan message or plain object to encode
1211
+ * @param [writer] Writer to encode to
1212
+ * @returns Writer
1213
+ */
1214
+ public static encodeDelimited(message: command_request.IClusterScan, writer?: $protobuf.Writer): $protobuf.Writer;
1215
+
1216
+ /**
1217
+ * Decodes a ClusterScan message from the specified reader or buffer.
1218
+ * @param reader Reader or buffer to decode from
1219
+ * @param [length] Message length if known beforehand
1220
+ * @returns ClusterScan
1221
+ * @throws {Error} If the payload is not a reader or valid buffer
1222
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1223
+ */
1224
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): command_request.ClusterScan;
1225
+
1226
+ /**
1227
+ * Decodes a ClusterScan message from the specified reader or buffer, length delimited.
1228
+ * @param reader Reader or buffer to decode from
1229
+ * @returns ClusterScan
1230
+ * @throws {Error} If the payload is not a reader or valid buffer
1231
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1232
+ */
1233
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): command_request.ClusterScan;
1234
+
1235
+ /**
1236
+ * Gets the default type url for ClusterScan
1237
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1238
+ * @returns The default type url
1239
+ */
1240
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1241
+ }
1242
+
1243
+ /** Properties of an UpdateConnectionPassword. */
1244
+ interface IUpdateConnectionPassword {
1245
+
1246
+ /** UpdateConnectionPassword password */
1247
+ password?: (string|null);
1248
+
1249
+ /** UpdateConnectionPassword immediateAuth */
1250
+ immediateAuth?: (boolean|null);
1251
+ }
1252
+
1253
+ /** Represents an UpdateConnectionPassword. */
1254
+ class UpdateConnectionPassword implements IUpdateConnectionPassword {
1255
+
1256
+ /**
1257
+ * Constructs a new UpdateConnectionPassword.
1258
+ * @param [properties] Properties to set
1259
+ */
1260
+ constructor(properties?: command_request.IUpdateConnectionPassword);
1261
+
1262
+ /** UpdateConnectionPassword password. */
1263
+ public password?: (string|null);
1264
+
1265
+ /** UpdateConnectionPassword immediateAuth. */
1266
+ public immediateAuth: boolean;
1267
+
1268
+ /**
1269
+ * Creates a new UpdateConnectionPassword instance using the specified properties.
1270
+ * @param [properties] Properties to set
1271
+ * @returns UpdateConnectionPassword instance
1272
+ */
1273
+ public static create(properties?: command_request.IUpdateConnectionPassword): command_request.UpdateConnectionPassword;
1274
+
1275
+ /**
1276
+ * Encodes the specified UpdateConnectionPassword message. Does not implicitly {@link command_request.UpdateConnectionPassword.verify|verify} messages.
1277
+ * @param message UpdateConnectionPassword message or plain object to encode
1278
+ * @param [writer] Writer to encode to
1279
+ * @returns Writer
1280
+ */
1281
+ public static encode(message: command_request.IUpdateConnectionPassword, writer?: $protobuf.Writer): $protobuf.Writer;
1282
+
1283
+ /**
1284
+ * Encodes the specified UpdateConnectionPassword message, length delimited. Does not implicitly {@link command_request.UpdateConnectionPassword.verify|verify} messages.
1285
+ * @param message UpdateConnectionPassword message or plain object to encode
1286
+ * @param [writer] Writer to encode to
1287
+ * @returns Writer
1288
+ */
1289
+ public static encodeDelimited(message: command_request.IUpdateConnectionPassword, writer?: $protobuf.Writer): $protobuf.Writer;
1290
+
1291
+ /**
1292
+ * Decodes an UpdateConnectionPassword message from the specified reader or buffer.
1293
+ * @param reader Reader or buffer to decode from
1294
+ * @param [length] Message length if known beforehand
1295
+ * @returns UpdateConnectionPassword
1296
+ * @throws {Error} If the payload is not a reader or valid buffer
1297
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1298
+ */
1299
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): command_request.UpdateConnectionPassword;
1300
+
1301
+ /**
1302
+ * Decodes an UpdateConnectionPassword message from the specified reader or buffer, length delimited.
1303
+ * @param reader Reader or buffer to decode from
1304
+ * @returns UpdateConnectionPassword
1305
+ * @throws {Error} If the payload is not a reader or valid buffer
1306
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1307
+ */
1308
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): command_request.UpdateConnectionPassword;
1309
+
1310
+ /**
1311
+ * Gets the default type url for UpdateConnectionPassword
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 RefreshIamToken. */
1319
+ interface IRefreshIamToken {
1320
+ }
1321
+
1322
+ /** Represents a RefreshIamToken. */
1323
+ class RefreshIamToken implements IRefreshIamToken {
1324
+
1325
+ /**
1326
+ * Constructs a new RefreshIamToken.
1327
+ * @param [properties] Properties to set
1328
+ */
1329
+ constructor(properties?: command_request.IRefreshIamToken);
1330
+
1331
+ /**
1332
+ * Creates a new RefreshIamToken instance using the specified properties.
1333
+ * @param [properties] Properties to set
1334
+ * @returns RefreshIamToken instance
1335
+ */
1336
+ public static create(properties?: command_request.IRefreshIamToken): command_request.RefreshIamToken;
1337
+
1338
+ /**
1339
+ * Encodes the specified RefreshIamToken message. Does not implicitly {@link command_request.RefreshIamToken.verify|verify} messages.
1340
+ * @param message RefreshIamToken message or plain object to encode
1341
+ * @param [writer] Writer to encode to
1342
+ * @returns Writer
1343
+ */
1344
+ public static encode(message: command_request.IRefreshIamToken, writer?: $protobuf.Writer): $protobuf.Writer;
1345
+
1346
+ /**
1347
+ * Encodes the specified RefreshIamToken message, length delimited. Does not implicitly {@link command_request.RefreshIamToken.verify|verify} messages.
1348
+ * @param message RefreshIamToken message or plain object to encode
1349
+ * @param [writer] Writer to encode to
1350
+ * @returns Writer
1351
+ */
1352
+ public static encodeDelimited(message: command_request.IRefreshIamToken, writer?: $protobuf.Writer): $protobuf.Writer;
1353
+
1354
+ /**
1355
+ * Decodes a RefreshIamToken message from the specified reader or buffer.
1356
+ * @param reader Reader or buffer to decode from
1357
+ * @param [length] Message length if known beforehand
1358
+ * @returns RefreshIamToken
1359
+ * @throws {Error} If the payload is not a reader or valid buffer
1360
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1361
+ */
1362
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): command_request.RefreshIamToken;
1363
+
1364
+ /**
1365
+ * Decodes a RefreshIamToken message from the specified reader or buffer, length delimited.
1366
+ * @param reader Reader or buffer to decode from
1367
+ * @returns RefreshIamToken
1368
+ * @throws {Error} If the payload is not a reader or valid buffer
1369
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1370
+ */
1371
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): command_request.RefreshIamToken;
1372
+
1373
+ /**
1374
+ * Gets the default type url for RefreshIamToken
1375
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1376
+ * @returns The default type url
1377
+ */
1378
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1379
+ }
1380
+
1381
+ /** Properties of a CommandRequest. */
1382
+ interface ICommandRequest {
1383
+
1384
+ /** CommandRequest callbackIdx */
1385
+ callbackIdx?: (number|null);
1386
+
1387
+ /** CommandRequest singleCommand */
1388
+ singleCommand?: (command_request.ICommand|null);
1389
+
1390
+ /** CommandRequest batch */
1391
+ batch?: (command_request.IBatch|null);
1392
+
1393
+ /** CommandRequest scriptInvocation */
1394
+ scriptInvocation?: (command_request.IScriptInvocation|null);
1395
+
1396
+ /** CommandRequest scriptInvocationPointers */
1397
+ scriptInvocationPointers?: (command_request.IScriptInvocationPointers|null);
1398
+
1399
+ /** CommandRequest clusterScan */
1400
+ clusterScan?: (command_request.IClusterScan|null);
1401
+
1402
+ /** CommandRequest updateConnectionPassword */
1403
+ updateConnectionPassword?: (command_request.IUpdateConnectionPassword|null);
1404
+
1405
+ /** CommandRequest refreshIamToken */
1406
+ refreshIamToken?: (command_request.IRefreshIamToken|null);
1407
+
1408
+ /** CommandRequest route */
1409
+ route?: (command_request.IRoutes|null);
1410
+
1411
+ /** CommandRequest rootSpanPtr */
1412
+ rootSpanPtr?: (number|Long|null);
1413
+ }
1414
+
1415
+ /** Represents a CommandRequest. */
1416
+ class CommandRequest implements ICommandRequest {
1417
+
1418
+ /**
1419
+ * Constructs a new CommandRequest.
1420
+ * @param [properties] Properties to set
1421
+ */
1422
+ constructor(properties?: command_request.ICommandRequest);
1423
+
1424
+ /** CommandRequest callbackIdx. */
1425
+ public callbackIdx: number;
1426
+
1427
+ /** CommandRequest singleCommand. */
1428
+ public singleCommand?: (command_request.ICommand|null);
1429
+
1430
+ /** CommandRequest batch. */
1431
+ public batch?: (command_request.IBatch|null);
1432
+
1433
+ /** CommandRequest scriptInvocation. */
1434
+ public scriptInvocation?: (command_request.IScriptInvocation|null);
1435
+
1436
+ /** CommandRequest scriptInvocationPointers. */
1437
+ public scriptInvocationPointers?: (command_request.IScriptInvocationPointers|null);
1438
+
1439
+ /** CommandRequest clusterScan. */
1440
+ public clusterScan?: (command_request.IClusterScan|null);
1441
+
1442
+ /** CommandRequest updateConnectionPassword. */
1443
+ public updateConnectionPassword?: (command_request.IUpdateConnectionPassword|null);
1444
+
1445
+ /** CommandRequest refreshIamToken. */
1446
+ public refreshIamToken?: (command_request.IRefreshIamToken|null);
1447
+
1448
+ /** CommandRequest route. */
1449
+ public route?: (command_request.IRoutes|null);
1450
+
1451
+ /** CommandRequest rootSpanPtr. */
1452
+ public rootSpanPtr?: (number|Long|null);
1453
+
1454
+ /** CommandRequest command. */
1455
+ public command?: ("singleCommand"|"batch"|"scriptInvocation"|"scriptInvocationPointers"|"clusterScan"|"updateConnectionPassword"|"refreshIamToken");
1456
+
1457
+ /**
1458
+ * Creates a new CommandRequest instance using the specified properties.
1459
+ * @param [properties] Properties to set
1460
+ * @returns CommandRequest instance
1461
+ */
1462
+ public static create(properties?: command_request.ICommandRequest): command_request.CommandRequest;
1463
+
1464
+ /**
1465
+ * Encodes the specified CommandRequest message. Does not implicitly {@link command_request.CommandRequest.verify|verify} messages.
1466
+ * @param message CommandRequest message or plain object to encode
1467
+ * @param [writer] Writer to encode to
1468
+ * @returns Writer
1469
+ */
1470
+ public static encode(message: command_request.ICommandRequest, writer?: $protobuf.Writer): $protobuf.Writer;
1471
+
1472
+ /**
1473
+ * Encodes the specified CommandRequest message, length delimited. Does not implicitly {@link command_request.CommandRequest.verify|verify} messages.
1474
+ * @param message CommandRequest message or plain object to encode
1475
+ * @param [writer] Writer to encode to
1476
+ * @returns Writer
1477
+ */
1478
+ public static encodeDelimited(message: command_request.ICommandRequest, writer?: $protobuf.Writer): $protobuf.Writer;
1479
+
1480
+ /**
1481
+ * Decodes a CommandRequest 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 CommandRequest
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): command_request.CommandRequest;
1489
+
1490
+ /**
1491
+ * Decodes a CommandRequest message from the specified reader or buffer, length delimited.
1492
+ * @param reader Reader or buffer to decode from
1493
+ * @returns CommandRequest
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)): command_request.CommandRequest;
1498
+
1499
+ /**
1500
+ * Gets the default type url for CommandRequest
1501
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1502
+ * @returns The default type url
1503
+ */
1504
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1505
+ }
1506
+ }
1507
+
1508
+ /** Namespace connection_request. */
1509
+ export namespace connection_request {
1510
+
1511
+ /** Properties of a NodeAddress. */
1512
+ interface INodeAddress {
1513
+
1514
+ /** NodeAddress host */
1515
+ host?: (string|null);
1516
+
1517
+ /** NodeAddress port */
1518
+ port?: (number|null);
1519
+ }
1520
+
1521
+ /** Represents a NodeAddress. */
1522
+ class NodeAddress implements INodeAddress {
1523
+
1524
+ /**
1525
+ * Constructs a new NodeAddress.
1526
+ * @param [properties] Properties to set
1527
+ */
1528
+ constructor(properties?: connection_request.INodeAddress);
1529
+
1530
+ /** NodeAddress host. */
1531
+ public host: string;
1532
+
1533
+ /** NodeAddress port. */
1534
+ public port: number;
1535
+
1536
+ /**
1537
+ * Creates a new NodeAddress instance using the specified properties.
1538
+ * @param [properties] Properties to set
1539
+ * @returns NodeAddress instance
1540
+ */
1541
+ public static create(properties?: connection_request.INodeAddress): connection_request.NodeAddress;
1542
+
1543
+ /**
1544
+ * Encodes the specified NodeAddress message. Does not implicitly {@link connection_request.NodeAddress.verify|verify} messages.
1545
+ * @param message NodeAddress message or plain object to encode
1546
+ * @param [writer] Writer to encode to
1547
+ * @returns Writer
1548
+ */
1549
+ public static encode(message: connection_request.INodeAddress, writer?: $protobuf.Writer): $protobuf.Writer;
1550
+
1551
+ /**
1552
+ * Encodes the specified NodeAddress message, length delimited. Does not implicitly {@link connection_request.NodeAddress.verify|verify} messages.
1553
+ * @param message NodeAddress message or plain object to encode
1554
+ * @param [writer] Writer to encode to
1555
+ * @returns Writer
1556
+ */
1557
+ public static encodeDelimited(message: connection_request.INodeAddress, writer?: $protobuf.Writer): $protobuf.Writer;
1558
+
1559
+ /**
1560
+ * Decodes a NodeAddress message from the specified reader or buffer.
1561
+ * @param reader Reader or buffer to decode from
1562
+ * @param [length] Message length if known beforehand
1563
+ * @returns NodeAddress
1564
+ * @throws {Error} If the payload is not a reader or valid buffer
1565
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1566
+ */
1567
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): connection_request.NodeAddress;
1568
+
1569
+ /**
1570
+ * Decodes a NodeAddress message from the specified reader or buffer, length delimited.
1571
+ * @param reader Reader or buffer to decode from
1572
+ * @returns NodeAddress
1573
+ * @throws {Error} If the payload is not a reader or valid buffer
1574
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1575
+ */
1576
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): connection_request.NodeAddress;
1577
+
1578
+ /**
1579
+ * Gets the default type url for NodeAddress
1580
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1581
+ * @returns The default type url
1582
+ */
1583
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1584
+ }
1585
+
1586
+ /** ReadFrom enum. */
1587
+ enum ReadFrom {
1588
+ Primary = 0,
1589
+ PreferReplica = 1,
1590
+ LowestLatency = 2,
1591
+ AZAffinity = 3,
1592
+ AZAffinityReplicasAndPrimary = 4
1593
+ }
1594
+
1595
+ /** TlsMode enum. */
1596
+ enum TlsMode {
1597
+ NoTls = 0,
1598
+ SecureTls = 1,
1599
+ InsecureTls = 2
1600
+ }
1601
+
1602
+ /** Properties of an AuthenticationInfo. */
1603
+ interface IAuthenticationInfo {
1604
+
1605
+ /** AuthenticationInfo password */
1606
+ password?: (string|null);
1607
+
1608
+ /** AuthenticationInfo username */
1609
+ username?: (string|null);
1610
+
1611
+ /** AuthenticationInfo iamCredentials */
1612
+ iamCredentials?: (connection_request.IIamCredentials|null);
1613
+ }
1614
+
1615
+ /** Represents an AuthenticationInfo. */
1616
+ class AuthenticationInfo implements IAuthenticationInfo {
1617
+
1618
+ /**
1619
+ * Constructs a new AuthenticationInfo.
1620
+ * @param [properties] Properties to set
1621
+ */
1622
+ constructor(properties?: connection_request.IAuthenticationInfo);
1623
+
1624
+ /** AuthenticationInfo password. */
1625
+ public password: string;
1626
+
1627
+ /** AuthenticationInfo username. */
1628
+ public username: string;
1629
+
1630
+ /** AuthenticationInfo iamCredentials. */
1631
+ public iamCredentials?: (connection_request.IIamCredentials|null);
1632
+
1633
+ /**
1634
+ * Creates a new AuthenticationInfo instance using the specified properties.
1635
+ * @param [properties] Properties to set
1636
+ * @returns AuthenticationInfo instance
1637
+ */
1638
+ public static create(properties?: connection_request.IAuthenticationInfo): connection_request.AuthenticationInfo;
1639
+
1640
+ /**
1641
+ * Encodes the specified AuthenticationInfo message. Does not implicitly {@link connection_request.AuthenticationInfo.verify|verify} messages.
1642
+ * @param message AuthenticationInfo message or plain object to encode
1643
+ * @param [writer] Writer to encode to
1644
+ * @returns Writer
1645
+ */
1646
+ public static encode(message: connection_request.IAuthenticationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
1647
+
1648
+ /**
1649
+ * Encodes the specified AuthenticationInfo message, length delimited. Does not implicitly {@link connection_request.AuthenticationInfo.verify|verify} messages.
1650
+ * @param message AuthenticationInfo message or plain object to encode
1651
+ * @param [writer] Writer to encode to
1652
+ * @returns Writer
1653
+ */
1654
+ public static encodeDelimited(message: connection_request.IAuthenticationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
1655
+
1656
+ /**
1657
+ * Decodes an AuthenticationInfo message from the specified reader or buffer.
1658
+ * @param reader Reader or buffer to decode from
1659
+ * @param [length] Message length if known beforehand
1660
+ * @returns AuthenticationInfo
1661
+ * @throws {Error} If the payload is not a reader or valid buffer
1662
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1663
+ */
1664
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): connection_request.AuthenticationInfo;
1665
+
1666
+ /**
1667
+ * Decodes an AuthenticationInfo message from the specified reader or buffer, length delimited.
1668
+ * @param reader Reader or buffer to decode from
1669
+ * @returns AuthenticationInfo
1670
+ * @throws {Error} If the payload is not a reader or valid buffer
1671
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1672
+ */
1673
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): connection_request.AuthenticationInfo;
1674
+
1675
+ /**
1676
+ * Gets the default type url for AuthenticationInfo
1677
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1678
+ * @returns The default type url
1679
+ */
1680
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1681
+ }
1682
+
1683
+ /** ServiceType enum. */
1684
+ enum ServiceType {
1685
+ ELASTICACHE = 0,
1686
+ MEMORYDB = 1
1687
+ }
1688
+
1689
+ /** Properties of an IamCredentials. */
1690
+ interface IIamCredentials {
1691
+
1692
+ /** IamCredentials clusterName */
1693
+ clusterName?: (string|null);
1694
+
1695
+ /** IamCredentials region */
1696
+ region?: (string|null);
1697
+
1698
+ /** IamCredentials serviceType */
1699
+ serviceType?: (connection_request.ServiceType|null);
1700
+
1701
+ /** IamCredentials refreshIntervalSeconds */
1702
+ refreshIntervalSeconds?: (number|null);
1703
+ }
1704
+
1705
+ /** Represents an IamCredentials. */
1706
+ class IamCredentials implements IIamCredentials {
1707
+
1708
+ /**
1709
+ * Constructs a new IamCredentials.
1710
+ * @param [properties] Properties to set
1711
+ */
1712
+ constructor(properties?: connection_request.IIamCredentials);
1713
+
1714
+ /** IamCredentials clusterName. */
1715
+ public clusterName: string;
1716
+
1717
+ /** IamCredentials region. */
1718
+ public region: string;
1719
+
1720
+ /** IamCredentials serviceType. */
1721
+ public serviceType: connection_request.ServiceType;
1722
+
1723
+ /** IamCredentials refreshIntervalSeconds. */
1724
+ public refreshIntervalSeconds?: (number|null);
1725
+
1726
+ /**
1727
+ * Creates a new IamCredentials instance using the specified properties.
1728
+ * @param [properties] Properties to set
1729
+ * @returns IamCredentials instance
1730
+ */
1731
+ public static create(properties?: connection_request.IIamCredentials): connection_request.IamCredentials;
1732
+
1733
+ /**
1734
+ * Encodes the specified IamCredentials message. Does not implicitly {@link connection_request.IamCredentials.verify|verify} messages.
1735
+ * @param message IamCredentials message or plain object to encode
1736
+ * @param [writer] Writer to encode to
1737
+ * @returns Writer
1738
+ */
1739
+ public static encode(message: connection_request.IIamCredentials, writer?: $protobuf.Writer): $protobuf.Writer;
1740
+
1741
+ /**
1742
+ * Encodes the specified IamCredentials message, length delimited. Does not implicitly {@link connection_request.IamCredentials.verify|verify} messages.
1743
+ * @param message IamCredentials message or plain object to encode
1744
+ * @param [writer] Writer to encode to
1745
+ * @returns Writer
1746
+ */
1747
+ public static encodeDelimited(message: connection_request.IIamCredentials, writer?: $protobuf.Writer): $protobuf.Writer;
1748
+
1749
+ /**
1750
+ * Decodes an IamCredentials message from the specified reader or buffer.
1751
+ * @param reader Reader or buffer to decode from
1752
+ * @param [length] Message length if known beforehand
1753
+ * @returns IamCredentials
1754
+ * @throws {Error} If the payload is not a reader or valid buffer
1755
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1756
+ */
1757
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): connection_request.IamCredentials;
1758
+
1759
+ /**
1760
+ * Decodes an IamCredentials message from the specified reader or buffer, length delimited.
1761
+ * @param reader Reader or buffer to decode from
1762
+ * @returns IamCredentials
1763
+ * @throws {Error} If the payload is not a reader or valid buffer
1764
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1765
+ */
1766
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): connection_request.IamCredentials;
1767
+
1768
+ /**
1769
+ * Gets the default type url for IamCredentials
1770
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1771
+ * @returns The default type url
1772
+ */
1773
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1774
+ }
1775
+
1776
+ /** ProtocolVersion enum. */
1777
+ enum ProtocolVersion {
1778
+ RESP3 = 0,
1779
+ RESP2 = 1
1780
+ }
1781
+
1782
+ /** Properties of a PeriodicChecksManualInterval. */
1783
+ interface IPeriodicChecksManualInterval {
1784
+
1785
+ /** PeriodicChecksManualInterval durationInSec */
1786
+ durationInSec?: (number|null);
1787
+ }
1788
+
1789
+ /** Represents a PeriodicChecksManualInterval. */
1790
+ class PeriodicChecksManualInterval implements IPeriodicChecksManualInterval {
1791
+
1792
+ /**
1793
+ * Constructs a new PeriodicChecksManualInterval.
1794
+ * @param [properties] Properties to set
1795
+ */
1796
+ constructor(properties?: connection_request.IPeriodicChecksManualInterval);
1797
+
1798
+ /** PeriodicChecksManualInterval durationInSec. */
1799
+ public durationInSec: number;
1800
+
1801
+ /**
1802
+ * Creates a new PeriodicChecksManualInterval instance using the specified properties.
1803
+ * @param [properties] Properties to set
1804
+ * @returns PeriodicChecksManualInterval instance
1805
+ */
1806
+ public static create(properties?: connection_request.IPeriodicChecksManualInterval): connection_request.PeriodicChecksManualInterval;
1807
+
1808
+ /**
1809
+ * Encodes the specified PeriodicChecksManualInterval message. Does not implicitly {@link connection_request.PeriodicChecksManualInterval.verify|verify} messages.
1810
+ * @param message PeriodicChecksManualInterval message or plain object to encode
1811
+ * @param [writer] Writer to encode to
1812
+ * @returns Writer
1813
+ */
1814
+ public static encode(message: connection_request.IPeriodicChecksManualInterval, writer?: $protobuf.Writer): $protobuf.Writer;
1815
+
1816
+ /**
1817
+ * Encodes the specified PeriodicChecksManualInterval message, length delimited. Does not implicitly {@link connection_request.PeriodicChecksManualInterval.verify|verify} messages.
1818
+ * @param message PeriodicChecksManualInterval message or plain object to encode
1819
+ * @param [writer] Writer to encode to
1820
+ * @returns Writer
1821
+ */
1822
+ public static encodeDelimited(message: connection_request.IPeriodicChecksManualInterval, writer?: $protobuf.Writer): $protobuf.Writer;
1823
+
1824
+ /**
1825
+ * Decodes a PeriodicChecksManualInterval message from the specified reader or buffer.
1826
+ * @param reader Reader or buffer to decode from
1827
+ * @param [length] Message length if known beforehand
1828
+ * @returns PeriodicChecksManualInterval
1829
+ * @throws {Error} If the payload is not a reader or valid buffer
1830
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1831
+ */
1832
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): connection_request.PeriodicChecksManualInterval;
1833
+
1834
+ /**
1835
+ * Decodes a PeriodicChecksManualInterval message from the specified reader or buffer, length delimited.
1836
+ * @param reader Reader or buffer to decode from
1837
+ * @returns PeriodicChecksManualInterval
1838
+ * @throws {Error} If the payload is not a reader or valid buffer
1839
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1840
+ */
1841
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): connection_request.PeriodicChecksManualInterval;
1842
+
1843
+ /**
1844
+ * Gets the default type url for PeriodicChecksManualInterval
1845
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1846
+ * @returns The default type url
1847
+ */
1848
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1849
+ }
1850
+
1851
+ /** Properties of a PeriodicChecksDisabled. */
1852
+ interface IPeriodicChecksDisabled {
1853
+ }
1854
+
1855
+ /** Represents a PeriodicChecksDisabled. */
1856
+ class PeriodicChecksDisabled implements IPeriodicChecksDisabled {
1857
+
1858
+ /**
1859
+ * Constructs a new PeriodicChecksDisabled.
1860
+ * @param [properties] Properties to set
1861
+ */
1862
+ constructor(properties?: connection_request.IPeriodicChecksDisabled);
1863
+
1864
+ /**
1865
+ * Creates a new PeriodicChecksDisabled instance using the specified properties.
1866
+ * @param [properties] Properties to set
1867
+ * @returns PeriodicChecksDisabled instance
1868
+ */
1869
+ public static create(properties?: connection_request.IPeriodicChecksDisabled): connection_request.PeriodicChecksDisabled;
1870
+
1871
+ /**
1872
+ * Encodes the specified PeriodicChecksDisabled message. Does not implicitly {@link connection_request.PeriodicChecksDisabled.verify|verify} messages.
1873
+ * @param message PeriodicChecksDisabled message or plain object to encode
1874
+ * @param [writer] Writer to encode to
1875
+ * @returns Writer
1876
+ */
1877
+ public static encode(message: connection_request.IPeriodicChecksDisabled, writer?: $protobuf.Writer): $protobuf.Writer;
1878
+
1879
+ /**
1880
+ * Encodes the specified PeriodicChecksDisabled message, length delimited. Does not implicitly {@link connection_request.PeriodicChecksDisabled.verify|verify} messages.
1881
+ * @param message PeriodicChecksDisabled message or plain object to encode
1882
+ * @param [writer] Writer to encode to
1883
+ * @returns Writer
1884
+ */
1885
+ public static encodeDelimited(message: connection_request.IPeriodicChecksDisabled, writer?: $protobuf.Writer): $protobuf.Writer;
1886
+
1887
+ /**
1888
+ * Decodes a PeriodicChecksDisabled message from the specified reader or buffer.
1889
+ * @param reader Reader or buffer to decode from
1890
+ * @param [length] Message length if known beforehand
1891
+ * @returns PeriodicChecksDisabled
1892
+ * @throws {Error} If the payload is not a reader or valid buffer
1893
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1894
+ */
1895
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): connection_request.PeriodicChecksDisabled;
1896
+
1897
+ /**
1898
+ * Decodes a PeriodicChecksDisabled message from the specified reader or buffer, length delimited.
1899
+ * @param reader Reader or buffer to decode from
1900
+ * @returns PeriodicChecksDisabled
1901
+ * @throws {Error} If the payload is not a reader or valid buffer
1902
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1903
+ */
1904
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): connection_request.PeriodicChecksDisabled;
1905
+
1906
+ /**
1907
+ * Gets the default type url for PeriodicChecksDisabled
1908
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1909
+ * @returns The default type url
1910
+ */
1911
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1912
+ }
1913
+
1914
+ /** PubSubChannelType enum. */
1915
+ enum PubSubChannelType {
1916
+ Exact = 0,
1917
+ Pattern = 1,
1918
+ Sharded = 2
1919
+ }
1920
+
1921
+ /** CompressionBackend enum. */
1922
+ enum CompressionBackend {
1923
+ ZSTD = 0,
1924
+ LZ4 = 1
1925
+ }
1926
+
1927
+ /** Properties of a CompressionConfig. */
1928
+ interface ICompressionConfig {
1929
+
1930
+ /** CompressionConfig enabled */
1931
+ enabled?: (boolean|null);
1932
+
1933
+ /** CompressionConfig backend */
1934
+ backend?: (connection_request.CompressionBackend|null);
1935
+
1936
+ /** CompressionConfig compressionLevel */
1937
+ compressionLevel?: (number|null);
1938
+
1939
+ /** CompressionConfig minCompressionSize */
1940
+ minCompressionSize?: (number|null);
1941
+ }
1942
+
1943
+ /** Represents a CompressionConfig. */
1944
+ class CompressionConfig implements ICompressionConfig {
1945
+
1946
+ /**
1947
+ * Constructs a new CompressionConfig.
1948
+ * @param [properties] Properties to set
1949
+ */
1950
+ constructor(properties?: connection_request.ICompressionConfig);
1951
+
1952
+ /** CompressionConfig enabled. */
1953
+ public enabled: boolean;
1954
+
1955
+ /** CompressionConfig backend. */
1956
+ public backend: connection_request.CompressionBackend;
1957
+
1958
+ /** CompressionConfig compressionLevel. */
1959
+ public compressionLevel?: (number|null);
1960
+
1961
+ /** CompressionConfig minCompressionSize. */
1962
+ public minCompressionSize: number;
1963
+
1964
+ /**
1965
+ * Creates a new CompressionConfig instance using the specified properties.
1966
+ * @param [properties] Properties to set
1967
+ * @returns CompressionConfig instance
1968
+ */
1969
+ public static create(properties?: connection_request.ICompressionConfig): connection_request.CompressionConfig;
1970
+
1971
+ /**
1972
+ * Encodes the specified CompressionConfig message. Does not implicitly {@link connection_request.CompressionConfig.verify|verify} messages.
1973
+ * @param message CompressionConfig message or plain object to encode
1974
+ * @param [writer] Writer to encode to
1975
+ * @returns Writer
1976
+ */
1977
+ public static encode(message: connection_request.ICompressionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
1978
+
1979
+ /**
1980
+ * Encodes the specified CompressionConfig message, length delimited. Does not implicitly {@link connection_request.CompressionConfig.verify|verify} messages.
1981
+ * @param message CompressionConfig message or plain object to encode
1982
+ * @param [writer] Writer to encode to
1983
+ * @returns Writer
1984
+ */
1985
+ public static encodeDelimited(message: connection_request.ICompressionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
1986
+
1987
+ /**
1988
+ * Decodes a CompressionConfig message from the specified reader or buffer.
1989
+ * @param reader Reader or buffer to decode from
1990
+ * @param [length] Message length if known beforehand
1991
+ * @returns CompressionConfig
1992
+ * @throws {Error} If the payload is not a reader or valid buffer
1993
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1994
+ */
1995
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): connection_request.CompressionConfig;
1996
+
1997
+ /**
1998
+ * Decodes a CompressionConfig message from the specified reader or buffer, length delimited.
1999
+ * @param reader Reader or buffer to decode from
2000
+ * @returns CompressionConfig
2001
+ * @throws {Error} If the payload is not a reader or valid buffer
2002
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2003
+ */
2004
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): connection_request.CompressionConfig;
2005
+
2006
+ /**
2007
+ * Gets the default type url for CompressionConfig
2008
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2009
+ * @returns The default type url
2010
+ */
2011
+ public static getTypeUrl(typeUrlPrefix?: string): string;
2012
+ }
2013
+
2014
+ /** Properties of a PubSubChannelsOrPatterns. */
2015
+ interface IPubSubChannelsOrPatterns {
2016
+
2017
+ /** PubSubChannelsOrPatterns channelsOrPatterns */
2018
+ channelsOrPatterns?: (Uint8Array[]|null);
2019
+ }
2020
+
2021
+ /** Represents a PubSubChannelsOrPatterns. */
2022
+ class PubSubChannelsOrPatterns implements IPubSubChannelsOrPatterns {
2023
+
2024
+ /**
2025
+ * Constructs a new PubSubChannelsOrPatterns.
2026
+ * @param [properties] Properties to set
2027
+ */
2028
+ constructor(properties?: connection_request.IPubSubChannelsOrPatterns);
2029
+
2030
+ /** PubSubChannelsOrPatterns channelsOrPatterns. */
2031
+ public channelsOrPatterns: Uint8Array[];
2032
+
2033
+ /**
2034
+ * Creates a new PubSubChannelsOrPatterns instance using the specified properties.
2035
+ * @param [properties] Properties to set
2036
+ * @returns PubSubChannelsOrPatterns instance
2037
+ */
2038
+ public static create(properties?: connection_request.IPubSubChannelsOrPatterns): connection_request.PubSubChannelsOrPatterns;
2039
+
2040
+ /**
2041
+ * Encodes the specified PubSubChannelsOrPatterns message. Does not implicitly {@link connection_request.PubSubChannelsOrPatterns.verify|verify} messages.
2042
+ * @param message PubSubChannelsOrPatterns message or plain object to encode
2043
+ * @param [writer] Writer to encode to
2044
+ * @returns Writer
2045
+ */
2046
+ public static encode(message: connection_request.IPubSubChannelsOrPatterns, writer?: $protobuf.Writer): $protobuf.Writer;
2047
+
2048
+ /**
2049
+ * Encodes the specified PubSubChannelsOrPatterns message, length delimited. Does not implicitly {@link connection_request.PubSubChannelsOrPatterns.verify|verify} messages.
2050
+ * @param message PubSubChannelsOrPatterns message or plain object to encode
2051
+ * @param [writer] Writer to encode to
2052
+ * @returns Writer
2053
+ */
2054
+ public static encodeDelimited(message: connection_request.IPubSubChannelsOrPatterns, writer?: $protobuf.Writer): $protobuf.Writer;
2055
+
2056
+ /**
2057
+ * Decodes a PubSubChannelsOrPatterns message from the specified reader or buffer.
2058
+ * @param reader Reader or buffer to decode from
2059
+ * @param [length] Message length if known beforehand
2060
+ * @returns PubSubChannelsOrPatterns
2061
+ * @throws {Error} If the payload is not a reader or valid buffer
2062
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2063
+ */
2064
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): connection_request.PubSubChannelsOrPatterns;
2065
+
2066
+ /**
2067
+ * Decodes a PubSubChannelsOrPatterns message from the specified reader or buffer, length delimited.
2068
+ * @param reader Reader or buffer to decode from
2069
+ * @returns PubSubChannelsOrPatterns
2070
+ * @throws {Error} If the payload is not a reader or valid buffer
2071
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2072
+ */
2073
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): connection_request.PubSubChannelsOrPatterns;
2074
+
2075
+ /**
2076
+ * Gets the default type url for PubSubChannelsOrPatterns
2077
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2078
+ * @returns The default type url
2079
+ */
2080
+ public static getTypeUrl(typeUrlPrefix?: string): string;
2081
+ }
2082
+
2083
+ /** Properties of a PubSubSubscriptions. */
2084
+ interface IPubSubSubscriptions {
2085
+
2086
+ /** PubSubSubscriptions channelsOrPatternsByType */
2087
+ channelsOrPatternsByType?: ({ [k: string]: connection_request.IPubSubChannelsOrPatterns }|null);
2088
+ }
2089
+
2090
+ /** Represents a PubSubSubscriptions. */
2091
+ class PubSubSubscriptions implements IPubSubSubscriptions {
2092
+
2093
+ /**
2094
+ * Constructs a new PubSubSubscriptions.
2095
+ * @param [properties] Properties to set
2096
+ */
2097
+ constructor(properties?: connection_request.IPubSubSubscriptions);
2098
+
2099
+ /** PubSubSubscriptions channelsOrPatternsByType. */
2100
+ public channelsOrPatternsByType: { [k: string]: connection_request.IPubSubChannelsOrPatterns };
2101
+
2102
+ /**
2103
+ * Creates a new PubSubSubscriptions instance using the specified properties.
2104
+ * @param [properties] Properties to set
2105
+ * @returns PubSubSubscriptions instance
2106
+ */
2107
+ public static create(properties?: connection_request.IPubSubSubscriptions): connection_request.PubSubSubscriptions;
2108
+
2109
+ /**
2110
+ * Encodes the specified PubSubSubscriptions message. Does not implicitly {@link connection_request.PubSubSubscriptions.verify|verify} messages.
2111
+ * @param message PubSubSubscriptions message or plain object to encode
2112
+ * @param [writer] Writer to encode to
2113
+ * @returns Writer
2114
+ */
2115
+ public static encode(message: connection_request.IPubSubSubscriptions, writer?: $protobuf.Writer): $protobuf.Writer;
2116
+
2117
+ /**
2118
+ * Encodes the specified PubSubSubscriptions message, length delimited. Does not implicitly {@link connection_request.PubSubSubscriptions.verify|verify} messages.
2119
+ * @param message PubSubSubscriptions message or plain object to encode
2120
+ * @param [writer] Writer to encode to
2121
+ * @returns Writer
2122
+ */
2123
+ public static encodeDelimited(message: connection_request.IPubSubSubscriptions, writer?: $protobuf.Writer): $protobuf.Writer;
2124
+
2125
+ /**
2126
+ * Decodes a PubSubSubscriptions message from the specified reader or buffer.
2127
+ * @param reader Reader or buffer to decode from
2128
+ * @param [length] Message length if known beforehand
2129
+ * @returns PubSubSubscriptions
2130
+ * @throws {Error} If the payload is not a reader or valid buffer
2131
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2132
+ */
2133
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): connection_request.PubSubSubscriptions;
2134
+
2135
+ /**
2136
+ * Decodes a PubSubSubscriptions message from the specified reader or buffer, length delimited.
2137
+ * @param reader Reader or buffer to decode from
2138
+ * @returns PubSubSubscriptions
2139
+ * @throws {Error} If the payload is not a reader or valid buffer
2140
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2141
+ */
2142
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): connection_request.PubSubSubscriptions;
2143
+
2144
+ /**
2145
+ * Gets the default type url for PubSubSubscriptions
2146
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2147
+ * @returns The default type url
2148
+ */
2149
+ public static getTypeUrl(typeUrlPrefix?: string): string;
2150
+ }
2151
+
2152
+ /** Properties of a ConnectionRequest. */
2153
+ interface IConnectionRequest {
2154
+
2155
+ /** ConnectionRequest addresses */
2156
+ addresses?: (connection_request.INodeAddress[]|null);
2157
+
2158
+ /** ConnectionRequest tlsMode */
2159
+ tlsMode?: (connection_request.TlsMode|null);
2160
+
2161
+ /** ConnectionRequest clusterModeEnabled */
2162
+ clusterModeEnabled?: (boolean|null);
2163
+
2164
+ /** ConnectionRequest requestTimeout */
2165
+ requestTimeout?: (number|null);
2166
+
2167
+ /** ConnectionRequest readFrom */
2168
+ readFrom?: (connection_request.ReadFrom|null);
2169
+
2170
+ /** ConnectionRequest connectionRetryStrategy */
2171
+ connectionRetryStrategy?: (connection_request.IConnectionRetryStrategy|null);
2172
+
2173
+ /** ConnectionRequest authenticationInfo */
2174
+ authenticationInfo?: (connection_request.IAuthenticationInfo|null);
2175
+
2176
+ /** ConnectionRequest databaseId */
2177
+ databaseId?: (number|null);
2178
+
2179
+ /** ConnectionRequest protocol */
2180
+ protocol?: (connection_request.ProtocolVersion|null);
2181
+
2182
+ /** ConnectionRequest clientName */
2183
+ clientName?: (string|null);
2184
+
2185
+ /** ConnectionRequest periodicChecksManualInterval */
2186
+ periodicChecksManualInterval?: (connection_request.IPeriodicChecksManualInterval|null);
2187
+
2188
+ /** ConnectionRequest periodicChecksDisabled */
2189
+ periodicChecksDisabled?: (connection_request.IPeriodicChecksDisabled|null);
2190
+
2191
+ /** ConnectionRequest pubsubSubscriptions */
2192
+ pubsubSubscriptions?: (connection_request.IPubSubSubscriptions|null);
2193
+
2194
+ /** ConnectionRequest inflightRequestsLimit */
2195
+ inflightRequestsLimit?: (number|null);
2196
+
2197
+ /** ConnectionRequest clientAz */
2198
+ clientAz?: (string|null);
2199
+
2200
+ /** ConnectionRequest connectionTimeout */
2201
+ connectionTimeout?: (number|null);
2202
+
2203
+ /** ConnectionRequest lazyConnect */
2204
+ lazyConnect?: (boolean|null);
2205
+
2206
+ /** ConnectionRequest refreshTopologyFromInitialNodes */
2207
+ refreshTopologyFromInitialNodes?: (boolean|null);
2208
+
2209
+ /** ConnectionRequest libName */
2210
+ libName?: (string|null);
2211
+
2212
+ /** ConnectionRequest rootCerts */
2213
+ rootCerts?: (Uint8Array[]|null);
2214
+
2215
+ /** ConnectionRequest compressionConfig */
2216
+ compressionConfig?: (connection_request.ICompressionConfig|null);
2217
+
2218
+ /** ConnectionRequest clientCert */
2219
+ clientCert?: (Uint8Array|null);
2220
+
2221
+ /** ConnectionRequest clientKey */
2222
+ clientKey?: (Uint8Array|null);
2223
+
2224
+ /** ConnectionRequest tcpNodelay */
2225
+ tcpNodelay?: (boolean|null);
2226
+
2227
+ /** ConnectionRequest pubsubReconciliationIntervalMs */
2228
+ pubsubReconciliationIntervalMs?: (number|null);
2229
+ }
2230
+
2231
+ /** Represents a ConnectionRequest. */
2232
+ class ConnectionRequest implements IConnectionRequest {
2233
+
2234
+ /**
2235
+ * Constructs a new ConnectionRequest.
2236
+ * @param [properties] Properties to set
2237
+ */
2238
+ constructor(properties?: connection_request.IConnectionRequest);
2239
+
2240
+ /** ConnectionRequest addresses. */
2241
+ public addresses: connection_request.INodeAddress[];
2242
+
2243
+ /** ConnectionRequest tlsMode. */
2244
+ public tlsMode: connection_request.TlsMode;
2245
+
2246
+ /** ConnectionRequest clusterModeEnabled. */
2247
+ public clusterModeEnabled: boolean;
2248
+
2249
+ /** ConnectionRequest requestTimeout. */
2250
+ public requestTimeout: number;
2251
+
2252
+ /** ConnectionRequest readFrom. */
2253
+ public readFrom: connection_request.ReadFrom;
2254
+
2255
+ /** ConnectionRequest connectionRetryStrategy. */
2256
+ public connectionRetryStrategy?: (connection_request.IConnectionRetryStrategy|null);
2257
+
2258
+ /** ConnectionRequest authenticationInfo. */
2259
+ public authenticationInfo?: (connection_request.IAuthenticationInfo|null);
2260
+
2261
+ /** ConnectionRequest databaseId. */
2262
+ public databaseId: number;
2263
+
2264
+ /** ConnectionRequest protocol. */
2265
+ public protocol: connection_request.ProtocolVersion;
2266
+
2267
+ /** ConnectionRequest clientName. */
2268
+ public clientName: string;
2269
+
2270
+ /** ConnectionRequest periodicChecksManualInterval. */
2271
+ public periodicChecksManualInterval?: (connection_request.IPeriodicChecksManualInterval|null);
2272
+
2273
+ /** ConnectionRequest periodicChecksDisabled. */
2274
+ public periodicChecksDisabled?: (connection_request.IPeriodicChecksDisabled|null);
2275
+
2276
+ /** ConnectionRequest pubsubSubscriptions. */
2277
+ public pubsubSubscriptions?: (connection_request.IPubSubSubscriptions|null);
2278
+
2279
+ /** ConnectionRequest inflightRequestsLimit. */
2280
+ public inflightRequestsLimit: number;
2281
+
2282
+ /** ConnectionRequest clientAz. */
2283
+ public clientAz: string;
2284
+
2285
+ /** ConnectionRequest connectionTimeout. */
2286
+ public connectionTimeout: number;
2287
+
2288
+ /** ConnectionRequest lazyConnect. */
2289
+ public lazyConnect: boolean;
2290
+
2291
+ /** ConnectionRequest refreshTopologyFromInitialNodes. */
2292
+ public refreshTopologyFromInitialNodes: boolean;
2293
+
2294
+ /** ConnectionRequest libName. */
2295
+ public libName: string;
2296
+
2297
+ /** ConnectionRequest rootCerts. */
2298
+ public rootCerts: Uint8Array[];
2299
+
2300
+ /** ConnectionRequest compressionConfig. */
2301
+ public compressionConfig?: (connection_request.ICompressionConfig|null);
2302
+
2303
+ /** ConnectionRequest clientCert. */
2304
+ public clientCert: Uint8Array;
2305
+
2306
+ /** ConnectionRequest clientKey. */
2307
+ public clientKey: Uint8Array;
2308
+
2309
+ /** ConnectionRequest tcpNodelay. */
2310
+ public tcpNodelay?: (boolean|null);
2311
+
2312
+ /** ConnectionRequest pubsubReconciliationIntervalMs. */
2313
+ public pubsubReconciliationIntervalMs?: (number|null);
2314
+
2315
+ /** ConnectionRequest periodicChecks. */
2316
+ public periodicChecks?: ("periodicChecksManualInterval"|"periodicChecksDisabled");
2317
+
2318
+ /**
2319
+ * Creates a new ConnectionRequest instance using the specified properties.
2320
+ * @param [properties] Properties to set
2321
+ * @returns ConnectionRequest instance
2322
+ */
2323
+ public static create(properties?: connection_request.IConnectionRequest): connection_request.ConnectionRequest;
2324
+
2325
+ /**
2326
+ * Encodes the specified ConnectionRequest message. Does not implicitly {@link connection_request.ConnectionRequest.verify|verify} messages.
2327
+ * @param message ConnectionRequest message or plain object to encode
2328
+ * @param [writer] Writer to encode to
2329
+ * @returns Writer
2330
+ */
2331
+ public static encode(message: connection_request.IConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
2332
+
2333
+ /**
2334
+ * Encodes the specified ConnectionRequest message, length delimited. Does not implicitly {@link connection_request.ConnectionRequest.verify|verify} messages.
2335
+ * @param message ConnectionRequest message or plain object to encode
2336
+ * @param [writer] Writer to encode to
2337
+ * @returns Writer
2338
+ */
2339
+ public static encodeDelimited(message: connection_request.IConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
2340
+
2341
+ /**
2342
+ * Decodes a ConnectionRequest message from the specified reader or buffer.
2343
+ * @param reader Reader or buffer to decode from
2344
+ * @param [length] Message length if known beforehand
2345
+ * @returns ConnectionRequest
2346
+ * @throws {Error} If the payload is not a reader or valid buffer
2347
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2348
+ */
2349
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): connection_request.ConnectionRequest;
2350
+
2351
+ /**
2352
+ * Decodes a ConnectionRequest message from the specified reader or buffer, length delimited.
2353
+ * @param reader Reader or buffer to decode from
2354
+ * @returns ConnectionRequest
2355
+ * @throws {Error} If the payload is not a reader or valid buffer
2356
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2357
+ */
2358
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): connection_request.ConnectionRequest;
2359
+
2360
+ /**
2361
+ * Gets the default type url for ConnectionRequest
2362
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2363
+ * @returns The default type url
2364
+ */
2365
+ public static getTypeUrl(typeUrlPrefix?: string): string;
2366
+ }
2367
+
2368
+ /** Properties of a ConnectionRetryStrategy. */
2369
+ interface IConnectionRetryStrategy {
2370
+
2371
+ /** ConnectionRetryStrategy numberOfRetries */
2372
+ numberOfRetries?: (number|null);
2373
+
2374
+ /** ConnectionRetryStrategy factor */
2375
+ factor?: (number|null);
2376
+
2377
+ /** ConnectionRetryStrategy exponentBase */
2378
+ exponentBase?: (number|null);
2379
+
2380
+ /** ConnectionRetryStrategy jitterPercent */
2381
+ jitterPercent?: (number|null);
2382
+ }
2383
+
2384
+ /** Represents a ConnectionRetryStrategy. */
2385
+ class ConnectionRetryStrategy implements IConnectionRetryStrategy {
2386
+
2387
+ /**
2388
+ * Constructs a new ConnectionRetryStrategy.
2389
+ * @param [properties] Properties to set
2390
+ */
2391
+ constructor(properties?: connection_request.IConnectionRetryStrategy);
2392
+
2393
+ /** ConnectionRetryStrategy numberOfRetries. */
2394
+ public numberOfRetries: number;
2395
+
2396
+ /** ConnectionRetryStrategy factor. */
2397
+ public factor: number;
2398
+
2399
+ /** ConnectionRetryStrategy exponentBase. */
2400
+ public exponentBase: number;
2401
+
2402
+ /** ConnectionRetryStrategy jitterPercent. */
2403
+ public jitterPercent?: (number|null);
2404
+
2405
+ /**
2406
+ * Creates a new ConnectionRetryStrategy instance using the specified properties.
2407
+ * @param [properties] Properties to set
2408
+ * @returns ConnectionRetryStrategy instance
2409
+ */
2410
+ public static create(properties?: connection_request.IConnectionRetryStrategy): connection_request.ConnectionRetryStrategy;
2411
+
2412
+ /**
2413
+ * Encodes the specified ConnectionRetryStrategy message. Does not implicitly {@link connection_request.ConnectionRetryStrategy.verify|verify} messages.
2414
+ * @param message ConnectionRetryStrategy message or plain object to encode
2415
+ * @param [writer] Writer to encode to
2416
+ * @returns Writer
2417
+ */
2418
+ public static encode(message: connection_request.IConnectionRetryStrategy, writer?: $protobuf.Writer): $protobuf.Writer;
2419
+
2420
+ /**
2421
+ * Encodes the specified ConnectionRetryStrategy message, length delimited. Does not implicitly {@link connection_request.ConnectionRetryStrategy.verify|verify} messages.
2422
+ * @param message ConnectionRetryStrategy message or plain object to encode
2423
+ * @param [writer] Writer to encode to
2424
+ * @returns Writer
2425
+ */
2426
+ public static encodeDelimited(message: connection_request.IConnectionRetryStrategy, writer?: $protobuf.Writer): $protobuf.Writer;
2427
+
2428
+ /**
2429
+ * Decodes a ConnectionRetryStrategy message from the specified reader or buffer.
2430
+ * @param reader Reader or buffer to decode from
2431
+ * @param [length] Message length if known beforehand
2432
+ * @returns ConnectionRetryStrategy
2433
+ * @throws {Error} If the payload is not a reader or valid buffer
2434
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2435
+ */
2436
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): connection_request.ConnectionRetryStrategy;
2437
+
2438
+ /**
2439
+ * Decodes a ConnectionRetryStrategy message from the specified reader or buffer, length delimited.
2440
+ * @param reader Reader or buffer to decode from
2441
+ * @returns ConnectionRetryStrategy
2442
+ * @throws {Error} If the payload is not a reader or valid buffer
2443
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2444
+ */
2445
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): connection_request.ConnectionRetryStrategy;
2446
+
2447
+ /**
2448
+ * Gets the default type url for ConnectionRetryStrategy
2449
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2450
+ * @returns The default type url
2451
+ */
2452
+ public static getTypeUrl(typeUrlPrefix?: string): string;
2453
+ }
2454
+ }
2455
+
2456
+ /** Namespace response. */
2457
+ export namespace response {
2458
+
2459
+ /** RequestErrorType enum. */
2460
+ enum RequestErrorType {
2461
+ Unspecified = 0,
2462
+ ExecAbort = 1,
2463
+ Timeout = 2,
2464
+ Disconnect = 3
2465
+ }
2466
+
2467
+ /** Properties of a RequestError. */
2468
+ interface IRequestError {
2469
+
2470
+ /** RequestError type */
2471
+ type?: (response.RequestErrorType|null);
2472
+
2473
+ /** RequestError message */
2474
+ message?: (string|null);
2475
+ }
2476
+
2477
+ /** Represents a RequestError. */
2478
+ class RequestError implements IRequestError {
2479
+
2480
+ /**
2481
+ * Constructs a new RequestError.
2482
+ * @param [properties] Properties to set
2483
+ */
2484
+ constructor(properties?: response.IRequestError);
2485
+
2486
+ /** RequestError type. */
2487
+ public type: response.RequestErrorType;
2488
+
2489
+ /** RequestError message. */
2490
+ public message: string;
2491
+
2492
+ /**
2493
+ * Creates a new RequestError instance using the specified properties.
2494
+ * @param [properties] Properties to set
2495
+ * @returns RequestError instance
2496
+ */
2497
+ public static create(properties?: response.IRequestError): response.RequestError;
2498
+
2499
+ /**
2500
+ * Encodes the specified RequestError message. Does not implicitly {@link response.RequestError.verify|verify} messages.
2501
+ * @param message RequestError message or plain object to encode
2502
+ * @param [writer] Writer to encode to
2503
+ * @returns Writer
2504
+ */
2505
+ public static encode(message: response.IRequestError, writer?: $protobuf.Writer): $protobuf.Writer;
2506
+
2507
+ /**
2508
+ * Encodes the specified RequestError message, length delimited. Does not implicitly {@link response.RequestError.verify|verify} messages.
2509
+ * @param message RequestError message or plain object to encode
2510
+ * @param [writer] Writer to encode to
2511
+ * @returns Writer
2512
+ */
2513
+ public static encodeDelimited(message: response.IRequestError, writer?: $protobuf.Writer): $protobuf.Writer;
2514
+
2515
+ /**
2516
+ * Decodes a RequestError message from the specified reader or buffer.
2517
+ * @param reader Reader or buffer to decode from
2518
+ * @param [length] Message length if known beforehand
2519
+ * @returns RequestError
2520
+ * @throws {Error} If the payload is not a reader or valid buffer
2521
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2522
+ */
2523
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): response.RequestError;
2524
+
2525
+ /**
2526
+ * Decodes a RequestError message from the specified reader or buffer, length delimited.
2527
+ * @param reader Reader or buffer to decode from
2528
+ * @returns RequestError
2529
+ * @throws {Error} If the payload is not a reader or valid buffer
2530
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2531
+ */
2532
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): response.RequestError;
2533
+
2534
+ /**
2535
+ * Gets the default type url for RequestError
2536
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2537
+ * @returns The default type url
2538
+ */
2539
+ public static getTypeUrl(typeUrlPrefix?: string): string;
2540
+ }
2541
+
2542
+ /** Properties of a Response. */
2543
+ interface IResponse {
2544
+
2545
+ /** Response callbackIdx */
2546
+ callbackIdx?: (number|null);
2547
+
2548
+ /** Response respPointer */
2549
+ respPointer?: (number|Long|null);
2550
+
2551
+ /** Response constantResponse */
2552
+ constantResponse?: (response.ConstantResponse|null);
2553
+
2554
+ /** Response requestError */
2555
+ requestError?: (response.IRequestError|null);
2556
+
2557
+ /** Response closingError */
2558
+ closingError?: (string|null);
2559
+
2560
+ /** Response isPush */
2561
+ isPush?: (boolean|null);
2562
+
2563
+ /** Response rootSpanPtr */
2564
+ rootSpanPtr?: (number|Long|null);
2565
+ }
2566
+
2567
+ /** Represents a Response. */
2568
+ class Response implements IResponse {
2569
+
2570
+ /**
2571
+ * Constructs a new Response.
2572
+ * @param [properties] Properties to set
2573
+ */
2574
+ constructor(properties?: response.IResponse);
2575
+
2576
+ /** Response callbackIdx. */
2577
+ public callbackIdx: number;
2578
+
2579
+ /** Response respPointer. */
2580
+ public respPointer?: (number|Long|null);
2581
+
2582
+ /** Response constantResponse. */
2583
+ public constantResponse?: (response.ConstantResponse|null);
2584
+
2585
+ /** Response requestError. */
2586
+ public requestError?: (response.IRequestError|null);
2587
+
2588
+ /** Response closingError. */
2589
+ public closingError?: (string|null);
2590
+
2591
+ /** Response isPush. */
2592
+ public isPush: boolean;
2593
+
2594
+ /** Response rootSpanPtr. */
2595
+ public rootSpanPtr?: (number|Long|null);
2596
+
2597
+ /** Response value. */
2598
+ public value?: ("respPointer"|"constantResponse"|"requestError"|"closingError");
2599
+
2600
+ /**
2601
+ * Creates a new Response instance using the specified properties.
2602
+ * @param [properties] Properties to set
2603
+ * @returns Response instance
2604
+ */
2605
+ public static create(properties?: response.IResponse): response.Response;
2606
+
2607
+ /**
2608
+ * Encodes the specified Response message. Does not implicitly {@link response.Response.verify|verify} messages.
2609
+ * @param message Response message or plain object to encode
2610
+ * @param [writer] Writer to encode to
2611
+ * @returns Writer
2612
+ */
2613
+ public static encode(message: response.IResponse, writer?: $protobuf.Writer): $protobuf.Writer;
2614
+
2615
+ /**
2616
+ * Encodes the specified Response message, length delimited. Does not implicitly {@link response.Response.verify|verify} messages.
2617
+ * @param message Response message or plain object to encode
2618
+ * @param [writer] Writer to encode to
2619
+ * @returns Writer
2620
+ */
2621
+ public static encodeDelimited(message: response.IResponse, writer?: $protobuf.Writer): $protobuf.Writer;
2622
+
2623
+ /**
2624
+ * Decodes a Response message from the specified reader or buffer.
2625
+ * @param reader Reader or buffer to decode from
2626
+ * @param [length] Message length if known beforehand
2627
+ * @returns Response
2628
+ * @throws {Error} If the payload is not a reader or valid buffer
2629
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2630
+ */
2631
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): response.Response;
2632
+
2633
+ /**
2634
+ * Decodes a Response message from the specified reader or buffer, length delimited.
2635
+ * @param reader Reader or buffer to decode from
2636
+ * @returns Response
2637
+ * @throws {Error} If the payload is not a reader or valid buffer
2638
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2639
+ */
2640
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): response.Response;
2641
+
2642
+ /**
2643
+ * Gets the default type url for Response
2644
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2645
+ * @returns The default type url
2646
+ */
2647
+ public static getTypeUrl(typeUrlPrefix?: string): string;
2648
+ }
2649
+
2650
+ /** ConstantResponse enum. */
2651
+ enum ConstantResponse {
2652
+ OK = 0
2653
+ }
2654
+ }