-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathtask.pb.h
1558 lines (1402 loc) · 52.3 KB
/
task.pb.h
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
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: task.proto
#ifndef PROTOBUF_task_2eproto__INCLUDED
#define PROTOBUF_task_2eproto__INCLUDED
#include <string>
#include <google/protobuf/stubs/common.h>
#if GOOGLE_PROTOBUF_VERSION < 2006000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
#if 2006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/message.h>
#include <google/protobuf/repeated_field.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/generated_enum_reflection.h>
#include <google/protobuf/unknown_field_set.h>
// @@protoc_insertion_point(includes)
namespace schedule {
// Internal implementation detail -- do not call these.
void protobuf_AddDesc_task_2eproto();
void protobuf_AssignDesc_task_2eproto();
void protobuf_ShutdownFile_task_2eproto();
class TimeSegment;
class Task;
class Schedule;
class Tasks;
class Schedules;
enum Schedules_FinalStatus {
Schedules_FinalStatus_SUCCESS = 0,
Schedules_FinalStatus_INCOMPLETE = 1
};
bool Schedules_FinalStatus_IsValid(int value);
const Schedules_FinalStatus Schedules_FinalStatus_FinalStatus_MIN = Schedules_FinalStatus_SUCCESS;
const Schedules_FinalStatus Schedules_FinalStatus_FinalStatus_MAX = Schedules_FinalStatus_INCOMPLETE;
const int Schedules_FinalStatus_FinalStatus_ARRAYSIZE = Schedules_FinalStatus_FinalStatus_MAX + 1;
const ::google::protobuf::EnumDescriptor* Schedules_FinalStatus_descriptor();
inline const ::std::string& Schedules_FinalStatus_Name(Schedules_FinalStatus value) {
return ::google::protobuf::internal::NameOfEnum(
Schedules_FinalStatus_descriptor(), value);
}
inline bool Schedules_FinalStatus_Parse(
const ::std::string& name, Schedules_FinalStatus* value) {
return ::google::protobuf::internal::ParseNamedEnum<Schedules_FinalStatus>(
Schedules_FinalStatus_descriptor(), name, value);
}
// ===================================================================
class TimeSegment : public ::google::protobuf::Message {
public:
TimeSegment();
virtual ~TimeSegment();
TimeSegment(const TimeSegment& from);
inline TimeSegment& operator=(const TimeSegment& from) {
CopyFrom(from);
return *this;
}
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _unknown_fields_;
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return &_unknown_fields_;
}
static const ::google::protobuf::Descriptor* descriptor();
static const TimeSegment& default_instance();
void Swap(TimeSegment* other);
// implements Message ----------------------------------------------
TimeSegment* New() const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const TimeSegment& from);
void MergeFrom(const TimeSegment& from);
void Clear();
bool IsInitialized() const;
int ByteSize() const;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input);
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const;
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional int32 duration = 1;
inline bool has_duration() const;
inline void clear_duration();
static const int kDurationFieldNumber = 1;
inline ::google::protobuf::int32 duration() const;
inline void set_duration(::google::protobuf::int32 value);
// optional int32 cool_down = 2 [default = 0];
inline bool has_cool_down() const;
inline void clear_cool_down();
static const int kCoolDownFieldNumber = 2;
inline ::google::protobuf::int32 cool_down() const;
inline void set_cool_down(::google::protobuf::int32 value);
// optional int32 deadline = 3;
inline bool has_deadline() const;
inline void clear_deadline();
static const int kDeadlineFieldNumber = 3;
inline ::google::protobuf::int32 deadline() const;
inline void set_deadline(::google::protobuf::int32 value);
// repeated int32 earliest_starts = 4;
inline int earliest_starts_size() const;
inline void clear_earliest_starts();
static const int kEarliestStartsFieldNumber = 4;
inline ::google::protobuf::int32 earliest_starts(int index) const;
inline void set_earliest_starts(int index, ::google::protobuf::int32 value);
inline void add_earliest_starts(::google::protobuf::int32 value);
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
earliest_starts() const;
inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
mutable_earliest_starts();
// repeated int32 latest_starts = 5;
inline int latest_starts_size() const;
inline void clear_latest_starts();
static const int kLatestStartsFieldNumber = 5;
inline ::google::protobuf::int32 latest_starts(int index) const;
inline void set_latest_starts(int index, ::google::protobuf::int32 value);
inline void add_latest_starts(::google::protobuf::int32 value);
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
latest_starts() const;
inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
mutable_latest_starts();
// optional int32 priority = 6 [default = 10];
inline bool has_priority() const;
inline void clear_priority();
static const int kPriorityFieldNumber = 6;
inline ::google::protobuf::int32 priority() const;
inline void set_priority(::google::protobuf::int32 value);
// @@protoc_insertion_point(class_scope:schedule.TimeSegment)
private:
inline void set_has_duration();
inline void clear_has_duration();
inline void set_has_cool_down();
inline void clear_has_cool_down();
inline void set_has_deadline();
inline void clear_has_deadline();
inline void set_has_priority();
inline void clear_has_priority();
::google::protobuf::UnknownFieldSet _unknown_fields_;
::google::protobuf::uint32 _has_bits_[1];
mutable int _cached_size_;
::google::protobuf::int32 duration_;
::google::protobuf::int32 cool_down_;
::google::protobuf::RepeatedField< ::google::protobuf::int32 > earliest_starts_;
::google::protobuf::int32 deadline_;
::google::protobuf::int32 priority_;
::google::protobuf::RepeatedField< ::google::protobuf::int32 > latest_starts_;
friend void protobuf_AddDesc_task_2eproto();
friend void protobuf_AssignDesc_task_2eproto();
friend void protobuf_ShutdownFile_task_2eproto();
void InitAsDefaultInstance();
static TimeSegment* default_instance_;
};
// -------------------------------------------------------------------
class Task : public ::google::protobuf::Message {
public:
Task();
virtual ~Task();
Task(const Task& from);
inline Task& operator=(const Task& from) {
CopyFrom(from);
return *this;
}
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _unknown_fields_;
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return &_unknown_fields_;
}
static const ::google::protobuf::Descriptor* descriptor();
static const Task& default_instance();
void Swap(Task* other);
// implements Message ----------------------------------------------
Task* New() const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const Task& from);
void MergeFrom(const Task& from);
void Clear();
bool IsInitialized() const;
int ByteSize() const;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input);
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const;
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional string id = 1;
inline bool has_id() const;
inline void clear_id();
static const int kIdFieldNumber = 1;
inline const ::std::string& id() const;
inline void set_id(const ::std::string& value);
inline void set_id(const char* value);
inline void set_id(const char* value, size_t size);
inline ::std::string* mutable_id();
inline ::std::string* release_id();
inline void set_allocated_id(::std::string* id);
// optional string group = 2;
inline bool has_group() const;
inline void clear_group();
static const int kGroupFieldNumber = 2;
inline const ::std::string& group() const;
inline void set_group(const ::std::string& value);
inline void set_group(const char* value);
inline void set_group(const char* value, size_t size);
inline ::std::string* mutable_group();
inline ::std::string* release_group();
inline void set_allocated_group(::std::string* group);
// repeated string pre_req_ids = 3;
inline int pre_req_ids_size() const;
inline void clear_pre_req_ids();
static const int kPreReqIdsFieldNumber = 3;
inline const ::std::string& pre_req_ids(int index) const;
inline ::std::string* mutable_pre_req_ids(int index);
inline void set_pre_req_ids(int index, const ::std::string& value);
inline void set_pre_req_ids(int index, const char* value);
inline void set_pre_req_ids(int index, const char* value, size_t size);
inline ::std::string* add_pre_req_ids();
inline void add_pre_req_ids(const ::std::string& value);
inline void add_pre_req_ids(const char* value);
inline void add_pre_req_ids(const char* value, size_t size);
inline const ::google::protobuf::RepeatedPtrField< ::std::string>& pre_req_ids() const;
inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_pre_req_ids();
// optional .schedule.TimeSegment time = 5;
inline bool has_time() const;
inline void clear_time();
static const int kTimeFieldNumber = 5;
inline const ::schedule::TimeSegment& time() const;
inline ::schedule::TimeSegment* mutable_time();
inline ::schedule::TimeSegment* release_time();
inline void set_allocated_time(::schedule::TimeSegment* time);
// @@protoc_insertion_point(class_scope:schedule.Task)
private:
inline void set_has_id();
inline void clear_has_id();
inline void set_has_group();
inline void clear_has_group();
inline void set_has_time();
inline void clear_has_time();
::google::protobuf::UnknownFieldSet _unknown_fields_;
::google::protobuf::uint32 _has_bits_[1];
mutable int _cached_size_;
::std::string* id_;
::std::string* group_;
::google::protobuf::RepeatedPtrField< ::std::string> pre_req_ids_;
::schedule::TimeSegment* time_;
friend void protobuf_AddDesc_task_2eproto();
friend void protobuf_AssignDesc_task_2eproto();
friend void protobuf_ShutdownFile_task_2eproto();
void InitAsDefaultInstance();
static Task* default_instance_;
};
// -------------------------------------------------------------------
class Schedule : public ::google::protobuf::Message {
public:
Schedule();
virtual ~Schedule();
Schedule(const Schedule& from);
inline Schedule& operator=(const Schedule& from) {
CopyFrom(from);
return *this;
}
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _unknown_fields_;
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return &_unknown_fields_;
}
static const ::google::protobuf::Descriptor* descriptor();
static const Schedule& default_instance();
void Swap(Schedule* other);
// implements Message ----------------------------------------------
Schedule* New() const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const Schedule& from);
void MergeFrom(const Schedule& from);
void Clear();
bool IsInitialized() const;
int ByteSize() const;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input);
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const;
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional string id = 1;
inline bool has_id() const;
inline void clear_id();
static const int kIdFieldNumber = 1;
inline const ::std::string& id() const;
inline void set_id(const ::std::string& value);
inline void set_id(const char* value);
inline void set_id(const char* value, size_t size);
inline ::std::string* mutable_id();
inline ::std::string* release_id();
inline void set_allocated_id(::std::string* id);
// optional int32 start = 2;
inline bool has_start() const;
inline void clear_start();
static const int kStartFieldNumber = 2;
inline ::google::protobuf::int32 start() const;
inline void set_start(::google::protobuf::int32 value);
// optional int32 end = 3;
inline bool has_end() const;
inline void clear_end();
static const int kEndFieldNumber = 3;
inline ::google::protobuf::int32 end() const;
inline void set_end(::google::protobuf::int32 value);
// @@protoc_insertion_point(class_scope:schedule.Schedule)
private:
inline void set_has_id();
inline void clear_has_id();
inline void set_has_start();
inline void clear_has_start();
inline void set_has_end();
inline void clear_has_end();
::google::protobuf::UnknownFieldSet _unknown_fields_;
::google::protobuf::uint32 _has_bits_[1];
mutable int _cached_size_;
::std::string* id_;
::google::protobuf::int32 start_;
::google::protobuf::int32 end_;
friend void protobuf_AddDesc_task_2eproto();
friend void protobuf_AssignDesc_task_2eproto();
friend void protobuf_ShutdownFile_task_2eproto();
void InitAsDefaultInstance();
static Schedule* default_instance_;
};
// -------------------------------------------------------------------
class Tasks : public ::google::protobuf::Message {
public:
Tasks();
virtual ~Tasks();
Tasks(const Tasks& from);
inline Tasks& operator=(const Tasks& from) {
CopyFrom(from);
return *this;
}
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _unknown_fields_;
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return &_unknown_fields_;
}
static const ::google::protobuf::Descriptor* descriptor();
static const Tasks& default_instance();
void Swap(Tasks* other);
// implements Message ----------------------------------------------
Tasks* New() const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const Tasks& from);
void MergeFrom(const Tasks& from);
void Clear();
bool IsInitialized() const;
int ByteSize() const;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input);
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const;
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// repeated .schedule.Task tasks = 1;
inline int tasks_size() const;
inline void clear_tasks();
static const int kTasksFieldNumber = 1;
inline const ::schedule::Task& tasks(int index) const;
inline ::schedule::Task* mutable_tasks(int index);
inline ::schedule::Task* add_tasks();
inline const ::google::protobuf::RepeatedPtrField< ::schedule::Task >&
tasks() const;
inline ::google::protobuf::RepeatedPtrField< ::schedule::Task >*
mutable_tasks();
// optional int32 global_start_time = 2 [default = 0];
inline bool has_global_start_time() const;
inline void clear_global_start_time();
static const int kGlobalStartTimeFieldNumber = 2;
inline ::google::protobuf::int32 global_start_time() const;
inline void set_global_start_time(::google::protobuf::int32 value);
// optional int32 rest_time = 3 [default = 0];
inline bool has_rest_time() const;
inline void clear_rest_time();
static const int kRestTimeFieldNumber = 3;
inline ::google::protobuf::int32 rest_time() const;
inline void set_rest_time(::google::protobuf::int32 value);
// optional int32 max_heap_size = 4 [default = 500000];
inline bool has_max_heap_size() const;
inline void clear_max_heap_size();
static const int kMaxHeapSizeFieldNumber = 4;
inline ::google::protobuf::int32 max_heap_size() const;
inline void set_max_heap_size(::google::protobuf::int32 value);
// @@protoc_insertion_point(class_scope:schedule.Tasks)
private:
inline void set_has_global_start_time();
inline void clear_has_global_start_time();
inline void set_has_rest_time();
inline void clear_has_rest_time();
inline void set_has_max_heap_size();
inline void clear_has_max_heap_size();
::google::protobuf::UnknownFieldSet _unknown_fields_;
::google::protobuf::uint32 _has_bits_[1];
mutable int _cached_size_;
::google::protobuf::RepeatedPtrField< ::schedule::Task > tasks_;
::google::protobuf::int32 global_start_time_;
::google::protobuf::int32 rest_time_;
::google::protobuf::int32 max_heap_size_;
friend void protobuf_AddDesc_task_2eproto();
friend void protobuf_AssignDesc_task_2eproto();
friend void protobuf_ShutdownFile_task_2eproto();
void InitAsDefaultInstance();
static Tasks* default_instance_;
};
// -------------------------------------------------------------------
class Schedules : public ::google::protobuf::Message {
public:
Schedules();
virtual ~Schedules();
Schedules(const Schedules& from);
inline Schedules& operator=(const Schedules& from) {
CopyFrom(from);
return *this;
}
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _unknown_fields_;
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return &_unknown_fields_;
}
static const ::google::protobuf::Descriptor* descriptor();
static const Schedules& default_instance();
void Swap(Schedules* other);
// implements Message ----------------------------------------------
Schedules* New() const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const Schedules& from);
void MergeFrom(const Schedules& from);
void Clear();
bool IsInitialized() const;
int ByteSize() const;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input);
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const;
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
typedef Schedules_FinalStatus FinalStatus;
static const FinalStatus SUCCESS = Schedules_FinalStatus_SUCCESS;
static const FinalStatus INCOMPLETE = Schedules_FinalStatus_INCOMPLETE;
static inline bool FinalStatus_IsValid(int value) {
return Schedules_FinalStatus_IsValid(value);
}
static const FinalStatus FinalStatus_MIN =
Schedules_FinalStatus_FinalStatus_MIN;
static const FinalStatus FinalStatus_MAX =
Schedules_FinalStatus_FinalStatus_MAX;
static const int FinalStatus_ARRAYSIZE =
Schedules_FinalStatus_FinalStatus_ARRAYSIZE;
static inline const ::google::protobuf::EnumDescriptor*
FinalStatus_descriptor() {
return Schedules_FinalStatus_descriptor();
}
static inline const ::std::string& FinalStatus_Name(FinalStatus value) {
return Schedules_FinalStatus_Name(value);
}
static inline bool FinalStatus_Parse(const ::std::string& name,
FinalStatus* value) {
return Schedules_FinalStatus_Parse(name, value);
}
// accessors -------------------------------------------------------
// repeated .schedule.Schedule schedules = 1;
inline int schedules_size() const;
inline void clear_schedules();
static const int kSchedulesFieldNumber = 1;
inline const ::schedule::Schedule& schedules(int index) const;
inline ::schedule::Schedule* mutable_schedules(int index);
inline ::schedule::Schedule* add_schedules();
inline const ::google::protobuf::RepeatedPtrField< ::schedule::Schedule >&
schedules() const;
inline ::google::protobuf::RepeatedPtrField< ::schedule::Schedule >*
mutable_schedules();
// optional int32 search_steps = 2;
inline bool has_search_steps() const;
inline void clear_search_steps();
static const int kSearchStepsFieldNumber = 2;
inline ::google::protobuf::int32 search_steps() const;
inline void set_search_steps(::google::protobuf::int32 value);
// optional .schedule.Schedules.FinalStatus status = 3;
inline bool has_status() const;
inline void clear_status();
static const int kStatusFieldNumber = 3;
inline ::schedule::Schedules_FinalStatus status() const;
inline void set_status(::schedule::Schedules_FinalStatus value);
// repeated string incomplete_tasks = 4;
inline int incomplete_tasks_size() const;
inline void clear_incomplete_tasks();
static const int kIncompleteTasksFieldNumber = 4;
inline const ::std::string& incomplete_tasks(int index) const;
inline ::std::string* mutable_incomplete_tasks(int index);
inline void set_incomplete_tasks(int index, const ::std::string& value);
inline void set_incomplete_tasks(int index, const char* value);
inline void set_incomplete_tasks(int index, const char* value, size_t size);
inline ::std::string* add_incomplete_tasks();
inline void add_incomplete_tasks(const ::std::string& value);
inline void add_incomplete_tasks(const char* value);
inline void add_incomplete_tasks(const char* value, size_t size);
inline const ::google::protobuf::RepeatedPtrField< ::std::string>& incomplete_tasks() const;
inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_incomplete_tasks();
// optional int32 total_duration = 5;
inline bool has_total_duration() const;
inline void clear_total_duration();
static const int kTotalDurationFieldNumber = 5;
inline ::google::protobuf::int32 total_duration() const;
inline void set_total_duration(::google::protobuf::int32 value);
// optional int32 used_duration = 6;
inline bool has_used_duration() const;
inline void clear_used_duration();
static const int kUsedDurationFieldNumber = 6;
inline ::google::protobuf::int32 used_duration() const;
inline void set_used_duration(::google::protobuf::int32 value);
// @@protoc_insertion_point(class_scope:schedule.Schedules)
private:
inline void set_has_search_steps();
inline void clear_has_search_steps();
inline void set_has_status();
inline void clear_has_status();
inline void set_has_total_duration();
inline void clear_has_total_duration();
inline void set_has_used_duration();
inline void clear_has_used_duration();
::google::protobuf::UnknownFieldSet _unknown_fields_;
::google::protobuf::uint32 _has_bits_[1];
mutable int _cached_size_;
::google::protobuf::RepeatedPtrField< ::schedule::Schedule > schedules_;
::google::protobuf::int32 search_steps_;
int status_;
::google::protobuf::RepeatedPtrField< ::std::string> incomplete_tasks_;
::google::protobuf::int32 total_duration_;
::google::protobuf::int32 used_duration_;
friend void protobuf_AddDesc_task_2eproto();
friend void protobuf_AssignDesc_task_2eproto();
friend void protobuf_ShutdownFile_task_2eproto();
void InitAsDefaultInstance();
static Schedules* default_instance_;
};
// ===================================================================
// ===================================================================
// TimeSegment
// optional int32 duration = 1;
inline bool TimeSegment::has_duration() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void TimeSegment::set_has_duration() {
_has_bits_[0] |= 0x00000001u;
}
inline void TimeSegment::clear_has_duration() {
_has_bits_[0] &= ~0x00000001u;
}
inline void TimeSegment::clear_duration() {
duration_ = 0;
clear_has_duration();
}
inline ::google::protobuf::int32 TimeSegment::duration() const {
// @@protoc_insertion_point(field_get:schedule.TimeSegment.duration)
return duration_;
}
inline void TimeSegment::set_duration(::google::protobuf::int32 value) {
set_has_duration();
duration_ = value;
// @@protoc_insertion_point(field_set:schedule.TimeSegment.duration)
}
// optional int32 cool_down = 2 [default = 0];
inline bool TimeSegment::has_cool_down() const {
return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void TimeSegment::set_has_cool_down() {
_has_bits_[0] |= 0x00000002u;
}
inline void TimeSegment::clear_has_cool_down() {
_has_bits_[0] &= ~0x00000002u;
}
inline void TimeSegment::clear_cool_down() {
cool_down_ = 0;
clear_has_cool_down();
}
inline ::google::protobuf::int32 TimeSegment::cool_down() const {
// @@protoc_insertion_point(field_get:schedule.TimeSegment.cool_down)
return cool_down_;
}
inline void TimeSegment::set_cool_down(::google::protobuf::int32 value) {
set_has_cool_down();
cool_down_ = value;
// @@protoc_insertion_point(field_set:schedule.TimeSegment.cool_down)
}
// optional int32 deadline = 3;
inline bool TimeSegment::has_deadline() const {
return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void TimeSegment::set_has_deadline() {
_has_bits_[0] |= 0x00000004u;
}
inline void TimeSegment::clear_has_deadline() {
_has_bits_[0] &= ~0x00000004u;
}
inline void TimeSegment::clear_deadline() {
deadline_ = 0;
clear_has_deadline();
}
inline ::google::protobuf::int32 TimeSegment::deadline() const {
// @@protoc_insertion_point(field_get:schedule.TimeSegment.deadline)
return deadline_;
}
inline void TimeSegment::set_deadline(::google::protobuf::int32 value) {
set_has_deadline();
deadline_ = value;
// @@protoc_insertion_point(field_set:schedule.TimeSegment.deadline)
}
// repeated int32 earliest_starts = 4;
inline int TimeSegment::earliest_starts_size() const {
return earliest_starts_.size();
}
inline void TimeSegment::clear_earliest_starts() {
earliest_starts_.Clear();
}
inline ::google::protobuf::int32 TimeSegment::earliest_starts(int index) const {
// @@protoc_insertion_point(field_get:schedule.TimeSegment.earliest_starts)
return earliest_starts_.Get(index);
}
inline void TimeSegment::set_earliest_starts(int index, ::google::protobuf::int32 value) {
earliest_starts_.Set(index, value);
// @@protoc_insertion_point(field_set:schedule.TimeSegment.earliest_starts)
}
inline void TimeSegment::add_earliest_starts(::google::protobuf::int32 value) {
earliest_starts_.Add(value);
// @@protoc_insertion_point(field_add:schedule.TimeSegment.earliest_starts)
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
TimeSegment::earliest_starts() const {
// @@protoc_insertion_point(field_list:schedule.TimeSegment.earliest_starts)
return earliest_starts_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
TimeSegment::mutable_earliest_starts() {
// @@protoc_insertion_point(field_mutable_list:schedule.TimeSegment.earliest_starts)
return &earliest_starts_;
}
// repeated int32 latest_starts = 5;
inline int TimeSegment::latest_starts_size() const {
return latest_starts_.size();
}
inline void TimeSegment::clear_latest_starts() {
latest_starts_.Clear();
}
inline ::google::protobuf::int32 TimeSegment::latest_starts(int index) const {
// @@protoc_insertion_point(field_get:schedule.TimeSegment.latest_starts)
return latest_starts_.Get(index);
}
inline void TimeSegment::set_latest_starts(int index, ::google::protobuf::int32 value) {
latest_starts_.Set(index, value);
// @@protoc_insertion_point(field_set:schedule.TimeSegment.latest_starts)
}
inline void TimeSegment::add_latest_starts(::google::protobuf::int32 value) {
latest_starts_.Add(value);
// @@protoc_insertion_point(field_add:schedule.TimeSegment.latest_starts)
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
TimeSegment::latest_starts() const {
// @@protoc_insertion_point(field_list:schedule.TimeSegment.latest_starts)
return latest_starts_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
TimeSegment::mutable_latest_starts() {
// @@protoc_insertion_point(field_mutable_list:schedule.TimeSegment.latest_starts)
return &latest_starts_;
}
// optional int32 priority = 6 [default = 10];
inline bool TimeSegment::has_priority() const {
return (_has_bits_[0] & 0x00000020u) != 0;
}
inline void TimeSegment::set_has_priority() {
_has_bits_[0] |= 0x00000020u;
}
inline void TimeSegment::clear_has_priority() {
_has_bits_[0] &= ~0x00000020u;
}
inline void TimeSegment::clear_priority() {
priority_ = 10;
clear_has_priority();
}
inline ::google::protobuf::int32 TimeSegment::priority() const {
// @@protoc_insertion_point(field_get:schedule.TimeSegment.priority)
return priority_;
}
inline void TimeSegment::set_priority(::google::protobuf::int32 value) {
set_has_priority();
priority_ = value;
// @@protoc_insertion_point(field_set:schedule.TimeSegment.priority)
}
// -------------------------------------------------------------------
// Task
// optional string id = 1;
inline bool Task::has_id() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void Task::set_has_id() {
_has_bits_[0] |= 0x00000001u;
}
inline void Task::clear_has_id() {
_has_bits_[0] &= ~0x00000001u;
}
inline void Task::clear_id() {
if (id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
id_->clear();
}
clear_has_id();
}
inline const ::std::string& Task::id() const {
// @@protoc_insertion_point(field_get:schedule.Task.id)
return *id_;
}
inline void Task::set_id(const ::std::string& value) {
set_has_id();
if (id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
id_ = new ::std::string;
}
id_->assign(value);
// @@protoc_insertion_point(field_set:schedule.Task.id)
}
inline void Task::set_id(const char* value) {
set_has_id();
if (id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
id_ = new ::std::string;
}
id_->assign(value);
// @@protoc_insertion_point(field_set_char:schedule.Task.id)
}
inline void Task::set_id(const char* value, size_t size) {
set_has_id();
if (id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
id_ = new ::std::string;
}
id_->assign(reinterpret_cast<const char*>(value), size);
// @@protoc_insertion_point(field_set_pointer:schedule.Task.id)
}
inline ::std::string* Task::mutable_id() {
set_has_id();
if (id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
id_ = new ::std::string;
}
// @@protoc_insertion_point(field_mutable:schedule.Task.id)
return id_;
}
inline ::std::string* Task::release_id() {
clear_has_id();
if (id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
return NULL;
} else {
::std::string* temp = id_;
id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
return temp;
}
}
inline void Task::set_allocated_id(::std::string* id) {
if (id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
delete id_;
}
if (id) {
set_has_id();
id_ = id;
} else {
clear_has_id();
id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
// @@protoc_insertion_point(field_set_allocated:schedule.Task.id)
}
// optional string group = 2;
inline bool Task::has_group() const {
return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void Task::set_has_group() {
_has_bits_[0] |= 0x00000002u;
}
inline void Task::clear_has_group() {
_has_bits_[0] &= ~0x00000002u;
}
inline void Task::clear_group() {
if (group_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
group_->clear();
}
clear_has_group();
}
inline const ::std::string& Task::group() const {
// @@protoc_insertion_point(field_get:schedule.Task.group)
return *group_;
}
inline void Task::set_group(const ::std::string& value) {
set_has_group();
if (group_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
group_ = new ::std::string;
}
group_->assign(value);
// @@protoc_insertion_point(field_set:schedule.Task.group)
}
inline void Task::set_group(const char* value) {
set_has_group();
if (group_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
group_ = new ::std::string;
}
group_->assign(value);
// @@protoc_insertion_point(field_set_char:schedule.Task.group)
}
inline void Task::set_group(const char* value, size_t size) {
set_has_group();
if (group_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
group_ = new ::std::string;
}
group_->assign(reinterpret_cast<const char*>(value), size);
// @@protoc_insertion_point(field_set_pointer:schedule.Task.group)
}
inline ::std::string* Task::mutable_group() {
set_has_group();
if (group_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
group_ = new ::std::string;
}
// @@protoc_insertion_point(field_mutable:schedule.Task.group)
return group_;
}
inline ::std::string* Task::release_group() {
clear_has_group();