eule.pb.go 151 KB
Newer Older
Lukas Möller's avatar
update  
Lukas Möller committed
1
2
3
4
5
6
7
// Philippe Panhaleux - VSETH ITA - philippe.panhaleux@vseth.ethz.ch
// Created: 2019-11-xx
// Last updated: 2021-04-24

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.26.0
Go Protoc Bot's avatar
update    
Go Protoc Bot committed
8
// 	protoc        v3.18.1
Lukas Möller's avatar
update  
Lukas Möller committed
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
// source: vseth/eule/eule.proto

package eule

import (
	empty "github.com/golang/protobuf/ptypes/empty"
	timestamp "github.com/golang/protobuf/ptypes/timestamp"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	reflect "reflect"
	sync "sync"
)

const (
	// Verify that this generated code is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	// Verify that runtime/protoimpl is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)

type JobStatus int32

const (
	// When the job is first created during poll creation
	JobStatus_INITIATED JobStatus = 0
	// Job has been launched by scheduler but hasn't actually started yet
	JobStatus_STARTING JobStatus = 1
	// Job has started and is running
	JobStatus_RUNNING JobStatus = 2
	// Job has successfully terminated
	JobStatus_FINISHED JobStatus = 3
	// Job was aborted by user
	JobStatus_ABORTED JobStatus = 4
	// Job has not terminated successfully, check job logline and/or server log, restart manually
	JobStatus_ERROR JobStatus = 5
)

// Enum value maps for JobStatus.
var (
	JobStatus_name = map[int32]string{
		0: "INITIATED",
		1: "STARTING",
		2: "RUNNING",
		3: "FINISHED",
		4: "ABORTED",
		5: "ERROR",
	}
	JobStatus_value = map[string]int32{
		"INITIATED": 0,
		"STARTING":  1,
		"RUNNING":   2,
		"FINISHED":  3,
		"ABORTED":   4,
		"ERROR":     5,
	}
)

func (x JobStatus) Enum() *JobStatus {
	p := new(JobStatus)
	*p = x
	return p
}

func (x JobStatus) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (JobStatus) Descriptor() protoreflect.EnumDescriptor {
	return file_vseth_eule_eule_proto_enumTypes[0].Descriptor()
}

func (JobStatus) Type() protoreflect.EnumType {
	return &file_vseth_eule_eule_proto_enumTypes[0]
}

func (x JobStatus) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use JobStatus.Descriptor instead.
func (JobStatus) EnumDescriptor() ([]byte, []int) {
	return file_vseth_eule_eule_proto_rawDescGZIP(), []int{0}
}

type JobUpdateAction int32

const (
	// Either abort or restart, see UpdateJobRequest
	JobUpdateAction_ABORT   JobUpdateAction = 0
	JobUpdateAction_RESTART JobUpdateAction = 1
)

// Enum value maps for JobUpdateAction.
var (
	JobUpdateAction_name = map[int32]string{
		0: "ABORT",
		1: "RESTART",
	}
	JobUpdateAction_value = map[string]int32{
		"ABORT":   0,
		"RESTART": 1,
	}
)

func (x JobUpdateAction) Enum() *JobUpdateAction {
	p := new(JobUpdateAction)
	*p = x
	return p
}

func (x JobUpdateAction) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (JobUpdateAction) Descriptor() protoreflect.EnumDescriptor {
	return file_vseth_eule_eule_proto_enumTypes[1].Descriptor()
}

func (JobUpdateAction) Type() protoreflect.EnumType {
	return &file_vseth_eule_eule_proto_enumTypes[1]
}

func (x JobUpdateAction) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use JobUpdateAction.Descriptor instead.
func (JobUpdateAction) EnumDescriptor() ([]byte, []int) {
	return file_vseth_eule_eule_proto_rawDescGZIP(), []int{1}
}

type JobName int32

const (
	// Long running job (90-120s) to import the data from a file on S3 storage to the database
	// Poll status: POLL_PLANNED -> POLL_READY
	JobName_IMPORT_JOB JobName = 0
	// Job to open the poll (simply changes the poll status)
	// Poll status: POLL_READY -> POLL_OPEN
	JobName_OPEN_POLL JobName = 1
	// Job to close the poll (simply changes the poll status)
	// Poll status: POLL_OPEN -> POLL_CLOSED
	JobName_CLOSE_POLL JobName = 2
	// Long running job (30s) to analyse the votes and generate statistics for departments/lecturers/lectures, etc.
	// POLL_CLOSED -> EVALUATION_READY
	JobName_VOTES_ANALYSIS JobName = 3
	// Job to open the evaluation for study associations (simply changes the poll status)
	// Poll status: EVALUATION_READY -> EVALUATION_OPEN
	JobName_OPEN_EVALUATION JobName = 4
	// Job to close the evaluation (simply changes the poll status)
	// Poll status: EVALUATION_OPEN -> EVALUATION_CLOSED
	JobName_FINALISE_RESULTS JobName = 5
	// Transfer the entries from the temporary_winners table to the actual winners table, thereby publishing the list of winners
	// Poll status: EVALUATION_CLOSED -> RESULTS_ANNOUNCED
	JobName_ANNOUNCE_RESULTS JobName = 6
)

// Enum value maps for JobName.
var (
	JobName_name = map[int32]string{
		0: "IMPORT_JOB",
		1: "OPEN_POLL",
		2: "CLOSE_POLL",
		3: "VOTES_ANALYSIS",
		4: "OPEN_EVALUATION",
		5: "FINALISE_RESULTS",
		6: "ANNOUNCE_RESULTS",
	}
	JobName_value = map[string]int32{
		"IMPORT_JOB":       0,
		"OPEN_POLL":        1,
		"CLOSE_POLL":       2,
		"VOTES_ANALYSIS":   3,
		"OPEN_EVALUATION":  4,
		"FINALISE_RESULTS": 5,
		"ANNOUNCE_RESULTS": 6,
	}
)

func (x JobName) Enum() *JobName {
	p := new(JobName)
	*p = x
	return p
}

func (x JobName) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (JobName) Descriptor() protoreflect.EnumDescriptor {
	return file_vseth_eule_eule_proto_enumTypes[2].Descriptor()
}

func (JobName) Type() protoreflect.EnumType {
	return &file_vseth_eule_eule_proto_enumTypes[2]
}

func (x JobName) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use JobName.Descriptor instead.
func (JobName) EnumDescriptor() ([]byte, []int) {
	return file_vseth_eule_eule_proto_rawDescGZIP(), []int{2}
}

type PollStatus int32

const (
	// Base status of a poll when it is created,
	// If a another poll is created while some polls are in state POLL_PLANNED, these polls will be deleted
	PollStatus_POLL_PLANNED PollStatus = 0
	// Transition job: IMPORT_JOB
	// ALl student attendance data has been successfully imported when the poll is in this state
	PollStatus_POLL_READY PollStatus = 1
	// Transition job: OPEN_POLL
	// The poll is open and students can rate their lecturers
	PollStatus_POLL_OPEN PollStatus = 2
	// Transition job: CLOSE_POLL
	// The poll is closed and students cannot vote anymore
	PollStatus_POLL_CLOSED PollStatus = 3
	// Transition job: VOTES_ANALYSIS
	// The votes have been successfully analysed
	PollStatus_EVALUATION_READY PollStatus = 4
	// Transition job: OPEN_EVALUATION
	// The student associations can evaluate the results and pick a winner for their department
	// The VSETH Board can pick a CS Award winner as long as he has already won an Eule Award or has been selected that year by a student association
	PollStatus_EVALUATION_OPEN PollStatus = 5
	// Transition job: FINALISE_RESULTS
	// Evaluation is closed so that student associations cannot change their picks after they have communicated to the board
	PollStatus_EVALUATION_CLOSED PollStatus = 6
	// Transition job: ANNOUNCE_RESULTS
	// The poll is completely finished, the winners have been announced on the winners page
	PollStatus_RESULTS_ANNOUNCED PollStatus = 7
)

// Enum value maps for PollStatus.
var (
	PollStatus_name = map[int32]string{
		0: "POLL_PLANNED",
		1: "POLL_READY",
		2: "POLL_OPEN",
		3: "POLL_CLOSED",
		4: "EVALUATION_READY",
		5: "EVALUATION_OPEN",
		6: "EVALUATION_CLOSED",
		7: "RESULTS_ANNOUNCED",
	}
	PollStatus_value = map[string]int32{
		"POLL_PLANNED":      0,
		"POLL_READY":        1,
		"POLL_OPEN":         2,
		"POLL_CLOSED":       3,
		"EVALUATION_READY":  4,
		"EVALUATION_OPEN":   5,
		"EVALUATION_CLOSED": 6,
		"RESULTS_ANNOUNCED": 7,
	}
)

func (x PollStatus) Enum() *PollStatus {
	p := new(PollStatus)
	*p = x
	return p
}

func (x PollStatus) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (PollStatus) Descriptor() protoreflect.EnumDescriptor {
	return file_vseth_eule_eule_proto_enumTypes[3].Descriptor()
}

func (PollStatus) Type() protoreflect.EnumType {
	return &file_vseth_eule_eule_proto_enumTypes[3]
}

func (x PollStatus) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use PollStatus.Descriptor instead.
func (PollStatus) EnumDescriptor() ([]byte, []int) {
	return file_vseth_eule_eule_proto_rawDescGZIP(), []int{3}
}

type PollTimestampLabel int32

const (
	// See definition of message Poll
	PollTimestampLabel_CREATION     PollTimestampLabel = 0
	PollTimestampLabel_START        PollTimestampLabel = 1
	PollTimestampLabel_END          PollTimestampLabel = 2
	PollTimestampLabel_ANNOUNCEMENT PollTimestampLabel = 3
)

// Enum value maps for PollTimestampLabel.
var (
	PollTimestampLabel_name = map[int32]string{
		0: "CREATION",
		1: "START",
		2: "END",
		3: "ANNOUNCEMENT",
	}
	PollTimestampLabel_value = map[string]int32{
		"CREATION":     0,
		"START":        1,
		"END":          2,
		"ANNOUNCEMENT": 3,
	}
)

func (x PollTimestampLabel) Enum() *PollTimestampLabel {
	p := new(PollTimestampLabel)
	*p = x
	return p
}

func (x PollTimestampLabel) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (PollTimestampLabel) Descriptor() protoreflect.EnumDescriptor {
	return file_vseth_eule_eule_proto_enumTypes[4].Descriptor()
}

func (PollTimestampLabel) Type() protoreflect.EnumType {
	return &file_vseth_eule_eule_proto_enumTypes[4]
}

func (x PollTimestampLabel) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use PollTimestampLabel.Descriptor instead.
func (PollTimestampLabel) EnumDescriptor() ([]byte, []int) {
	return file_vseth_eule_eule_proto_rawDescGZIP(), []int{4}
}

type AwardType int32

const (
	// Self-explanatory
	AwardType_EULE    AwardType = 0
	AwardType_CSAWARD AwardType = 1
)

// Enum value maps for AwardType.
var (
	AwardType_name = map[int32]string{
		0: "EULE",
		1: "CSAWARD",
	}
	AwardType_value = map[string]int32{
		"EULE":    0,
		"CSAWARD": 1,
	}
)

func (x AwardType) Enum() *AwardType {
	p := new(AwardType)
	*p = x
	return p
}

func (x AwardType) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (AwardType) Descriptor() protoreflect.EnumDescriptor {
	return file_vseth_eule_eule_proto_enumTypes[5].Descriptor()
}

func (AwardType) Type() protoreflect.EnumType {
	return &file_vseth_eule_eule_proto_enumTypes[5]
}

func (x AwardType) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use AwardType.Descriptor instead.
func (AwardType) EnumDescriptor() ([]byte, []int) {
	return file_vseth_eule_eule_proto_rawDescGZIP(), []int{5}
}

type GetJobRequest struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	// Required: at least one, get_current has priority over job_id
	JobId int32 `protobuf:"varint,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"`
	// Get the currently running job, should only be none or one
	// if there's two something's wrong but then only the latest running job by descending creation date would be returned
	GetCurrent bool `protobuf:"varint,2,opt,name=get_current,json=getCurrent,proto3" json:"get_current,omitempty"`
}

