To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

musicroom_grpc.pb.go 31.6 KB
Newer Older
Andrea Raguso's avatar
update    
Andrea Raguso committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.

package musicroom

import (
	context "context"
	empty "github.com/golang/protobuf/ptypes/empty"
	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

// MusicroomClient is the client API for Musicroom 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 MusicroomClient interface {
	// ListUsers returns all users matching a filter.
	ListUsers(ctx context.Context, in *ListUsersRequest, opts ...grpc.CallOption) (*ListUsersResponse, error)
	// GetUser returns the full user resource given its name.
	GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*User, error)
	// CreateUser creates a new user.
	CreateUser(ctx context.Context, in *User, opts ...grpc.CallOption) (*User, error)
	// UpdateUser updates all fields of the user with the matching resource name
	UpdateUser(ctx context.Context, in *User, opts ...grpc.CallOption) (*User, error)
	// ListBadges returns all users matching a filter.
	ListBadges(ctx context.Context, in *ListBadgesRequest, opts ...grpc.CallOption) (*ListBadgesResponse, error)
	// GetBadge returns the full user resource given its name.
	GetBadge(ctx context.Context, in *GetBadgeRequest, opts ...grpc.CallOption) (*Badge, error)
	// CreateBadge creates a new user.
	CreateBadge(ctx context.Context, in *Badge, opts ...grpc.CallOption) (*Badge, error)
	// UpdateBadge updates all fields of the user with the matching resource name
	UpdateBadge(ctx context.Context, in *Badge, opts ...grpc.CallOption) (*Badge, error)
	// AssignBadge assignes a badge to a user
	AssignBadge(ctx context.Context, in *AssignBadgeRequest, opts ...grpc.CallOption) (*AssignBadgeResponse, error)
	// UnassignBadge unassigns abadge from a user
	UnassignBadge(ctx context.Context, in *UnassignBadgeRequest, opts ...grpc.CallOption) (*UnassignBadgeResponse, error)
	// ListRooms returns all rooms
	ListRooms(ctx context.Context, in *ListRoomsRequest, opts ...grpc.CallOption) (*ListRoomsResponse, error)
	// GetRoom returns the room resource with matching resource name
	GetRoom(ctx context.Context, in *GetRoomRequest, opts ...grpc.CallOption) (*Room, error)
	// ListRoomTypes returns all room types matching a filter.
	ListRoomTypes(ctx context.Context, in *ListRoomTypesRequest, opts ...grpc.CallOption) (*ListRoomTypesResponse, error)
	// GetRoomType returns the room type with matching resource name
	GetRoomType(ctx context.Context, in *GetRoomTypeRequest, opts ...grpc.CallOption) (*RoomType, error)
	// ListReservations returns all reservations matching a filter.
	ListReservations(ctx context.Context, in *ListReservationsRequest, opts ...grpc.CallOption) (*ListReservationsResponse, error)
	// GetReservation returns a reservation with matching resource name
	GetReservation(ctx context.Context, in *GetReservationRequest, opts ...grpc.CallOption) (*Reservation, error)
	// CreateReservation creates a new reservation
	CreateReservation(ctx context.Context, in *Reservation, opts ...grpc.CallOption) (*Reservation, error)
	// UpdateReservation updates the reservation with matching resource name
	UpdateReservation(ctx context.Context, in *Reservation, opts ...grpc.CallOption) (*Reservation, error)
	// GetConfig retruns the config of the musicroom application
	GetConfig(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Config, error)
	// UpdatePrices updates the prices of products stored in the backend
	UpdatePrices(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error)
}

type musicroomClient struct {
	cc grpc.ClientConnInterface
}

func NewMusicroomClient(cc grpc.ClientConnInterface) MusicroomClient {
	return &musicroomClient{cc}
}

