-
-
Notifications
You must be signed in to change notification settings - Fork 440
/
Copy pathcommands_grpc_pb.js
706 lines (622 loc) · 24.9 KB
/
commands_grpc_pb.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
// GENERATED CODE -- DO NOT EDIT!
// Original file comments:
//
// This file is part of arduino-cli.
//
// Copyright 2018 ARDUINO SA (http://www.arduino.cc/)
//
// This software is released under the GNU General Public License version 3,
// which covers the main part of arduino-cli.
// The terms of this license can be found at:
// https://www.gnu.org/licenses/gpl-3.0.en.html
//
// You can be released from the requirements of the above licenses by purchasing
// a commercial license. Buying such a license is mandatory if you want to modify or
// otherwise use the software for commercial activities involving the Arduino
// software without disclosing the source code of your own applications. To purchase
// a commercial license, send an email to license@arduino.cc.
//
//
'use strict';
var grpc = require('@grpc/grpc-js');
var commands_pb = require('./commands_pb.js');
var common_pb = require('./common_pb.js');
var board_pb = require('./board_pb.js');
var compile_pb = require('./compile_pb.js');
var core_pb = require('./core_pb.js');
var upload_pb = require('./upload_pb.js');
var lib_pb = require('./lib_pb.js');
function serialize_arduino_BoardDetailsReq(arg) {
if (!(arg instanceof board_pb.BoardDetailsReq)) {
throw new Error('Expected argument of type arduino.BoardDetailsReq');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_arduino_BoardDetailsReq(buffer_arg) {
return board_pb.BoardDetailsReq.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_arduino_BoardDetailsResp(arg) {
if (!(arg instanceof board_pb.BoardDetailsResp)) {
throw new Error('Expected argument of type arduino.BoardDetailsResp');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_arduino_BoardDetailsResp(buffer_arg) {
return board_pb.BoardDetailsResp.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_arduino_BoardListReq(arg) {
if (!(arg instanceof board_pb.BoardListReq)) {
throw new Error('Expected argument of type arduino.BoardListReq');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_arduino_BoardListReq(buffer_arg) {
return board_pb.BoardListReq.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_arduino_BoardListResp(arg) {
if (!(arg instanceof board_pb.BoardListResp)) {
throw new Error('Expected argument of type arduino.BoardListResp');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_arduino_BoardListResp(buffer_arg) {
return board_pb.BoardListResp.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_arduino_CompileReq(arg) {
if (!(arg instanceof compile_pb.CompileReq)) {
throw new Error('Expected argument of type arduino.CompileReq');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_arduino_CompileReq(buffer_arg) {
return compile_pb.CompileReq.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_arduino_CompileResp(arg) {
if (!(arg instanceof compile_pb.CompileResp)) {
throw new Error('Expected argument of type arduino.CompileResp');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_arduino_CompileResp(buffer_arg) {
return compile_pb.CompileResp.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_arduino_DestroyReq(arg) {
if (!(arg instanceof commands_pb.DestroyReq)) {
throw new Error('Expected argument of type arduino.DestroyReq');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_arduino_DestroyReq(buffer_arg) {
return commands_pb.DestroyReq.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_arduino_DestroyResp(arg) {
if (!(arg instanceof commands_pb.DestroyResp)) {
throw new Error('Expected argument of type arduino.DestroyResp');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_arduino_DestroyResp(buffer_arg) {
return commands_pb.DestroyResp.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_arduino_InitReq(arg) {
if (!(arg instanceof commands_pb.InitReq)) {
throw new Error('Expected argument of type arduino.InitReq');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_arduino_InitReq(buffer_arg) {
return commands_pb.InitReq.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_arduino_InitResp(arg) {
if (!(arg instanceof commands_pb.InitResp)) {
throw new Error('Expected argument of type arduino.InitResp');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_arduino_InitResp(buffer_arg) {
return commands_pb.InitResp.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_arduino_LibraryDownloadReq(arg) {
if (!(arg instanceof lib_pb.LibraryDownloadReq)) {
throw new Error('Expected argument of type arduino.LibraryDownloadReq');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_arduino_LibraryDownloadReq(buffer_arg) {
return lib_pb.LibraryDownloadReq.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_arduino_LibraryDownloadResp(arg) {
if (!(arg instanceof lib_pb.LibraryDownloadResp)) {
throw new Error('Expected argument of type arduino.LibraryDownloadResp');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_arduino_LibraryDownloadResp(buffer_arg) {
return lib_pb.LibraryDownloadResp.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_arduino_LibraryInstallReq(arg) {
if (!(arg instanceof lib_pb.LibraryInstallReq)) {
throw new Error('Expected argument of type arduino.LibraryInstallReq');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_arduino_LibraryInstallReq(buffer_arg) {
return lib_pb.LibraryInstallReq.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_arduino_LibraryInstallResp(arg) {
if (!(arg instanceof lib_pb.LibraryInstallResp)) {
throw new Error('Expected argument of type arduino.LibraryInstallResp');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_arduino_LibraryInstallResp(buffer_arg) {
return lib_pb.LibraryInstallResp.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_arduino_LibraryListReq(arg) {
if (!(arg instanceof lib_pb.LibraryListReq)) {
throw new Error('Expected argument of type arduino.LibraryListReq');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_arduino_LibraryListReq(buffer_arg) {
return lib_pb.LibraryListReq.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_arduino_LibraryListResp(arg) {
if (!(arg instanceof lib_pb.LibraryListResp)) {
throw new Error('Expected argument of type arduino.LibraryListResp');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_arduino_LibraryListResp(buffer_arg) {
return lib_pb.LibraryListResp.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_arduino_LibrarySearchReq(arg) {
if (!(arg instanceof lib_pb.LibrarySearchReq)) {
throw new Error('Expected argument of type arduino.LibrarySearchReq');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_arduino_LibrarySearchReq(buffer_arg) {
return lib_pb.LibrarySearchReq.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_arduino_LibrarySearchResp(arg) {
if (!(arg instanceof lib_pb.LibrarySearchResp)) {
throw new Error('Expected argument of type arduino.LibrarySearchResp');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_arduino_LibrarySearchResp(buffer_arg) {
return lib_pb.LibrarySearchResp.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_arduino_LibraryUninstallReq(arg) {
if (!(arg instanceof lib_pb.LibraryUninstallReq)) {
throw new Error('Expected argument of type arduino.LibraryUninstallReq');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_arduino_LibraryUninstallReq(buffer_arg) {
return lib_pb.LibraryUninstallReq.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_arduino_LibraryUninstallResp(arg) {
if (!(arg instanceof lib_pb.LibraryUninstallResp)) {
throw new Error('Expected argument of type arduino.LibraryUninstallResp');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_arduino_LibraryUninstallResp(buffer_arg) {
return lib_pb.LibraryUninstallResp.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_arduino_LibraryUpgradeAllReq(arg) {
if (!(arg instanceof lib_pb.LibraryUpgradeAllReq)) {
throw new Error('Expected argument of type arduino.LibraryUpgradeAllReq');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_arduino_LibraryUpgradeAllReq(buffer_arg) {
return lib_pb.LibraryUpgradeAllReq.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_arduino_LibraryUpgradeAllResp(arg) {
if (!(arg instanceof lib_pb.LibraryUpgradeAllResp)) {
throw new Error('Expected argument of type arduino.LibraryUpgradeAllResp');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_arduino_LibraryUpgradeAllResp(buffer_arg) {
return lib_pb.LibraryUpgradeAllResp.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_arduino_PlatformDownloadReq(arg) {
if (!(arg instanceof core_pb.PlatformDownloadReq)) {
throw new Error('Expected argument of type arduino.PlatformDownloadReq');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_arduino_PlatformDownloadReq(buffer_arg) {
return core_pb.PlatformDownloadReq.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_arduino_PlatformDownloadResp(arg) {
if (!(arg instanceof core_pb.PlatformDownloadResp)) {
throw new Error('Expected argument of type arduino.PlatformDownloadResp');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_arduino_PlatformDownloadResp(buffer_arg) {
return core_pb.PlatformDownloadResp.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_arduino_PlatformInstallReq(arg) {
if (!(arg instanceof core_pb.PlatformInstallReq)) {
throw new Error('Expected argument of type arduino.PlatformInstallReq');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_arduino_PlatformInstallReq(buffer_arg) {
return core_pb.PlatformInstallReq.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_arduino_PlatformInstallResp(arg) {
if (!(arg instanceof core_pb.PlatformInstallResp)) {
throw new Error('Expected argument of type arduino.PlatformInstallResp');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_arduino_PlatformInstallResp(buffer_arg) {
return core_pb.PlatformInstallResp.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_arduino_PlatformListReq(arg) {
if (!(arg instanceof core_pb.PlatformListReq)) {
throw new Error('Expected argument of type arduino.PlatformListReq');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_arduino_PlatformListReq(buffer_arg) {
return core_pb.PlatformListReq.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_arduino_PlatformListResp(arg) {
if (!(arg instanceof core_pb.PlatformListResp)) {
throw new Error('Expected argument of type arduino.PlatformListResp');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_arduino_PlatformListResp(buffer_arg) {
return core_pb.PlatformListResp.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_arduino_PlatformSearchReq(arg) {
if (!(arg instanceof core_pb.PlatformSearchReq)) {
throw new Error('Expected argument of type arduino.PlatformSearchReq');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_arduino_PlatformSearchReq(buffer_arg) {
return core_pb.PlatformSearchReq.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_arduino_PlatformSearchResp(arg) {
if (!(arg instanceof core_pb.PlatformSearchResp)) {
throw new Error('Expected argument of type arduino.PlatformSearchResp');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_arduino_PlatformSearchResp(buffer_arg) {
return core_pb.PlatformSearchResp.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_arduino_PlatformUninstallReq(arg) {
if (!(arg instanceof core_pb.PlatformUninstallReq)) {
throw new Error('Expected argument of type arduino.PlatformUninstallReq');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_arduino_PlatformUninstallReq(buffer_arg) {
return core_pb.PlatformUninstallReq.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_arduino_PlatformUninstallResp(arg) {
if (!(arg instanceof core_pb.PlatformUninstallResp)) {
throw new Error('Expected argument of type arduino.PlatformUninstallResp');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_arduino_PlatformUninstallResp(buffer_arg) {
return core_pb.PlatformUninstallResp.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_arduino_PlatformUpgradeReq(arg) {
if (!(arg instanceof core_pb.PlatformUpgradeReq)) {
throw new Error('Expected argument of type arduino.PlatformUpgradeReq');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_arduino_PlatformUpgradeReq(buffer_arg) {
return core_pb.PlatformUpgradeReq.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_arduino_PlatformUpgradeResp(arg) {
if (!(arg instanceof core_pb.PlatformUpgradeResp)) {
throw new Error('Expected argument of type arduino.PlatformUpgradeResp');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_arduino_PlatformUpgradeResp(buffer_arg) {
return core_pb.PlatformUpgradeResp.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_arduino_RescanReq(arg) {
if (!(arg instanceof commands_pb.RescanReq)) {
throw new Error('Expected argument of type arduino.RescanReq');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_arduino_RescanReq(buffer_arg) {
return commands_pb.RescanReq.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_arduino_RescanResp(arg) {
if (!(arg instanceof commands_pb.RescanResp)) {
throw new Error('Expected argument of type arduino.RescanResp');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_arduino_RescanResp(buffer_arg) {
return commands_pb.RescanResp.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_arduino_UpdateIndexReq(arg) {
if (!(arg instanceof commands_pb.UpdateIndexReq)) {
throw new Error('Expected argument of type arduino.UpdateIndexReq');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_arduino_UpdateIndexReq(buffer_arg) {
return commands_pb.UpdateIndexReq.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_arduino_UpdateIndexResp(arg) {
if (!(arg instanceof commands_pb.UpdateIndexResp)) {
throw new Error('Expected argument of type arduino.UpdateIndexResp');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_arduino_UpdateIndexResp(buffer_arg) {
return commands_pb.UpdateIndexResp.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_arduino_UploadReq(arg) {
if (!(arg instanceof upload_pb.UploadReq)) {
throw new Error('Expected argument of type arduino.UploadReq');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_arduino_UploadReq(buffer_arg) {
return upload_pb.UploadReq.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_arduino_UploadResp(arg) {
if (!(arg instanceof upload_pb.UploadResp)) {
throw new Error('Expected argument of type arduino.UploadResp');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_arduino_UploadResp(buffer_arg) {
return upload_pb.UploadResp.deserializeBinary(new Uint8Array(buffer_arg));
}
// The main Arduino Platform Service
var ArduinoCoreService = exports.ArduinoCoreService = {
// Start a new instance of the Arduino Core Service
init: {
path: '/arduino.ArduinoCore/Init',
requestStream: false,
responseStream: false,
requestType: commands_pb.InitReq,
responseType: commands_pb.InitResp,
requestSerialize: serialize_arduino_InitReq,
requestDeserialize: deserialize_arduino_InitReq,
responseSerialize: serialize_arduino_InitResp,
responseDeserialize: deserialize_arduino_InitResp,
},
// Destroy an instance of the Arduino Core Service
destroy: {
path: '/arduino.ArduinoCore/Destroy',
requestStream: false,
responseStream: false,
requestType: commands_pb.DestroyReq,
responseType: commands_pb.DestroyResp,
requestSerialize: serialize_arduino_DestroyReq,
requestDeserialize: deserialize_arduino_DestroyReq,
responseSerialize: serialize_arduino_DestroyResp,
responseDeserialize: deserialize_arduino_DestroyResp,
},
// Rescan instance of the Arduino Core Service
rescan: {
path: '/arduino.ArduinoCore/Rescan',
requestStream: false,
responseStream: false,
requestType: commands_pb.RescanReq,
responseType: commands_pb.RescanResp,
requestSerialize: serialize_arduino_RescanReq,
requestDeserialize: deserialize_arduino_RescanReq,
responseSerialize: serialize_arduino_RescanResp,
responseDeserialize: deserialize_arduino_RescanResp,
},
// Update package index of the Arduino Core Service
updateIndex: {
path: '/arduino.ArduinoCore/UpdateIndex',
requestStream: false,
responseStream: true,
requestType: commands_pb.UpdateIndexReq,
responseType: commands_pb.UpdateIndexResp,
requestSerialize: serialize_arduino_UpdateIndexReq,
requestDeserialize: deserialize_arduino_UpdateIndexReq,
responseSerialize: serialize_arduino_UpdateIndexResp,
responseDeserialize: deserialize_arduino_UpdateIndexResp,
},
// BOARD COMMANDS
// --------------
//
boardList: {
path: '/arduino.ArduinoCore/BoardList',
requestStream: false,
responseStream: false,
requestType: board_pb.BoardListReq,
responseType: board_pb.BoardListResp,
requestSerialize: serialize_arduino_BoardListReq,
requestDeserialize: deserialize_arduino_BoardListReq,
responseSerialize: serialize_arduino_BoardListResp,
responseDeserialize: deserialize_arduino_BoardListResp,
},
// Requests details about a board
boardDetails: {
path: '/arduino.ArduinoCore/BoardDetails',
requestStream: false,
responseStream: false,
requestType: board_pb.BoardDetailsReq,
responseType: board_pb.BoardDetailsResp,
requestSerialize: serialize_arduino_BoardDetailsReq,
requestDeserialize: deserialize_arduino_BoardDetailsReq,
responseSerialize: serialize_arduino_BoardDetailsResp,
responseDeserialize: deserialize_arduino_BoardDetailsResp,
},
compile: {
path: '/arduino.ArduinoCore/Compile',
requestStream: false,
responseStream: true,
requestType: compile_pb.CompileReq,
responseType: compile_pb.CompileResp,
requestSerialize: serialize_arduino_CompileReq,
requestDeserialize: deserialize_arduino_CompileReq,
responseSerialize: serialize_arduino_CompileResp,
responseDeserialize: deserialize_arduino_CompileResp,
},
platformInstall: {
path: '/arduino.ArduinoCore/PlatformInstall',
requestStream: false,
responseStream: true,
requestType: core_pb.PlatformInstallReq,
responseType: core_pb.PlatformInstallResp,
requestSerialize: serialize_arduino_PlatformInstallReq,
requestDeserialize: deserialize_arduino_PlatformInstallReq,
responseSerialize: serialize_arduino_PlatformInstallResp,
responseDeserialize: deserialize_arduino_PlatformInstallResp,
},
platformDownload: {
path: '/arduino.ArduinoCore/PlatformDownload',
requestStream: false,
responseStream: true,
requestType: core_pb.PlatformDownloadReq,
responseType: core_pb.PlatformDownloadResp,
requestSerialize: serialize_arduino_PlatformDownloadReq,
requestDeserialize: deserialize_arduino_PlatformDownloadReq,
responseSerialize: serialize_arduino_PlatformDownloadResp,
responseDeserialize: deserialize_arduino_PlatformDownloadResp,
},
platformUninstall: {
path: '/arduino.ArduinoCore/PlatformUninstall',
requestStream: false,
responseStream: true,
requestType: core_pb.PlatformUninstallReq,
responseType: core_pb.PlatformUninstallResp,
requestSerialize: serialize_arduino_PlatformUninstallReq,
requestDeserialize: deserialize_arduino_PlatformUninstallReq,
responseSerialize: serialize_arduino_PlatformUninstallResp,
responseDeserialize: deserialize_arduino_PlatformUninstallResp,
},
platformUpgrade: {
path: '/arduino.ArduinoCore/PlatformUpgrade',
requestStream: false,
responseStream: true,
requestType: core_pb.PlatformUpgradeReq,
responseType: core_pb.PlatformUpgradeResp,
requestSerialize: serialize_arduino_PlatformUpgradeReq,
requestDeserialize: deserialize_arduino_PlatformUpgradeReq,
responseSerialize: serialize_arduino_PlatformUpgradeResp,
responseDeserialize: deserialize_arduino_PlatformUpgradeResp,
},
upload: {
path: '/arduino.ArduinoCore/Upload',
requestStream: false,
responseStream: true,
requestType: upload_pb.UploadReq,
responseType: upload_pb.UploadResp,
requestSerialize: serialize_arduino_UploadReq,
requestDeserialize: deserialize_arduino_UploadReq,
responseSerialize: serialize_arduino_UploadResp,
responseDeserialize: deserialize_arduino_UploadResp,
},
platformSearch: {
path: '/arduino.ArduinoCore/PlatformSearch',
requestStream: false,
responseStream: false,
requestType: core_pb.PlatformSearchReq,
responseType: core_pb.PlatformSearchResp,
requestSerialize: serialize_arduino_PlatformSearchReq,
requestDeserialize: deserialize_arduino_PlatformSearchReq,
responseSerialize: serialize_arduino_PlatformSearchResp,
responseDeserialize: deserialize_arduino_PlatformSearchResp,
},
platformList: {
path: '/arduino.ArduinoCore/PlatformList',
requestStream: false,
responseStream: false,
requestType: core_pb.PlatformListReq,
responseType: core_pb.PlatformListResp,
requestSerialize: serialize_arduino_PlatformListReq,
requestDeserialize: deserialize_arduino_PlatformListReq,
responseSerialize: serialize_arduino_PlatformListResp,
responseDeserialize: deserialize_arduino_PlatformListResp,
},
libraryDownload: {
path: '/arduino.ArduinoCore/LibraryDownload',
requestStream: false,
responseStream: true,
requestType: lib_pb.LibraryDownloadReq,
responseType: lib_pb.LibraryDownloadResp,
requestSerialize: serialize_arduino_LibraryDownloadReq,
requestDeserialize: deserialize_arduino_LibraryDownloadReq,
responseSerialize: serialize_arduino_LibraryDownloadResp,
responseDeserialize: deserialize_arduino_LibraryDownloadResp,
},
libraryInstall: {
path: '/arduino.ArduinoCore/LibraryInstall',
requestStream: false,
responseStream: true,
requestType: lib_pb.LibraryInstallReq,
responseType: lib_pb.LibraryInstallResp,
requestSerialize: serialize_arduino_LibraryInstallReq,
requestDeserialize: deserialize_arduino_LibraryInstallReq,
responseSerialize: serialize_arduino_LibraryInstallResp,
responseDeserialize: deserialize_arduino_LibraryInstallResp,
},
libraryUninstall: {
path: '/arduino.ArduinoCore/LibraryUninstall',
requestStream: false,
responseStream: true,
requestType: lib_pb.LibraryUninstallReq,
responseType: lib_pb.LibraryUninstallResp,
requestSerialize: serialize_arduino_LibraryUninstallReq,
requestDeserialize: deserialize_arduino_LibraryUninstallReq,
responseSerialize: serialize_arduino_LibraryUninstallResp,
responseDeserialize: deserialize_arduino_LibraryUninstallResp,
},
libraryUpgradeAll: {
path: '/arduino.ArduinoCore/LibraryUpgradeAll',
requestStream: false,
responseStream: true,
requestType: lib_pb.LibraryUpgradeAllReq,
responseType: lib_pb.LibraryUpgradeAllResp,
requestSerialize: serialize_arduino_LibraryUpgradeAllReq,
requestDeserialize: deserialize_arduino_LibraryUpgradeAllReq,
responseSerialize: serialize_arduino_LibraryUpgradeAllResp,
responseDeserialize: deserialize_arduino_LibraryUpgradeAllResp,
},
librarySearch: {
path: '/arduino.ArduinoCore/LibrarySearch',
requestStream: false,
responseStream: false,
requestType: lib_pb.LibrarySearchReq,
responseType: lib_pb.LibrarySearchResp,
requestSerialize: serialize_arduino_LibrarySearchReq,
requestDeserialize: deserialize_arduino_LibrarySearchReq,
responseSerialize: serialize_arduino_LibrarySearchResp,
responseDeserialize: deserialize_arduino_LibrarySearchResp,
},
libraryList: {
path: '/arduino.ArduinoCore/LibraryList',
requestStream: false,
responseStream: false,
requestType: lib_pb.LibraryListReq,
responseType: lib_pb.LibraryListResp,
requestSerialize: serialize_arduino_LibraryListReq,
requestDeserialize: deserialize_arduino_LibraryListReq,
responseSerialize: serialize_arduino_LibraryListResp,
responseDeserialize: deserialize_arduino_LibraryListResp,
},
};
exports.ArduinoCoreClient = grpc.makeGenericClientConstructor(ArduinoCoreService);
// BOOTSTRAP COMMANDS
// -------------------