func (x *GetJobRequest) Reset() {
	*x = GetJobRequest{}
	if protoimpl.UnsafeEnabled {
		mi := &file_vseth_eule_eule_proto_msgTypes[0]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *GetJobRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*GetJobRequest) ProtoMessage() {}

func (x *GetJobRequest) ProtoReflect() protoreflect.Message {
	mi := &file_vseth_eule_eule_proto_msgTypes[0]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use GetJobRequest.ProtoReflect.Descriptor instead.
func (*GetJobRequest) Descriptor() ([]byte, []int) {
	return file_vseth_eule_eule_proto_rawDescGZIP(), []int{0}
}

func (x *GetJobRequest) GetJobId() int32 {
	if x != nil {
		return x.JobId
	}
	return 0
}

func (x *GetJobRequest) GetGetCurrent() bool {
	if x != nil {
		return x.GetCurrent
	}
	return false
}

type Job struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	// Output only: Database id of the job
	JobId int32 `protobuf:"varint,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"`
	// Output only: Name of the job
	JobName JobName `protobuf:"varint,2,opt,name=job_name,json=jobName,proto3,enum=vseth.sip.eule.JobName" json:"job_name,omitempty"`
	// Status of the job
	Status JobStatus `protobuf:"varint,3,opt,name=status,proto3,enum=vseth.sip.eule.JobStatus" json:"status,omitempty"`
	// Output only: The last log for the job, as set by update_job
	LogMessage string `protobuf:"bytes,4,opt,name=log_message,json=logMessage,proto3" json:"log_message,omitempty"`
	// Output only: Creation time of the job, about the same as the
	CreateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Output only: Last time the logline or status of the job was updated
	UpdateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// Output only: id of the poll the job belongs to
	PollId int32 `protobuf:"varint,7,opt,name=poll_id,json=pollId,proto3" json:"poll_id,omitempty"`
	// Output only: Existing poll status for which the job gets launched by the scheduler
	PollStatus PollStatus `protobuf:"varint,8,opt,name=poll_status,json=pollStatus,proto3,enum=vseth.sip.eule.PollStatus" json:"poll_status,omitempty"`
	// Output only: The time and date at which a job should be run (e.g. OPEN_POLL when the START datetime has passed)
	PollTimestampLabel PollTimestampLabel `protobuf:"varint,9,opt,name=poll_timestamp_label,json=pollTimestampLabel,proto3,enum=vseth.sip.eule.PollTimestampLabel" json:"poll_timestamp_label,omitempty"`
	// Output only: Additional arguments if needed, currently only used to manually close the evaluation
	Argument string `protobuf:"bytes,10,opt,name=argument,proto3" json:"argument,omitempty"`
}

func (x *Job) Reset() {
	*x = Job{}
	if protoimpl.UnsafeEnabled {
		mi := &file_vseth_eule_eule_proto_msgTypes[1]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *Job) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*Job) ProtoMessage() {}

func (x *Job) ProtoReflect() protoreflect.Message {
	mi := &file_vseth_eule_eule_proto_msgTypes[1]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use Job.ProtoReflect.Descriptor instead.
func (*Job) Descriptor() ([]byte, []int) {
	return file_vseth_eule_eule_proto_rawDescGZIP(), []int{1}
}

func (x *Job) GetJobId() int32 {
	if x != nil {
		return x.JobId
	}
	return 0
}

func (x *Job) GetJobName() JobName {
	if x != nil {
		return x.JobName
	}
	return JobName_IMPORT_JOB
}

func (x *Job) GetStatus() JobStatus {
	if x != nil {
		return x.Status
	}
	return JobStatus_INITIATED
}

func (x *Job) GetLogMessage() string {
	if x != nil {
		return x.LogMessage
	}
	return ""
}

func (x *Job) GetCreateTime() *timestamp.Timestamp {
	if x != nil {
		return x.CreateTime
	}
	return nil
}

func (x *Job) GetUpdateTime() *timestamp.Timestamp {
	if x != nil {
		return x.UpdateTime
	}
	return nil
}

func (x *Job) GetPollId() int32 {
	if x != nil {
		return x.PollId
	}
	return 0
}

func (x *Job) GetPollStatus() PollStatus {
	if x != nil {
		return x.PollStatus
	}
	return PollStatus_POLL_PLANNED
}

func (x *Job) GetPollTimestampLabel() PollTimestampLabel {
	if x != nil {
		return x.PollTimestampLabel
	}
	return PollTimestampLabel_CREATION
}

func (x *Job) GetArgument() string {
	if x != nil {
		return x.Argument
	}
	return ""
}

type ListJobsRequest struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields
}

func (x *ListJobsRequest) Reset() {
	*x = ListJobsRequest{}
	if protoimpl.UnsafeEnabled {
		mi := &file_vseth_eule_eule_proto_msgTypes[2]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *ListJobsRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*ListJobsRequest) ProtoMessage() {}

func (x *ListJobsRequest) ProtoReflect() protoreflect.Message {
	mi := &file_vseth_eule_eule_proto_msgTypes[2]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use ListJobsRequest.ProtoReflect.Descriptor instead.
func (*ListJobsRequest) Descriptor() ([]byte, []int) {
	return file_vseth_eule_eule_proto_rawDescGZIP(), []int{2}
}

type ListJobsResponse struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	// Every job in the jobs table
	Jobs []*Job `protobuf:"bytes,1,rep,name=jobs,proto3" json:"jobs,omitempty"`
}

func (x *ListJobsResponse) Reset() {
	*x = ListJobsResponse{}
	if protoimpl.UnsafeEnabled {
		mi := &file_vseth_eule_eule_proto_msgTypes[3]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *ListJobsResponse) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*ListJobsResponse) ProtoMessage() {}

func (x *ListJobsResponse) ProtoReflect() protoreflect.Message {
	mi := &file_vseth_eule_eule_proto_msgTypes[3]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use ListJobsResponse.ProtoReflect.Descriptor instead.
func (*ListJobsResponse) Descriptor() ([]byte, []int) {
	return file_vseth_eule_eule_proto_rawDescGZIP(), []int{3}
}

func (x *ListJobsResponse) GetJobs() []*Job {
	if x != nil {
		return x.Jobs
	}
	return nil
}

type UpdateJobRequest struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	// Required: id of the job to be updated
	JobId int32 `protobuf:"varint,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"`
	// You can choose between restart and abort, restart immediately restarts the job, abort stops it without restarting
	// The scheduler will automatically try running an aborted job again
	Action JobUpdateAction `protobuf:"varint,2,opt,name=action,proto3,enum=vseth.sip.eule.JobUpdateAction" json:"action,omitempty"`
}

func (x *UpdateJobRequest) Reset() {
	*x = UpdateJobRequest{}
	if protoimpl.UnsafeEnabled {
		mi := &file_vseth_eule_eule_proto_msgTypes[4]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *UpdateJobRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*UpdateJobRequest) ProtoMessage() {}

func (x *UpdateJobRequest) ProtoReflect() protoreflect.Message {
	mi := &file_vseth_eule_eule_proto_msgTypes[4]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use UpdateJobRequest.ProtoReflect.Descriptor instead.
func (*UpdateJobRequest) Descriptor() ([]byte, []int) {
	return file_vseth_eule_eule_proto_rawDescGZIP(), []int{4}
}

func (x *UpdateJobRequest) GetJobId() int32 {
	if x != nil {
		return x.JobId
	}
	return 0
}

func (x *UpdateJobRequest) GetAction() JobUpdateAction {
	if x != nil {
		return x.Action
	}
	return JobUpdateAction_ABORT
}

type GetLecturerRequest struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	// Optional: database id of the lecturer
	LecturerId int32 `protobuf:"varint,1,opt,name=lecturer_id,json=lecturerId,proto3" json:"lecturer_id,omitempty"`
	// Optional: the "DOZIDE" identifier of the lecturer as defined by ETH and imported with the attendance data
	// Not implemented
	Dozide int32 `protobuf:"varint,2,opt,name=dozide,proto3" json:"dozide,omitempty"`
	// Optional: approximate name of the lecturer for the search bar
	// Not implemented
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
}

func (x *GetLecturerRequest) Reset() {
	*x = GetLecturerRequest{}
	if protoimpl.UnsafeEnabled {
		mi := &file_vseth_eule_eule_proto_msgTypes[5]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *GetLecturerRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*GetLecturerRequest) ProtoMessage() {}

func (x *GetLecturerRequest) ProtoReflect() protoreflect.Message {
	mi := &file_vseth_eule_eule_proto_msgTypes[5]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use GetLecturerRequest.ProtoReflect.Descriptor instead.
func (*GetLecturerRequest) Descriptor() ([]byte, []int) {
	return file_vseth_eule_eule_proto_rawDescGZIP(), []int{5}
}

func (x *GetLecturerRequest) GetLecturerId() int32 {
	if x != nil {
		return x.LecturerId
	}
	return 0
}

func (x *GetLecturerRequest) GetDozide() int32 {
	if x != nil {
		return x.Dozide
	}
	return 0
}

func (x *GetLecturerRequest) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

type Lecture struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	// Output only: database id of the lecture
	LectureId int32 `protobuf:"varint,1,opt,name=lecture_id,json=lectureId,proto3" json:"lecture_id,omitempty"`
	// ETH lecture number of the lecture
	CourseNumber string `protobuf:"bytes,2,opt,name=course_number,json=courseNumber,proto3" json:"course_number,omitempty"`
	// Semester code (e.g. FS2021) of the lecture
	Semester string `protobuf:"bytes,3,opt,name=semester,proto3" json:"semester,omitempty"`
	// Actual name (e.g. Introduction to Owl Flight Dynamics) of the lecture
	LectureName string `protobuf:"bytes,4,opt,name=lecture_name,json=lectureName,proto3" json:"lecture_name,omitempty"`
	// ETH lecture type (V for Vorlesung, P for Praktikum, etc.)
	Type string `protobuf:"bytes,5,opt,name=type,proto3" json:"type,omitempty"`
}

func (x *Lecture) Reset() {
	*x = Lecture{}
	if protoimpl.UnsafeEnabled {
		mi := &file_vseth_eule_eule_proto_msgTypes[6]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *Lecture) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*Lecture) ProtoMessage() {}

func (x *Lecture) ProtoReflect() protoreflect.Message {
	mi := &file_vseth_eule_eule_proto_msgTypes[6]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use Lecture.ProtoReflect.Descriptor instead.
func (*Lecture) Descriptor() ([]byte, []int) {
	return file_vseth_eule_eule_proto_rawDescGZIP(), []int{6}
}

func (x *Lecture) GetLectureId() int32 {
	if x != nil {
		return x.LectureId
	}
	return 0
}

func (x *Lecture) GetCourseNumber() string {
	if x != nil {
		return x.CourseNumber
	}
	return ""
}

func (x *Lecture) GetSemester() string {
	if x != nil {
		return x.Semester
	}
	return ""
}

func (x *Lecture) GetLectureName() string {
	if x != nil {
		return x.LectureName
	}
	return ""
}

func (x *Lecture) GetType() string {
	if x != nil {
		return x.Type
	}
	return ""
}

type Lecturer struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	// Optional: database id of the lecturer
	LecturerId int32 `protobuf:"varint,1,opt,name=lecturer_id,json=lecturerId,proto3" json:"lecturer_id,omitempty"`
	// First name of the lecturer
	FirstName string `protobuf:"bytes,2,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"`
	// Last name of the lecturer
	LastName string `protobuf:"bytes,3,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"`
	// Awards won by the lecturer (CS and/or Eule)
	Awards []*Award `protobuf:"bytes,4,rep,name=awards,proto3" json:"awards,omitempty"`
	// Every lecture in the database held by the lecturer
	Lectures []*Lecture `protobuf:"bytes,5,rep,name=lectures,proto3" json:"lectures,omitempty"`
	// "Frau" or "Herr", risk of confusion with the academic title
	Title string `protobuf:"bytes,6,opt,name=title,proto3" json:"title,omitempty"`
	// Actual academic title such as "Prof." or "Dr."
	AcademicTitle string `protobuf:"bytes,7,opt,name=academic_title,json=academicTitle,proto3" json:"academic_title,omitempty"`
	// Last department the lecturer was working for.
	// Every data import (attendance or winners) will update this value in case of conflict
	Department string `protobuf:"bytes,8,opt,name=department,proto3" json:"department,omitempty"`
}

func (x *Lecturer) Reset() {
	*x = Lecturer{}
	if protoimpl.UnsafeEnabled {
		mi := &file_vseth_eule_eule_proto_msgTypes[7]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *Lecturer) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*Lecturer) ProtoMessage() {}

func (x *Lecturer) ProtoReflect() protoreflect.Message {
	mi := &file_vseth_eule_eule_proto_msgTypes[7]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use Lecturer.ProtoReflect.Descriptor instead.
func (*Lecturer) Descriptor() ([]byte, []int) {
	return file_vseth_eule_eule_proto_rawDescGZIP(), []int{7}
}

func (x *Lecturer) GetLecturerId() int32 {
	if x != nil {
		return x.LecturerId
	}
	return 0
}

func (x *Lecturer) GetFirstName() string {
	if x != nil {
		return x.FirstName
	}
	return ""
}

func (x *Lecturer) GetLastName() string {
	if x != nil {
		return x.LastName
	}
	return ""
}

func (x *Lecturer) GetAwards() []*Award {
	if x != nil {
		return x.Awards
	}
	return nil
}

func (x *Lecturer) GetLectures() []*Lecture {
	if x != nil {
		return x.Lectures
	}
	return nil
}

func (x *Lecturer) GetTitle() string {
	if x != nil {
		return x.Title
	}
	return ""
}

func (x *Lecturer) GetAcademicTitle() string {
	if x != nil {
		return x.AcademicTitle
	}
	return ""
}

func (x *Lecturer) GetDepartment() string {
	if x != nil {
		return x.Department
	}
	return ""
}

type ListLecturersRequest struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields
}

func (x *ListLecturersRequest) Reset() {
	*x = ListLecturersRequest{}
	if protoimpl.UnsafeEnabled {
		mi := &file_vseth_eule_eule_proto_msgTypes[8]
For faster browsing, not all history is shown. View entire blame