func (c *musicroomClient) ListUsers(ctx context.Context, in *ListUsersRequest, opts ...grpc.CallOption) (*ListUsersResponse, error) {
	out := new(ListUsersResponse)
	err := c.cc.Invoke(ctx, "/vseth.sip.musicroom.Musicroom/ListUsers", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *musicroomClient) GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*User, error) {
	out := new(User)
	err := c.cc.Invoke(ctx, "/vseth.sip.musicroom.Musicroom/GetUser", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *musicroomClient) CreateUser(ctx context.Context, in *User, opts ...grpc.CallOption) (*User, error) {
	out := new(User)
	err := c.cc.Invoke(ctx, "/vseth.sip.musicroom.Musicroom/CreateUser", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *musicroomClient) UpdateUser(ctx context.Context, in *User, opts ...grpc.CallOption) (*User, error) {
	out := new(User)
	err := c.cc.Invoke(ctx, "/vseth.sip.musicroom.Musicroom/UpdateUser", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *musicroomClient) ListBadges(ctx context.Context, in *ListBadgesRequest, opts ...grpc.CallOption) (*ListBadgesResponse, error) {
	out := new(ListBadgesResponse)
	err := c.cc.Invoke(ctx, "/vseth.sip.musicroom.Musicroom/ListBadges", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *musicroomClient) GetBadge(ctx context.Context, in *GetBadgeRequest, opts ...grpc.CallOption) (*Badge, error) {
	out := new(Badge)
	err := c.cc.Invoke(ctx, "/vseth.sip.musicroom.Musicroom/GetBadge", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *musicroomClient) CreateBadge(ctx context.Context, in *Badge, opts ...grpc.CallOption) (*Badge, error) {
	out := new(Badge)
	err := c.cc.Invoke(ctx, "/vseth.sip.musicroom.Musicroom/CreateBadge", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *musicroomClient) UpdateBadge(ctx context.Context, in *Badge, opts ...grpc.CallOption) (*Badge, error) {
	out := new(Badge)
	err := c.cc.Invoke(ctx, "/vseth.sip.musicroom.Musicroom/UpdateBadge", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *musicroomClient) AssignBadge(ctx context.Context, in *AssignBadgeRequest, opts ...grpc.CallOption) (*AssignBadgeResponse, error) {
	out := new(AssignBadgeResponse)
	err := c.cc.Invoke(ctx, "/vseth.sip.musicroom.Musicroom/AssignBadge", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *musicroomClient) UnassignBadge(ctx context.Context, in *UnassignBadgeRequest, opts ...grpc.CallOption) (*UnassignBadgeResponse, error) {
	out := new(UnassignBadgeResponse)
	err := c.cc.Invoke(ctx, "/vseth.sip.musicroom.Musicroom/UnassignBadge", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *musicroomClient) ListRooms(ctx context.Context, in *ListRoomsRequest, opts ...grpc.CallOption) (*ListRoomsResponse, error) {
	out := new(ListRoomsResponse)
	err := c.cc.Invoke(ctx, "/vseth.sip.musicroom.Musicroom/ListRooms", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *musicroomClient) GetRoom(ctx context.Context, in *GetRoomRequest, opts ...grpc.CallOption) (*Room, error) {
	out := new(Room)
	err := c.cc.Invoke(ctx, "/vseth.sip.musicroom.Musicroom/GetRoom", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *musicroomClient) ListRoomTypes(ctx context.Context, in *ListRoomTypesRequest, opts ...grpc.CallOption) (*ListRoomTypesResponse, error) {
	out := new(ListRoomTypesResponse)
	err := c.cc.Invoke(ctx, "/vseth.sip.musicroom.Musicroom/ListRoomTypes", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *musicroomClient) GetRoomType(ctx context.Context, in *GetRoomTypeRequest, opts ...grpc.CallOption) (*RoomType, error) {
	out := new(RoomType)
	err := c.cc.Invoke(ctx, "/vseth.sip.musicroom.Musicroom/GetRoomType", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *musicroomClient) ListReservations(ctx context.Context, in *ListReservationsRequest, opts ...grpc.CallOption) (*ListReservationsResponse, error) {
	out := new(ListReservationsResponse)
	err := c.cc.Invoke(ctx, "/vseth.sip.musicroom.Musicroom/ListReservations", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *musicroomClient) GetReservation(ctx context.Context, in *GetReservationRequest, opts ...grpc.CallOption) (*Reservation, error) {
	out := new(Reservation)
	err := c.cc.Invoke(ctx, "/vseth.sip.musicroom.Musicroom/GetReservation", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *musicroomClient) CreateReservation(ctx context.Context, in *Reservation, opts ...grpc.CallOption) (*Reservation, error) {
	out := new(Reservation)
	err := c.cc.Invoke(ctx, "/vseth.sip.musicroom.Musicroom/CreateReservation", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *musicroomClient) UpdateReservation(ctx context.Context, in *Reservation, opts ...grpc.CallOption) (*Reservation, error) {
	out := new(Reservation)
	err := c.cc.Invoke(ctx, "/vseth.sip.musicroom.Musicroom/UpdateReservation", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *musicroomClient) GetConfig(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Config, error) {
	out := new(Config)
	err := c.cc.Invoke(ctx, "/vseth.sip.musicroom.Musicroom/GetConfig", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *musicroomClient) UpdatePrices(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) {
	out := new(empty.Empty)
	err := c.cc.Invoke(ctx, "/vseth.sip.musicroom.Musicroom/UpdatePrices", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// MusicroomServer is the server API for Musicroom service.
// All implementations must embed UnimplementedMusicroomServer
// for forward compatibility
type MusicroomServer interface {
	// ListUsers returns all users matching a filter.
	ListUsers(context.Context, *ListUsersRequest) (*ListUsersResponse, error)
	// GetUser returns the full user resource given its name.
	GetUser(context.Context, *GetUserRequest) (*User, error)
	// CreateUser creates a new user.
	CreateUser(context.Context, *User) (*User, error)
	// UpdateUser updates all fields of the user with the matching resource name
	UpdateUser(context.Context, *User) (*User, error)
	// ListBadges returns all users matching a filter.
	ListBadges(context.Context, *ListBadgesRequest) (*ListBadgesResponse, error)
	// GetBadge returns the full user resource given its name.
	GetBadge(context.Context, *GetBadgeRequest) (*Badge, error)
	// CreateBadge creates a new user.
	CreateBadge(context.Context, *Badge) (*Badge, error)
	// UpdateBadge updates all fields of the user with the matching resource name
	UpdateBadge(context.Context, *Badge) (*Badge, error)
	// AssignBadge assignes a badge to a user
	AssignBadge(context.Context, *AssignBadgeRequest) (*AssignBadgeResponse, error)
	// UnassignBadge unassigns abadge from a user
	UnassignBadge(context.Context, *UnassignBadgeRequest) (*UnassignBadgeResponse, error)
	// ListRooms returns all rooms
	ListRooms(context.Context, *ListRoomsRequest) (*ListRoomsResponse, error)
	// GetRoom returns the room resource with matching resource name
	GetRoom(context.Context, *GetRoomRequest) (*Room, error)
	// ListRoomTypes returns all room types matching a filter.
	ListRoomTypes(context.Context, *ListRoomTypesRequest) (*ListRoomTypesResponse, error)
	// GetRoomType returns the room type with matching resource name
	GetRoomType(context.Context, *GetRoomTypeRequest) (*RoomType, error)
	// ListReservations returns all reservations matching a filter.
	ListReservations(context.Context, *ListReservationsRequest) (*ListReservationsResponse, error)
	// GetReservation returns a reservation with matching resource name
	GetReservation(context.Context, *GetReservationRequest) (*Reservation, error)
	// CreateReservation creates a new reservation
	CreateReservation(context.Context, *Reservation) (*Reservation, error)
	// UpdateReservation updates the reservation with matching resource name
	UpdateReservation(context.Context, *Reservation) (*Reservation, error)
	// GetConfig retruns the config of the musicroom application
	GetConfig(context.Context, *empty.Empty) (*Config, error)
	// UpdatePrices updates the prices of products stored in the backend
	UpdatePrices(context.Context, *empty.Empty) (*empty.Empty, error)
	mustEmbedUnimplementedMusicroomServer()
}

// UnimplementedMusicroomServer must be embedded to have forward compatible implementations.
type UnimplementedMusicroomServer struct {
}

func (UnimplementedMusicroomServer) ListUsers(context.Context, *ListUsersRequest) (*ListUsersResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method ListUsers not implemented")
}
func (UnimplementedMusicroomServer) GetUser(context.Context, *GetUserRequest) (*User, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetUser not implemented")
}
func (UnimplementedMusicroomServer) CreateUser(context.Context, *User) (*User, error) {
	return nil, status.Errorf(codes.Unimplemented, "method CreateUser not implemented")
}
func (UnimplementedMusicroomServer) UpdateUser(context.Context, *User) (*User, error) {
	return nil, status.Errorf(codes.Unimplemented, "method UpdateUser not implemented")
}
func (UnimplementedMusicroomServer) ListBadges(context.Context, *ListBadgesRequest) (*ListBadgesResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method ListBadges not implemented")
}
func (UnimplementedMusicroomServer) GetBadge(context.Context, *GetBadgeRequest) (*Badge, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetBadge not implemented")
}
func (UnimplementedMusicroomServer) CreateBadge(context.Context, *Badge) (*Badge, error) {
	return nil, status.Errorf(codes.Unimplemented, "method CreateBadge not implemented")
}
func (UnimplementedMusicroomServer) UpdateBadge(context.Context, *Badge) (*Badge, error) {
	return nil, status.Errorf(codes.Unimplemented, "method UpdateBadge not implemented")
}
func (UnimplementedMusicroomServer) AssignBadge(context.Context, *AssignBadgeRequest) (*AssignBadgeResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method AssignBadge not implemented")
}
func (UnimplementedMusicroomServer) UnassignBadge(context.Context, *UnassignBadgeRequest) (*UnassignBadgeResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method UnassignBadge not implemented")
}
func (UnimplementedMusicroomServer) ListRooms(context.Context, *ListRoomsRequest) (*ListRoomsResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method ListRooms not implemented")
}
func (UnimplementedMusicroomServer) GetRoom(context.Context, *GetRoomRequest) (*Room, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetRoom not implemented")
}
func (UnimplementedMusicroomServer) ListRoomTypes(context.Context, *ListRoomTypesRequest) (*ListRoomTypesResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method ListRoomTypes not implemented")
}
func (UnimplementedMusicroomServer) GetRoomType(context.Context, *GetRoomTypeRequest) (*RoomType, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetRoomType not implemented")
}
func (UnimplementedMusicroomServer) ListReservations(context.Context, *ListReservationsRequest) (*ListReservationsResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method ListReservations not implemented")
}
func (UnimplementedMusicroomServer) GetReservation(context.Context, *GetReservationRequest) (*Reservation, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetReservation not implemented")
}
func (UnimplementedMusicroomServer) CreateReservation(context.Context, *Reservation) (*Reservation, error) {
	return nil, status.Errorf(codes.Unimplemented, "method CreateReservation not implemented")
}
func (UnimplementedMusicroomServer) UpdateReservation(context.Context, *Reservation) (*Reservation, error) {
	return nil, status.Errorf(codes.Unimplemented, "method UpdateReservation not implemented")
}
func (UnimplementedMusicroomServer) GetConfig(context.Context, *empty.Empty) (*Config, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetConfig not implemented")
}
func (UnimplementedMusicroomServer) UpdatePrices(context.Context, *empty.Empty) (*empty.Empty, error) {
	return nil, status.Errorf(codes.Unimplemented, "method UpdatePrices not implemented")
}
func (UnimplementedMusicroomServer) mustEmbedUnimplementedMusicroomServer() {}

// UnsafeMusicroomServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to MusicroomServer will
// result in compilation errors.
type UnsafeMusicroomServer interface {
	mustEmbedUnimplementedMusicroomServer()
}

func RegisterMusicroomServer(s grpc.ServiceRegistrar, srv MusicroomServer) {
	s.RegisterService(&Musicroom_ServiceDesc, srv)
}

func _Musicroom_ListUsers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ListUsersRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(MusicroomServer).ListUsers(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/vseth.sip.musicroom.Musicroom/ListUsers",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(MusicroomServer).ListUsers(ctx, req.(*ListUsersRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _Musicroom_GetUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(GetUserRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(MusicroomServer).GetUser(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/vseth.sip.musicroom.Musicroom/GetUser",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(MusicroomServer).GetUser(ctx, req.(*GetUserRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _Musicroom_CreateUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(User)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(MusicroomServer).CreateUser(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/vseth.sip.musicroom.Musicroom/CreateUser",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(MusicroomServer).CreateUser(ctx, req.(*User))
	}
	return interceptor(ctx, in, info, handler)
}

func _Musicroom_UpdateUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(User)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(MusicroomServer).UpdateUser(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/vseth.sip.musicroom.Musicroom/UpdateUser",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(MusicroomServer).UpdateUser(ctx, req.(*User))
	}
	return interceptor(ctx, in, info, handler)
}

func _Musicroom_ListBadges_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ListBadgesRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(MusicroomServer).ListBadges(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/vseth.sip.musicroom.Musicroom/ListBadges",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(MusicroomServer).ListBadges(ctx, req.(*ListBadgesRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _Musicroom_GetBadge_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(GetBadgeRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(MusicroomServer).GetBadge(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/vseth.sip.musicroom.Musicroom/GetBadge",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(MusicroomServer).GetBadge(ctx, req.(*GetBadgeRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _Musicroom_CreateBadge_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(Badge)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(MusicroomServer).CreateBadge(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/vseth.sip.musicroom.Musicroom/CreateBadge",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(MusicroomServer).CreateBadge(ctx, req.(*Badge))
	}
	return interceptor(ctx, in, info, handler)
}

func _Musicroom_UpdateBadge_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(Badge)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(MusicroomServer).UpdateBadge(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/vseth.sip.musicroom.Musicroom/UpdateBadge",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(MusicroomServer).UpdateBadge(ctx, req.(*Badge))
	}
	return interceptor(ctx, in, info, handler)
}

func _Musicroom_AssignBadge_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(AssignBadgeRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(MusicroomServer).AssignBadge(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/vseth.sip.musicroom.Musicroom/AssignBadge",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(MusicroomServer).AssignBadge(ctx, req.(*AssignBadgeRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _Musicroom_UnassignBadge_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(UnassignBadgeRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(MusicroomServer).UnassignBadge(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/vseth.sip.musicroom.Musicroom/UnassignBadge",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(MusicroomServer).UnassignBadge(ctx, req.(*UnassignBadgeRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _Musicroom_ListRooms_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ListRoomsRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(MusicroomServer).ListRooms(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/vseth.sip.musicroom.Musicroom/ListRooms",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(MusicroomServer).ListRooms(ctx, req.(*ListRoomsRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _Musicroom_GetRoom_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(GetRoomRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(MusicroomServer).GetRoom(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/vseth.sip.musicroom.Musicroom/GetRoom",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(MusicroomServer).GetRoom(ctx, req.(*GetRoomRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _Musicroom_ListRoomTypes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ListRoomTypesRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(MusicroomServer).ListRoomTypes(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/vseth.sip.musicroom.Musicroom/ListRoomTypes",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(MusicroomServer).ListRoomTypes(ctx, req.(*ListRoomTypesRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _Musicroom_GetRoomType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(GetRoomTypeRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(MusicroomServer).GetRoomType(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/vseth.sip.musicroom.Musicroom/GetRoomType",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(MusicroomServer).GetRoomType(ctx, req.(*GetRoomTypeRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _Musicroom_ListReservations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ListReservationsRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(MusicroomServer).ListReservations(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/vseth.sip.musicroom.Musicroom/ListReservations",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(MusicroomServer).ListReservations(ctx, req.(*ListReservationsRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _Musicroom_GetReservation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(GetReservationRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(MusicroomServer).GetReservation(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/vseth.sip.musicroom.Musicroom/GetReservation",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(MusicroomServer).GetReservation(ctx, req.(*GetReservationRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _Musicroom_CreateReservation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(Reservation)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(MusicroomServer).CreateReservation(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/vseth.sip.musicroom.Musicroom/CreateReservation",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(MusicroomServer).CreateReservation(ctx, req.(*Reservation))
	}
	return interceptor(ctx, in, info, handler)
}

func _Musicroom_UpdateReservation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(Reservation)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(MusicroomServer).UpdateReservation(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/vseth.sip.musicroom.Musicroom/UpdateReservation",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(MusicroomServer).UpdateReservation(ctx, req.(*Reservation))
	}
	return interceptor(ctx, in, info, handler)
}

func _Musicroom_GetConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(empty.Empty)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(MusicroomServer).GetConfig(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/vseth.sip.musicroom.Musicroom/GetConfig",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(MusicroomServer).GetConfig(ctx, req.(*empty.Empty))
	}
	return interceptor(ctx, in, info, handler)
}

func _Musicroom_UpdatePrices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(empty.Empty)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(MusicroomServer).UpdatePrices(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/vseth.sip.musicroom.Musicroom/UpdatePrices",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(MusicroomServer).UpdatePrices(ctx, req.(*empty.Empty))
	}
	return interceptor(ctx, in, info, handler)
}

// Musicroom_ServiceDesc is the grpc.ServiceDesc for Musicroom service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var Musicroom_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "vseth.sip.musicroom.Musicroom",
	HandlerType: (*MusicroomServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListUsers",
			Handler:    _Musicroom_ListUsers_Handler,
		},
		{
			MethodName: "GetUser",
			Handler:    _Musicroom_GetUser_Handler,
		},
		{
			MethodName: "CreateUser",
			Handler:    _Musicroom_CreateUser_Handler,
		},
		{
			MethodName: "UpdateUser",
			Handler:    _Musicroom_UpdateUser_Handler,
		},
		{
			MethodName: "ListBadges",
			Handler:    _Musicroom_ListBadges_Handler,
		},
		{
			MethodName: "GetBadge",
			Handler:    _Musicroom_GetBadge_Handler,
		},
		{
			MethodName: "CreateBadge",
			Handler:    _Musicroom_CreateBadge_Handler,
		},
		{
			MethodName: "UpdateBadge",
			Handler:    _Musicroom_UpdateBadge_Handler,
		},
		{
			MethodName: "AssignBadge",
			Handler:    _Musicroom_AssignBadge_Handler,
		},
		{
			MethodName: "UnassignBadge",
			Handler:    _Musicroom_UnassignBadge_Handler,
		},
		{
			MethodName: "ListRooms",
			Handler:    _Musicroom_ListRooms_Handler,
		},
		{
			MethodName: "GetRoom",
			Handler:    _Musicroom_GetRoom_Handler,
		},
		{
			MethodName: "ListRoomTypes",
			Handler:    _Musicroom_ListRoomTypes_Handler,
		},
		{
			MethodName: "GetRoomType",
			Handler:    _Musicroom_GetRoomType_Handler,
		},
		{
			MethodName: "ListReservations",
			Handler:    _Musicroom_ListReservations_Handler,
		},
		{
			MethodName: "GetReservation",
			Handler:    _Musicroom_GetReservation_Handler,
		},
		{
			MethodName: "CreateReservation",
			Handler:    _Musicroom_CreateReservation_Handler,
		},
		{
			MethodName: "UpdateReservation",
			Handler:    _Musicroom_UpdateReservation_Handler,
		},
		{
			MethodName: "GetConfig",
			Handler:    _Musicroom_GetConfig_Handler,
		},
		{
			MethodName: "UpdatePrices",
			Handler:    _Musicroom_UpdatePrices_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "vseth/sip/musicroom/musicroom.proto",
}