-
Notifications
You must be signed in to change notification settings - Fork 0
/
admin_movies_service_v1_grpc.pb.go
1058 lines (994 loc) · 42.5 KB
/
admin_movies_service_v1_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
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
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.2.0
// - protoc v4.24.3
// source: admin_movies_service_v1.proto
package protos
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
emptypb "google.golang.org/protobuf/types/known/emptypb"
)
// 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
// MoviesServiceV1Client is the client API for MoviesServiceV1 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 MoviesServiceV1Client interface {
// Returns movie with the specified id.
GetMovie(ctx context.Context, in *GetMovieRequest, opts ...grpc.CallOption) (*Movie, error)
// Returns movie duration for the movie with specified id.
GetMovieDuration(ctx context.Context, in *GetMovieDurationRequest, opts ...grpc.CallOption) (*MovieDuration, error)
// Returns movies with the specified ids.
GetMovies(ctx context.Context, in *GetMoviesRequest, opts ...grpc.CallOption) (*Movies, error)
// Returns movies durations with the specified ids.
GetMoviesDuration(ctx context.Context, in *GetMoviesDurationRequest, opts ...grpc.CallOption) (*MoviesDuration, error)
// Create movie, returns created movie id.
CreateMovie(ctx context.Context, in *CreateMovieRequest, opts ...grpc.CallOption) (*CreateMovieResponce, error)
// Delete movie with the specified ids.
DeleteMovie(ctx context.Context, in *DeleteMovieRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Check movie existance, returns false, if movie doesn't exist.
IsMovieExists(ctx context.Context, in *IsMovieExistsRequest, opts ...grpc.CallOption) (*IsMovieExistsResponce, error)
// Update movie fields.
UpdateMovie(ctx context.Context, in *UpdateMovieRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Update movie pictures.
UpdateMoviePictures(ctx context.Context, in *UpdateMoviePicturesRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Returns all age ratings.
GetAgeRatings(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*AgeRatings, error)
// Create age rating.
CreateAgeRating(ctx context.Context, in *CreateAgeRatingRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Delete age rating.
DeleteAgeRating(ctx context.Context, in *DeleteAgeRatingRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Returns genre with specified id.
GetGenre(ctx context.Context, in *GetGenreRequest, opts ...grpc.CallOption) (*Genre, error)
// Returns genre with specified name.
GetGenreByName(ctx context.Context, in *GetGenreByNameRequest, opts ...grpc.CallOption) (*Genre, error)
// Create genre.
CreateGenre(ctx context.Context, in *CreateGenreRequest, opts ...grpc.CallOption) (*CreateGenreResponce, error)
// Returns all genres.
GetGenres(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Genres, error)
// Update genre with specified id.
UpdateGenre(ctx context.Context, in *UpdateGenreRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Delete genre with specified id.
DeleteGenre(ctx context.Context, in *DeleteGenreRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Check genres existance, returns false and not exists ids, if any genre in request doesn't exist.
IsGenresExists(ctx context.Context, in *IsGenresExistsRequest, opts ...grpc.CallOption) (*ExistsResponce, error)
// Returns county with specified id.
GetCountry(ctx context.Context, in *GetCountryRequest, opts ...grpc.CallOption) (*Country, error)
// Returns country with specified name.
GetCountryByName(ctx context.Context, in *GetCountryByNameRequest, opts ...grpc.CallOption) (*Country, error)
// Create country.
CreateCountry(ctx context.Context, in *CreateCountryRequest, opts ...grpc.CallOption) (*CreateCountryResponce, error)
// Returns all countries.
GetCountries(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Countries, error)
// Update country with specified id.
UpdateCountry(ctx context.Context, in *UpdateCountryRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Delete country with specified id.
DeleteCountry(ctx context.Context, in *DeleteCountryRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Check countries existance, returns false and not exists ids, if any country in request doesn't exist.
IsCountriesExists(ctx context.Context, in *IsCountriesExistsRequest, opts ...grpc.CallOption) (*ExistsResponce, error)
}
type moviesServiceV1Client struct {
cc grpc.ClientConnInterface
}
func NewMoviesServiceV1Client(cc grpc.ClientConnInterface) MoviesServiceV1Client {
return &moviesServiceV1Client{cc}
}
func (c *moviesServiceV1Client) GetMovie(ctx context.Context, in *GetMovieRequest, opts ...grpc.CallOption) (*Movie, error) {
out := new(Movie)
err := c.cc.Invoke(ctx, "/admin_movies_service.moviesServiceV1/GetMovie", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *moviesServiceV1Client) GetMovieDuration(ctx context.Context, in *GetMovieDurationRequest, opts ...grpc.CallOption) (*MovieDuration, error) {
out := new(MovieDuration)
err := c.cc.Invoke(ctx, "/admin_movies_service.moviesServiceV1/GetMovieDuration", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *moviesServiceV1Client) GetMovies(ctx context.Context, in *GetMoviesRequest, opts ...grpc.CallOption) (*Movies, error) {
out := new(Movies)
err := c.cc.Invoke(ctx, "/admin_movies_service.moviesServiceV1/GetMovies", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *moviesServiceV1Client) GetMoviesDuration(ctx context.Context, in *GetMoviesDurationRequest, opts ...grpc.CallOption) (*MoviesDuration, error) {
out := new(MoviesDuration)
err := c.cc.Invoke(ctx, "/admin_movies_service.moviesServiceV1/GetMoviesDuration", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *moviesServiceV1Client) CreateMovie(ctx context.Context, in *CreateMovieRequest, opts ...grpc.CallOption) (*CreateMovieResponce, error) {
out := new(CreateMovieResponce)
err := c.cc.Invoke(ctx, "/admin_movies_service.moviesServiceV1/CreateMovie", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *moviesServiceV1Client) DeleteMovie(ctx context.Context, in *DeleteMovieRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/admin_movies_service.moviesServiceV1/DeleteMovie", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *moviesServiceV1Client) IsMovieExists(ctx context.Context, in *IsMovieExistsRequest, opts ...grpc.CallOption) (*IsMovieExistsResponce, error) {
out := new(IsMovieExistsResponce)
err := c.cc.Invoke(ctx, "/admin_movies_service.moviesServiceV1/IsMovieExists", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *moviesServiceV1Client) UpdateMovie(ctx context.Context, in *UpdateMovieRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/admin_movies_service.moviesServiceV1/UpdateMovie", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *moviesServiceV1Client) UpdateMoviePictures(ctx context.Context, in *UpdateMoviePicturesRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/admin_movies_service.moviesServiceV1/UpdateMoviePictures", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *moviesServiceV1Client) GetAgeRatings(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*AgeRatings, error) {
out := new(AgeRatings)
err := c.cc.Invoke(ctx, "/admin_movies_service.moviesServiceV1/GetAgeRatings", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *moviesServiceV1Client) CreateAgeRating(ctx context.Context, in *CreateAgeRatingRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/admin_movies_service.moviesServiceV1/CreateAgeRating", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *moviesServiceV1Client) DeleteAgeRating(ctx context.Context, in *DeleteAgeRatingRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/admin_movies_service.moviesServiceV1/DeleteAgeRating", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *moviesServiceV1Client) GetGenre(ctx context.Context, in *GetGenreRequest, opts ...grpc.CallOption) (*Genre, error) {
out := new(Genre)
err := c.cc.Invoke(ctx, "/admin_movies_service.moviesServiceV1/GetGenre", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *moviesServiceV1Client) GetGenreByName(ctx context.Context, in *GetGenreByNameRequest, opts ...grpc.CallOption) (*Genre, error) {
out := new(Genre)
err := c.cc.Invoke(ctx, "/admin_movies_service.moviesServiceV1/GetGenreByName", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *moviesServiceV1Client) CreateGenre(ctx context.Context, in *CreateGenreRequest, opts ...grpc.CallOption) (*CreateGenreResponce, error) {
out := new(CreateGenreResponce)
err := c.cc.Invoke(ctx, "/admin_movies_service.moviesServiceV1/CreateGenre", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *moviesServiceV1Client) GetGenres(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Genres, error) {
out := new(Genres)
err := c.cc.Invoke(ctx, "/admin_movies_service.moviesServiceV1/GetGenres", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *moviesServiceV1Client) UpdateGenre(ctx context.Context, in *UpdateGenreRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/admin_movies_service.moviesServiceV1/UpdateGenre", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *moviesServiceV1Client) DeleteGenre(ctx context.Context, in *DeleteGenreRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/admin_movies_service.moviesServiceV1/DeleteGenre", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *moviesServiceV1Client) IsGenresExists(ctx context.Context, in *IsGenresExistsRequest, opts ...grpc.CallOption) (*ExistsResponce, error) {
out := new(ExistsResponce)
err := c.cc.Invoke(ctx, "/admin_movies_service.moviesServiceV1/IsGenresExists", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *moviesServiceV1Client) GetCountry(ctx context.Context, in *GetCountryRequest, opts ...grpc.CallOption) (*Country, error) {
out := new(Country)
err := c.cc.Invoke(ctx, "/admin_movies_service.moviesServiceV1/GetCountry", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *moviesServiceV1Client) GetCountryByName(ctx context.Context, in *GetCountryByNameRequest, opts ...grpc.CallOption) (*Country, error) {
out := new(Country)
err := c.cc.Invoke(ctx, "/admin_movies_service.moviesServiceV1/GetCountryByName", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *moviesServiceV1Client) CreateCountry(ctx context.Context, in *CreateCountryRequest, opts ...grpc.CallOption) (*CreateCountryResponce, error) {
out := new(CreateCountryResponce)
err := c.cc.Invoke(ctx, "/admin_movies_service.moviesServiceV1/CreateCountry", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *moviesServiceV1Client) GetCountries(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Countries, error) {
out := new(Countries)
err := c.cc.Invoke(ctx, "/admin_movies_service.moviesServiceV1/GetCountries", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *moviesServiceV1Client) UpdateCountry(ctx context.Context, in *UpdateCountryRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/admin_movies_service.moviesServiceV1/UpdateCountry", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *moviesServiceV1Client) DeleteCountry(ctx context.Context, in *DeleteCountryRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/admin_movies_service.moviesServiceV1/DeleteCountry", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *moviesServiceV1Client) IsCountriesExists(ctx context.Context, in *IsCountriesExistsRequest, opts ...grpc.CallOption) (*ExistsResponce, error) {
out := new(ExistsResponce)
err := c.cc.Invoke(ctx, "/admin_movies_service.moviesServiceV1/IsCountriesExists", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// MoviesServiceV1Server is the server API for MoviesServiceV1 service.
// All implementations must embed UnimplementedMoviesServiceV1Server
// for forward compatibility
type MoviesServiceV1Server interface {
// Returns movie with the specified id.
GetMovie(context.Context, *GetMovieRequest) (*Movie, error)
// Returns movie duration for the movie with specified id.
GetMovieDuration(context.Context, *GetMovieDurationRequest) (*MovieDuration, error)
// Returns movies with the specified ids.
GetMovies(context.Context, *GetMoviesRequest) (*Movies, error)
// Returns movies durations with the specified ids.
GetMoviesDuration(context.Context, *GetMoviesDurationRequest) (*MoviesDuration, error)
// Create movie, returns created movie id.
CreateMovie(context.Context, *CreateMovieRequest) (*CreateMovieResponce, error)
// Delete movie with the specified ids.
DeleteMovie(context.Context, *DeleteMovieRequest) (*emptypb.Empty, error)
// Check movie existance, returns false, if movie doesn't exist.
IsMovieExists(context.Context, *IsMovieExistsRequest) (*IsMovieExistsResponce, error)
// Update movie fields.
UpdateMovie(context.Context, *UpdateMovieRequest) (*emptypb.Empty, error)
// Update movie pictures.
UpdateMoviePictures(context.Context, *UpdateMoviePicturesRequest) (*emptypb.Empty, error)
// Returns all age ratings.
GetAgeRatings(context.Context, *emptypb.Empty) (*AgeRatings, error)
// Create age rating.
CreateAgeRating(context.Context, *CreateAgeRatingRequest) (*emptypb.Empty, error)
// Delete age rating.
DeleteAgeRating(context.Context, *DeleteAgeRatingRequest) (*emptypb.Empty, error)
// Returns genre with specified id.
GetGenre(context.Context, *GetGenreRequest) (*Genre, error)
// Returns genre with specified name.
GetGenreByName(context.Context, *GetGenreByNameRequest) (*Genre, error)
// Create genre.
CreateGenre(context.Context, *CreateGenreRequest) (*CreateGenreResponce, error)
// Returns all genres.
GetGenres(context.Context, *emptypb.Empty) (*Genres, error)
// Update genre with specified id.
UpdateGenre(context.Context, *UpdateGenreRequest) (*emptypb.Empty, error)
// Delete genre with specified id.
DeleteGenre(context.Context, *DeleteGenreRequest) (*emptypb.Empty, error)
// Check genres existance, returns false and not exists ids, if any genre in request doesn't exist.
IsGenresExists(context.Context, *IsGenresExistsRequest) (*ExistsResponce, error)
// Returns county with specified id.
GetCountry(context.Context, *GetCountryRequest) (*Country, error)
// Returns country with specified name.
GetCountryByName(context.Context, *GetCountryByNameRequest) (*Country, error)
// Create country.
CreateCountry(context.Context, *CreateCountryRequest) (*CreateCountryResponce, error)
// Returns all countries.
GetCountries(context.Context, *emptypb.Empty) (*Countries, error)
// Update country with specified id.
UpdateCountry(context.Context, *UpdateCountryRequest) (*emptypb.Empty, error)
// Delete country with specified id.
DeleteCountry(context.Context, *DeleteCountryRequest) (*emptypb.Empty, error)
// Check countries existance, returns false and not exists ids, if any country in request doesn't exist.
IsCountriesExists(context.Context, *IsCountriesExistsRequest) (*ExistsResponce, error)
mustEmbedUnimplementedMoviesServiceV1Server()
}
// UnimplementedMoviesServiceV1Server must be embedded to have forward compatible implementations.
type UnimplementedMoviesServiceV1Server struct {
}
func (UnimplementedMoviesServiceV1Server) GetMovie(context.Context, *GetMovieRequest) (*Movie, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetMovie not implemented")
}
func (UnimplementedMoviesServiceV1Server) GetMovieDuration(context.Context, *GetMovieDurationRequest) (*MovieDuration, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetMovieDuration not implemented")
}
func (UnimplementedMoviesServiceV1Server) GetMovies(context.Context, *GetMoviesRequest) (*Movies, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetMovies not implemented")
}
func (UnimplementedMoviesServiceV1Server) GetMoviesDuration(context.Context, *GetMoviesDurationRequest) (*MoviesDuration, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetMoviesDuration not implemented")
}
func (UnimplementedMoviesServiceV1Server) CreateMovie(context.Context, *CreateMovieRequest) (*CreateMovieResponce, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateMovie not implemented")
}
func (UnimplementedMoviesServiceV1Server) DeleteMovie(context.Context, *DeleteMovieRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteMovie not implemented")
}
func (UnimplementedMoviesServiceV1Server) IsMovieExists(context.Context, *IsMovieExistsRequest) (*IsMovieExistsResponce, error) {
return nil, status.Errorf(codes.Unimplemented, "method IsMovieExists not implemented")
}
func (UnimplementedMoviesServiceV1Server) UpdateMovie(context.Context, *UpdateMovieRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateMovie not implemented")
}
func (UnimplementedMoviesServiceV1Server) UpdateMoviePictures(context.Context, *UpdateMoviePicturesRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateMoviePictures not implemented")
}
func (UnimplementedMoviesServiceV1Server) GetAgeRatings(context.Context, *emptypb.Empty) (*AgeRatings, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetAgeRatings not implemented")
}
func (UnimplementedMoviesServiceV1Server) CreateAgeRating(context.Context, *CreateAgeRatingRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateAgeRating not implemented")
}
func (UnimplementedMoviesServiceV1Server) DeleteAgeRating(context.Context, *DeleteAgeRatingRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteAgeRating not implemented")
}
func (UnimplementedMoviesServiceV1Server) GetGenre(context.Context, *GetGenreRequest) (*Genre, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetGenre not implemented")
}
func (UnimplementedMoviesServiceV1Server) GetGenreByName(context.Context, *GetGenreByNameRequest) (*Genre, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetGenreByName not implemented")
}
func (UnimplementedMoviesServiceV1Server) CreateGenre(context.Context, *CreateGenreRequest) (*CreateGenreResponce, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateGenre not implemented")
}
func (UnimplementedMoviesServiceV1Server) GetGenres(context.Context, *emptypb.Empty) (*Genres, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetGenres not implemented")
}
func (UnimplementedMoviesServiceV1Server) UpdateGenre(context.Context, *UpdateGenreRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateGenre not implemented")
}
func (UnimplementedMoviesServiceV1Server) DeleteGenre(context.Context, *DeleteGenreRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteGenre not implemented")
}
func (UnimplementedMoviesServiceV1Server) IsGenresExists(context.Context, *IsGenresExistsRequest) (*ExistsResponce, error) {
return nil, status.Errorf(codes.Unimplemented, "method IsGenresExists not implemented")
}
func (UnimplementedMoviesServiceV1Server) GetCountry(context.Context, *GetCountryRequest) (*Country, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetCountry not implemented")
}
func (UnimplementedMoviesServiceV1Server) GetCountryByName(context.Context, *GetCountryByNameRequest) (*Country, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetCountryByName not implemented")
}
func (UnimplementedMoviesServiceV1Server) CreateCountry(context.Context, *CreateCountryRequest) (*CreateCountryResponce, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateCountry not implemented")
}
func (UnimplementedMoviesServiceV1Server) GetCountries(context.Context, *emptypb.Empty) (*Countries, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetCountries not implemented")
}
func (UnimplementedMoviesServiceV1Server) UpdateCountry(context.Context, *UpdateCountryRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateCountry not implemented")
}
func (UnimplementedMoviesServiceV1Server) DeleteCountry(context.Context, *DeleteCountryRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteCountry not implemented")
}
func (UnimplementedMoviesServiceV1Server) IsCountriesExists(context.Context, *IsCountriesExistsRequest) (*ExistsResponce, error) {
return nil, status.Errorf(codes.Unimplemented, "method IsCountriesExists not implemented")
}
func (UnimplementedMoviesServiceV1Server) mustEmbedUnimplementedMoviesServiceV1Server() {}
// UnsafeMoviesServiceV1Server may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to MoviesServiceV1Server will
// result in compilation errors.
type UnsafeMoviesServiceV1Server interface {
mustEmbedUnimplementedMoviesServiceV1Server()
}
func RegisterMoviesServiceV1Server(s grpc.ServiceRegistrar, srv MoviesServiceV1Server) {
s.RegisterService(&MoviesServiceV1_ServiceDesc, srv)
}
func _MoviesServiceV1_GetMovie_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetMovieRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MoviesServiceV1Server).GetMovie(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/admin_movies_service.moviesServiceV1/GetMovie",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MoviesServiceV1Server).GetMovie(ctx, req.(*GetMovieRequest))
}
return interceptor(ctx, in, info, handler)
}
func _MoviesServiceV1_GetMovieDuration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetMovieDurationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MoviesServiceV1Server).GetMovieDuration(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/admin_movies_service.moviesServiceV1/GetMovieDuration",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MoviesServiceV1Server).GetMovieDuration(ctx, req.(*GetMovieDurationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _MoviesServiceV1_GetMovies_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetMoviesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MoviesServiceV1Server).GetMovies(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/admin_movies_service.moviesServiceV1/GetMovies",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MoviesServiceV1Server).GetMovies(ctx, req.(*GetMoviesRequest))
}
return interceptor(ctx, in, info, handler)
}
func _MoviesServiceV1_GetMoviesDuration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetMoviesDurationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MoviesServiceV1Server).GetMoviesDuration(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/admin_movies_service.moviesServiceV1/GetMoviesDuration",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MoviesServiceV1Server).GetMoviesDuration(ctx, req.(*GetMoviesDurationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _MoviesServiceV1_CreateMovie_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateMovieRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MoviesServiceV1Server).CreateMovie(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/admin_movies_service.moviesServiceV1/CreateMovie",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MoviesServiceV1Server).CreateMovie(ctx, req.(*CreateMovieRequest))
}
return interceptor(ctx, in, info, handler)
}
func _MoviesServiceV1_DeleteMovie_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteMovieRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MoviesServiceV1Server).DeleteMovie(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/admin_movies_service.moviesServiceV1/DeleteMovie",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MoviesServiceV1Server).DeleteMovie(ctx, req.(*DeleteMovieRequest))
}
return interceptor(ctx, in, info, handler)
}
func _MoviesServiceV1_IsMovieExists_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(IsMovieExistsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MoviesServiceV1Server).IsMovieExists(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/admin_movies_service.moviesServiceV1/IsMovieExists",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MoviesServiceV1Server).IsMovieExists(ctx, req.(*IsMovieExistsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _MoviesServiceV1_UpdateMovie_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateMovieRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MoviesServiceV1Server).UpdateMovie(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/admin_movies_service.moviesServiceV1/UpdateMovie",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MoviesServiceV1Server).UpdateMovie(ctx, req.(*UpdateMovieRequest))
}
return interceptor(ctx, in, info, handler)
}
func _MoviesServiceV1_UpdateMoviePictures_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateMoviePicturesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MoviesServiceV1Server).UpdateMoviePictures(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/admin_movies_service.moviesServiceV1/UpdateMoviePictures",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MoviesServiceV1Server).UpdateMoviePictures(ctx, req.(*UpdateMoviePicturesRequest))
}
return interceptor(ctx, in, info, handler)
}
func _MoviesServiceV1_GetAgeRatings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MoviesServiceV1Server).GetAgeRatings(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/admin_movies_service.moviesServiceV1/GetAgeRatings",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MoviesServiceV1Server).GetAgeRatings(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _MoviesServiceV1_CreateAgeRating_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateAgeRatingRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MoviesServiceV1Server).CreateAgeRating(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/admin_movies_service.moviesServiceV1/CreateAgeRating",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MoviesServiceV1Server).CreateAgeRating(ctx, req.(*CreateAgeRatingRequest))
}
return interceptor(ctx, in, info, handler)
}
func _MoviesServiceV1_DeleteAgeRating_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteAgeRatingRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MoviesServiceV1Server).DeleteAgeRating(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/admin_movies_service.moviesServiceV1/DeleteAgeRating",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MoviesServiceV1Server).DeleteAgeRating(ctx, req.(*DeleteAgeRatingRequest))
}
return interceptor(ctx, in, info, handler)
}
func _MoviesServiceV1_GetGenre_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetGenreRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MoviesServiceV1Server).GetGenre(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/admin_movies_service.moviesServiceV1/GetGenre",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MoviesServiceV1Server).GetGenre(ctx, req.(*GetGenreRequest))
}
return interceptor(ctx, in, info, handler)
}
func _MoviesServiceV1_GetGenreByName_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetGenreByNameRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MoviesServiceV1Server).GetGenreByName(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/admin_movies_service.moviesServiceV1/GetGenreByName",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MoviesServiceV1Server).GetGenreByName(ctx, req.(*GetGenreByNameRequest))
}
return interceptor(ctx, in, info, handler)
}
func _MoviesServiceV1_CreateGenre_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateGenreRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MoviesServiceV1Server).CreateGenre(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/admin_movies_service.moviesServiceV1/CreateGenre",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MoviesServiceV1Server).CreateGenre(ctx, req.(*CreateGenreRequest))
}
return interceptor(ctx, in, info, handler)
}
func _MoviesServiceV1_GetGenres_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MoviesServiceV1Server).GetGenres(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/admin_movies_service.moviesServiceV1/GetGenres",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MoviesServiceV1Server).GetGenres(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _MoviesServiceV1_UpdateGenre_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateGenreRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MoviesServiceV1Server).UpdateGenre(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/admin_movies_service.moviesServiceV1/UpdateGenre",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MoviesServiceV1Server).UpdateGenre(ctx, req.(*UpdateGenreRequest))
}
return interceptor(ctx, in, info, handler)
}
func _MoviesServiceV1_DeleteGenre_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteGenreRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MoviesServiceV1Server).DeleteGenre(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/admin_movies_service.moviesServiceV1/DeleteGenre",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MoviesServiceV1Server).DeleteGenre(ctx, req.(*DeleteGenreRequest))
}
return interceptor(ctx, in, info, handler)
}
func _MoviesServiceV1_IsGenresExists_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(IsGenresExistsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MoviesServiceV1Server).IsGenresExists(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/admin_movies_service.moviesServiceV1/IsGenresExists",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MoviesServiceV1Server).IsGenresExists(ctx, req.(*IsGenresExistsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _MoviesServiceV1_GetCountry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetCountryRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MoviesServiceV1Server).GetCountry(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/admin_movies_service.moviesServiceV1/GetCountry",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MoviesServiceV1Server).GetCountry(ctx, req.(*GetCountryRequest))
}
return interceptor(ctx, in, info, handler)
}
func _MoviesServiceV1_GetCountryByName_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetCountryByNameRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MoviesServiceV1Server).GetCountryByName(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/admin_movies_service.moviesServiceV1/GetCountryByName",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MoviesServiceV1Server).GetCountryByName(ctx, req.(*GetCountryByNameRequest))
}
return interceptor(ctx, in, info, handler)
}
func _MoviesServiceV1_CreateCountry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateCountryRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MoviesServiceV1Server).CreateCountry(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/admin_movies_service.moviesServiceV1/CreateCountry",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MoviesServiceV1Server).CreateCountry(ctx, req.(*CreateCountryRequest))
}
return interceptor(ctx, in, info, handler)
}
func _MoviesServiceV1_GetCountries_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MoviesServiceV1Server).GetCountries(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/admin_movies_service.moviesServiceV1/GetCountries",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MoviesServiceV1Server).GetCountries(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _MoviesServiceV1_UpdateCountry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateCountryRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MoviesServiceV1Server).UpdateCountry(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/admin_movies_service.moviesServiceV1/UpdateCountry",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MoviesServiceV1Server).UpdateCountry(ctx, req.(*UpdateCountryRequest))
}
return interceptor(ctx, in, info, handler)
}
func _MoviesServiceV1_DeleteCountry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteCountryRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MoviesServiceV1Server).DeleteCountry(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/admin_movies_service.moviesServiceV1/DeleteCountry",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MoviesServiceV1Server).DeleteCountry(ctx, req.(*DeleteCountryRequest))
}
return interceptor(ctx, in, info, handler)
}
func _MoviesServiceV1_IsCountriesExists_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(IsCountriesExistsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MoviesServiceV1Server).IsCountriesExists(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/admin_movies_service.moviesServiceV1/IsCountriesExists",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MoviesServiceV1Server).IsCountriesExists(ctx, req.(*IsCountriesExistsRequest))
}
return interceptor(ctx, in, info, handler)
}
// MoviesServiceV1_ServiceDesc is the grpc.ServiceDesc for MoviesServiceV1 service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var MoviesServiceV1_ServiceDesc = grpc.ServiceDesc{
ServiceName: "admin_movies_service.moviesServiceV1",
HandlerType: (*MoviesServiceV1Server)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetMovie",
Handler: _MoviesServiceV1_GetMovie_Handler,
},
{
MethodName: "GetMovieDuration",
Handler: _MoviesServiceV1_GetMovieDuration_Handler,
},
{
MethodName: "GetMovies",
Handler: _MoviesServiceV1_GetMovies_Handler,
},
{
MethodName: "GetMoviesDuration",
Handler: _MoviesServiceV1_GetMoviesDuration_Handler,
},
{
MethodName: "CreateMovie",
Handler: _MoviesServiceV1_CreateMovie_Handler,
},
{
MethodName: "DeleteMovie",
Handler: _MoviesServiceV1_DeleteMovie_Handler,
},
{
MethodName: "IsMovieExists",
Handler: _MoviesServiceV1_IsMovieExists_Handler,
},
{
MethodName: "UpdateMovie",
Handler: _MoviesServiceV1_UpdateMovie_Handler,
},
{
MethodName: "UpdateMoviePictures",
Handler: _MoviesServiceV1_UpdateMoviePictures_Handler,
},
{
MethodName: "GetAgeRatings",
Handler: _MoviesServiceV1_GetAgeRatings_Handler,
},
{
MethodName: "CreateAgeRating",
Handler: _MoviesServiceV1_CreateAgeRating_Handler,
},
{
MethodName: "DeleteAgeRating",
Handler: _MoviesServiceV1_DeleteAgeRating_Handler,
},
{
MethodName: "GetGenre",