-
Notifications
You must be signed in to change notification settings - Fork 74
/
robot_grpc.pb.go
659 lines (611 loc) · 27 KB
/
robot_grpc.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
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.2.0
// - protoc (unknown)
// source: robot/v1/robot.proto
package v1
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
// RobotServiceClient is the client API for RobotService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type RobotServiceClient interface {
GetOperations(ctx context.Context, in *GetOperationsRequest, opts ...grpc.CallOption) (*GetOperationsResponse, error)
GetSessions(ctx context.Context, in *GetSessionsRequest, opts ...grpc.CallOption) (*GetSessionsResponse, error)
// ResourceNames returns the list of all resources.
ResourceNames(ctx context.Context, in *ResourceNamesRequest, opts ...grpc.CallOption) (*ResourceNamesResponse, error)
// ResourceRPCSubtypes returns the list of all resource types.
ResourceRPCSubtypes(ctx context.Context, in *ResourceRPCSubtypesRequest, opts ...grpc.CallOption) (*ResourceRPCSubtypesResponse, error)
CancelOperation(ctx context.Context, in *CancelOperationRequest, opts ...grpc.CallOption) (*CancelOperationResponse, error)
BlockForOperation(ctx context.Context, in *BlockForOperationRequest, opts ...grpc.CallOption) (*BlockForOperationResponse, error)
// DiscoverComponents returns the list of discovered component configurations.
DiscoverComponents(ctx context.Context, in *DiscoverComponentsRequest, opts ...grpc.CallOption) (*DiscoverComponentsResponse, error)
FrameSystemConfig(ctx context.Context, in *FrameSystemConfigRequest, opts ...grpc.CallOption) (*FrameSystemConfigResponse, error)
TransformPose(ctx context.Context, in *TransformPoseRequest, opts ...grpc.CallOption) (*TransformPoseResponse, error)
TransformPCD(ctx context.Context, in *TransformPCDRequest, opts ...grpc.CallOption) (*TransformPCDResponse, error)
// GetStatus returns the list of all statuses requested. An empty request signifies all resources.
GetStatus(ctx context.Context, in *GetStatusRequest, opts ...grpc.CallOption) (*GetStatusResponse, error)
// StreamStatus periodically sends the status of all statuses requested. An empty request signifies all resources.
StreamStatus(ctx context.Context, in *StreamStatusRequest, opts ...grpc.CallOption) (RobotService_StreamStatusClient, error)
// StopAll will stop all current and outstanding operations for the robot and stops all actuators and movement
StopAll(ctx context.Context, in *StopAllRequest, opts ...grpc.CallOption) (*StopAllResponse, error)
// StartSession creates a new session that expects at least one heartbeat within the returned window.
// If the window lapses, any resources that have safety heart monitored methods, where this session was
// the last caller on the resource, will be stopped.
StartSession(ctx context.Context, in *StartSessionRequest, opts ...grpc.CallOption) (*StartSessionResponse, error)
// SendSessionHeartbeat sends a heartbeat to the given session. If the session has expired, a
// SESSION_EXPIRED error will be returned.
SendSessionHeartbeat(ctx context.Context, in *SendSessionHeartbeatRequest, opts ...grpc.CallOption) (*SendSessionHeartbeatResponse, error)
}
type robotServiceClient struct {
cc grpc.ClientConnInterface
}
func NewRobotServiceClient(cc grpc.ClientConnInterface) RobotServiceClient {
return &robotServiceClient{cc}
}
func (c *robotServiceClient) GetOperations(ctx context.Context, in *GetOperationsRequest, opts ...grpc.CallOption) (*GetOperationsResponse, error) {
out := new(GetOperationsResponse)
err := c.cc.Invoke(ctx, "/viam.robot.v1.RobotService/GetOperations", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *robotServiceClient) GetSessions(ctx context.Context, in *GetSessionsRequest, opts ...grpc.CallOption) (*GetSessionsResponse, error) {
out := new(GetSessionsResponse)
err := c.cc.Invoke(ctx, "/viam.robot.v1.RobotService/GetSessions", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *robotServiceClient) ResourceNames(ctx context.Context, in *ResourceNamesRequest, opts ...grpc.CallOption) (*ResourceNamesResponse, error) {
out := new(ResourceNamesResponse)
err := c.cc.Invoke(ctx, "/viam.robot.v1.RobotService/ResourceNames", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *robotServiceClient) ResourceRPCSubtypes(ctx context.Context, in *ResourceRPCSubtypesRequest, opts ...grpc.CallOption) (*ResourceRPCSubtypesResponse, error) {
out := new(ResourceRPCSubtypesResponse)
err := c.cc.Invoke(ctx, "/viam.robot.v1.RobotService/ResourceRPCSubtypes", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *robotServiceClient) CancelOperation(ctx context.Context, in *CancelOperationRequest, opts ...grpc.CallOption) (*CancelOperationResponse, error) {
out := new(CancelOperationResponse)
err := c.cc.Invoke(ctx, "/viam.robot.v1.RobotService/CancelOperation", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *robotServiceClient) BlockForOperation(ctx context.Context, in *BlockForOperationRequest, opts ...grpc.CallOption) (*BlockForOperationResponse, error) {
out := new(BlockForOperationResponse)
err := c.cc.Invoke(ctx, "/viam.robot.v1.RobotService/BlockForOperation", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *robotServiceClient) DiscoverComponents(ctx context.Context, in *DiscoverComponentsRequest, opts ...grpc.CallOption) (*DiscoverComponentsResponse, error) {
out := new(DiscoverComponentsResponse)
err := c.cc.Invoke(ctx, "/viam.robot.v1.RobotService/DiscoverComponents", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *robotServiceClient) FrameSystemConfig(ctx context.Context, in *FrameSystemConfigRequest, opts ...grpc.CallOption) (*FrameSystemConfigResponse, error) {
out := new(FrameSystemConfigResponse)
err := c.cc.Invoke(ctx, "/viam.robot.v1.RobotService/FrameSystemConfig", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *robotServiceClient) TransformPose(ctx context.Context, in *TransformPoseRequest, opts ...grpc.CallOption) (*TransformPoseResponse, error) {
out := new(TransformPoseResponse)
err := c.cc.Invoke(ctx, "/viam.robot.v1.RobotService/TransformPose", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *robotServiceClient) TransformPCD(ctx context.Context, in *TransformPCDRequest, opts ...grpc.CallOption) (*TransformPCDResponse, error) {
out := new(TransformPCDResponse)
err := c.cc.Invoke(ctx, "/viam.robot.v1.RobotService/TransformPCD", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *robotServiceClient) GetStatus(ctx context.Context, in *GetStatusRequest, opts ...grpc.CallOption) (*GetStatusResponse, error) {
out := new(GetStatusResponse)
err := c.cc.Invoke(ctx, "/viam.robot.v1.RobotService/GetStatus", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *robotServiceClient) StreamStatus(ctx context.Context, in *StreamStatusRequest, opts ...grpc.CallOption) (RobotService_StreamStatusClient, error) {
stream, err := c.cc.NewStream(ctx, &RobotService_ServiceDesc.Streams[0], "/viam.robot.v1.RobotService/StreamStatus", opts...)
if err != nil {
return nil, err
}
x := &robotServiceStreamStatusClient{stream}
if err := x.ClientStream.SendMsg(in); err != nil {
return nil, err
}
if err := x.ClientStream.CloseSend(); err != nil {
return nil, err
}
return x, nil
}
type RobotService_StreamStatusClient interface {
Recv() (*StreamStatusResponse, error)
grpc.ClientStream
}
type robotServiceStreamStatusClient struct {
grpc.ClientStream
}
func (x *robotServiceStreamStatusClient) Recv() (*StreamStatusResponse, error) {
m := new(StreamStatusResponse)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *robotServiceClient) StopAll(ctx context.Context, in *StopAllRequest, opts ...grpc.CallOption) (*StopAllResponse, error) {
out := new(StopAllResponse)
err := c.cc.Invoke(ctx, "/viam.robot.v1.RobotService/StopAll", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *robotServiceClient) StartSession(ctx context.Context, in *StartSessionRequest, opts ...grpc.CallOption) (*StartSessionResponse, error) {
out := new(StartSessionResponse)
err := c.cc.Invoke(ctx, "/viam.robot.v1.RobotService/StartSession", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *robotServiceClient) SendSessionHeartbeat(ctx context.Context, in *SendSessionHeartbeatRequest, opts ...grpc.CallOption) (*SendSessionHeartbeatResponse, error) {
out := new(SendSessionHeartbeatResponse)
err := c.cc.Invoke(ctx, "/viam.robot.v1.RobotService/SendSessionHeartbeat", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// RobotServiceServer is the server API for RobotService service.
// All implementations must embed UnimplementedRobotServiceServer
// for forward compatibility
type RobotServiceServer interface {
GetOperations(context.Context, *GetOperationsRequest) (*GetOperationsResponse, error)
GetSessions(context.Context, *GetSessionsRequest) (*GetSessionsResponse, error)
// ResourceNames returns the list of all resources.
ResourceNames(context.Context, *ResourceNamesRequest) (*ResourceNamesResponse, error)
// ResourceRPCSubtypes returns the list of all resource types.
ResourceRPCSubtypes(context.Context, *ResourceRPCSubtypesRequest) (*ResourceRPCSubtypesResponse, error)
CancelOperation(context.Context, *CancelOperationRequest) (*CancelOperationResponse, error)
BlockForOperation(context.Context, *BlockForOperationRequest) (*BlockForOperationResponse, error)
// DiscoverComponents returns the list of discovered component configurations.
DiscoverComponents(context.Context, *DiscoverComponentsRequest) (*DiscoverComponentsResponse, error)
FrameSystemConfig(context.Context, *FrameSystemConfigRequest) (*FrameSystemConfigResponse, error)
TransformPose(context.Context, *TransformPoseRequest) (*TransformPoseResponse, error)
TransformPCD(context.Context, *TransformPCDRequest) (*TransformPCDResponse, error)
// GetStatus returns the list of all statuses requested. An empty request signifies all resources.
GetStatus(context.Context, *GetStatusRequest) (*GetStatusResponse, error)
// StreamStatus periodically sends the status of all statuses requested. An empty request signifies all resources.
StreamStatus(*StreamStatusRequest, RobotService_StreamStatusServer) error
// StopAll will stop all current and outstanding operations for the robot and stops all actuators and movement
StopAll(context.Context, *StopAllRequest) (*StopAllResponse, error)
// StartSession creates a new session that expects at least one heartbeat within the returned window.
// If the window lapses, any resources that have safety heart monitored methods, where this session was
// the last caller on the resource, will be stopped.
StartSession(context.Context, *StartSessionRequest) (*StartSessionResponse, error)
// SendSessionHeartbeat sends a heartbeat to the given session. If the session has expired, a
// SESSION_EXPIRED error will be returned.
SendSessionHeartbeat(context.Context, *SendSessionHeartbeatRequest) (*SendSessionHeartbeatResponse, error)
mustEmbedUnimplementedRobotServiceServer()
}
// UnimplementedRobotServiceServer must be embedded to have forward compatible implementations.
type UnimplementedRobotServiceServer struct {
}
func (UnimplementedRobotServiceServer) GetOperations(context.Context, *GetOperationsRequest) (*GetOperationsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetOperations not implemented")
}
func (UnimplementedRobotServiceServer) GetSessions(context.Context, *GetSessionsRequest) (*GetSessionsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetSessions not implemented")
}
func (UnimplementedRobotServiceServer) ResourceNames(context.Context, *ResourceNamesRequest) (*ResourceNamesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ResourceNames not implemented")
}
func (UnimplementedRobotServiceServer) ResourceRPCSubtypes(context.Context, *ResourceRPCSubtypesRequest) (*ResourceRPCSubtypesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ResourceRPCSubtypes not implemented")
}
func (UnimplementedRobotServiceServer) CancelOperation(context.Context, *CancelOperationRequest) (*CancelOperationResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CancelOperation not implemented")
}
func (UnimplementedRobotServiceServer) BlockForOperation(context.Context, *BlockForOperationRequest) (*BlockForOperationResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method BlockForOperation not implemented")
}
func (UnimplementedRobotServiceServer) DiscoverComponents(context.Context, *DiscoverComponentsRequest) (*DiscoverComponentsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method DiscoverComponents not implemented")
}
func (UnimplementedRobotServiceServer) FrameSystemConfig(context.Context, *FrameSystemConfigRequest) (*FrameSystemConfigResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FrameSystemConfig not implemented")
}
func (UnimplementedRobotServiceServer) TransformPose(context.Context, *TransformPoseRequest) (*TransformPoseResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method TransformPose not implemented")
}
func (UnimplementedRobotServiceServer) TransformPCD(context.Context, *TransformPCDRequest) (*TransformPCDResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method TransformPCD not implemented")
}
func (UnimplementedRobotServiceServer) GetStatus(context.Context, *GetStatusRequest) (*GetStatusResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetStatus not implemented")
}
func (UnimplementedRobotServiceServer) StreamStatus(*StreamStatusRequest, RobotService_StreamStatusServer) error {
return status.Errorf(codes.Unimplemented, "method StreamStatus not implemented")
}
func (UnimplementedRobotServiceServer) StopAll(context.Context, *StopAllRequest) (*StopAllResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method StopAll not implemented")
}
func (UnimplementedRobotServiceServer) StartSession(context.Context, *StartSessionRequest) (*StartSessionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method StartSession not implemented")
}
func (UnimplementedRobotServiceServer) SendSessionHeartbeat(context.Context, *SendSessionHeartbeatRequest) (*SendSessionHeartbeatResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method SendSessionHeartbeat not implemented")
}
func (UnimplementedRobotServiceServer) mustEmbedUnimplementedRobotServiceServer() {}
// UnsafeRobotServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to RobotServiceServer will
// result in compilation errors.
type UnsafeRobotServiceServer interface {
mustEmbedUnimplementedRobotServiceServer()
}
func RegisterRobotServiceServer(s grpc.ServiceRegistrar, srv RobotServiceServer) {
s.RegisterService(&RobotService_ServiceDesc, srv)
}
func _RobotService_GetOperations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetOperationsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RobotServiceServer).GetOperations(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/viam.robot.v1.RobotService/GetOperations",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RobotServiceServer).GetOperations(ctx, req.(*GetOperationsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RobotService_GetSessions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetSessionsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RobotServiceServer).GetSessions(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/viam.robot.v1.RobotService/GetSessions",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RobotServiceServer).GetSessions(ctx, req.(*GetSessionsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RobotService_ResourceNames_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ResourceNamesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RobotServiceServer).ResourceNames(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/viam.robot.v1.RobotService/ResourceNames",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RobotServiceServer).ResourceNames(ctx, req.(*ResourceNamesRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RobotService_ResourceRPCSubtypes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ResourceRPCSubtypesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RobotServiceServer).ResourceRPCSubtypes(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/viam.robot.v1.RobotService/ResourceRPCSubtypes",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RobotServiceServer).ResourceRPCSubtypes(ctx, req.(*ResourceRPCSubtypesRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RobotService_CancelOperation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CancelOperationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RobotServiceServer).CancelOperation(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/viam.robot.v1.RobotService/CancelOperation",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RobotServiceServer).CancelOperation(ctx, req.(*CancelOperationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RobotService_BlockForOperation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BlockForOperationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RobotServiceServer).BlockForOperation(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/viam.robot.v1.RobotService/BlockForOperation",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RobotServiceServer).BlockForOperation(ctx, req.(*BlockForOperationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RobotService_DiscoverComponents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DiscoverComponentsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RobotServiceServer).DiscoverComponents(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/viam.robot.v1.RobotService/DiscoverComponents",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RobotServiceServer).DiscoverComponents(ctx, req.(*DiscoverComponentsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RobotService_FrameSystemConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FrameSystemConfigRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RobotServiceServer).FrameSystemConfig(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/viam.robot.v1.RobotService/FrameSystemConfig",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RobotServiceServer).FrameSystemConfig(ctx, req.(*FrameSystemConfigRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RobotService_TransformPose_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(TransformPoseRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RobotServiceServer).TransformPose(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/viam.robot.v1.RobotService/TransformPose",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RobotServiceServer).TransformPose(ctx, req.(*TransformPoseRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RobotService_TransformPCD_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(TransformPCDRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RobotServiceServer).TransformPCD(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/viam.robot.v1.RobotService/TransformPCD",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RobotServiceServer).TransformPCD(ctx, req.(*TransformPCDRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RobotService_GetStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetStatusRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RobotServiceServer).GetStatus(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/viam.robot.v1.RobotService/GetStatus",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RobotServiceServer).GetStatus(ctx, req.(*GetStatusRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RobotService_StreamStatus_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(StreamStatusRequest)
if err := stream.RecvMsg(m); err != nil {
return err
}
return srv.(RobotServiceServer).StreamStatus(m, &robotServiceStreamStatusServer{stream})
}
type RobotService_StreamStatusServer interface {
Send(*StreamStatusResponse) error
grpc.ServerStream
}
type robotServiceStreamStatusServer struct {
grpc.ServerStream
}
func (x *robotServiceStreamStatusServer) Send(m *StreamStatusResponse) error {
return x.ServerStream.SendMsg(m)
}
func _RobotService_StopAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(StopAllRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RobotServiceServer).StopAll(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/viam.robot.v1.RobotService/StopAll",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RobotServiceServer).StopAll(ctx, req.(*StopAllRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RobotService_StartSession_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(StartSessionRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RobotServiceServer).StartSession(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/viam.robot.v1.RobotService/StartSession",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RobotServiceServer).StartSession(ctx, req.(*StartSessionRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RobotService_SendSessionHeartbeat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SendSessionHeartbeatRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RobotServiceServer).SendSessionHeartbeat(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/viam.robot.v1.RobotService/SendSessionHeartbeat",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RobotServiceServer).SendSessionHeartbeat(ctx, req.(*SendSessionHeartbeatRequest))
}
return interceptor(ctx, in, info, handler)
}
// RobotService_ServiceDesc is the grpc.ServiceDesc for RobotService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var RobotService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "viam.robot.v1.RobotService",
HandlerType: (*RobotServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetOperations",
Handler: _RobotService_GetOperations_Handler,
},
{
MethodName: "GetSessions",
Handler: _RobotService_GetSessions_Handler,
},
{
MethodName: "ResourceNames",
Handler: _RobotService_ResourceNames_Handler,
},
{
MethodName: "ResourceRPCSubtypes",
Handler: _RobotService_ResourceRPCSubtypes_Handler,
},
{
MethodName: "CancelOperation",
Handler: _RobotService_CancelOperation_Handler,
},
{
MethodName: "BlockForOperation",
Handler: _RobotService_BlockForOperation_Handler,
},
{
MethodName: "DiscoverComponents",
Handler: _RobotService_DiscoverComponents_Handler,
},
{
MethodName: "FrameSystemConfig",
Handler: _RobotService_FrameSystemConfig_Handler,
},
{
MethodName: "TransformPose",
Handler: _RobotService_TransformPose_Handler,
},
{
MethodName: "TransformPCD",
Handler: _RobotService_TransformPCD_Handler,
},
{
MethodName: "GetStatus",
Handler: _RobotService_GetStatus_Handler,
},
{
MethodName: "StopAll",
Handler: _RobotService_StopAll_Handler,
},
{
MethodName: "StartSession",
Handler: _RobotService_StartSession_Handler,
},
{
MethodName: "SendSessionHeartbeat",
Handler: _RobotService_SendSessionHeartbeat_Handler,
},
},
Streams: []grpc.StreamDesc{
{
StreamName: "StreamStatus",
Handler: _RobotService_StreamStatus_Handler,
ServerStreams: true,
},
},
Metadata: "robot/v1/robot.proto",
}