@replit/protocol 0.3.54 → 0.3.56

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.
@@ -1,2799 +0,0 @@
1
- /**
2
- * Flowtype definitions for index
3
- * Generated by Flowgen from a Typescript Definition
4
- * Flowgen v1.14.1
5
- * @flow
6
- */
7
-
8
- import * as $protobuf from "protobufjs";
9
- declare var api: typeof npm$namespace$api;
10
-
11
- declare var npm$namespace$api: {|
12
- Status: typeof api$Status,
13
- IPayload: Class<api$IPayload>,
14
- ISysCommand: Class<api$ISysCommand>,
15
- IRunInfo: Class<api$IRunInfo>,
16
- ITest: Class<api$ITest>,
17
- IInstruction: Class<api$IInstruction>,
18
- IInputInstruction: Class<api$IInputInstruction>,
19
- IOutputInstruction: Class<api$IOutputInstruction>,
20
- IRegexMatchOptions: Class<api$IRegexMatchOptions>,
21
- IExactMatchOptions: Class<api$IExactMatchOptions>,
22
- IMatchMatchOptions: Class<api$IMatchMatchOptions>,
23
- ICompatibilityMatchOptions: Class<api$ICompatibilityMatchOptions>,
24
- IResponse: Class<api$IResponse>,
25
- ITestResult: Class<api$ITestResult>,
26
- IInstructionResult: Class<api$IInstructionResult>,
27
- IError: Class<api$IError>,
28
- Payload: typeof api$Payload,
29
- SysCommand: typeof api$SysCommand,
30
- RunInfo: typeof api$RunInfo,
31
- Test: typeof api$Test,
32
- Instruction: typeof api$Instruction,
33
- InputInstruction: typeof api$InputInstruction,
34
- OutputInstruction: typeof api$OutputInstruction,
35
- RegexMatchOptions: typeof api$RegexMatchOptions,
36
- ExactMatchOptions: typeof api$ExactMatchOptions,
37
- MatchMatchOptions: typeof api$MatchMatchOptions,
38
- CompatibilityMatchOptions: typeof api$CompatibilityMatchOptions,
39
- Response: typeof api$Response,
40
- TestResult: typeof api$TestResult,
41
- InstructionResult: typeof api$InstructionResult,
42
- Error: typeof api$Error,
43
- |};
44
-
45
- /**
46
- * Properties of a Payload.
47
- */
48
- declare type api$IPayload = {|
49
- /**
50
- * Payload runInfo
51
- */
52
- runInfo?: api$RunInfo | api$IRunInfo | null,
53
-
54
- /**
55
- * Payload tests
56
- */
57
- tests?: (api$Test | api$ITest)[] | null,
58
- |};
59
-
60
- /**
61
- * Represents a Payload.
62
- */
63
- declare class api$Payload {
64
- /**
65
- * Constructs a new Payload.
66
- * @param [properties] Properties to set
67
- */
68
- constructor(properties?: api$IPayload): this;
69
-
70
- /**
71
- * Payload runInfo.
72
- */
73
- runInfo?: api$RunInfo | null;
74
-
75
- /**
76
- * Payload tests.
77
- */
78
- tests: api$Test[];
79
-
80
- /**
81
- * Creates a new Payload instance using the specified properties.
82
- * @param [properties] Properties to set
83
- * @returns Payload instance
84
- */
85
- static create(properties?: api$IPayload): api$Payload;
86
-
87
- /**
88
- * [object Object],[object Object],[object Object]
89
- * @param message Payload message or plain object to encode
90
- * @param [writer] Writer to encode to
91
- * @returns Writer
92
- */
93
- static encode(
94
- message: api$Payload,
95
- writer?: $protobuf.Writer
96
- ): $protobuf.Writer;
97
-
98
- /**
99
- * [object Object],[object Object],[object Object]
100
- * @param message Payload message or plain object to encode
101
- * @param [writer] Writer to encode to
102
- * @returns Writer
103
- */
104
- static encodeDelimited(
105
- message: api$Payload,
106
- writer?: $protobuf.Writer
107
- ): $protobuf.Writer;
108
-
109
- /**
110
- * Decodes a Payload message from the specified reader or buffer.
111
- * @param reader Reader or buffer to decode from
112
- * @param [length] Message length if known beforehand
113
- * @returns Payload
114
- * @throws {Error} If the payload is not a reader or valid buffer
115
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
116
- */
117
- static decode(
118
- reader: $protobuf.Reader | Uint8Array,
119
- length?: number
120
- ): api$Payload;
121
-
122
- /**
123
- * Decodes a Payload message from the specified reader or buffer, length delimited.
124
- * @param reader Reader or buffer to decode from
125
- * @returns Payload
126
- * @throws {Error} If the payload is not a reader or valid buffer
127
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
128
- */
129
- static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$Payload;
130
-
131
- /**
132
- * Verifies a Payload message.
133
- * @param message Plain object to verify
134
- * @returns `null` if valid, otherwise the reason why it is not
135
- */
136
- static verify(message: {|
137
- [k: string]: any,
138
- |}): string | null;
139
-
140
- /**
141
- * Creates a Payload message from a plain object. Also converts values to their respective internal types.
142
- * @param object Plain object
143
- * @returns Payload
144
- */
145
- static fromObject(object: {|
146
- [k: string]: any,
147
- |}): api$Payload;
148
-
149
- /**
150
- * Creates a plain object from a Payload message. Also converts values to other types if specified.
151
- * @param message Payload
152
- * @param [options] Conversion options
153
- * @returns Plain object
154
- */
155
- static toObject(
156
- message: api$Payload,
157
- options?: $protobuf.IConversionOptions
158
- ): {|
159
- [k: string]: any,
160
- |};
161
-
162
- /**
163
- * Converts this Payload to JSON.
164
- * @returns JSON object
165
- */
166
- toJSON(): {|
167
- [k: string]: any,
168
- |};
169
- }
170
-
171
- /**
172
- * Properties of a SysCommand.
173
- */
174
- declare type api$ISysCommand = {|
175
- /**
176
- * SysCommand args
177
- */
178
- args?: string[] | null,
179
-
180
- /**
181
- * SysCommand env
182
- */
183
- env?: {|
184
- [k: string]: string,
185
- |} | null,
186
- |};
187
-
188
- /**
189
- * Represents a SysCommand.
190
- */
191
- declare class api$SysCommand {
192
- /**
193
- * Constructs a new SysCommand.
194
- * @param [properties] Properties to set
195
- */
196
- constructor(properties?: api$ISysCommand): this;
197
-
198
- /**
199
- * SysCommand args.
200
- */
201
- args: string[];
202
-
203
- /**
204
- * SysCommand env.
205
- */
206
- env: {|
207
- [k: string]: string,
208
- |};
209
-
210
- /**
211
- * Creates a new SysCommand instance using the specified properties.
212
- * @param [properties] Properties to set
213
- * @returns SysCommand instance
214
- */
215
- static create(properties?: api$ISysCommand): api$SysCommand;
216
-
217
- /**
218
- * [object Object],[object Object],[object Object]
219
- * @param message SysCommand message or plain object to encode
220
- * @param [writer] Writer to encode to
221
- * @returns Writer
222
- */
223
- static encode(
224
- message: api$SysCommand,
225
- writer?: $protobuf.Writer
226
- ): $protobuf.Writer;
227
-
228
- /**
229
- * [object Object],[object Object],[object Object]
230
- * @param message SysCommand message or plain object to encode
231
- * @param [writer] Writer to encode to
232
- * @returns Writer
233
- */
234
- static encodeDelimited(
235
- message: api$SysCommand,
236
- writer?: $protobuf.Writer
237
- ): $protobuf.Writer;
238
-
239
- /**
240
- * Decodes a SysCommand message from the specified reader or buffer.
241
- * @param reader Reader or buffer to decode from
242
- * @param [length] Message length if known beforehand
243
- * @returns SysCommand
244
- * @throws {Error} If the payload is not a reader or valid buffer
245
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
246
- */
247
- static decode(
248
- reader: $protobuf.Reader | Uint8Array,
249
- length?: number
250
- ): api$SysCommand;
251
-
252
- /**
253
- * Decodes a SysCommand message from the specified reader or buffer, length delimited.
254
- * @param reader Reader or buffer to decode from
255
- * @returns SysCommand
256
- * @throws {Error} If the payload is not a reader or valid buffer
257
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
258
- */
259
- static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$SysCommand;
260
-
261
- /**
262
- * Verifies a SysCommand message.
263
- * @param message Plain object to verify
264
- * @returns `null` if valid, otherwise the reason why it is not
265
- */
266
- static verify(message: {|
267
- [k: string]: any,
268
- |}): string | null;
269
-
270
- /**
271
- * Creates a SysCommand message from a plain object. Also converts values to their respective internal types.
272
- * @param object Plain object
273
- * @returns SysCommand
274
- */
275
- static fromObject(object: {|
276
- [k: string]: any,
277
- |}): api$SysCommand;
278
-
279
- /**
280
- * Creates a plain object from a SysCommand message. Also converts values to other types if specified.
281
- * @param message SysCommand
282
- * @param [options] Conversion options
283
- * @returns Plain object
284
- */
285
- static toObject(
286
- message: api$SysCommand,
287
- options?: $protobuf.IConversionOptions
288
- ): {|
289
- [k: string]: any,
290
- |};
291
-
292
- /**
293
- * Converts this SysCommand to JSON.
294
- * @returns JSON object
295
- */
296
- toJSON(): {|
297
- [k: string]: any,
298
- |};
299
- }
300
-
301
- /**
302
- * Properties of a RunInfo.
303
- */
304
- declare type api$IRunInfo = {|
305
- /**
306
- * RunInfo buildCommand
307
- */
308
- buildCommand?: api$SysCommand | api$ISysCommand | null,
309
-
310
- /**
311
- * RunInfo execCommand
312
- */
313
- execCommand?: api$SysCommand | api$ISysCommand | null,
314
- |};
315
-
316
- /**
317
- * Represents a RunInfo.
318
- */
319
- declare class api$RunInfo {
320
- /**
321
- * Constructs a new RunInfo.
322
- * @param [properties] Properties to set
323
- */
324
- constructor(properties?: api$IRunInfo): this;
325
-
326
- /**
327
- * RunInfo buildCommand.
328
- */
329
- buildCommand?: api$SysCommand | null;
330
-
331
- /**
332
- * RunInfo execCommand.
333
- */
334
- execCommand?: api$SysCommand | null;
335
-
336
- /**
337
- * Creates a new RunInfo instance using the specified properties.
338
- * @param [properties] Properties to set
339
- * @returns RunInfo instance
340
- */
341
- static create(properties?: api$IRunInfo): api$RunInfo;
342
-
343
- /**
344
- * [object Object],[object Object],[object Object]
345
- * @param message RunInfo message or plain object to encode
346
- * @param [writer] Writer to encode to
347
- * @returns Writer
348
- */
349
- static encode(
350
- message: api$RunInfo,
351
- writer?: $protobuf.Writer
352
- ): $protobuf.Writer;
353
-
354
- /**
355
- * [object Object],[object Object],[object Object]
356
- * @param message RunInfo message or plain object to encode
357
- * @param [writer] Writer to encode to
358
- * @returns Writer
359
- */
360
- static encodeDelimited(
361
- message: api$RunInfo,
362
- writer?: $protobuf.Writer
363
- ): $protobuf.Writer;
364
-
365
- /**
366
- * Decodes a RunInfo message from the specified reader or buffer.
367
- * @param reader Reader or buffer to decode from
368
- * @param [length] Message length if known beforehand
369
- * @returns RunInfo
370
- * @throws {Error} If the payload is not a reader or valid buffer
371
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
372
- */
373
- static decode(
374
- reader: $protobuf.Reader | Uint8Array,
375
- length?: number
376
- ): api$RunInfo;
377
-
378
- /**
379
- * Decodes a RunInfo message from the specified reader or buffer, length delimited.
380
- * @param reader Reader or buffer to decode from
381
- * @returns RunInfo
382
- * @throws {Error} If the payload is not a reader or valid buffer
383
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
384
- */
385
- static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$RunInfo;
386
-
387
- /**
388
- * Verifies a RunInfo message.
389
- * @param message Plain object to verify
390
- * @returns `null` if valid, otherwise the reason why it is not
391
- */
392
- static verify(message: {|
393
- [k: string]: any,
394
- |}): string | null;
395
-
396
- /**
397
- * Creates a RunInfo message from a plain object. Also converts values to their respective internal types.
398
- * @param object Plain object
399
- * @returns RunInfo
400
- */
401
- static fromObject(object: {|
402
- [k: string]: any,
403
- |}): api$RunInfo;
404
-
405
- /**
406
- * Creates a plain object from a RunInfo message. Also converts values to other types if specified.
407
- * @param message RunInfo
408
- * @param [options] Conversion options
409
- * @returns Plain object
410
- */
411
- static toObject(
412
- message: api$RunInfo,
413
- options?: $protobuf.IConversionOptions
414
- ): {|
415
- [k: string]: any,
416
- |};
417
-
418
- /**
419
- * Converts this RunInfo to JSON.
420
- * @returns JSON object
421
- */
422
- toJSON(): {|
423
- [k: string]: any,
424
- |};
425
- }
426
-
427
- /**
428
- * Properties of a Test.
429
- */
430
- declare type api$ITest = {|
431
- /**
432
- * Test id
433
- */
434
- id?: number | null,
435
-
436
- /**
437
- * Test instructions
438
- */
439
- instructions?: (api$Instruction | api$IInstruction)[] | null,
440
- |};
441
-
442
- /**
443
- * Represents a Test.
444
- */
445
- declare class api$Test {
446
- /**
447
- * Constructs a new Test.
448
- * @param [properties] Properties to set
449
- */
450
- constructor(properties?: api$ITest): this;
451
-
452
- /**
453
- * Test id.
454
- */
455
- id: number;
456
-
457
- /**
458
- * Test instructions.
459
- */
460
- instructions: api$Instruction[];
461
-
462
- /**
463
- * Creates a new Test instance using the specified properties.
464
- * @param [properties] Properties to set
465
- * @returns Test instance
466
- */
467
- static create(properties?: api$ITest): api$Test;
468
-
469
- /**
470
- * [object Object],[object Object],[object Object]
471
- * @param message Test message or plain object to encode
472
- * @param [writer] Writer to encode to
473
- * @returns Writer
474
- */
475
- static encode(message: api$Test, writer?: $protobuf.Writer): $protobuf.Writer;
476
-
477
- /**
478
- * [object Object],[object Object],[object Object]
479
- * @param message Test message or plain object to encode
480
- * @param [writer] Writer to encode to
481
- * @returns Writer
482
- */
483
- static encodeDelimited(
484
- message: api$Test,
485
- writer?: $protobuf.Writer
486
- ): $protobuf.Writer;
487
-
488
- /**
489
- * Decodes a Test message from the specified reader or buffer.
490
- * @param reader Reader or buffer to decode from
491
- * @param [length] Message length if known beforehand
492
- * @returns Test
493
- * @throws {Error} If the payload is not a reader or valid buffer
494
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
495
- */
496
- static decode(
497
- reader: $protobuf.Reader | Uint8Array,
498
- length?: number
499
- ): api$Test;
500
-
501
- /**
502
- * Decodes a Test message from the specified reader or buffer, length delimited.
503
- * @param reader Reader or buffer to decode from
504
- * @returns Test
505
- * @throws {Error} If the payload is not a reader or valid buffer
506
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
507
- */
508
- static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$Test;
509
-
510
- /**
511
- * Verifies a Test message.
512
- * @param message Plain object to verify
513
- * @returns `null` if valid, otherwise the reason why it is not
514
- */
515
- static verify(message: {|
516
- [k: string]: any,
517
- |}): string | null;
518
-
519
- /**
520
- * Creates a Test message from a plain object. Also converts values to their respective internal types.
521
- * @param object Plain object
522
- * @returns Test
523
- */
524
- static fromObject(object: {|
525
- [k: string]: any,
526
- |}): api$Test;
527
-
528
- /**
529
- * Creates a plain object from a Test message. Also converts values to other types if specified.
530
- * @param message Test
531
- * @param [options] Conversion options
532
- * @returns Plain object
533
- */
534
- static toObject(
535
- message: api$Test,
536
- options?: $protobuf.IConversionOptions
537
- ): {|
538
- [k: string]: any,
539
- |};
540
-
541
- /**
542
- * Converts this Test to JSON.
543
- * @returns JSON object
544
- */
545
- toJSON(): {|
546
- [k: string]: any,
547
- |};
548
- }
549
-
550
- /**
551
- * Properties of an Instruction.
552
- */
553
- declare type api$IInstruction = {|
554
- /**
555
- * Instruction id
556
- */
557
- id?: number | null,
558
-
559
- /**
560
- * Instruction input
561
- */
562
- input?: api$InputInstruction | api$IInputInstruction | null,
563
-
564
- /**
565
- * Instruction output
566
- */
567
- output?: api$OutputInstruction | api$IOutputInstruction | null,
568
- |};
569
-
570
- /**
571
- * Represents an Instruction.
572
- */
573
- declare class api$Instruction {
574
- /**
575
- * Constructs a new Instruction.
576
- * @param [properties] Properties to set
577
- */
578
- constructor(properties?: api$IInstruction): this;
579
-
580
- /**
581
- * Instruction id.
582
- */
583
- id: number;
584
-
585
- /**
586
- * Instruction input.
587
- */
588
- input?: api$InputInstruction | null;
589
-
590
- /**
591
- * Instruction output.
592
- */
593
- output?: api$OutputInstruction | null;
594
-
595
- /**
596
- * Instruction body.
597
- */
598
- body?: "input" | "output";
599
-
600
- /**
601
- * Creates a new Instruction instance using the specified properties.
602
- * @param [properties] Properties to set
603
- * @returns Instruction instance
604
- */
605
- static create(properties?: api$IInstruction): api$Instruction;
606
-
607
- /**
608
- * [object Object],[object Object],[object Object]
609
- * @param message Instruction message or plain object to encode
610
- * @param [writer] Writer to encode to
611
- * @returns Writer
612
- */
613
- static encode(
614
- message: api$Instruction,
615
- writer?: $protobuf.Writer
616
- ): $protobuf.Writer;
617
-
618
- /**
619
- * [object Object],[object Object],[object Object]
620
- * @param message Instruction message or plain object to encode
621
- * @param [writer] Writer to encode to
622
- * @returns Writer
623
- */
624
- static encodeDelimited(
625
- message: api$Instruction,
626
- writer?: $protobuf.Writer
627
- ): $protobuf.Writer;
628
-
629
- /**
630
- * Decodes an Instruction message from the specified reader or buffer.
631
- * @param reader Reader or buffer to decode from
632
- * @param [length] Message length if known beforehand
633
- * @returns Instruction
634
- * @throws {Error} If the payload is not a reader or valid buffer
635
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
636
- */
637
- static decode(
638
- reader: $protobuf.Reader | Uint8Array,
639
- length?: number
640
- ): api$Instruction;
641
-
642
- /**
643
- * Decodes an Instruction message from the specified reader or buffer, length delimited.
644
- * @param reader Reader or buffer to decode from
645
- * @returns Instruction
646
- * @throws {Error} If the payload is not a reader or valid buffer
647
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
648
- */
649
- static decodeDelimited(
650
- reader: $protobuf.Reader | Uint8Array
651
- ): api$Instruction;
652
-
653
- /**
654
- * Verifies an Instruction message.
655
- * @param message Plain object to verify
656
- * @returns `null` if valid, otherwise the reason why it is not
657
- */
658
- static verify(message: {|
659
- [k: string]: any,
660
- |}): string | null;
661
-
662
- /**
663
- * Creates an Instruction message from a plain object. Also converts values to their respective internal types.
664
- * @param object Plain object
665
- * @returns Instruction
666
- */
667
- static fromObject(object: {|
668
- [k: string]: any,
669
- |}): api$Instruction;
670
-
671
- /**
672
- * Creates a plain object from an Instruction message. Also converts values to other types if specified.
673
- * @param message Instruction
674
- * @param [options] Conversion options
675
- * @returns Plain object
676
- */
677
- static toObject(
678
- message: api$Instruction,
679
- options?: $protobuf.IConversionOptions
680
- ): {|
681
- [k: string]: any,
682
- |};
683
-
684
- /**
685
- * Converts this Instruction to JSON.
686
- * @returns JSON object
687
- */
688
- toJSON(): {|
689
- [k: string]: any,
690
- |};
691
- }
692
-
693
- /**
694
- * Properties of an InputInstruction.
695
- */
696
- declare type api$IInputInstruction = {|
697
- /**
698
- * InputInstruction input
699
- */
700
- input?: string | null,
701
- |};
702
-
703
- /**
704
- * Represents an InputInstruction.
705
- */
706
- declare class api$InputInstruction {
707
- /**
708
- * Constructs a new InputInstruction.
709
- * @param [properties] Properties to set
710
- */
711
- constructor(properties?: api$IInputInstruction): this;
712
-
713
- /**
714
- * InputInstruction input.
715
- */
716
- input: string;
717
-
718
- /**
719
- * Creates a new InputInstruction instance using the specified properties.
720
- * @param [properties] Properties to set
721
- * @returns InputInstruction instance
722
- */
723
- static create(properties?: api$IInputInstruction): api$InputInstruction;
724
-
725
- /**
726
- * [object Object],[object Object],[object Object]
727
- * @param message InputInstruction message or plain object to encode
728
- * @param [writer] Writer to encode to
729
- * @returns Writer
730
- */
731
- static encode(
732
- message: api$InputInstruction,
733
- writer?: $protobuf.Writer
734
- ): $protobuf.Writer;
735
-
736
- /**
737
- * [object Object],[object Object],[object Object]
738
- * @param message InputInstruction message or plain object to encode
739
- * @param [writer] Writer to encode to
740
- * @returns Writer
741
- */
742
- static encodeDelimited(
743
- message: api$InputInstruction,
744
- writer?: $protobuf.Writer
745
- ): $protobuf.Writer;
746
-
747
- /**
748
- * Decodes an InputInstruction message from the specified reader or buffer.
749
- * @param reader Reader or buffer to decode from
750
- * @param [length] Message length if known beforehand
751
- * @returns InputInstruction
752
- * @throws {Error} If the payload is not a reader or valid buffer
753
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
754
- */
755
- static decode(
756
- reader: $protobuf.Reader | Uint8Array,
757
- length?: number
758
- ): api$InputInstruction;
759
-
760
- /**
761
- * Decodes an InputInstruction message from the specified reader or buffer, length delimited.
762
- * @param reader Reader or buffer to decode from
763
- * @returns InputInstruction
764
- * @throws {Error} If the payload is not a reader or valid buffer
765
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
766
- */
767
- static decodeDelimited(
768
- reader: $protobuf.Reader | Uint8Array
769
- ): api$InputInstruction;
770
-
771
- /**
772
- * Verifies an InputInstruction message.
773
- * @param message Plain object to verify
774
- * @returns `null` if valid, otherwise the reason why it is not
775
- */
776
- static verify(message: {|
777
- [k: string]: any,
778
- |}): string | null;
779
-
780
- /**
781
- * Creates an InputInstruction message from a plain object. Also converts values to their respective internal types.
782
- * @param object Plain object
783
- * @returns InputInstruction
784
- */
785
- static fromObject(object: {|
786
- [k: string]: any,
787
- |}): api$InputInstruction;
788
-
789
- /**
790
- * Creates a plain object from an InputInstruction message. Also converts values to other types if specified.
791
- * @param message InputInstruction
792
- * @param [options] Conversion options
793
- * @returns Plain object
794
- */
795
- static toObject(
796
- message: api$InputInstruction,
797
- options?: $protobuf.IConversionOptions
798
- ): {|
799
- [k: string]: any,
800
- |};
801
-
802
- /**
803
- * Converts this InputInstruction to JSON.
804
- * @returns JSON object
805
- */
806
- toJSON(): {|
807
- [k: string]: any,
808
- |};
809
- }
810
-
811
- /**
812
- * Properties of an OutputInstruction.
813
- */
814
- declare type api$IOutputInstruction = {|
815
- /**
816
- * OutputInstruction timeout
817
- */
818
- timeout?: google$protobuf$Duration | google$protobuf$IDuration | null,
819
-
820
- /**
821
- * OutputInstruction regex
822
- */
823
- regex?: api$RegexMatchOptions | api$IRegexMatchOptions | null,
824
-
825
- /**
826
- * OutputInstruction exact
827
- */
828
- exact?: api$ExactMatchOptions | api$IExactMatchOptions | null,
829
-
830
- /**
831
- * OutputInstruction match
832
- */
833
- match?: api$MatchMatchOptions | api$IMatchMatchOptions | null,
834
-
835
- /**
836
- * OutputInstruction compatibility
837
- */
838
- compatibility?:
839
- | api$CompatibilityMatchOptions
840
- | api$ICompatibilityMatchOptions
841
- | null,
842
- |};
843
-
844
- /**
845
- * Represents an OutputInstruction.
846
- */
847
- declare class api$OutputInstruction {
848
- /**
849
- * Constructs a new OutputInstruction.
850
- * @param [properties] Properties to set
851
- */
852
- constructor(properties?: api$IOutputInstruction): this;
853
-
854
- /**
855
- * OutputInstruction timeout.
856
- */
857
- timeout?: google$protobuf$Duration | null;
858
-
859
- /**
860
- * OutputInstruction regex.
861
- */
862
- regex?: api$RegexMatchOptions | null;
863
-
864
- /**
865
- * OutputInstruction exact.
866
- */
867
- exact?: api$ExactMatchOptions | null;
868
-
869
- /**
870
- * OutputInstruction match.
871
- */
872
- match?: api$MatchMatchOptions | null;
873
-
874
- /**
875
- * OutputInstruction compatibility.
876
- */
877
- compatibility?: api$CompatibilityMatchOptions | null;
878
-
879
- /**
880
- * OutputInstruction matchOptions.
881
- */
882
- matchOptions?: "regex" | "exact" | "match" | "compatibility";
883
-
884
- /**
885
- * Creates a new OutputInstruction instance using the specified properties.
886
- * @param [properties] Properties to set
887
- * @returns OutputInstruction instance
888
- */
889
- static create(properties?: api$IOutputInstruction): api$OutputInstruction;
890
-
891
- /**
892
- * [object Object],[object Object],[object Object]
893
- * @param message OutputInstruction message or plain object to encode
894
- * @param [writer] Writer to encode to
895
- * @returns Writer
896
- */
897
- static encode(
898
- message: api$OutputInstruction,
899
- writer?: $protobuf.Writer
900
- ): $protobuf.Writer;
901
-
902
- /**
903
- * [object Object],[object Object],[object Object]
904
- * @param message OutputInstruction message or plain object to encode
905
- * @param [writer] Writer to encode to
906
- * @returns Writer
907
- */
908
- static encodeDelimited(
909
- message: api$OutputInstruction,
910
- writer?: $protobuf.Writer
911
- ): $protobuf.Writer;
912
-
913
- /**
914
- * Decodes an OutputInstruction message from the specified reader or buffer.
915
- * @param reader Reader or buffer to decode from
916
- * @param [length] Message length if known beforehand
917
- * @returns OutputInstruction
918
- * @throws {Error} If the payload is not a reader or valid buffer
919
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
920
- */
921
- static decode(
922
- reader: $protobuf.Reader | Uint8Array,
923
- length?: number
924
- ): api$OutputInstruction;
925
-
926
- /**
927
- * Decodes an OutputInstruction message from the specified reader or buffer, length delimited.
928
- * @param reader Reader or buffer to decode from
929
- * @returns OutputInstruction
930
- * @throws {Error} If the payload is not a reader or valid buffer
931
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
932
- */
933
- static decodeDelimited(
934
- reader: $protobuf.Reader | Uint8Array
935
- ): api$OutputInstruction;
936
-
937
- /**
938
- * Verifies an OutputInstruction message.
939
- * @param message Plain object to verify
940
- * @returns `null` if valid, otherwise the reason why it is not
941
- */
942
- static verify(message: {|
943
- [k: string]: any,
944
- |}): string | null;
945
-
946
- /**
947
- * Creates an OutputInstruction message from a plain object. Also converts values to their respective internal types.
948
- * @param object Plain object
949
- * @returns OutputInstruction
950
- */
951
- static fromObject(object: {|
952
- [k: string]: any,
953
- |}): api$OutputInstruction;
954
-
955
- /**
956
- * Creates a plain object from an OutputInstruction message. Also converts values to other types if specified.
957
- * @param message OutputInstruction
958
- * @param [options] Conversion options
959
- * @returns Plain object
960
- */
961
- static toObject(
962
- message: api$OutputInstruction,
963
- options?: $protobuf.IConversionOptions
964
- ): {|
965
- [k: string]: any,
966
- |};
967
-
968
- /**
969
- * Converts this OutputInstruction to JSON.
970
- * @returns JSON object
971
- */
972
- toJSON(): {|
973
- [k: string]: any,
974
- |};
975
- }
976
-
977
- /**
978
- * Properties of a RegexMatchOptions.
979
- */
980
- declare type api$IRegexMatchOptions = {|
981
- /**
982
- * RegexMatchOptions expression
983
- */
984
- expression?: string | null,
985
- |};
986
-
987
- /**
988
- * Represents a RegexMatchOptions.
989
- */
990
- declare class api$RegexMatchOptions {
991
- /**
992
- * Constructs a new RegexMatchOptions.
993
- * @param [properties] Properties to set
994
- */
995
- constructor(properties?: api$IRegexMatchOptions): this;
996
-
997
- /**
998
- * RegexMatchOptions expression.
999
- */
1000
- expression: string;
1001
-
1002
- /**
1003
- * Creates a new RegexMatchOptions instance using the specified properties.
1004
- * @param [properties] Properties to set
1005
- * @returns RegexMatchOptions instance
1006
- */
1007
- static create(properties?: api$IRegexMatchOptions): api$RegexMatchOptions;
1008
-
1009
- /**
1010
- * [object Object],[object Object],[object Object]
1011
- * @param message RegexMatchOptions message or plain object to encode
1012
- * @param [writer] Writer to encode to
1013
- * @returns Writer
1014
- */
1015
- static encode(
1016
- message: api$RegexMatchOptions,
1017
- writer?: $protobuf.Writer
1018
- ): $protobuf.Writer;
1019
-
1020
- /**
1021
- * [object Object],[object Object],[object Object]
1022
- * @param message RegexMatchOptions message or plain object to encode
1023
- * @param [writer] Writer to encode to
1024
- * @returns Writer
1025
- */
1026
- static encodeDelimited(
1027
- message: api$RegexMatchOptions,
1028
- writer?: $protobuf.Writer
1029
- ): $protobuf.Writer;
1030
-
1031
- /**
1032
- * Decodes a RegexMatchOptions message from the specified reader or buffer.
1033
- * @param reader Reader or buffer to decode from
1034
- * @param [length] Message length if known beforehand
1035
- * @returns RegexMatchOptions
1036
- * @throws {Error} If the payload is not a reader or valid buffer
1037
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1038
- */
1039
- static decode(
1040
- reader: $protobuf.Reader | Uint8Array,
1041
- length?: number
1042
- ): api$RegexMatchOptions;
1043
-
1044
- /**
1045
- * Decodes a RegexMatchOptions message from the specified reader or buffer, length delimited.
1046
- * @param reader Reader or buffer to decode from
1047
- * @returns RegexMatchOptions
1048
- * @throws {Error} If the payload is not a reader or valid buffer
1049
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1050
- */
1051
- static decodeDelimited(
1052
- reader: $protobuf.Reader | Uint8Array
1053
- ): api$RegexMatchOptions;
1054
-
1055
- /**
1056
- * Verifies a RegexMatchOptions message.
1057
- * @param message Plain object to verify
1058
- * @returns `null` if valid, otherwise the reason why it is not
1059
- */
1060
- static verify(message: {|
1061
- [k: string]: any,
1062
- |}): string | null;
1063
-
1064
- /**
1065
- * Creates a RegexMatchOptions message from a plain object. Also converts values to their respective internal types.
1066
- * @param object Plain object
1067
- * @returns RegexMatchOptions
1068
- */
1069
- static fromObject(object: {|
1070
- [k: string]: any,
1071
- |}): api$RegexMatchOptions;
1072
-
1073
- /**
1074
- * Creates a plain object from a RegexMatchOptions message. Also converts values to other types if specified.
1075
- * @param message RegexMatchOptions
1076
- * @param [options] Conversion options
1077
- * @returns Plain object
1078
- */
1079
- static toObject(
1080
- message: api$RegexMatchOptions,
1081
- options?: $protobuf.IConversionOptions
1082
- ): {|
1083
- [k: string]: any,
1084
- |};
1085
-
1086
- /**
1087
- * Converts this RegexMatchOptions to JSON.
1088
- * @returns JSON object
1089
- */
1090
- toJSON(): {|
1091
- [k: string]: any,
1092
- |};
1093
- }
1094
-
1095
- /**
1096
- * Properties of an ExactMatchOptions.
1097
- */
1098
- declare type api$IExactMatchOptions = {|
1099
- /**
1100
- * ExactMatchOptions expected
1101
- */
1102
- expected?: string | null,
1103
-
1104
- /**
1105
- * ExactMatchOptions allowTrailingNewline
1106
- */
1107
- allowTrailingNewline?: boolean | null,
1108
- |};
1109
-
1110
- /**
1111
- * Represents an ExactMatchOptions.
1112
- */
1113
- declare class api$ExactMatchOptions {
1114
- /**
1115
- * Constructs a new ExactMatchOptions.
1116
- * @param [properties] Properties to set
1117
- */
1118
- constructor(properties?: api$IExactMatchOptions): this;
1119
-
1120
- /**
1121
- * ExactMatchOptions expected.
1122
- */
1123
- expected: string;
1124
-
1125
- /**
1126
- * ExactMatchOptions allowTrailingNewline.
1127
- */
1128
- allowTrailingNewline: boolean;
1129
-
1130
- /**
1131
- * Creates a new ExactMatchOptions instance using the specified properties.
1132
- * @param [properties] Properties to set
1133
- * @returns ExactMatchOptions instance
1134
- */
1135
- static create(properties?: api$IExactMatchOptions): api$ExactMatchOptions;
1136
-
1137
- /**
1138
- * [object Object],[object Object],[object Object]
1139
- * @param message ExactMatchOptions message or plain object to encode
1140
- * @param [writer] Writer to encode to
1141
- * @returns Writer
1142
- */
1143
- static encode(
1144
- message: api$ExactMatchOptions,
1145
- writer?: $protobuf.Writer
1146
- ): $protobuf.Writer;
1147
-
1148
- /**
1149
- * [object Object],[object Object],[object Object]
1150
- * @param message ExactMatchOptions message or plain object to encode
1151
- * @param [writer] Writer to encode to
1152
- * @returns Writer
1153
- */
1154
- static encodeDelimited(
1155
- message: api$ExactMatchOptions,
1156
- writer?: $protobuf.Writer
1157
- ): $protobuf.Writer;
1158
-
1159
- /**
1160
- * Decodes an ExactMatchOptions message from the specified reader or buffer.
1161
- * @param reader Reader or buffer to decode from
1162
- * @param [length] Message length if known beforehand
1163
- * @returns ExactMatchOptions
1164
- * @throws {Error} If the payload is not a reader or valid buffer
1165
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1166
- */
1167
- static decode(
1168
- reader: $protobuf.Reader | Uint8Array,
1169
- length?: number
1170
- ): api$ExactMatchOptions;
1171
-
1172
- /**
1173
- * Decodes an ExactMatchOptions message from the specified reader or buffer, length delimited.
1174
- * @param reader Reader or buffer to decode from
1175
- * @returns ExactMatchOptions
1176
- * @throws {Error} If the payload is not a reader or valid buffer
1177
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1178
- */
1179
- static decodeDelimited(
1180
- reader: $protobuf.Reader | Uint8Array
1181
- ): api$ExactMatchOptions;
1182
-
1183
- /**
1184
- * Verifies an ExactMatchOptions message.
1185
- * @param message Plain object to verify
1186
- * @returns `null` if valid, otherwise the reason why it is not
1187
- */
1188
- static verify(message: {|
1189
- [k: string]: any,
1190
- |}): string | null;
1191
-
1192
- /**
1193
- * Creates an ExactMatchOptions message from a plain object. Also converts values to their respective internal types.
1194
- * @param object Plain object
1195
- * @returns ExactMatchOptions
1196
- */
1197
- static fromObject(object: {|
1198
- [k: string]: any,
1199
- |}): api$ExactMatchOptions;
1200
-
1201
- /**
1202
- * Creates a plain object from an ExactMatchOptions message. Also converts values to other types if specified.
1203
- * @param message ExactMatchOptions
1204
- * @param [options] Conversion options
1205
- * @returns Plain object
1206
- */
1207
- static toObject(
1208
- message: api$ExactMatchOptions,
1209
- options?: $protobuf.IConversionOptions
1210
- ): {|
1211
- [k: string]: any,
1212
- |};
1213
-
1214
- /**
1215
- * Converts this ExactMatchOptions to JSON.
1216
- * @returns JSON object
1217
- */
1218
- toJSON(): {|
1219
- [k: string]: any,
1220
- |};
1221
- }
1222
-
1223
- /**
1224
- * Properties of a MatchMatchOptions.
1225
- */
1226
- declare type api$IMatchMatchOptions = {|
1227
- /**
1228
- * MatchMatchOptions expected
1229
- */
1230
- expected?: string | null,
1231
-
1232
- /**
1233
- * MatchMatchOptions ignoreTrailingWhitespace
1234
- */
1235
- ignoreTrailingWhitespace?: boolean | null,
1236
- |};
1237
-
1238
- /**
1239
- * Represents a MatchMatchOptions.
1240
- */
1241
- declare class api$MatchMatchOptions {
1242
- /**
1243
- * Constructs a new MatchMatchOptions.
1244
- * @param [properties] Properties to set
1245
- */
1246
- constructor(properties?: api$IMatchMatchOptions): this;
1247
-
1248
- /**
1249
- * MatchMatchOptions expected.
1250
- */
1251
- expected: string;
1252
-
1253
- /**
1254
- * MatchMatchOptions ignoreTrailingWhitespace.
1255
- */
1256
- ignoreTrailingWhitespace: boolean;
1257
-
1258
- /**
1259
- * Creates a new MatchMatchOptions instance using the specified properties.
1260
- * @param [properties] Properties to set
1261
- * @returns MatchMatchOptions instance
1262
- */
1263
- static create(properties?: api$IMatchMatchOptions): api$MatchMatchOptions;
1264
-
1265
- /**
1266
- * [object Object],[object Object],[object Object]
1267
- * @param message MatchMatchOptions message or plain object to encode
1268
- * @param [writer] Writer to encode to
1269
- * @returns Writer
1270
- */
1271
- static encode(
1272
- message: api$MatchMatchOptions,
1273
- writer?: $protobuf.Writer
1274
- ): $protobuf.Writer;
1275
-
1276
- /**
1277
- * [object Object],[object Object],[object Object]
1278
- * @param message MatchMatchOptions message or plain object to encode
1279
- * @param [writer] Writer to encode to
1280
- * @returns Writer
1281
- */
1282
- static encodeDelimited(
1283
- message: api$MatchMatchOptions,
1284
- writer?: $protobuf.Writer
1285
- ): $protobuf.Writer;
1286
-
1287
- /**
1288
- * Decodes a MatchMatchOptions message from the specified reader or buffer.
1289
- * @param reader Reader or buffer to decode from
1290
- * @param [length] Message length if known beforehand
1291
- * @returns MatchMatchOptions
1292
- * @throws {Error} If the payload is not a reader or valid buffer
1293
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1294
- */
1295
- static decode(
1296
- reader: $protobuf.Reader | Uint8Array,
1297
- length?: number
1298
- ): api$MatchMatchOptions;
1299
-
1300
- /**
1301
- * Decodes a MatchMatchOptions message from the specified reader or buffer, length delimited.
1302
- * @param reader Reader or buffer to decode from
1303
- * @returns MatchMatchOptions
1304
- * @throws {Error} If the payload is not a reader or valid buffer
1305
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1306
- */
1307
- static decodeDelimited(
1308
- reader: $protobuf.Reader | Uint8Array
1309
- ): api$MatchMatchOptions;
1310
-
1311
- /**
1312
- * Verifies a MatchMatchOptions message.
1313
- * @param message Plain object to verify
1314
- * @returns `null` if valid, otherwise the reason why it is not
1315
- */
1316
- static verify(message: {|
1317
- [k: string]: any,
1318
- |}): string | null;
1319
-
1320
- /**
1321
- * Creates a MatchMatchOptions message from a plain object. Also converts values to their respective internal types.
1322
- * @param object Plain object
1323
- * @returns MatchMatchOptions
1324
- */
1325
- static fromObject(object: {|
1326
- [k: string]: any,
1327
- |}): api$MatchMatchOptions;
1328
-
1329
- /**
1330
- * Creates a plain object from a MatchMatchOptions message. Also converts values to other types if specified.
1331
- * @param message MatchMatchOptions
1332
- * @param [options] Conversion options
1333
- * @returns Plain object
1334
- */
1335
- static toObject(
1336
- message: api$MatchMatchOptions,
1337
- options?: $protobuf.IConversionOptions
1338
- ): {|
1339
- [k: string]: any,
1340
- |};
1341
-
1342
- /**
1343
- * Converts this MatchMatchOptions to JSON.
1344
- * @returns JSON object
1345
- */
1346
- toJSON(): {|
1347
- [k: string]: any,
1348
- |};
1349
- }
1350
-
1351
- /**
1352
- * Properties of a CompatibilityMatchOptions.
1353
- */
1354
- declare type api$ICompatibilityMatchOptions = {|
1355
- /**
1356
- * CompatibilityMatchOptions expected
1357
- */
1358
- expected?: string | null,
1359
- |};
1360
-
1361
- /**
1362
- * Represents a CompatibilityMatchOptions.
1363
- */
1364
- declare class api$CompatibilityMatchOptions {
1365
- /**
1366
- * Constructs a new CompatibilityMatchOptions.
1367
- * @param [properties] Properties to set
1368
- */
1369
- constructor(properties?: api$ICompatibilityMatchOptions): this;
1370
-
1371
- /**
1372
- * CompatibilityMatchOptions expected.
1373
- */
1374
- expected: string;
1375
-
1376
- /**
1377
- * Creates a new CompatibilityMatchOptions instance using the specified properties.
1378
- * @param [properties] Properties to set
1379
- * @returns CompatibilityMatchOptions instance
1380
- */
1381
- static create(
1382
- properties?: api$ICompatibilityMatchOptions
1383
- ): api$CompatibilityMatchOptions;
1384
-
1385
- /**
1386
- * [object Object],[object Object],[object Object]
1387
- * @param message CompatibilityMatchOptions message or plain object to encode
1388
- * @param [writer] Writer to encode to
1389
- * @returns Writer
1390
- */
1391
- static encode(
1392
- message: api$CompatibilityMatchOptions,
1393
- writer?: $protobuf.Writer
1394
- ): $protobuf.Writer;
1395
-
1396
- /**
1397
- * [object Object],[object Object],[object Object]
1398
- * @param message CompatibilityMatchOptions message or plain object to encode
1399
- * @param [writer] Writer to encode to
1400
- * @returns Writer
1401
- */
1402
- static encodeDelimited(
1403
- message: api$CompatibilityMatchOptions,
1404
- writer?: $protobuf.Writer
1405
- ): $protobuf.Writer;
1406
-
1407
- /**
1408
- * Decodes a CompatibilityMatchOptions message from the specified reader or buffer.
1409
- * @param reader Reader or buffer to decode from
1410
- * @param [length] Message length if known beforehand
1411
- * @returns CompatibilityMatchOptions
1412
- * @throws {Error} If the payload is not a reader or valid buffer
1413
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1414
- */
1415
- static decode(
1416
- reader: $protobuf.Reader | Uint8Array,
1417
- length?: number
1418
- ): api$CompatibilityMatchOptions;
1419
-
1420
- /**
1421
- * Decodes a CompatibilityMatchOptions message from the specified reader or buffer, length delimited.
1422
- * @param reader Reader or buffer to decode from
1423
- * @returns CompatibilityMatchOptions
1424
- * @throws {Error} If the payload is not a reader or valid buffer
1425
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1426
- */
1427
- static decodeDelimited(
1428
- reader: $protobuf.Reader | Uint8Array
1429
- ): api$CompatibilityMatchOptions;
1430
-
1431
- /**
1432
- * Verifies a CompatibilityMatchOptions message.
1433
- * @param message Plain object to verify
1434
- * @returns `null` if valid, otherwise the reason why it is not
1435
- */
1436
- static verify(message: {|
1437
- [k: string]: any,
1438
- |}): string | null;
1439
-
1440
- /**
1441
- * Creates a CompatibilityMatchOptions message from a plain object. Also converts values to their respective internal types.
1442
- * @param object Plain object
1443
- * @returns CompatibilityMatchOptions
1444
- */
1445
- static fromObject(object: {|
1446
- [k: string]: any,
1447
- |}): api$CompatibilityMatchOptions;
1448
-
1449
- /**
1450
- * Creates a plain object from a CompatibilityMatchOptions message. Also converts values to other types if specified.
1451
- * @param message CompatibilityMatchOptions
1452
- * @param [options] Conversion options
1453
- * @returns Plain object
1454
- */
1455
- static toObject(
1456
- message: api$CompatibilityMatchOptions,
1457
- options?: $protobuf.IConversionOptions
1458
- ): {|
1459
- [k: string]: any,
1460
- |};
1461
-
1462
- /**
1463
- * Converts this CompatibilityMatchOptions to JSON.
1464
- * @returns JSON object
1465
- */
1466
- toJSON(): {|
1467
- [k: string]: any,
1468
- |};
1469
- }
1470
-
1471
- /**
1472
- * Status enum.
1473
- */
1474
-
1475
- declare var api$Status: {|
1476
- +Ready: 0, // 0
1477
- +Building: 1, // 1
1478
- +Running: 2, // 2
1479
- |};
1480
-
1481
- /**
1482
- * Properties of a Response.
1483
- */
1484
- declare type api$IResponse = {|
1485
- /**
1486
- * Response error
1487
- */
1488
- error?: api$Error | api$IError | null,
1489
-
1490
- /**
1491
- * Response testResult
1492
- */
1493
- testResult?: api$TestResult | api$ITestResult | null,
1494
-
1495
- /**
1496
- * Response instructionResult
1497
- */
1498
- instructionResult?: api$InstructionResult | api$IInstructionResult | null,
1499
-
1500
- /**
1501
- * Response status
1502
- */
1503
- status?: $Values<typeof api$Status> | null,
1504
- |};
1505
-
1506
- /**
1507
- * Represents a Response.
1508
- */
1509
- declare class api$Response {
1510
- /**
1511
- * Constructs a new Response.
1512
- * @param [properties] Properties to set
1513
- */
1514
- constructor(properties?: api$IResponse): this;
1515
-
1516
- /**
1517
- * Response error.
1518
- */
1519
- error?: api$Error | null;
1520
-
1521
- /**
1522
- * Response testResult.
1523
- */
1524
- testResult?: api$TestResult | null;
1525
-
1526
- /**
1527
- * Response instructionResult.
1528
- */
1529
- instructionResult?: api$InstructionResult | null;
1530
-
1531
- /**
1532
- * Response status.
1533
- */
1534
- status?: $Values<typeof api$Status> | null;
1535
-
1536
- /**
1537
- * Response body.
1538
- */
1539
- body?: "error" | "testResult" | "instructionResult" | "status";
1540
-
1541
- /**
1542
- * Creates a new Response instance using the specified properties.
1543
- * @param [properties] Properties to set
1544
- * @returns Response instance
1545
- */
1546
- static create(properties?: api$IResponse): api$Response;
1547
-
1548
- /**
1549
- * [object Object],[object Object],[object Object]
1550
- * @param message Response message or plain object to encode
1551
- * @param [writer] Writer to encode to
1552
- * @returns Writer
1553
- */
1554
- static encode(
1555
- message: api$Response,
1556
- writer?: $protobuf.Writer
1557
- ): $protobuf.Writer;
1558
-
1559
- /**
1560
- * [object Object],[object Object],[object Object]
1561
- * @param message Response message or plain object to encode
1562
- * @param [writer] Writer to encode to
1563
- * @returns Writer
1564
- */
1565
- static encodeDelimited(
1566
- message: api$Response,
1567
- writer?: $protobuf.Writer
1568
- ): $protobuf.Writer;
1569
-
1570
- /**
1571
- * Decodes a Response message from the specified reader or buffer.
1572
- * @param reader Reader or buffer to decode from
1573
- * @param [length] Message length if known beforehand
1574
- * @returns Response
1575
- * @throws {Error} If the payload is not a reader or valid buffer
1576
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1577
- */
1578
- static decode(
1579
- reader: $protobuf.Reader | Uint8Array,
1580
- length?: number
1581
- ): api$Response;
1582
-
1583
- /**
1584
- * Decodes a Response message from the specified reader or buffer, length delimited.
1585
- * @param reader Reader or buffer to decode from
1586
- * @returns Response
1587
- * @throws {Error} If the payload is not a reader or valid buffer
1588
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1589
- */
1590
- static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$Response;
1591
-
1592
- /**
1593
- * Verifies a Response message.
1594
- * @param message Plain object to verify
1595
- * @returns `null` if valid, otherwise the reason why it is not
1596
- */
1597
- static verify(message: {|
1598
- [k: string]: any,
1599
- |}): string | null;
1600
-
1601
- /**
1602
- * Creates a Response message from a plain object. Also converts values to their respective internal types.
1603
- * @param object Plain object
1604
- * @returns Response
1605
- */
1606
- static fromObject(object: {|
1607
- [k: string]: any,
1608
- |}): api$Response;
1609
-
1610
- /**
1611
- * Creates a plain object from a Response message. Also converts values to other types if specified.
1612
- * @param message Response
1613
- * @param [options] Conversion options
1614
- * @returns Plain object
1615
- */
1616
- static toObject(
1617
- message: api$Response,
1618
- options?: $protobuf.IConversionOptions
1619
- ): {|
1620
- [k: string]: any,
1621
- |};
1622
-
1623
- /**
1624
- * Converts this Response to JSON.
1625
- * @returns JSON object
1626
- */
1627
- toJSON(): {|
1628
- [k: string]: any,
1629
- |};
1630
- }
1631
-
1632
- /**
1633
- * Properties of a TestResult.
1634
- */
1635
- declare type api$ITestResult = {|
1636
- /**
1637
- * TestResult testId
1638
- */
1639
- testId?: number | null,
1640
-
1641
- /**
1642
- * TestResult passed
1643
- */
1644
- passed?: api$TestResult$Passed | api$TestResult$IPassed | null,
1645
-
1646
- /**
1647
- * TestResult failed
1648
- */
1649
- failed?: api$TestResult$Failed | api$TestResult$IFailed | null,
1650
-
1651
- /**
1652
- * TestResult error
1653
- */
1654
- error?: api$Error | api$IError | null,
1655
- |};
1656
-
1657
- /**
1658
- * Represents a TestResult.
1659
- */
1660
- declare class api$TestResult {
1661
- /**
1662
- * Constructs a new TestResult.
1663
- * @param [properties] Properties to set
1664
- */
1665
- constructor(properties?: api$ITestResult): this;
1666
-
1667
- /**
1668
- * TestResult testId.
1669
- */
1670
- testId: number;
1671
-
1672
- /**
1673
- * TestResult passed.
1674
- */
1675
- passed?: api$TestResult$Passed | null;
1676
-
1677
- /**
1678
- * TestResult failed.
1679
- */
1680
- failed?: api$TestResult$Failed | null;
1681
-
1682
- /**
1683
- * TestResult error.
1684
- */
1685
- error?: api$Error | null;
1686
-
1687
- /**
1688
- * TestResult body.
1689
- */
1690
- body?: "passed" | "failed" | "error";
1691
-
1692
- /**
1693
- * Creates a new TestResult instance using the specified properties.
1694
- * @param [properties] Properties to set
1695
- * @returns TestResult instance
1696
- */
1697
- static create(properties?: api$ITestResult): api$TestResult;
1698
-
1699
- /**
1700
- * [object Object],[object Object],[object Object]
1701
- * @param message TestResult message or plain object to encode
1702
- * @param [writer] Writer to encode to
1703
- * @returns Writer
1704
- */
1705
- static encode(
1706
- message: api$TestResult,
1707
- writer?: $protobuf.Writer
1708
- ): $protobuf.Writer;
1709
-
1710
- /**
1711
- * [object Object],[object Object],[object Object]
1712
- * @param message TestResult message or plain object to encode
1713
- * @param [writer] Writer to encode to
1714
- * @returns Writer
1715
- */
1716
- static encodeDelimited(
1717
- message: api$TestResult,
1718
- writer?: $protobuf.Writer
1719
- ): $protobuf.Writer;
1720
-
1721
- /**
1722
- * Decodes a TestResult message from the specified reader or buffer.
1723
- * @param reader Reader or buffer to decode from
1724
- * @param [length] Message length if known beforehand
1725
- * @returns TestResult
1726
- * @throws {Error} If the payload is not a reader or valid buffer
1727
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1728
- */
1729
- static decode(
1730
- reader: $protobuf.Reader | Uint8Array,
1731
- length?: number
1732
- ): api$TestResult;
1733
-
1734
- /**
1735
- * Decodes a TestResult message from the specified reader or buffer, length delimited.
1736
- * @param reader Reader or buffer to decode from
1737
- * @returns TestResult
1738
- * @throws {Error} If the payload is not a reader or valid buffer
1739
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1740
- */
1741
- static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$TestResult;
1742
-
1743
- /**
1744
- * Verifies a TestResult message.
1745
- * @param message Plain object to verify
1746
- * @returns `null` if valid, otherwise the reason why it is not
1747
- */
1748
- static verify(message: {|
1749
- [k: string]: any,
1750
- |}): string | null;
1751
-
1752
- /**
1753
- * Creates a TestResult message from a plain object. Also converts values to their respective internal types.
1754
- * @param object Plain object
1755
- * @returns TestResult
1756
- */
1757
- static fromObject(object: {|
1758
- [k: string]: any,
1759
- |}): api$TestResult;
1760
-
1761
- /**
1762
- * Creates a plain object from a TestResult message. Also converts values to other types if specified.
1763
- * @param message TestResult
1764
- * @param [options] Conversion options
1765
- * @returns Plain object
1766
- */
1767
- static toObject(
1768
- message: api$TestResult,
1769
- options?: $protobuf.IConversionOptions
1770
- ): {|
1771
- [k: string]: any,
1772
- |};
1773
-
1774
- /**
1775
- * Converts this TestResult to JSON.
1776
- * @returns JSON object
1777
- */
1778
- toJSON(): {|
1779
- [k: string]: any,
1780
- |};
1781
- static IPassed: Class<api$TestResult$IPassed>;
1782
- static IFailed: Class<api$TestResult$IFailed>;
1783
- static Passed: typeof api$TestResult$Passed;
1784
- static Failed: typeof api$TestResult$Failed;
1785
- }
1786
-
1787
- /**
1788
- * Properties of a Passed.
1789
- */
1790
- declare type api$TestResult$IPassed = {||};
1791
-
1792
- /**
1793
- * Represents a Passed.
1794
- */
1795
- declare class api$TestResult$Passed {
1796
- /**
1797
- * Constructs a new Passed.
1798
- * @param [properties] Properties to set
1799
- */
1800
- constructor(properties?: api$TestResult$IPassed): this;
1801
-
1802
- /**
1803
- * Creates a new Passed instance using the specified properties.
1804
- * @param [properties] Properties to set
1805
- * @returns Passed instance
1806
- */
1807
- static create(properties?: api$TestResult$IPassed): api$TestResult$Passed;
1808
-
1809
- /**
1810
- * [object Object],[object Object],[object Object]
1811
- * @param message Passed message or plain object to encode
1812
- * @param [writer] Writer to encode to
1813
- * @returns Writer
1814
- */
1815
- static encode(
1816
- message: api$TestResult$Passed,
1817
- writer?: $protobuf.Writer
1818
- ): $protobuf.Writer;
1819
-
1820
- /**
1821
- * [object Object],[object Object],[object Object]
1822
- * @param message Passed message or plain object to encode
1823
- * @param [writer] Writer to encode to
1824
- * @returns Writer
1825
- */
1826
- static encodeDelimited(
1827
- message: api$TestResult$Passed,
1828
- writer?: $protobuf.Writer
1829
- ): $protobuf.Writer;
1830
-
1831
- /**
1832
- * Decodes a Passed message from the specified reader or buffer.
1833
- * @param reader Reader or buffer to decode from
1834
- * @param [length] Message length if known beforehand
1835
- * @returns Passed
1836
- * @throws {Error} If the payload is not a reader or valid buffer
1837
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1838
- */
1839
- static decode(
1840
- reader: $protobuf.Reader | Uint8Array,
1841
- length?: number
1842
- ): api$TestResult$Passed;
1843
-
1844
- /**
1845
- * Decodes a Passed message from the specified reader or buffer, length delimited.
1846
- * @param reader Reader or buffer to decode from
1847
- * @returns Passed
1848
- * @throws {Error} If the payload is not a reader or valid buffer
1849
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1850
- */
1851
- static decodeDelimited(
1852
- reader: $protobuf.Reader | Uint8Array
1853
- ): api$TestResult$Passed;
1854
-
1855
- /**
1856
- * Verifies a Passed message.
1857
- * @param message Plain object to verify
1858
- * @returns `null` if valid, otherwise the reason why it is not
1859
- */
1860
- static verify(message: {|
1861
- [k: string]: any,
1862
- |}): string | null;
1863
-
1864
- /**
1865
- * Creates a Passed message from a plain object. Also converts values to their respective internal types.
1866
- * @param object Plain object
1867
- * @returns Passed
1868
- */
1869
- static fromObject(object: {|
1870
- [k: string]: any,
1871
- |}): api$TestResult$Passed;
1872
-
1873
- /**
1874
- * Creates a plain object from a Passed message. Also converts values to other types if specified.
1875
- * @param message Passed
1876
- * @param [options] Conversion options
1877
- * @returns Plain object
1878
- */
1879
- static toObject(
1880
- message: api$TestResult$Passed,
1881
- options?: $protobuf.IConversionOptions
1882
- ): {|
1883
- [k: string]: any,
1884
- |};
1885
-
1886
- /**
1887
- * Converts this Passed to JSON.
1888
- * @returns JSON object
1889
- */
1890
- toJSON(): {|
1891
- [k: string]: any,
1892
- |};
1893
- }
1894
-
1895
- /**
1896
- * Properties of a Failed.
1897
- */
1898
- declare type api$TestResult$IFailed = {||};
1899
-
1900
- /**
1901
- * Represents a Failed.
1902
- */
1903
- declare class api$TestResult$Failed {
1904
- /**
1905
- * Constructs a new Failed.
1906
- * @param [properties] Properties to set
1907
- */
1908
- constructor(properties?: api$TestResult$IFailed): this;
1909
-
1910
- /**
1911
- * Creates a new Failed instance using the specified properties.
1912
- * @param [properties] Properties to set
1913
- * @returns Failed instance
1914
- */
1915
- static create(properties?: api$TestResult$IFailed): api$TestResult$Failed;
1916
-
1917
- /**
1918
- * [object Object],[object Object],[object Object]
1919
- * @param message Failed message or plain object to encode
1920
- * @param [writer] Writer to encode to
1921
- * @returns Writer
1922
- */
1923
- static encode(
1924
- message: api$TestResult$Failed,
1925
- writer?: $protobuf.Writer
1926
- ): $protobuf.Writer;
1927
-
1928
- /**
1929
- * [object Object],[object Object],[object Object]
1930
- * @param message Failed message or plain object to encode
1931
- * @param [writer] Writer to encode to
1932
- * @returns Writer
1933
- */
1934
- static encodeDelimited(
1935
- message: api$TestResult$Failed,
1936
- writer?: $protobuf.Writer
1937
- ): $protobuf.Writer;
1938
-
1939
- /**
1940
- * Decodes a Failed message from the specified reader or buffer.
1941
- * @param reader Reader or buffer to decode from
1942
- * @param [length] Message length if known beforehand
1943
- * @returns Failed
1944
- * @throws {Error} If the payload is not a reader or valid buffer
1945
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1946
- */
1947
- static decode(
1948
- reader: $protobuf.Reader | Uint8Array,
1949
- length?: number
1950
- ): api$TestResult$Failed;
1951
-
1952
- /**
1953
- * Decodes a Failed message from the specified reader or buffer, length delimited.
1954
- * @param reader Reader or buffer to decode from
1955
- * @returns Failed
1956
- * @throws {Error} If the payload is not a reader or valid buffer
1957
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1958
- */
1959
- static decodeDelimited(
1960
- reader: $protobuf.Reader | Uint8Array
1961
- ): api$TestResult$Failed;
1962
-
1963
- /**
1964
- * Verifies a Failed message.
1965
- * @param message Plain object to verify
1966
- * @returns `null` if valid, otherwise the reason why it is not
1967
- */
1968
- static verify(message: {|
1969
- [k: string]: any,
1970
- |}): string | null;
1971
-
1972
- /**
1973
- * Creates a Failed message from a plain object. Also converts values to their respective internal types.
1974
- * @param object Plain object
1975
- * @returns Failed
1976
- */
1977
- static fromObject(object: {|
1978
- [k: string]: any,
1979
- |}): api$TestResult$Failed;
1980
-
1981
- /**
1982
- * Creates a plain object from a Failed message. Also converts values to other types if specified.
1983
- * @param message Failed
1984
- * @param [options] Conversion options
1985
- * @returns Plain object
1986
- */
1987
- static toObject(
1988
- message: api$TestResult$Failed,
1989
- options?: $protobuf.IConversionOptions
1990
- ): {|
1991
- [k: string]: any,
1992
- |};
1993
-
1994
- /**
1995
- * Converts this Failed to JSON.
1996
- * @returns JSON object
1997
- */
1998
- toJSON(): {|
1999
- [k: string]: any,
2000
- |};
2001
- }
2002
-
2003
- /**
2004
- * Properties of an InstructionResult.
2005
- */
2006
- declare type api$IInstructionResult = {|
2007
- /**
2008
- * InstructionResult instructionId
2009
- */
2010
- instructionId?: number | null,
2011
-
2012
- /**
2013
- * InstructionResult passed
2014
- */
2015
- passed?: api$InstructionResult$Passed | api$InstructionResult$IPassed | null,
2016
-
2017
- /**
2018
- * InstructionResult failed
2019
- */
2020
- failed?: api$InstructionResult$Failed | api$InstructionResult$IFailed | null,
2021
-
2022
- /**
2023
- * InstructionResult timeout
2024
- */
2025
- timeout?:
2026
- | api$InstructionResult$Timeout
2027
- | api$InstructionResult$ITimeout
2028
- | null,
2029
-
2030
- /**
2031
- * InstructionResult error
2032
- */
2033
- error?: api$Error | api$IError | null,
2034
- |};
2035
-
2036
- /**
2037
- * Represents an InstructionResult.
2038
- */
2039
- declare class api$InstructionResult {
2040
- /**
2041
- * Constructs a new InstructionResult.
2042
- * @param [properties] Properties to set
2043
- */
2044
- constructor(properties?: api$IInstructionResult): this;
2045
-
2046
- /**
2047
- * InstructionResult instructionId.
2048
- */
2049
- instructionId: number;
2050
-
2051
- /**
2052
- * InstructionResult passed.
2053
- */
2054
- passed?: api$InstructionResult$Passed | null;
2055
-
2056
- /**
2057
- * InstructionResult failed.
2058
- */
2059
- failed?: api$InstructionResult$Failed | null;
2060
-
2061
- /**
2062
- * InstructionResult timeout.
2063
- */
2064
- timeout?: api$InstructionResult$Timeout | null;
2065
-
2066
- /**
2067
- * InstructionResult error.
2068
- */
2069
- error?: api$Error | null;
2070
-
2071
- /**
2072
- * InstructionResult body.
2073
- */
2074
- body?: "passed" | "failed" | "timeout" | "error";
2075
-
2076
- /**
2077
- * Creates a new InstructionResult instance using the specified properties.
2078
- * @param [properties] Properties to set
2079
- * @returns InstructionResult instance
2080
- */
2081
- static create(properties?: api$IInstructionResult): api$InstructionResult;
2082
-
2083
- /**
2084
- * [object Object],[object Object],[object Object]
2085
- * @param message InstructionResult message or plain object to encode
2086
- * @param [writer] Writer to encode to
2087
- * @returns Writer
2088
- */
2089
- static encode(
2090
- message: api$InstructionResult,
2091
- writer?: $protobuf.Writer
2092
- ): $protobuf.Writer;
2093
-
2094
- /**
2095
- * [object Object],[object Object],[object Object]
2096
- * @param message InstructionResult message or plain object to encode
2097
- * @param [writer] Writer to encode to
2098
- * @returns Writer
2099
- */
2100
- static encodeDelimited(
2101
- message: api$InstructionResult,
2102
- writer?: $protobuf.Writer
2103
- ): $protobuf.Writer;
2104
-
2105
- /**
2106
- * Decodes an InstructionResult message from the specified reader or buffer.
2107
- * @param reader Reader or buffer to decode from
2108
- * @param [length] Message length if known beforehand
2109
- * @returns InstructionResult
2110
- * @throws {Error} If the payload is not a reader or valid buffer
2111
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
2112
- */
2113
- static decode(
2114
- reader: $protobuf.Reader | Uint8Array,
2115
- length?: number
2116
- ): api$InstructionResult;
2117
-
2118
- /**
2119
- * Decodes an InstructionResult message from the specified reader or buffer, length delimited.
2120
- * @param reader Reader or buffer to decode from
2121
- * @returns InstructionResult
2122
- * @throws {Error} If the payload is not a reader or valid buffer
2123
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
2124
- */
2125
- static decodeDelimited(
2126
- reader: $protobuf.Reader | Uint8Array
2127
- ): api$InstructionResult;
2128
-
2129
- /**
2130
- * Verifies an InstructionResult message.
2131
- * @param message Plain object to verify
2132
- * @returns `null` if valid, otherwise the reason why it is not
2133
- */
2134
- static verify(message: {|
2135
- [k: string]: any,
2136
- |}): string | null;
2137
-
2138
- /**
2139
- * Creates an InstructionResult message from a plain object. Also converts values to their respective internal types.
2140
- * @param object Plain object
2141
- * @returns InstructionResult
2142
- */
2143
- static fromObject(object: {|
2144
- [k: string]: any,
2145
- |}): api$InstructionResult;
2146
-
2147
- /**
2148
- * Creates a plain object from an InstructionResult message. Also converts values to other types if specified.
2149
- * @param message InstructionResult
2150
- * @param [options] Conversion options
2151
- * @returns Plain object
2152
- */
2153
- static toObject(
2154
- message: api$InstructionResult,
2155
- options?: $protobuf.IConversionOptions
2156
- ): {|
2157
- [k: string]: any,
2158
- |};
2159
-
2160
- /**
2161
- * Converts this InstructionResult to JSON.
2162
- * @returns JSON object
2163
- */
2164
- toJSON(): {|
2165
- [k: string]: any,
2166
- |};
2167
- static IPassed: Class<api$InstructionResult$IPassed>;
2168
- static IFailed: Class<api$InstructionResult$IFailed>;
2169
- static ITimeout: Class<api$InstructionResult$ITimeout>;
2170
- static Passed: typeof api$InstructionResult$Passed;
2171
- static Failed: typeof api$InstructionResult$Failed;
2172
- static Timeout: typeof api$InstructionResult$Timeout;
2173
- }
2174
-
2175
- /**
2176
- * Properties of a Passed.
2177
- */
2178
- declare type api$InstructionResult$IPassed = {|
2179
- /**
2180
- * Passed output
2181
- */
2182
- output?: string | null,
2183
- |};
2184
-
2185
- /**
2186
- * Represents a Passed.
2187
- */
2188
- declare class api$InstructionResult$Passed {
2189
- /**
2190
- * Constructs a new Passed.
2191
- * @param [properties] Properties to set
2192
- */
2193
- constructor(properties?: api$InstructionResult$IPassed): this;
2194
-
2195
- /**
2196
- * Passed output.
2197
- */
2198
- output: string;
2199
-
2200
- /**
2201
- * Creates a new Passed instance using the specified properties.
2202
- * @param [properties] Properties to set
2203
- * @returns Passed instance
2204
- */
2205
- static create(
2206
- properties?: api$InstructionResult$IPassed
2207
- ): api$InstructionResult$Passed;
2208
-
2209
- /**
2210
- * [object Object],[object Object],[object Object]
2211
- * @param message Passed message or plain object to encode
2212
- * @param [writer] Writer to encode to
2213
- * @returns Writer
2214
- */
2215
- static encode(
2216
- message: api$InstructionResult$Passed,
2217
- writer?: $protobuf.Writer
2218
- ): $protobuf.Writer;
2219
-
2220
- /**
2221
- * [object Object],[object Object],[object Object]
2222
- * @param message Passed message or plain object to encode
2223
- * @param [writer] Writer to encode to
2224
- * @returns Writer
2225
- */
2226
- static encodeDelimited(
2227
- message: api$InstructionResult$Passed,
2228
- writer?: $protobuf.Writer
2229
- ): $protobuf.Writer;
2230
-
2231
- /**
2232
- * Decodes a Passed message from the specified reader or buffer.
2233
- * @param reader Reader or buffer to decode from
2234
- * @param [length] Message length if known beforehand
2235
- * @returns Passed
2236
- * @throws {Error} If the payload is not a reader or valid buffer
2237
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
2238
- */
2239
- static decode(
2240
- reader: $protobuf.Reader | Uint8Array,
2241
- length?: number
2242
- ): api$InstructionResult$Passed;
2243
-
2244
- /**
2245
- * Decodes a Passed message from the specified reader or buffer, length delimited.
2246
- * @param reader Reader or buffer to decode from
2247
- * @returns Passed
2248
- * @throws {Error} If the payload is not a reader or valid buffer
2249
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
2250
- */
2251
- static decodeDelimited(
2252
- reader: $protobuf.Reader | Uint8Array
2253
- ): api$InstructionResult$Passed;
2254
-
2255
- /**
2256
- * Verifies a Passed message.
2257
- * @param message Plain object to verify
2258
- * @returns `null` if valid, otherwise the reason why it is not
2259
- */
2260
- static verify(message: {|
2261
- [k: string]: any,
2262
- |}): string | null;
2263
-
2264
- /**
2265
- * Creates a Passed message from a plain object. Also converts values to their respective internal types.
2266
- * @param object Plain object
2267
- * @returns Passed
2268
- */
2269
- static fromObject(object: {|
2270
- [k: string]: any,
2271
- |}): api$InstructionResult$Passed;
2272
-
2273
- /**
2274
- * Creates a plain object from a Passed message. Also converts values to other types if specified.
2275
- * @param message Passed
2276
- * @param [options] Conversion options
2277
- * @returns Plain object
2278
- */
2279
- static toObject(
2280
- message: api$InstructionResult$Passed,
2281
- options?: $protobuf.IConversionOptions
2282
- ): {|
2283
- [k: string]: any,
2284
- |};
2285
-
2286
- /**
2287
- * Converts this Passed to JSON.
2288
- * @returns JSON object
2289
- */
2290
- toJSON(): {|
2291
- [k: string]: any,
2292
- |};
2293
- }
2294
-
2295
- /**
2296
- * Properties of a Failed.
2297
- */
2298
- declare type api$InstructionResult$IFailed = {|
2299
- /**
2300
- * Failed output
2301
- */
2302
- output?: string | null,
2303
- |};
2304
-
2305
- /**
2306
- * Represents a Failed.
2307
- */
2308
- declare class api$InstructionResult$Failed {
2309
- /**
2310
- * Constructs a new Failed.
2311
- * @param [properties] Properties to set
2312
- */
2313
- constructor(properties?: api$InstructionResult$IFailed): this;
2314
-
2315
- /**
2316
- * Failed output.
2317
- */
2318
- output: string;
2319
-
2320
- /**
2321
- * Creates a new Failed instance using the specified properties.
2322
- * @param [properties] Properties to set
2323
- * @returns Failed instance
2324
- */
2325
- static create(
2326
- properties?: api$InstructionResult$IFailed
2327
- ): api$InstructionResult$Failed;
2328
-
2329
- /**
2330
- * [object Object],[object Object],[object Object]
2331
- * @param message Failed message or plain object to encode
2332
- * @param [writer] Writer to encode to
2333
- * @returns Writer
2334
- */
2335
- static encode(
2336
- message: api$InstructionResult$Failed,
2337
- writer?: $protobuf.Writer
2338
- ): $protobuf.Writer;
2339
-
2340
- /**
2341
- * [object Object],[object Object],[object Object]
2342
- * @param message Failed message or plain object to encode
2343
- * @param [writer] Writer to encode to
2344
- * @returns Writer
2345
- */
2346
- static encodeDelimited(
2347
- message: api$InstructionResult$Failed,
2348
- writer?: $protobuf.Writer
2349
- ): $protobuf.Writer;
2350
-
2351
- /**
2352
- * Decodes a Failed message from the specified reader or buffer.
2353
- * @param reader Reader or buffer to decode from
2354
- * @param [length] Message length if known beforehand
2355
- * @returns Failed
2356
- * @throws {Error} If the payload is not a reader or valid buffer
2357
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
2358
- */
2359
- static decode(
2360
- reader: $protobuf.Reader | Uint8Array,
2361
- length?: number
2362
- ): api$InstructionResult$Failed;
2363
-
2364
- /**
2365
- * Decodes a Failed message from the specified reader or buffer, length delimited.
2366
- * @param reader Reader or buffer to decode from
2367
- * @returns Failed
2368
- * @throws {Error} If the payload is not a reader or valid buffer
2369
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
2370
- */
2371
- static decodeDelimited(
2372
- reader: $protobuf.Reader | Uint8Array
2373
- ): api$InstructionResult$Failed;
2374
-
2375
- /**
2376
- * Verifies a Failed message.
2377
- * @param message Plain object to verify
2378
- * @returns `null` if valid, otherwise the reason why it is not
2379
- */
2380
- static verify(message: {|
2381
- [k: string]: any,
2382
- |}): string | null;
2383
-
2384
- /**
2385
- * Creates a Failed message from a plain object. Also converts values to their respective internal types.
2386
- * @param object Plain object
2387
- * @returns Failed
2388
- */
2389
- static fromObject(object: {|
2390
- [k: string]: any,
2391
- |}): api$InstructionResult$Failed;
2392
-
2393
- /**
2394
- * Creates a plain object from a Failed message. Also converts values to other types if specified.
2395
- * @param message Failed
2396
- * @param [options] Conversion options
2397
- * @returns Plain object
2398
- */
2399
- static toObject(
2400
- message: api$InstructionResult$Failed,
2401
- options?: $protobuf.IConversionOptions
2402
- ): {|
2403
- [k: string]: any,
2404
- |};
2405
-
2406
- /**
2407
- * Converts this Failed to JSON.
2408
- * @returns JSON object
2409
- */
2410
- toJSON(): {|
2411
- [k: string]: any,
2412
- |};
2413
- }
2414
-
2415
- /**
2416
- * Properties of a Timeout.
2417
- */
2418
- declare type api$InstructionResult$ITimeout = {|
2419
- /**
2420
- * Timeout output
2421
- */
2422
- output?: string | null,
2423
- |};
2424
-
2425
- /**
2426
- * Represents a Timeout.
2427
- */
2428
- declare class api$InstructionResult$Timeout {
2429
- /**
2430
- * Constructs a new Timeout.
2431
- * @param [properties] Properties to set
2432
- */
2433
- constructor(properties?: api$InstructionResult$ITimeout): this;
2434
-
2435
- /**
2436
- * Timeout output.
2437
- */
2438
- output: string;
2439
-
2440
- /**
2441
- * Creates a new Timeout instance using the specified properties.
2442
- * @param [properties] Properties to set
2443
- * @returns Timeout instance
2444
- */
2445
- static create(
2446
- properties?: api$InstructionResult$ITimeout
2447
- ): api$InstructionResult$Timeout;
2448
-
2449
- /**
2450
- * [object Object],[object Object],[object Object]
2451
- * @param message Timeout message or plain object to encode
2452
- * @param [writer] Writer to encode to
2453
- * @returns Writer
2454
- */
2455
- static encode(
2456
- message: api$InstructionResult$Timeout,
2457
- writer?: $protobuf.Writer
2458
- ): $protobuf.Writer;
2459
-
2460
- /**
2461
- * [object Object],[object Object],[object Object]
2462
- * @param message Timeout message or plain object to encode
2463
- * @param [writer] Writer to encode to
2464
- * @returns Writer
2465
- */
2466
- static encodeDelimited(
2467
- message: api$InstructionResult$Timeout,
2468
- writer?: $protobuf.Writer
2469
- ): $protobuf.Writer;
2470
-
2471
- /**
2472
- * Decodes a Timeout message from the specified reader or buffer.
2473
- * @param reader Reader or buffer to decode from
2474
- * @param [length] Message length if known beforehand
2475
- * @returns Timeout
2476
- * @throws {Error} If the payload is not a reader or valid buffer
2477
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
2478
- */
2479
- static decode(
2480
- reader: $protobuf.Reader | Uint8Array,
2481
- length?: number
2482
- ): api$InstructionResult$Timeout;
2483
-
2484
- /**
2485
- * Decodes a Timeout message from the specified reader or buffer, length delimited.
2486
- * @param reader Reader or buffer to decode from
2487
- * @returns Timeout
2488
- * @throws {Error} If the payload is not a reader or valid buffer
2489
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
2490
- */
2491
- static decodeDelimited(
2492
- reader: $protobuf.Reader | Uint8Array
2493
- ): api$InstructionResult$Timeout;
2494
-
2495
- /**
2496
- * Verifies a Timeout message.
2497
- * @param message Plain object to verify
2498
- * @returns `null` if valid, otherwise the reason why it is not
2499
- */
2500
- static verify(message: {|
2501
- [k: string]: any,
2502
- |}): string | null;
2503
-
2504
- /**
2505
- * Creates a Timeout message from a plain object. Also converts values to their respective internal types.
2506
- * @param object Plain object
2507
- * @returns Timeout
2508
- */
2509
- static fromObject(object: {|
2510
- [k: string]: any,
2511
- |}): api$InstructionResult$Timeout;
2512
-
2513
- /**
2514
- * Creates a plain object from a Timeout message. Also converts values to other types if specified.
2515
- * @param message Timeout
2516
- * @param [options] Conversion options
2517
- * @returns Plain object
2518
- */
2519
- static toObject(
2520
- message: api$InstructionResult$Timeout,
2521
- options?: $protobuf.IConversionOptions
2522
- ): {|
2523
- [k: string]: any,
2524
- |};
2525
-
2526
- /**
2527
- * Converts this Timeout to JSON.
2528
- * @returns JSON object
2529
- */
2530
- toJSON(): {|
2531
- [k: string]: any,
2532
- |};
2533
- }
2534
-
2535
- /**
2536
- * Properties of an Error.
2537
- */
2538
- declare type api$IError = {|
2539
- /**
2540
- * Error message
2541
- */
2542
- message?: string | null,
2543
-
2544
- /**
2545
- * Error stderr
2546
- */
2547
- stderr?: string | null,
2548
- |};
2549
-
2550
- /**
2551
- * Represents an Error.
2552
- */
2553
- declare class api$Error {
2554
- /**
2555
- * Constructs a new Error.
2556
- * @param [properties] Properties to set
2557
- */
2558
- constructor(properties?: api$IError): this;
2559
-
2560
- /**
2561
- * Error message.
2562
- */
2563
- message: string;
2564
-
2565
- /**
2566
- * Error stderr.
2567
- */
2568
- stderr: string;
2569
-
2570
- /**
2571
- * Creates a new Error instance using the specified properties.
2572
- * @param [properties] Properties to set
2573
- * @returns Error instance
2574
- */
2575
- static create(properties?: api$IError): api$Error;
2576
-
2577
- /**
2578
- * [object Object],[object Object],[object Object]
2579
- * @param message Error message or plain object to encode
2580
- * @param [writer] Writer to encode to
2581
- * @returns Writer
2582
- */
2583
- static encode(
2584
- message: api$Error,
2585
- writer?: $protobuf.Writer
2586
- ): $protobuf.Writer;
2587
-
2588
- /**
2589
- * [object Object],[object Object],[object Object]
2590
- * @param message Error message or plain object to encode
2591
- * @param [writer] Writer to encode to
2592
- * @returns Writer
2593
- */
2594
- static encodeDelimited(
2595
- message: api$Error,
2596
- writer?: $protobuf.Writer
2597
- ): $protobuf.Writer;
2598
-
2599
- /**
2600
- * Decodes an Error message from the specified reader or buffer.
2601
- * @param reader Reader or buffer to decode from
2602
- * @param [length] Message length if known beforehand
2603
- * @returns Error
2604
- * @throws {Error} If the payload is not a reader or valid buffer
2605
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
2606
- */
2607
- static decode(
2608
- reader: $protobuf.Reader | Uint8Array,
2609
- length?: number
2610
- ): api$Error;
2611
-
2612
- /**
2613
- * Decodes an Error message from the specified reader or buffer, length delimited.
2614
- * @param reader Reader or buffer to decode from
2615
- * @returns Error
2616
- * @throws {Error} If the payload is not a reader or valid buffer
2617
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
2618
- */
2619
- static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$Error;
2620
-
2621
- /**
2622
- * Verifies an Error message.
2623
- * @param message Plain object to verify
2624
- * @returns `null` if valid, otherwise the reason why it is not
2625
- */
2626
- static verify(message: {|
2627
- [k: string]: any,
2628
- |}): string | null;
2629
-
2630
- /**
2631
- * Creates an Error message from a plain object. Also converts values to their respective internal types.
2632
- * @param object Plain object
2633
- * @returns Error
2634
- */
2635
- static fromObject(object: {|
2636
- [k: string]: any,
2637
- |}): api$Error;
2638
-
2639
- /**
2640
- * Creates a plain object from an Error message. Also converts values to other types if specified.
2641
- * @param message Error
2642
- * @param [options] Conversion options
2643
- * @returns Plain object
2644
- */
2645
- static toObject(
2646
- message: api$Error,
2647
- options?: $protobuf.IConversionOptions
2648
- ): {|
2649
- [k: string]: any,
2650
- |};
2651
-
2652
- /**
2653
- * Converts this Error to JSON.
2654
- * @returns JSON object
2655
- */
2656
- toJSON(): {|
2657
- [k: string]: any,
2658
- |};
2659
- }
2660
- declare var google: typeof npm$namespace$google;
2661
-
2662
- declare var npm$namespace$google: {|
2663
- protobuf: typeof npm$namespace$google$protobuf,
2664
- |};
2665
-
2666
- declare var npm$namespace$google$protobuf: {|
2667
- IDuration: Class<google$protobuf$IDuration>,
2668
- Duration: typeof google$protobuf$Duration,
2669
- |};
2670
-
2671
- /**
2672
- * Properties of a Duration.
2673
- */
2674
- declare type google$protobuf$IDuration = {|
2675
- /**
2676
- * Duration seconds
2677
- */
2678
- seconds?: number | null,
2679
-
2680
- /**
2681
- * Duration nanos
2682
- */
2683
- nanos?: number | null,
2684
- |};
2685
-
2686
- /**
2687
- * Represents a Duration.
2688
- */
2689
- declare class google$protobuf$Duration {
2690
- /**
2691
- * Constructs a new Duration.
2692
- * @param [properties] Properties to set
2693
- */
2694
- constructor(properties?: google$protobuf$IDuration): this;
2695
-
2696
- /**
2697
- * Duration seconds.
2698
- */
2699
- seconds: number;
2700
-
2701
- /**
2702
- * Duration nanos.
2703
- */
2704
- nanos: number;
2705
-
2706
- /**
2707
- * Creates a new Duration instance using the specified properties.
2708
- * @param [properties] Properties to set
2709
- * @returns Duration instance
2710
- */
2711
- static create(
2712
- properties?: google$protobuf$IDuration
2713
- ): google$protobuf$Duration;
2714
-
2715
- /**
2716
- * [object Object],[object Object],[object Object]
2717
- * @param message Duration message or plain object to encode
2718
- * @param [writer] Writer to encode to
2719
- * @returns Writer
2720
- */
2721
- static encode(
2722
- message: google$protobuf$Duration,
2723
- writer?: $protobuf.Writer
2724
- ): $protobuf.Writer;
2725
-
2726
- /**
2727
- * [object Object],[object Object],[object Object]
2728
- * @param message Duration message or plain object to encode
2729
- * @param [writer] Writer to encode to
2730
- * @returns Writer
2731
- */
2732
- static encodeDelimited(
2733
- message: google$protobuf$Duration,
2734
- writer?: $protobuf.Writer
2735
- ): $protobuf.Writer;
2736
-
2737
- /**
2738
- * Decodes a Duration message from the specified reader or buffer.
2739
- * @param reader Reader or buffer to decode from
2740
- * @param [length] Message length if known beforehand
2741
- * @returns Duration
2742
- * @throws {Error} If the payload is not a reader or valid buffer
2743
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
2744
- */
2745
- static decode(
2746
- reader: $protobuf.Reader | Uint8Array,
2747
- length?: number
2748
- ): google$protobuf$Duration;
2749
-
2750
- /**
2751
- * Decodes a Duration message from the specified reader or buffer, length delimited.
2752
- * @param reader Reader or buffer to decode from
2753
- * @returns Duration
2754
- * @throws {Error} If the payload is not a reader or valid buffer
2755
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
2756
- */
2757
- static decodeDelimited(
2758
- reader: $protobuf.Reader | Uint8Array
2759
- ): google$protobuf$Duration;
2760
-
2761
- /**
2762
- * Verifies a Duration message.
2763
- * @param message Plain object to verify
2764
- * @returns `null` if valid, otherwise the reason why it is not
2765
- */
2766
- static verify(message: {|
2767
- [k: string]: any,
2768
- |}): string | null;
2769
-
2770
- /**
2771
- * Creates a Duration message from a plain object. Also converts values to their respective internal types.
2772
- * @param object Plain object
2773
- * @returns Duration
2774
- */
2775
- static fromObject(object: {|
2776
- [k: string]: any,
2777
- |}): google$protobuf$Duration;
2778
-
2779
- /**
2780
- * Creates a plain object from a Duration message. Also converts values to other types if specified.
2781
- * @param message Duration
2782
- * @param [options] Conversion options
2783
- * @returns Plain object
2784
- */
2785
- static toObject(
2786
- message: google$protobuf$Duration,
2787
- options?: $protobuf.IConversionOptions
2788
- ): {|
2789
- [k: string]: any,
2790
- |};
2791
-
2792
- /**
2793
- * Converts this Duration to JSON.
2794
- * @returns JSON object
2795
- */
2796
- toJSON(): {|
2797
- [k: string]: any,
2798
- |};
2799
- }