griip-core-dev 0.5.6.dev25546__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,721 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+ import warnings
5
+
6
+ from . import griip_pb2 as griip__pb2
7
+
8
+ GRPC_GENERATED_VERSION = '1.81.1'
9
+ GRPC_VERSION = grpc.__version__
10
+ _version_not_supported = False
11
+
12
+ try:
13
+ from grpc._utilities import first_version_is_lower
14
+ _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
15
+ except ImportError:
16
+ _version_not_supported = True
17
+
18
+ if _version_not_supported:
19
+ raise RuntimeError(
20
+ f'The grpc package installed is at version {GRPC_VERSION},'
21
+ + ' but the generated code in griip_pb2_grpc.py depends on'
22
+ + f' grpcio>={GRPC_GENERATED_VERSION}.'
23
+ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
24
+ + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
25
+ )
26
+
27
+
28
+ class GriipApiAdminStub:
29
+ """---------------------------------------------------------------------------
30
+ GriipApiAdmin
31
+
32
+ One-shot warm-up RPC. The API process starts idle (no yaml on disk, no env
33
+ var) and rejects Pick/Plan/Place RPCs with UNAVAILABLE until Initialize
34
+ returns OK. The SDK consumer calls Initialize from its app yaml's cell
35
+ + active part. Calling Initialize a second time atomically swaps the
36
+ subsystems for the new config (e.g. switching parts).
37
+ ---------------------------------------------------------------------------
38
+
39
+ """
40
+
41
+ def __init__(self, channel):
42
+ """Constructor.
43
+
44
+ Args:
45
+ channel: A grpc.Channel.
46
+ """
47
+ self.Initialize = channel.unary_unary(
48
+ '/griip.GriipApiAdmin/Initialize',
49
+ request_serializer=griip__pb2.InitializeRequest.SerializeToString,
50
+ response_deserializer=griip__pb2.InitializeResponse.FromString,
51
+ _registered_method=True)
52
+ self.StartPerceptionMcapRecording = channel.unary_unary(
53
+ '/griip.GriipApiAdmin/StartPerceptionMcapRecording',
54
+ request_serializer=griip__pb2.StartPerceptionMcapRecordingRequest.SerializeToString,
55
+ response_deserializer=griip__pb2.StartPerceptionMcapRecordingResponse.FromString,
56
+ _registered_method=True)
57
+ self.StopPerceptionMcapRecording = channel.unary_unary(
58
+ '/griip.GriipApiAdmin/StopPerceptionMcapRecording',
59
+ request_serializer=griip__pb2.StopPerceptionMcapRecordingRequest.SerializeToString,
60
+ response_deserializer=griip__pb2.StopPerceptionMcapRecordingResponse.FromString,
61
+ _registered_method=True)
62
+
63
+
64
+ class GriipApiAdminServicer:
65
+ """---------------------------------------------------------------------------
66
+ GriipApiAdmin
67
+
68
+ One-shot warm-up RPC. The API process starts idle (no yaml on disk, no env
69
+ var) and rejects Pick/Plan/Place RPCs with UNAVAILABLE until Initialize
70
+ returns OK. The SDK consumer calls Initialize from its app yaml's cell
71
+ + active part. Calling Initialize a second time atomically swaps the
72
+ subsystems for the new config (e.g. switching parts).
73
+ ---------------------------------------------------------------------------
74
+
75
+ """
76
+
77
+ def Initialize(self, request, context):
78
+ """Missing associated documentation comment in .proto file."""
79
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
80
+ context.set_details('Method not implemented!')
81
+ raise NotImplementedError('Method not implemented!')
82
+
83
+ def StartPerceptionMcapRecording(self, request, context):
84
+ """Missing associated documentation comment in .proto file."""
85
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
86
+ context.set_details('Method not implemented!')
87
+ raise NotImplementedError('Method not implemented!')
88
+
89
+ def StopPerceptionMcapRecording(self, request, context):
90
+ """Missing associated documentation comment in .proto file."""
91
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
92
+ context.set_details('Method not implemented!')
93
+ raise NotImplementedError('Method not implemented!')
94
+
95
+
96
+ def add_GriipApiAdminServicer_to_server(servicer, server):
97
+ rpc_method_handlers = {
98
+ 'Initialize': grpc.unary_unary_rpc_method_handler(
99
+ servicer.Initialize,
100
+ request_deserializer=griip__pb2.InitializeRequest.FromString,
101
+ response_serializer=griip__pb2.InitializeResponse.SerializeToString,
102
+ ),
103
+ 'StartPerceptionMcapRecording': grpc.unary_unary_rpc_method_handler(
104
+ servicer.StartPerceptionMcapRecording,
105
+ request_deserializer=griip__pb2.StartPerceptionMcapRecordingRequest.FromString,
106
+ response_serializer=griip__pb2.StartPerceptionMcapRecordingResponse.SerializeToString,
107
+ ),
108
+ 'StopPerceptionMcapRecording': grpc.unary_unary_rpc_method_handler(
109
+ servicer.StopPerceptionMcapRecording,
110
+ request_deserializer=griip__pb2.StopPerceptionMcapRecordingRequest.FromString,
111
+ response_serializer=griip__pb2.StopPerceptionMcapRecordingResponse.SerializeToString,
112
+ ),
113
+ }
114
+ generic_handler = grpc.method_handlers_generic_handler(
115
+ 'griip.GriipApiAdmin', rpc_method_handlers)
116
+ server.add_generic_rpc_handlers((generic_handler,))
117
+ server.add_registered_method_handlers('griip.GriipApiAdmin', rpc_method_handlers)
118
+
119
+
120
+ # This class is part of an EXPERIMENTAL API.
121
+ class GriipApiAdmin:
122
+ """---------------------------------------------------------------------------
123
+ GriipApiAdmin
124
+
125
+ One-shot warm-up RPC. The API process starts idle (no yaml on disk, no env
126
+ var) and rejects Pick/Plan/Place RPCs with UNAVAILABLE until Initialize
127
+ returns OK. The SDK consumer calls Initialize from its app yaml's cell
128
+ + active part. Calling Initialize a second time atomically swaps the
129
+ subsystems for the new config (e.g. switching parts).
130
+ ---------------------------------------------------------------------------
131
+
132
+ """
133
+
134
+ @staticmethod
135
+ def Initialize(request,
136
+ target,
137
+ options=(),
138
+ channel_credentials=None,
139
+ call_credentials=None,
140
+ insecure=False,
141
+ compression=None,
142
+ wait_for_ready=None,
143
+ timeout=None,
144
+ metadata=None):
145
+ return grpc.experimental.unary_unary(
146
+ request,
147
+ target,
148
+ '/griip.GriipApiAdmin/Initialize',
149
+ griip__pb2.InitializeRequest.SerializeToString,
150
+ griip__pb2.InitializeResponse.FromString,
151
+ options,
152
+ channel_credentials,
153
+ insecure,
154
+ call_credentials,
155
+ compression,
156
+ wait_for_ready,
157
+ timeout,
158
+ metadata,
159
+ _registered_method=True)
160
+
161
+ @staticmethod
162
+ def StartPerceptionMcapRecording(request,
163
+ target,
164
+ options=(),
165
+ channel_credentials=None,
166
+ call_credentials=None,
167
+ insecure=False,
168
+ compression=None,
169
+ wait_for_ready=None,
170
+ timeout=None,
171
+ metadata=None):
172
+ return grpc.experimental.unary_unary(
173
+ request,
174
+ target,
175
+ '/griip.GriipApiAdmin/StartPerceptionMcapRecording',
176
+ griip__pb2.StartPerceptionMcapRecordingRequest.SerializeToString,
177
+ griip__pb2.StartPerceptionMcapRecordingResponse.FromString,
178
+ options,
179
+ channel_credentials,
180
+ insecure,
181
+ call_credentials,
182
+ compression,
183
+ wait_for_ready,
184
+ timeout,
185
+ metadata,
186
+ _registered_method=True)
187
+
188
+ @staticmethod
189
+ def StopPerceptionMcapRecording(request,
190
+ target,
191
+ options=(),
192
+ channel_credentials=None,
193
+ call_credentials=None,
194
+ insecure=False,
195
+ compression=None,
196
+ wait_for_ready=None,
197
+ timeout=None,
198
+ metadata=None):
199
+ return grpc.experimental.unary_unary(
200
+ request,
201
+ target,
202
+ '/griip.GriipApiAdmin/StopPerceptionMcapRecording',
203
+ griip__pb2.StopPerceptionMcapRecordingRequest.SerializeToString,
204
+ griip__pb2.StopPerceptionMcapRecordingResponse.FromString,
205
+ options,
206
+ channel_credentials,
207
+ insecure,
208
+ call_credentials,
209
+ compression,
210
+ wait_for_ready,
211
+ timeout,
212
+ metadata,
213
+ _registered_method=True)
214
+
215
+
216
+ class PlanningServiceStub:
217
+ """---------------------------------------------------------------------------
218
+ PlanningService
219
+ ---------------------------------------------------------------------------
220
+
221
+ """
222
+
223
+ def __init__(self, channel):
224
+ """Constructor.
225
+
226
+ Args:
227
+ channel: A grpc.Channel.
228
+ """
229
+ self.ConfigurePlanner = channel.unary_unary(
230
+ '/griip.PlanningService/ConfigurePlanner',
231
+ request_serializer=griip__pb2.ConfigurePlannerRequest.SerializeToString,
232
+ response_deserializer=griip__pb2.ConfigurePlannerResponse.FromString,
233
+ _registered_method=True)
234
+ self.PlanPath = channel.unary_unary(
235
+ '/griip.PlanningService/PlanPath',
236
+ request_serializer=griip__pb2.PlanPathRequest.SerializeToString,
237
+ response_deserializer=griip__pb2.PlanPathResponse.FromString,
238
+ _registered_method=True)
239
+
240
+
241
+ class PlanningServiceServicer:
242
+ """---------------------------------------------------------------------------
243
+ PlanningService
244
+ ---------------------------------------------------------------------------
245
+
246
+ """
247
+
248
+ def ConfigurePlanner(self, request, context):
249
+ """Missing associated documentation comment in .proto file."""
250
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
251
+ context.set_details('Method not implemented!')
252
+ raise NotImplementedError('Method not implemented!')
253
+
254
+ def PlanPath(self, request, context):
255
+ """Missing associated documentation comment in .proto file."""
256
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
257
+ context.set_details('Method not implemented!')
258
+ raise NotImplementedError('Method not implemented!')
259
+
260
+
261
+ def add_PlanningServiceServicer_to_server(servicer, server):
262
+ rpc_method_handlers = {
263
+ 'ConfigurePlanner': grpc.unary_unary_rpc_method_handler(
264
+ servicer.ConfigurePlanner,
265
+ request_deserializer=griip__pb2.ConfigurePlannerRequest.FromString,
266
+ response_serializer=griip__pb2.ConfigurePlannerResponse.SerializeToString,
267
+ ),
268
+ 'PlanPath': grpc.unary_unary_rpc_method_handler(
269
+ servicer.PlanPath,
270
+ request_deserializer=griip__pb2.PlanPathRequest.FromString,
271
+ response_serializer=griip__pb2.PlanPathResponse.SerializeToString,
272
+ ),
273
+ }
274
+ generic_handler = grpc.method_handlers_generic_handler(
275
+ 'griip.PlanningService', rpc_method_handlers)
276
+ server.add_generic_rpc_handlers((generic_handler,))
277
+ server.add_registered_method_handlers('griip.PlanningService', rpc_method_handlers)
278
+
279
+
280
+ # This class is part of an EXPERIMENTAL API.
281
+ class PlanningService:
282
+ """---------------------------------------------------------------------------
283
+ PlanningService
284
+ ---------------------------------------------------------------------------
285
+
286
+ """
287
+
288
+ @staticmethod
289
+ def ConfigurePlanner(request,
290
+ target,
291
+ options=(),
292
+ channel_credentials=None,
293
+ call_credentials=None,
294
+ insecure=False,
295
+ compression=None,
296
+ wait_for_ready=None,
297
+ timeout=None,
298
+ metadata=None):
299
+ return grpc.experimental.unary_unary(
300
+ request,
301
+ target,
302
+ '/griip.PlanningService/ConfigurePlanner',
303
+ griip__pb2.ConfigurePlannerRequest.SerializeToString,
304
+ griip__pb2.ConfigurePlannerResponse.FromString,
305
+ options,
306
+ channel_credentials,
307
+ insecure,
308
+ call_credentials,
309
+ compression,
310
+ wait_for_ready,
311
+ timeout,
312
+ metadata,
313
+ _registered_method=True)
314
+
315
+ @staticmethod
316
+ def PlanPath(request,
317
+ target,
318
+ options=(),
319
+ channel_credentials=None,
320
+ call_credentials=None,
321
+ insecure=False,
322
+ compression=None,
323
+ wait_for_ready=None,
324
+ timeout=None,
325
+ metadata=None):
326
+ return grpc.experimental.unary_unary(
327
+ request,
328
+ target,
329
+ '/griip.PlanningService/PlanPath',
330
+ griip__pb2.PlanPathRequest.SerializeToString,
331
+ griip__pb2.PlanPathResponse.FromString,
332
+ options,
333
+ channel_credentials,
334
+ insecure,
335
+ call_credentials,
336
+ compression,
337
+ wait_for_ready,
338
+ timeout,
339
+ metadata,
340
+ _registered_method=True)
341
+
342
+
343
+ class PerceptionServiceStub:
344
+ """---------------------------------------------------------------------------
345
+ PerceptionService
346
+ ---------------------------------------------------------------------------
347
+
348
+ """
349
+
350
+ def __init__(self, channel):
351
+ """Constructor.
352
+
353
+ Args:
354
+ channel: A grpc.Channel.
355
+ """
356
+ self.EstimateDepth = channel.unary_unary(
357
+ '/griip.PerceptionService/EstimateDepth',
358
+ request_serializer=griip__pb2.EstimateDepthRequest.SerializeToString,
359
+ response_deserializer=griip__pb2.EstimateDepthResponse.FromString,
360
+ _registered_method=True)
361
+ self.DetectObjects = channel.unary_unary(
362
+ '/griip.PerceptionService/DetectObjects',
363
+ request_serializer=griip__pb2.DetectObjectsRequest.SerializeToString,
364
+ response_deserializer=griip__pb2.DetectObjectsResponse.FromString,
365
+ _registered_method=True)
366
+ self.EstimatePose = channel.unary_unary(
367
+ '/griip.PerceptionService/EstimatePose',
368
+ request_serializer=griip__pb2.EstimatePoseRequest.SerializeToString,
369
+ response_deserializer=griip__pb2.EstimatePoseResponse.FromString,
370
+ _registered_method=True)
371
+
372
+
373
+ class PerceptionServiceServicer:
374
+ """---------------------------------------------------------------------------
375
+ PerceptionService
376
+ ---------------------------------------------------------------------------
377
+
378
+ """
379
+
380
+ def EstimateDepth(self, request, context):
381
+ """Missing associated documentation comment in .proto file."""
382
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
383
+ context.set_details('Method not implemented!')
384
+ raise NotImplementedError('Method not implemented!')
385
+
386
+ def DetectObjects(self, request, context):
387
+ """Missing associated documentation comment in .proto file."""
388
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
389
+ context.set_details('Method not implemented!')
390
+ raise NotImplementedError('Method not implemented!')
391
+
392
+ def EstimatePose(self, request, context):
393
+ """Missing associated documentation comment in .proto file."""
394
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
395
+ context.set_details('Method not implemented!')
396
+ raise NotImplementedError('Method not implemented!')
397
+
398
+
399
+ def add_PerceptionServiceServicer_to_server(servicer, server):
400
+ rpc_method_handlers = {
401
+ 'EstimateDepth': grpc.unary_unary_rpc_method_handler(
402
+ servicer.EstimateDepth,
403
+ request_deserializer=griip__pb2.EstimateDepthRequest.FromString,
404
+ response_serializer=griip__pb2.EstimateDepthResponse.SerializeToString,
405
+ ),
406
+ 'DetectObjects': grpc.unary_unary_rpc_method_handler(
407
+ servicer.DetectObjects,
408
+ request_deserializer=griip__pb2.DetectObjectsRequest.FromString,
409
+ response_serializer=griip__pb2.DetectObjectsResponse.SerializeToString,
410
+ ),
411
+ 'EstimatePose': grpc.unary_unary_rpc_method_handler(
412
+ servicer.EstimatePose,
413
+ request_deserializer=griip__pb2.EstimatePoseRequest.FromString,
414
+ response_serializer=griip__pb2.EstimatePoseResponse.SerializeToString,
415
+ ),
416
+ }
417
+ generic_handler = grpc.method_handlers_generic_handler(
418
+ 'griip.PerceptionService', rpc_method_handlers)
419
+ server.add_generic_rpc_handlers((generic_handler,))
420
+ server.add_registered_method_handlers('griip.PerceptionService', rpc_method_handlers)
421
+
422
+
423
+ # This class is part of an EXPERIMENTAL API.
424
+ class PerceptionService:
425
+ """---------------------------------------------------------------------------
426
+ PerceptionService
427
+ ---------------------------------------------------------------------------
428
+
429
+ """
430
+
431
+ @staticmethod
432
+ def EstimateDepth(request,
433
+ target,
434
+ options=(),
435
+ channel_credentials=None,
436
+ call_credentials=None,
437
+ insecure=False,
438
+ compression=None,
439
+ wait_for_ready=None,
440
+ timeout=None,
441
+ metadata=None):
442
+ return grpc.experimental.unary_unary(
443
+ request,
444
+ target,
445
+ '/griip.PerceptionService/EstimateDepth',
446
+ griip__pb2.EstimateDepthRequest.SerializeToString,
447
+ griip__pb2.EstimateDepthResponse.FromString,
448
+ options,
449
+ channel_credentials,
450
+ insecure,
451
+ call_credentials,
452
+ compression,
453
+ wait_for_ready,
454
+ timeout,
455
+ metadata,
456
+ _registered_method=True)
457
+
458
+ @staticmethod
459
+ def DetectObjects(request,
460
+ target,
461
+ options=(),
462
+ channel_credentials=None,
463
+ call_credentials=None,
464
+ insecure=False,
465
+ compression=None,
466
+ wait_for_ready=None,
467
+ timeout=None,
468
+ metadata=None):
469
+ return grpc.experimental.unary_unary(
470
+ request,
471
+ target,
472
+ '/griip.PerceptionService/DetectObjects',
473
+ griip__pb2.DetectObjectsRequest.SerializeToString,
474
+ griip__pb2.DetectObjectsResponse.FromString,
475
+ options,
476
+ channel_credentials,
477
+ insecure,
478
+ call_credentials,
479
+ compression,
480
+ wait_for_ready,
481
+ timeout,
482
+ metadata,
483
+ _registered_method=True)
484
+
485
+ @staticmethod
486
+ def EstimatePose(request,
487
+ target,
488
+ options=(),
489
+ channel_credentials=None,
490
+ call_credentials=None,
491
+ insecure=False,
492
+ compression=None,
493
+ wait_for_ready=None,
494
+ timeout=None,
495
+ metadata=None):
496
+ return grpc.experimental.unary_unary(
497
+ request,
498
+ target,
499
+ '/griip.PerceptionService/EstimatePose',
500
+ griip__pb2.EstimatePoseRequest.SerializeToString,
501
+ griip__pb2.EstimatePoseResponse.FromString,
502
+ options,
503
+ channel_credentials,
504
+ insecure,
505
+ call_credentials,
506
+ compression,
507
+ wait_for_ready,
508
+ timeout,
509
+ metadata,
510
+ _registered_method=True)
511
+
512
+
513
+ class PickingServiceStub:
514
+ """---------------------------------------------------------------------------
515
+ PickingService
516
+ ---------------------------------------------------------------------------
517
+
518
+ """
519
+
520
+ def __init__(self, channel):
521
+ """Constructor.
522
+
523
+ Args:
524
+ channel: A grpc.Channel.
525
+ """
526
+ self.GeneratePicks = channel.unary_stream(
527
+ '/griip.PickingService/GeneratePicks',
528
+ request_serializer=griip__pb2.GeneratePicksRequest.SerializeToString,
529
+ response_deserializer=griip__pb2.GeneratePicksResponse.FromString,
530
+ _registered_method=True)
531
+ self.ReportSelectedPick = channel.unary_unary(
532
+ '/griip.PickingService/ReportSelectedPick',
533
+ request_serializer=griip__pb2.ReportSelectedPickRequest.SerializeToString,
534
+ response_deserializer=griip__pb2.ReportSelectedPickResponse.FromString,
535
+ _registered_method=True)
536
+
537
+
538
+ class PickingServiceServicer:
539
+ """---------------------------------------------------------------------------
540
+ PickingService
541
+ ---------------------------------------------------------------------------
542
+
543
+ """
544
+
545
+ def GeneratePicks(self, request, context):
546
+ """Missing associated documentation comment in .proto file."""
547
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
548
+ context.set_details('Method not implemented!')
549
+ raise NotImplementedError('Method not implemented!')
550
+
551
+ def ReportSelectedPick(self, request, context):
552
+ """Missing associated documentation comment in .proto file."""
553
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
554
+ context.set_details('Method not implemented!')
555
+ raise NotImplementedError('Method not implemented!')
556
+
557
+
558
+ def add_PickingServiceServicer_to_server(servicer, server):
559
+ rpc_method_handlers = {
560
+ 'GeneratePicks': grpc.unary_stream_rpc_method_handler(
561
+ servicer.GeneratePicks,
562
+ request_deserializer=griip__pb2.GeneratePicksRequest.FromString,
563
+ response_serializer=griip__pb2.GeneratePicksResponse.SerializeToString,
564
+ ),
565
+ 'ReportSelectedPick': grpc.unary_unary_rpc_method_handler(
566
+ servicer.ReportSelectedPick,
567
+ request_deserializer=griip__pb2.ReportSelectedPickRequest.FromString,
568
+ response_serializer=griip__pb2.ReportSelectedPickResponse.SerializeToString,
569
+ ),
570
+ }
571
+ generic_handler = grpc.method_handlers_generic_handler(
572
+ 'griip.PickingService', rpc_method_handlers)
573
+ server.add_generic_rpc_handlers((generic_handler,))
574
+ server.add_registered_method_handlers('griip.PickingService', rpc_method_handlers)
575
+
576
+
577
+ # This class is part of an EXPERIMENTAL API.
578
+ class PickingService:
579
+ """---------------------------------------------------------------------------
580
+ PickingService
581
+ ---------------------------------------------------------------------------
582
+
583
+ """
584
+
585
+ @staticmethod
586
+ def GeneratePicks(request,
587
+ target,
588
+ options=(),
589
+ channel_credentials=None,
590
+ call_credentials=None,
591
+ insecure=False,
592
+ compression=None,
593
+ wait_for_ready=None,
594
+ timeout=None,
595
+ metadata=None):
596
+ return grpc.experimental.unary_stream(
597
+ request,
598
+ target,
599
+ '/griip.PickingService/GeneratePicks',
600
+ griip__pb2.GeneratePicksRequest.SerializeToString,
601
+ griip__pb2.GeneratePicksResponse.FromString,
602
+ options,
603
+ channel_credentials,
604
+ insecure,
605
+ call_credentials,
606
+ compression,
607
+ wait_for_ready,
608
+ timeout,
609
+ metadata,
610
+ _registered_method=True)
611
+
612
+ @staticmethod
613
+ def ReportSelectedPick(request,
614
+ target,
615
+ options=(),
616
+ channel_credentials=None,
617
+ call_credentials=None,
618
+ insecure=False,
619
+ compression=None,
620
+ wait_for_ready=None,
621
+ timeout=None,
622
+ metadata=None):
623
+ return grpc.experimental.unary_unary(
624
+ request,
625
+ target,
626
+ '/griip.PickingService/ReportSelectedPick',
627
+ griip__pb2.ReportSelectedPickRequest.SerializeToString,
628
+ griip__pb2.ReportSelectedPickResponse.FromString,
629
+ options,
630
+ channel_credentials,
631
+ insecure,
632
+ call_credentials,
633
+ compression,
634
+ wait_for_ready,
635
+ timeout,
636
+ metadata,
637
+ _registered_method=True)
638
+
639
+
640
+ class PlacingServiceStub:
641
+ """---------------------------------------------------------------------------
642
+ PlacingService
643
+ ---------------------------------------------------------------------------
644
+
645
+ """
646
+
647
+ def __init__(self, channel):
648
+ """Constructor.
649
+
650
+ Args:
651
+ channel: A grpc.Channel.
652
+ """
653
+ self.GeneratePlacement = channel.unary_unary(
654
+ '/griip.PlacingService/GeneratePlacement',
655
+ request_serializer=griip__pb2.GeneratePlacementRequest.SerializeToString,
656
+ response_deserializer=griip__pb2.GeneratePlacementResponse.FromString,
657
+ _registered_method=True)
658
+
659
+
660
+ class PlacingServiceServicer:
661
+ """---------------------------------------------------------------------------
662
+ PlacingService
663
+ ---------------------------------------------------------------------------
664
+
665
+ """
666
+
667
+ def GeneratePlacement(self, request, context):
668
+ """Missing associated documentation comment in .proto file."""
669
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
670
+ context.set_details('Method not implemented!')
671
+ raise NotImplementedError('Method not implemented!')
672
+
673
+
674
+ def add_PlacingServiceServicer_to_server(servicer, server):
675
+ rpc_method_handlers = {
676
+ 'GeneratePlacement': grpc.unary_unary_rpc_method_handler(
677
+ servicer.GeneratePlacement,
678
+ request_deserializer=griip__pb2.GeneratePlacementRequest.FromString,
679
+ response_serializer=griip__pb2.GeneratePlacementResponse.SerializeToString,
680
+ ),
681
+ }
682
+ generic_handler = grpc.method_handlers_generic_handler(
683
+ 'griip.PlacingService', rpc_method_handlers)
684
+ server.add_generic_rpc_handlers((generic_handler,))
685
+ server.add_registered_method_handlers('griip.PlacingService', rpc_method_handlers)
686
+
687
+
688
+ # This class is part of an EXPERIMENTAL API.
689
+ class PlacingService:
690
+ """---------------------------------------------------------------------------
691
+ PlacingService
692
+ ---------------------------------------------------------------------------
693
+
694
+ """
695
+
696
+ @staticmethod
697
+ def GeneratePlacement(request,
698
+ target,
699
+ options=(),
700
+ channel_credentials=None,
701
+ call_credentials=None,
702
+ insecure=False,
703
+ compression=None,
704
+ wait_for_ready=None,
705
+ timeout=None,
706
+ metadata=None):
707
+ return grpc.experimental.unary_unary(
708
+ request,
709
+ target,
710
+ '/griip.PlacingService/GeneratePlacement',
711
+ griip__pb2.GeneratePlacementRequest.SerializeToString,
712
+ griip__pb2.GeneratePlacementResponse.FromString,
713
+ options,
714
+ channel_credentials,
715
+ insecure,
716
+ call_credentials,
717
+ compression,
718
+ wait_for_ready,
719
+ timeout,
720
+ metadata,
721
+ _registered_method=True)