-
Notifications
You must be signed in to change notification settings - Fork 0
/
services.pb.go
703 lines (656 loc) · 34.9 KB
/
services.pb.go
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
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1-devel
// protoc v3.15.2
// source: playground-apps/services.proto
package grpc_playground_apps_go
import (
context "context"
grpc_playground_common_go "github.com/napptive/grpc-playground-common-go"
grpc_playground_environments_go "github.com/napptive/grpc-playground-environments-go"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
var File_playground_apps_services_proto protoreflect.FileDescriptor
var file_playground_apps_services_proto_rawDesc = []byte{
0x0a, 0x1e, 0x70, 0x6c, 0x61, 0x79, 0x67, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x2d, 0x61, 0x70, 0x70,
0x73, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x12, 0x0f, 0x70, 0x6c, 0x61, 0x79, 0x67, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x61, 0x70, 0x70,
0x73, 0x1a, 0x1e, 0x70, 0x6c, 0x61, 0x79, 0x67, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x2d, 0x61, 0x70,
0x70, 0x73, 0x2f, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x1a, 0x20, 0x70, 0x6c, 0x61, 0x79, 0x67, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x2d, 0x63, 0x6f,
0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x1a, 0x26, 0x70, 0x6c, 0x61, 0x79, 0x67, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x2d,
0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x65, 0x6e, 0x74,
0x69, 0x74, 0x69, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f,
0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69,
0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0xae, 0x09, 0x0a, 0x04, 0x41, 0x70,
0x70, 0x73, 0x12, 0x7b, 0x0a, 0x06, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x12, 0x29, 0x2e, 0x70,
0x6c, 0x61, 0x79, 0x67, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x61, 0x70, 0x70, 0x73, 0x2e, 0x44,
0x65, 0x70, 0x6c, 0x6f, 0x79, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x70, 0x6c, 0x61, 0x79, 0x67, 0x72,
0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x61, 0x70, 0x70, 0x73, 0x2e, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79,
0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x22, 0x1a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x22, 0x0f, 0x2f, 0x76, 0x30,
0x2f, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x3a, 0x01, 0x2a, 0x12,
0x6e, 0x0a, 0x06, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x12, 0x29, 0x2e, 0x70, 0x6c, 0x61, 0x79,
0x67, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x61, 0x70, 0x70, 0x73, 0x2e, 0x52, 0x65, 0x6d, 0x6f,
0x76, 0x65, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x70, 0x6c, 0x61, 0x79, 0x67, 0x72, 0x6f, 0x75, 0x6e,
0x64, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x4f, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x22, 0x1a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x22, 0x0f, 0x2f, 0x76, 0x30,
0x2f, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x3a, 0x01, 0x2a, 0x12,
0x86, 0x01, 0x0a, 0x0b, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x12,
0x2c, 0x2e, 0x70, 0x6c, 0x61, 0x79, 0x67, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x65, 0x6e, 0x76,
0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f,
0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x1a, 0x27, 0x2e,
0x70, 0x6c, 0x61, 0x79, 0x67, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x61, 0x70, 0x70, 0x73, 0x2e,
0x41, 0x70, 0x70, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x22, 0x15,
0x2f, 0x76, 0x30, 0x2f, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79,
0x2f, 0x6c, 0x69, 0x73, 0x74, 0x3a, 0x01, 0x2a, 0x12, 0x5e, 0x0a, 0x04, 0x49, 0x6e, 0x66, 0x6f,
0x12, 0x1f, 0x2e, 0x70, 0x6c, 0x61, 0x79, 0x67, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x61, 0x70,
0x70, 0x73, 0x2e, 0x41, 0x70, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x1a, 0x1c, 0x2e, 0x70, 0x6c, 0x61, 0x79, 0x67, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x61,
0x70, 0x70, 0x73, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22,
0x17, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x11, 0x22, 0x0c, 0x2f, 0x76, 0x30, 0x2f, 0x61, 0x70, 0x70,
0x73, 0x2f, 0x67, 0x65, 0x74, 0x3a, 0x01, 0x2a, 0x12, 0x5f, 0x0a, 0x04, 0x4c, 0x6f, 0x67, 0x73,
0x12, 0x1b, 0x2e, 0x70, 0x6c, 0x61, 0x79, 0x67, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x61, 0x70,
0x70, 0x73, 0x2e, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e,
0x70, 0x6c, 0x61, 0x79, 0x67, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x61, 0x70, 0x70, 0x73, 0x2e,
0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x6f, 0x67, 0x73, 0x22,
0x18, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x12, 0x22, 0x0d, 0x2f, 0x76, 0x30, 0x2f, 0x61, 0x70, 0x70,
0x73, 0x2f, 0x6c, 0x6f, 0x67, 0x73, 0x3a, 0x01, 0x2a, 0x12, 0x60, 0x0a, 0x05, 0x53, 0x63, 0x61,
0x6c, 0x65, 0x12, 0x1d, 0x2e, 0x70, 0x6c, 0x61, 0x79, 0x67, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x5f,
0x61, 0x70, 0x70, 0x73, 0x2e, 0x53, 0x63, 0x61, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x1a, 0x1d, 0x2e, 0x70, 0x6c, 0x61, 0x79, 0x67, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x63,
0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x4f, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x22, 0x19, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x22, 0x0e, 0x2f, 0x76, 0x30, 0x2f, 0x61, 0x70,
0x70, 0x73, 0x2f, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0x87, 0x01, 0x0a, 0x19,
0x53, 0x74, 0x6f, 0x70, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43,
0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x31, 0x2e, 0x70, 0x6c, 0x61, 0x79,
0x67, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x61, 0x70, 0x70, 0x73, 0x2e, 0x53, 0x74, 0x6f, 0x70,
0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x70, 0x6f,
0x6e, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x70,
0x6c, 0x61, 0x79, 0x67, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
0x2e, 0x4f, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x18, 0x82, 0xd3, 0xe4,
0x93, 0x02, 0x12, 0x22, 0x0d, 0x2f, 0x76, 0x30, 0x2f, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x73, 0x74,
0x6f, 0x70, 0x3a, 0x01, 0x2a, 0x12, 0x8d, 0x01, 0x0a, 0x1b, 0x52, 0x65, 0x73, 0x75, 0x6d, 0x65,
0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x70, 0x6f,
0x6e, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x33, 0x2e, 0x70, 0x6c, 0x61, 0x79, 0x67, 0x72, 0x6f, 0x75,
0x6e, 0x64, 0x5f, 0x61, 0x70, 0x70, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6d, 0x65, 0x41, 0x70,
0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65,
0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x70, 0x6c, 0x61,
0x79, 0x67, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x4f,
0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1a, 0x82, 0xd3, 0xe4, 0x93, 0x02,
0x14, 0x22, 0x0f, 0x2f, 0x76, 0x30, 0x2f, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x72, 0x65, 0x73, 0x75,
0x6d, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0x82, 0x01, 0x0a, 0x12, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61,
0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x2a, 0x2e, 0x70,
0x6c, 0x61, 0x79, 0x67, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x61, 0x70, 0x70, 0x73, 0x2e, 0x56,
0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x41, 0x63, 0x63, 0x65, 0x73,
0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x70, 0x6c, 0x61, 0x79, 0x67,
0x72, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x4f, 0x70, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x22,
0x16, 0x2f, 0x76, 0x30, 0x2f, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x72, 0x65, 0x70, 0x6f, 0x2f, 0x76,
0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0x6e, 0x0a, 0x06, 0x55, 0x70,
0x64, 0x61, 0x74, 0x65, 0x12, 0x29, 0x2e, 0x70, 0x6c, 0x61, 0x79, 0x67, 0x72, 0x6f, 0x75, 0x6e,
0x64, 0x5f, 0x61, 0x70, 0x70, 0x73, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x70, 0x70,
0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
0x1d, 0x2e, 0x70, 0x6c, 0x61, 0x79, 0x67, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x63, 0x6f, 0x6d,
0x6d, 0x6f, 0x6e, 0x2e, 0x4f, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1a,
0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x22, 0x0f, 0x2f, 0x76, 0x30, 0x2f, 0x61, 0x70, 0x70, 0x73,
0x2f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0x32, 0x7d, 0x0a, 0x09, 0x57, 0x6f,
0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x12, 0x70, 0x0a, 0x06, 0x52, 0x65, 0x73, 0x75, 0x6d,
0x65, 0x12, 0x26, 0x2e, 0x70, 0x6c, 0x61, 0x79, 0x67, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x61,
0x70, 0x70, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6d, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c,
0x6f, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x70, 0x6c, 0x61, 0x79,
0x67, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x4f, 0x70,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19,
0x22, 0x14, 0x2f, 0x76, 0x30, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x2f,
0x72, 0x65, 0x73, 0x75, 0x6d, 0x65, 0x3a, 0x01, 0x2a, 0x42, 0x45, 0x5a, 0x43, 0x67, 0x69, 0x74,
0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6e, 0x61, 0x70, 0x70, 0x74, 0x69, 0x76, 0x65,
0x2f, 0x67, 0x72, 0x70, 0x63, 0x2d, 0x70, 0x6c, 0x61, 0x79, 0x67, 0x72, 0x6f, 0x75, 0x6e, 0x64,
0x2d, 0x61, 0x70, 0x70, 0x73, 0x2d, 0x67, 0x6f, 0x3b, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x70, 0x6c,
0x61, 0x79, 0x67, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x61, 0x70, 0x70, 0x73, 0x5f, 0x67, 0x6f,
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var file_playground_apps_services_proto_goTypes = []interface{}{
(*DeployApplicationRequest)(nil), // 0: playground_apps.DeployApplicationRequest
(*RemoveApplicationRequest)(nil), // 1: playground_apps.RemoveApplicationRequest
(*grpc_playground_environments_go.EnvironmentSelector)(nil), // 2: playground_environments.EnvironmentSelector
(*AppInfoRequest)(nil), // 3: playground_apps.AppInfoRequest
(*LogRequest)(nil), // 4: playground_apps.LogRequest
(*ScaleRequest)(nil), // 5: playground_apps.ScaleRequest
(*StopApplicationComponentsRequest)(nil), // 6: playground_apps.StopApplicationComponentsRequest
(*ResumeApplicationComponentsRequest)(nil), // 7: playground_apps.ResumeApplicationComponentsRequest
(*ValidateRepoAccessRequest)(nil), // 8: playground_apps.ValidateRepoAccessRequest
(*UpdateApplicationRequest)(nil), // 9: playground_apps.UpdateApplicationRequest
(*ResumeWorkflowRequest)(nil), // 10: playground_apps.ResumeWorkflowRequest
(*DeployApplicationResponse)(nil), // 11: playground_apps.DeployApplicationResponse
(*grpc_playground_common_go.OpResponse)(nil), // 12: playground_common.OpResponse
(*AppSummaryListResponse)(nil), // 13: playground_apps.AppSummaryListResponse
(*Application)(nil), // 14: playground_apps.Application
(*ApplicationLogs)(nil), // 15: playground_apps.ApplicationLogs
}
var file_playground_apps_services_proto_depIdxs = []int32{
0, // 0: playground_apps.Apps.Deploy:input_type -> playground_apps.DeployApplicationRequest
1, // 1: playground_apps.Apps.Remove:input_type -> playground_apps.RemoveApplicationRequest
2, // 2: playground_apps.Apps.SummaryList:input_type -> playground_environments.EnvironmentSelector
3, // 3: playground_apps.Apps.Info:input_type -> playground_apps.AppInfoRequest
4, // 4: playground_apps.Apps.Logs:input_type -> playground_apps.LogRequest
5, // 5: playground_apps.Apps.Scale:input_type -> playground_apps.ScaleRequest
6, // 6: playground_apps.Apps.StopApplicationComponents:input_type -> playground_apps.StopApplicationComponentsRequest
7, // 7: playground_apps.Apps.ResumeApplicationComponents:input_type -> playground_apps.ResumeApplicationComponentsRequest
8, // 8: playground_apps.Apps.ValidateRepoAccess:input_type -> playground_apps.ValidateRepoAccessRequest
9, // 9: playground_apps.Apps.Update:input_type -> playground_apps.UpdateApplicationRequest
10, // 10: playground_apps.Workflows.Resume:input_type -> playground_apps.ResumeWorkflowRequest
11, // 11: playground_apps.Apps.Deploy:output_type -> playground_apps.DeployApplicationResponse
12, // 12: playground_apps.Apps.Remove:output_type -> playground_common.OpResponse
13, // 13: playground_apps.Apps.SummaryList:output_type -> playground_apps.AppSummaryListResponse
14, // 14: playground_apps.Apps.Info:output_type -> playground_apps.Application
15, // 15: playground_apps.Apps.Logs:output_type -> playground_apps.ApplicationLogs
12, // 16: playground_apps.Apps.Scale:output_type -> playground_common.OpResponse
12, // 17: playground_apps.Apps.StopApplicationComponents:output_type -> playground_common.OpResponse
12, // 18: playground_apps.Apps.ResumeApplicationComponents:output_type -> playground_common.OpResponse
12, // 19: playground_apps.Apps.ValidateRepoAccess:output_type -> playground_common.OpResponse
12, // 20: playground_apps.Apps.Update:output_type -> playground_common.OpResponse
12, // 21: playground_apps.Workflows.Resume:output_type -> playground_common.OpResponse
11, // [11:22] is the sub-list for method output_type
0, // [0:11] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_playground_apps_services_proto_init() }
func file_playground_apps_services_proto_init() {
if File_playground_apps_services_proto != nil {
return
}
file_playground_apps_entities_proto_init()
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_playground_apps_services_proto_rawDesc,
NumEnums: 0,
NumMessages: 0,
NumExtensions: 0,
NumServices: 2,
},
GoTypes: file_playground_apps_services_proto_goTypes,
DependencyIndexes: file_playground_apps_services_proto_depIdxs,
}.Build()
File_playground_apps_services_proto = out.File
file_playground_apps_services_proto_rawDesc = nil
file_playground_apps_services_proto_goTypes = nil
file_playground_apps_services_proto_depIdxs = nil
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConnInterface
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion6
// AppsClient is the client API for Apps service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type AppsClient interface {
// Deploy an application.
Deploy(ctx context.Context, in *DeployApplicationRequest, opts ...grpc.CallOption) (*DeployApplicationResponse, error)
// Remove an application instance.
Remove(ctx context.Context, in *RemoveApplicationRequest, opts ...grpc.CallOption) (*grpc_playground_common_go.OpResponse, error)
// SummaryList returns a subset of application summaries found in the user cluster.
SummaryList(ctx context.Context, in *grpc_playground_environments_go.EnvironmentSelector, opts ...grpc.CallOption) (*AppSummaryListResponse, error)
// Get returns an application
Info(ctx context.Context, in *AppInfoRequest, opts ...grpc.CallOption) (*Application, error)
// Logs returns the application logs (filtering by component if required)
Logs(ctx context.Context, in *LogRequest, opts ...grpc.CallOption) (*ApplicationLogs, error)
// Scale scales the application components
Scale(ctx context.Context, in *ScaleRequest, opts ...grpc.CallOption) (*grpc_playground_common_go.OpResponse, error)
// StopApplicationComponents stops application components adding the stop trait
StopApplicationComponents(ctx context.Context, in *StopApplicationComponentsRequest, opts ...grpc.CallOption) (*grpc_playground_common_go.OpResponse, error)
// ResumeApplicationComponents resumes application components
ResumeApplicationComponents(ctx context.Context, in *ResumeApplicationComponentsRequest, opts ...grpc.CallOption) (*grpc_playground_common_go.OpResponse, error)
// ValidateRepoAccess to validate if a repository is accessible with the credentials received
ValidateRepoAccess(ctx context.Context, in *ValidateRepoAccessRequest, opts ...grpc.CallOption) (*grpc_playground_common_go.OpResponse, error)
// Update an application.
Update(ctx context.Context, in *UpdateApplicationRequest, opts ...grpc.CallOption) (*grpc_playground_common_go.OpResponse, error)
}
type appsClient struct {
cc grpc.ClientConnInterface
}
func NewAppsClient(cc grpc.ClientConnInterface) AppsClient {
return &appsClient{cc}
}
func (c *appsClient) Deploy(ctx context.Context, in *DeployApplicationRequest, opts ...grpc.CallOption) (*DeployApplicationResponse, error) {
out := new(DeployApplicationResponse)
err := c.cc.Invoke(ctx, "/playground_apps.Apps/Deploy", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *appsClient) Remove(ctx context.Context, in *RemoveApplicationRequest, opts ...grpc.CallOption) (*grpc_playground_common_go.OpResponse, error) {
out := new(grpc_playground_common_go.OpResponse)
err := c.cc.Invoke(ctx, "/playground_apps.Apps/Remove", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *appsClient) SummaryList(ctx context.Context, in *grpc_playground_environments_go.EnvironmentSelector, opts ...grpc.CallOption) (*AppSummaryListResponse, error) {
out := new(AppSummaryListResponse)
err := c.cc.Invoke(ctx, "/playground_apps.Apps/SummaryList", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *appsClient) Info(ctx context.Context, in *AppInfoRequest, opts ...grpc.CallOption) (*Application, error) {
out := new(Application)
err := c.cc.Invoke(ctx, "/playground_apps.Apps/Info", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *appsClient) Logs(ctx context.Context, in *LogRequest, opts ...grpc.CallOption) (*ApplicationLogs, error) {
out := new(ApplicationLogs)
err := c.cc.Invoke(ctx, "/playground_apps.Apps/Logs", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *appsClient) Scale(ctx context.Context, in *ScaleRequest, opts ...grpc.CallOption) (*grpc_playground_common_go.OpResponse, error) {
out := new(grpc_playground_common_go.OpResponse)
err := c.cc.Invoke(ctx, "/playground_apps.Apps/Scale", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *appsClient) StopApplicationComponents(ctx context.Context, in *StopApplicationComponentsRequest, opts ...grpc.CallOption) (*grpc_playground_common_go.OpResponse, error) {
out := new(grpc_playground_common_go.OpResponse)
err := c.cc.Invoke(ctx, "/playground_apps.Apps/StopApplicationComponents", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *appsClient) ResumeApplicationComponents(ctx context.Context, in *ResumeApplicationComponentsRequest, opts ...grpc.CallOption) (*grpc_playground_common_go.OpResponse, error) {
out := new(grpc_playground_common_go.OpResponse)
err := c.cc.Invoke(ctx, "/playground_apps.Apps/ResumeApplicationComponents", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *appsClient) ValidateRepoAccess(ctx context.Context, in *ValidateRepoAccessRequest, opts ...grpc.CallOption) (*grpc_playground_common_go.OpResponse, error) {
out := new(grpc_playground_common_go.OpResponse)
err := c.cc.Invoke(ctx, "/playground_apps.Apps/ValidateRepoAccess", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *appsClient) Update(ctx context.Context, in *UpdateApplicationRequest, opts ...grpc.CallOption) (*grpc_playground_common_go.OpResponse, error) {
out := new(grpc_playground_common_go.OpResponse)
err := c.cc.Invoke(ctx, "/playground_apps.Apps/Update", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// AppsServer is the server API for Apps service.
type AppsServer interface {
// Deploy an application.
Deploy(context.Context, *DeployApplicationRequest) (*DeployApplicationResponse, error)
// Remove an application instance.
Remove(context.Context, *RemoveApplicationRequest) (*grpc_playground_common_go.OpResponse, error)
// SummaryList returns a subset of application summaries found in the user cluster.
SummaryList(context.Context, *grpc_playground_environments_go.EnvironmentSelector) (*AppSummaryListResponse, error)
// Get returns an application
Info(context.Context, *AppInfoRequest) (*Application, error)
// Logs returns the application logs (filtering by component if required)
Logs(context.Context, *LogRequest) (*ApplicationLogs, error)
// Scale scales the application components
Scale(context.Context, *ScaleRequest) (*grpc_playground_common_go.OpResponse, error)
// StopApplicationComponents stops application components adding the stop trait
StopApplicationComponents(context.Context, *StopApplicationComponentsRequest) (*grpc_playground_common_go.OpResponse, error)
// ResumeApplicationComponents resumes application components
ResumeApplicationComponents(context.Context, *ResumeApplicationComponentsRequest) (*grpc_playground_common_go.OpResponse, error)
// ValidateRepoAccess to validate if a repository is accessible with the credentials received
ValidateRepoAccess(context.Context, *ValidateRepoAccessRequest) (*grpc_playground_common_go.OpResponse, error)
// Update an application.
Update(context.Context, *UpdateApplicationRequest) (*grpc_playground_common_go.OpResponse, error)
}
// UnimplementedAppsServer can be embedded to have forward compatible implementations.
type UnimplementedAppsServer struct {
}
func (*UnimplementedAppsServer) Deploy(context.Context, *DeployApplicationRequest) (*DeployApplicationResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Deploy not implemented")
}
func (*UnimplementedAppsServer) Remove(context.Context, *RemoveApplicationRequest) (*grpc_playground_common_go.OpResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Remove not implemented")
}
func (*UnimplementedAppsServer) SummaryList(context.Context, *grpc_playground_environments_go.EnvironmentSelector) (*AppSummaryListResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method SummaryList not implemented")
}
func (*UnimplementedAppsServer) Info(context.Context, *AppInfoRequest) (*Application, error) {
return nil, status.Errorf(codes.Unimplemented, "method Info not implemented")
}
func (*UnimplementedAppsServer) Logs(context.Context, *LogRequest) (*ApplicationLogs, error) {
return nil, status.Errorf(codes.Unimplemented, "method Logs not implemented")
}
func (*UnimplementedAppsServer) Scale(context.Context, *ScaleRequest) (*grpc_playground_common_go.OpResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Scale not implemented")
}
func (*UnimplementedAppsServer) StopApplicationComponents(context.Context, *StopApplicationComponentsRequest) (*grpc_playground_common_go.OpResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method StopApplicationComponents not implemented")
}
func (*UnimplementedAppsServer) ResumeApplicationComponents(context.Context, *ResumeApplicationComponentsRequest) (*grpc_playground_common_go.OpResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ResumeApplicationComponents not implemented")
}
func (*UnimplementedAppsServer) ValidateRepoAccess(context.Context, *ValidateRepoAccessRequest) (*grpc_playground_common_go.OpResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ValidateRepoAccess not implemented")
}
func (*UnimplementedAppsServer) Update(context.Context, *UpdateApplicationRequest) (*grpc_playground_common_go.OpResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Update not implemented")
}
func RegisterAppsServer(s *grpc.Server, srv AppsServer) {
s.RegisterService(&_Apps_serviceDesc, srv)
}
func _Apps_Deploy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeployApplicationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AppsServer).Deploy(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/playground_apps.Apps/Deploy",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AppsServer).Deploy(ctx, req.(*DeployApplicationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Apps_Remove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RemoveApplicationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AppsServer).Remove(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/playground_apps.Apps/Remove",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AppsServer).Remove(ctx, req.(*RemoveApplicationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Apps_SummaryList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(grpc_playground_environments_go.EnvironmentSelector)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AppsServer).SummaryList(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/playground_apps.Apps/SummaryList",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AppsServer).SummaryList(ctx, req.(*grpc_playground_environments_go.EnvironmentSelector))
}
return interceptor(ctx, in, info, handler)
}
func _Apps_Info_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(AppInfoRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AppsServer).Info(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/playground_apps.Apps/Info",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AppsServer).Info(ctx, req.(*AppInfoRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Apps_Logs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(LogRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AppsServer).Logs(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/playground_apps.Apps/Logs",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AppsServer).Logs(ctx, req.(*LogRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Apps_Scale_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ScaleRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AppsServer).Scale(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/playground_apps.Apps/Scale",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AppsServer).Scale(ctx, req.(*ScaleRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Apps_StopApplicationComponents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(StopApplicationComponentsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AppsServer).StopApplicationComponents(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/playground_apps.Apps/StopApplicationComponents",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AppsServer).StopApplicationComponents(ctx, req.(*StopApplicationComponentsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Apps_ResumeApplicationComponents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ResumeApplicationComponentsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AppsServer).ResumeApplicationComponents(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/playground_apps.Apps/ResumeApplicationComponents",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AppsServer).ResumeApplicationComponents(ctx, req.(*ResumeApplicationComponentsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Apps_ValidateRepoAccess_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ValidateRepoAccessRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AppsServer).ValidateRepoAccess(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/playground_apps.Apps/ValidateRepoAccess",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AppsServer).ValidateRepoAccess(ctx, req.(*ValidateRepoAccessRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Apps_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateApplicationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AppsServer).Update(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/playground_apps.Apps/Update",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AppsServer).Update(ctx, req.(*UpdateApplicationRequest))
}
return interceptor(ctx, in, info, handler)
}
var _Apps_serviceDesc = grpc.ServiceDesc{
ServiceName: "playground_apps.Apps",
HandlerType: (*AppsServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Deploy",
Handler: _Apps_Deploy_Handler,
},
{
MethodName: "Remove",
Handler: _Apps_Remove_Handler,
},
{
MethodName: "SummaryList",
Handler: _Apps_SummaryList_Handler,
},
{
MethodName: "Info",
Handler: _Apps_Info_Handler,
},
{
MethodName: "Logs",
Handler: _Apps_Logs_Handler,
},
{
MethodName: "Scale",
Handler: _Apps_Scale_Handler,
},
{
MethodName: "StopApplicationComponents",
Handler: _Apps_StopApplicationComponents_Handler,
},
{
MethodName: "ResumeApplicationComponents",
Handler: _Apps_ResumeApplicationComponents_Handler,
},
{
MethodName: "ValidateRepoAccess",
Handler: _Apps_ValidateRepoAccess_Handler,
},
{
MethodName: "Update",
Handler: _Apps_Update_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "playground-apps/services.proto",
}
// WorkflowsClient is the client API for Workflows service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type WorkflowsClient interface {
// Resume a suspended workflow application.
Resume(ctx context.Context, in *ResumeWorkflowRequest, opts ...grpc.CallOption) (*grpc_playground_common_go.OpResponse, error)
}
type workflowsClient struct {
cc grpc.ClientConnInterface
}
func NewWorkflowsClient(cc grpc.ClientConnInterface) WorkflowsClient {
return &workflowsClient{cc}
}
func (c *workflowsClient) Resume(ctx context.Context, in *ResumeWorkflowRequest, opts ...grpc.CallOption) (*grpc_playground_common_go.OpResponse, error) {
out := new(grpc_playground_common_go.OpResponse)
err := c.cc.Invoke(ctx, "/playground_apps.Workflows/Resume", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// WorkflowsServer is the server API for Workflows service.
type WorkflowsServer interface {
// Resume a suspended workflow application.
Resume(context.Context, *ResumeWorkflowRequest) (*grpc_playground_common_go.OpResponse, error)
}
// UnimplementedWorkflowsServer can be embedded to have forward compatible implementations.
type UnimplementedWorkflowsServer struct {
}
func (*UnimplementedWorkflowsServer) Resume(context.Context, *ResumeWorkflowRequest) (*grpc_playground_common_go.OpResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Resume not implemented")
}
func RegisterWorkflowsServer(s *grpc.Server, srv WorkflowsServer) {
s.RegisterService(&_Workflows_serviceDesc, srv)
}
func _Workflows_Resume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ResumeWorkflowRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WorkflowsServer).Resume(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/playground_apps.Workflows/Resume",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WorkflowsServer).Resume(ctx, req.(*ResumeWorkflowRequest))
}
return interceptor(ctx, in, info, handler)
}
var _Workflows_serviceDesc = grpc.ServiceDesc{
ServiceName: "playground_apps.Workflows",
HandlerType: (*WorkflowsServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Resume",
Handler: _Workflows_Resume_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "playground-apps/services.proto",
}