-
Notifications
You must be signed in to change notification settings - Fork 6
/
amizone_grpc.pb.go
555 lines (517 loc) · 22.9 KB
/
amizone_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
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.2.0
// - protoc (unknown)
// source: v1/amizone.proto
package api_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
// AmizoneServiceClient is the client API for AmizoneService 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 AmizoneServiceClient interface {
GetAttendance(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*AttendanceRecords, error)
GetClassSchedule(ctx context.Context, in *ClassScheduleRequest, opts ...grpc.CallOption) (*ScheduledClasses, error)
// GetExamSchedule returns exam schedule. Amizone only allows access to schedules for the ongoing semester
// and only close to the exam dates, so we don't take any parameters.
GetExamSchedule(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*ExaminationSchedule, error)
// GetSemesters returns a list of semesters that include past semesters and the current semester.
// These semesters can be used in other RPCs that consume them, for example GetCourses.
GetSemesters(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*SemesterList, error)
// GetCourses returns a list of courses for the given semester.
GetCourses(ctx context.Context, in *SemesterRef, opts ...grpc.CallOption) (*Courses, error)
// GetCurrentCourses returns a list of courses for the "current" semester.
GetCurrentCourses(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*Courses, error)
// GetExamResult returns the exam result for the given semester.
GetExamResult(ctx context.Context, in *SemesterRef, opts ...grpc.CallOption) (*ExamResultRecords, error)
// GetCurrentExamResult returns the exam result for the "current" semester.
GetCurrentExamResult(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*ExamResultRecords, error)
// GetUserProfile returns the user's profile.
GetUserProfile(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*Profile, error)
GetWifiMacInfo(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*WifiMacInfo, error)
RegisterWifiMac(ctx context.Context, in *RegisterWifiMacRequest, opts ...grpc.CallOption) (*EmptyMessage, error)
DeregisterWifiMac(ctx context.Context, in *DeregisterWifiMacRequest, opts ...grpc.CallOption) (*EmptyMessage, error)
FillFacultyFeedback(ctx context.Context, in *FillFacultyFeedbackRequest, opts ...grpc.CallOption) (*FillFacultyFeedbackResponse, error)
}
type amizoneServiceClient struct {
cc grpc.ClientConnInterface
}
func NewAmizoneServiceClient(cc grpc.ClientConnInterface) AmizoneServiceClient {
return &amizoneServiceClient{cc}
}
func (c *amizoneServiceClient) GetAttendance(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*AttendanceRecords, error) {
out := new(AttendanceRecords)
err := c.cc.Invoke(ctx, "/go_amizone.server.proto.v1.AmizoneService/GetAttendance", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *amizoneServiceClient) GetClassSchedule(ctx context.Context, in *ClassScheduleRequest, opts ...grpc.CallOption) (*ScheduledClasses, error) {
out := new(ScheduledClasses)
err := c.cc.Invoke(ctx, "/go_amizone.server.proto.v1.AmizoneService/GetClassSchedule", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *amizoneServiceClient) GetExamSchedule(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*ExaminationSchedule, error) {
out := new(ExaminationSchedule)
err := c.cc.Invoke(ctx, "/go_amizone.server.proto.v1.AmizoneService/GetExamSchedule", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *amizoneServiceClient) GetSemesters(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*SemesterList, error) {
out := new(SemesterList)
err := c.cc.Invoke(ctx, "/go_amizone.server.proto.v1.AmizoneService/GetSemesters", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *amizoneServiceClient) GetCourses(ctx context.Context, in *SemesterRef, opts ...grpc.CallOption) (*Courses, error) {
out := new(Courses)
err := c.cc.Invoke(ctx, "/go_amizone.server.proto.v1.AmizoneService/GetCourses", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *amizoneServiceClient) GetCurrentCourses(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*Courses, error) {
out := new(Courses)
err := c.cc.Invoke(ctx, "/go_amizone.server.proto.v1.AmizoneService/GetCurrentCourses", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *amizoneServiceClient) GetExamResult(ctx context.Context, in *SemesterRef, opts ...grpc.CallOption) (*ExamResultRecords, error) {
out := new(ExamResultRecords)
err := c.cc.Invoke(ctx, "/go_amizone.server.proto.v1.AmizoneService/GetExamResult", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *amizoneServiceClient) GetCurrentExamResult(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*ExamResultRecords, error) {
out := new(ExamResultRecords)
err := c.cc.Invoke(ctx, "/go_amizone.server.proto.v1.AmizoneService/GetCurrentExamResult", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *amizoneServiceClient) GetUserProfile(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*Profile, error) {
out := new(Profile)
err := c.cc.Invoke(ctx, "/go_amizone.server.proto.v1.AmizoneService/GetUserProfile", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *amizoneServiceClient) GetWifiMacInfo(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*WifiMacInfo, error) {
out := new(WifiMacInfo)
err := c.cc.Invoke(ctx, "/go_amizone.server.proto.v1.AmizoneService/GetWifiMacInfo", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *amizoneServiceClient) RegisterWifiMac(ctx context.Context, in *RegisterWifiMacRequest, opts ...grpc.CallOption) (*EmptyMessage, error) {
out := new(EmptyMessage)
err := c.cc.Invoke(ctx, "/go_amizone.server.proto.v1.AmizoneService/RegisterWifiMac", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *amizoneServiceClient) DeregisterWifiMac(ctx context.Context, in *DeregisterWifiMacRequest, opts ...grpc.CallOption) (*EmptyMessage, error) {
out := new(EmptyMessage)
err := c.cc.Invoke(ctx, "/go_amizone.server.proto.v1.AmizoneService/DeregisterWifiMac", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *amizoneServiceClient) FillFacultyFeedback(ctx context.Context, in *FillFacultyFeedbackRequest, opts ...grpc.CallOption) (*FillFacultyFeedbackResponse, error) {
out := new(FillFacultyFeedbackResponse)
err := c.cc.Invoke(ctx, "/go_amizone.server.proto.v1.AmizoneService/FillFacultyFeedback", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// AmizoneServiceServer is the server API for AmizoneService service.
// All implementations must embed UnimplementedAmizoneServiceServer
// for forward compatibility
type AmizoneServiceServer interface {
GetAttendance(context.Context, *EmptyMessage) (*AttendanceRecords, error)
GetClassSchedule(context.Context, *ClassScheduleRequest) (*ScheduledClasses, error)
// GetExamSchedule returns exam schedule. Amizone only allows access to schedules for the ongoing semester
// and only close to the exam dates, so we don't take any parameters.
GetExamSchedule(context.Context, *EmptyMessage) (*ExaminationSchedule, error)
// GetSemesters returns a list of semesters that include past semesters and the current semester.
// These semesters can be used in other RPCs that consume them, for example GetCourses.
GetSemesters(context.Context, *EmptyMessage) (*SemesterList, error)
// GetCourses returns a list of courses for the given semester.
GetCourses(context.Context, *SemesterRef) (*Courses, error)
// GetCurrentCourses returns a list of courses for the "current" semester.
GetCurrentCourses(context.Context, *EmptyMessage) (*Courses, error)
// GetExamResult returns the exam result for the given semester.
GetExamResult(context.Context, *SemesterRef) (*ExamResultRecords, error)
// GetCurrentExamResult returns the exam result for the "current" semester.
GetCurrentExamResult(context.Context, *EmptyMessage) (*ExamResultRecords, error)
// GetUserProfile returns the user's profile.
GetUserProfile(context.Context, *EmptyMessage) (*Profile, error)
GetWifiMacInfo(context.Context, *EmptyMessage) (*WifiMacInfo, error)
RegisterWifiMac(context.Context, *RegisterWifiMacRequest) (*EmptyMessage, error)
DeregisterWifiMac(context.Context, *DeregisterWifiMacRequest) (*EmptyMessage, error)
FillFacultyFeedback(context.Context, *FillFacultyFeedbackRequest) (*FillFacultyFeedbackResponse, error)
mustEmbedUnimplementedAmizoneServiceServer()
}
// UnimplementedAmizoneServiceServer must be embedded to have forward compatible implementations.
type UnimplementedAmizoneServiceServer struct {
}
func (UnimplementedAmizoneServiceServer) GetAttendance(context.Context, *EmptyMessage) (*AttendanceRecords, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetAttendance not implemented")
}
func (UnimplementedAmizoneServiceServer) GetClassSchedule(context.Context, *ClassScheduleRequest) (*ScheduledClasses, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetClassSchedule not implemented")
}
func (UnimplementedAmizoneServiceServer) GetExamSchedule(context.Context, *EmptyMessage) (*ExaminationSchedule, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetExamSchedule not implemented")
}
func (UnimplementedAmizoneServiceServer) GetSemesters(context.Context, *EmptyMessage) (*SemesterList, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetSemesters not implemented")
}
func (UnimplementedAmizoneServiceServer) GetCourses(context.Context, *SemesterRef) (*Courses, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetCourses not implemented")
}
func (UnimplementedAmizoneServiceServer) GetCurrentCourses(context.Context, *EmptyMessage) (*Courses, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetCurrentCourses not implemented")
}
func (UnimplementedAmizoneServiceServer) GetExamResult(context.Context, *SemesterRef) (*ExamResultRecords, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetExamResult not implemented")
}
func (UnimplementedAmizoneServiceServer) GetCurrentExamResult(context.Context, *EmptyMessage) (*ExamResultRecords, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetCurrentExamResult not implemented")
}
func (UnimplementedAmizoneServiceServer) GetUserProfile(context.Context, *EmptyMessage) (*Profile, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetUserProfile not implemented")
}
func (UnimplementedAmizoneServiceServer) GetWifiMacInfo(context.Context, *EmptyMessage) (*WifiMacInfo, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetWifiMacInfo not implemented")
}
func (UnimplementedAmizoneServiceServer) RegisterWifiMac(context.Context, *RegisterWifiMacRequest) (*EmptyMessage, error) {
return nil, status.Errorf(codes.Unimplemented, "method RegisterWifiMac not implemented")
}
func (UnimplementedAmizoneServiceServer) DeregisterWifiMac(context.Context, *DeregisterWifiMacRequest) (*EmptyMessage, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeregisterWifiMac not implemented")
}
func (UnimplementedAmizoneServiceServer) FillFacultyFeedback(context.Context, *FillFacultyFeedbackRequest) (*FillFacultyFeedbackResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FillFacultyFeedback not implemented")
}
func (UnimplementedAmizoneServiceServer) mustEmbedUnimplementedAmizoneServiceServer() {}
// UnsafeAmizoneServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to AmizoneServiceServer will
// result in compilation errors.
type UnsafeAmizoneServiceServer interface {
mustEmbedUnimplementedAmizoneServiceServer()
}
func RegisterAmizoneServiceServer(s grpc.ServiceRegistrar, srv AmizoneServiceServer) {
s.RegisterService(&AmizoneService_ServiceDesc, srv)
}
func _AmizoneService_GetAttendance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(EmptyMessage)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AmizoneServiceServer).GetAttendance(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/go_amizone.server.proto.v1.AmizoneService/GetAttendance",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AmizoneServiceServer).GetAttendance(ctx, req.(*EmptyMessage))
}
return interceptor(ctx, in, info, handler)
}
func _AmizoneService_GetClassSchedule_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ClassScheduleRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AmizoneServiceServer).GetClassSchedule(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/go_amizone.server.proto.v1.AmizoneService/GetClassSchedule",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AmizoneServiceServer).GetClassSchedule(ctx, req.(*ClassScheduleRequest))
}
return interceptor(ctx, in, info, handler)
}
func _AmizoneService_GetExamSchedule_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(EmptyMessage)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AmizoneServiceServer).GetExamSchedule(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/go_amizone.server.proto.v1.AmizoneService/GetExamSchedule",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AmizoneServiceServer).GetExamSchedule(ctx, req.(*EmptyMessage))
}
return interceptor(ctx, in, info, handler)
}
func _AmizoneService_GetSemesters_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(EmptyMessage)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AmizoneServiceServer).GetSemesters(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/go_amizone.server.proto.v1.AmizoneService/GetSemesters",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AmizoneServiceServer).GetSemesters(ctx, req.(*EmptyMessage))
}
return interceptor(ctx, in, info, handler)
}
func _AmizoneService_GetCourses_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SemesterRef)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AmizoneServiceServer).GetCourses(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/go_amizone.server.proto.v1.AmizoneService/GetCourses",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AmizoneServiceServer).GetCourses(ctx, req.(*SemesterRef))
}
return interceptor(ctx, in, info, handler)
}
func _AmizoneService_GetCurrentCourses_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(EmptyMessage)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AmizoneServiceServer).GetCurrentCourses(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/go_amizone.server.proto.v1.AmizoneService/GetCurrentCourses",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AmizoneServiceServer).GetCurrentCourses(ctx, req.(*EmptyMessage))
}
return interceptor(ctx, in, info, handler)
}
func _AmizoneService_GetExamResult_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SemesterRef)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AmizoneServiceServer).GetExamResult(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/go_amizone.server.proto.v1.AmizoneService/GetExamResult",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AmizoneServiceServer).GetExamResult(ctx, req.(*SemesterRef))
}
return interceptor(ctx, in, info, handler)
}
func _AmizoneService_GetCurrentExamResult_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(EmptyMessage)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AmizoneServiceServer).GetCurrentExamResult(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/go_amizone.server.proto.v1.AmizoneService/GetCurrentExamResult",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AmizoneServiceServer).GetCurrentExamResult(ctx, req.(*EmptyMessage))
}
return interceptor(ctx, in, info, handler)
}
func _AmizoneService_GetUserProfile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(EmptyMessage)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AmizoneServiceServer).GetUserProfile(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/go_amizone.server.proto.v1.AmizoneService/GetUserProfile",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AmizoneServiceServer).GetUserProfile(ctx, req.(*EmptyMessage))
}
return interceptor(ctx, in, info, handler)
}
func _AmizoneService_GetWifiMacInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(EmptyMessage)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AmizoneServiceServer).GetWifiMacInfo(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/go_amizone.server.proto.v1.AmizoneService/GetWifiMacInfo",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AmizoneServiceServer).GetWifiMacInfo(ctx, req.(*EmptyMessage))
}
return interceptor(ctx, in, info, handler)
}
func _AmizoneService_RegisterWifiMac_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RegisterWifiMacRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AmizoneServiceServer).RegisterWifiMac(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/go_amizone.server.proto.v1.AmizoneService/RegisterWifiMac",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AmizoneServiceServer).RegisterWifiMac(ctx, req.(*RegisterWifiMacRequest))
}
return interceptor(ctx, in, info, handler)
}
func _AmizoneService_DeregisterWifiMac_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeregisterWifiMacRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AmizoneServiceServer).DeregisterWifiMac(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/go_amizone.server.proto.v1.AmizoneService/DeregisterWifiMac",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AmizoneServiceServer).DeregisterWifiMac(ctx, req.(*DeregisterWifiMacRequest))
}
return interceptor(ctx, in, info, handler)
}
func _AmizoneService_FillFacultyFeedback_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FillFacultyFeedbackRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AmizoneServiceServer).FillFacultyFeedback(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/go_amizone.server.proto.v1.AmizoneService/FillFacultyFeedback",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AmizoneServiceServer).FillFacultyFeedback(ctx, req.(*FillFacultyFeedbackRequest))
}
return interceptor(ctx, in, info, handler)
}
// AmizoneService_ServiceDesc is the grpc.ServiceDesc for AmizoneService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var AmizoneService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "go_amizone.server.proto.v1.AmizoneService",
HandlerType: (*AmizoneServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetAttendance",
Handler: _AmizoneService_GetAttendance_Handler,
},
{
MethodName: "GetClassSchedule",
Handler: _AmizoneService_GetClassSchedule_Handler,
},
{
MethodName: "GetExamSchedule",
Handler: _AmizoneService_GetExamSchedule_Handler,
},
{
MethodName: "GetSemesters",
Handler: _AmizoneService_GetSemesters_Handler,
},
{
MethodName: "GetCourses",
Handler: _AmizoneService_GetCourses_Handler,
},
{
MethodName: "GetCurrentCourses",
Handler: _AmizoneService_GetCurrentCourses_Handler,
},
{
MethodName: "GetExamResult",
Handler: _AmizoneService_GetExamResult_Handler,
},
{
MethodName: "GetCurrentExamResult",
Handler: _AmizoneService_GetCurrentExamResult_Handler,
},
{
MethodName: "GetUserProfile",
Handler: _AmizoneService_GetUserProfile_Handler,
},
{
MethodName: "GetWifiMacInfo",
Handler: _AmizoneService_GetWifiMacInfo_Handler,
},
{
MethodName: "RegisterWifiMac",
Handler: _AmizoneService_RegisterWifiMac_Handler,
},
{
MethodName: "DeregisterWifiMac",
Handler: _AmizoneService_DeregisterWifiMac_Handler,
},
{
MethodName: "FillFacultyFeedback",
Handler: _AmizoneService_FillFacultyFeedback_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "v1/amizone.proto",
}