/
graph_data.pb.go
2450 lines (2188 loc) · 86.8 KB
/
graph_data.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: go.chromium.org/luci/dm/api/service/v1/graph_data.proto
package dm
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
duration "github.com/golang/protobuf/ptypes/duration"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type AbnormalFinish_Status int32
const (
// This status is invalid and should not be used intentionally.
//
// It is a placeholder to identify 0-initialized AbnormalFinish structures.
AbnormalFinish_INVALID AbnormalFinish_Status = 0
// This entity has a failed result.
//
// Executions: the distributor reported that the task executed and failed, OR
// the distributor reports success while the Execution is in the RUNNING
// state.
//
// Attempts: the last Execution had a FAILED Status.
//
// Retryable.
AbnormalFinish_FAILED AbnormalFinish_Status = 1
// This entity failed in a bad way.
//
// Executions: The distributor told us that the job died violently while in
// the SCHEDULING, RUNNING or STOPPING state.
//
// Attempts: the last Execution had a CRASHED Status.
//
// Retryable.
AbnormalFinish_CRASHED AbnormalFinish_Status = 2
// Waited too long for the job to start.
//
// Executions: the distributor couldn't start the job in time, OR DM failed
// to get a status update from the distributor in time (e.g. the state was
// SCHEDULING for too long).
//
// Attempts: the last Execution had an EXPIRED Status.
//
// Retryable.
AbnormalFinish_EXPIRED AbnormalFinish_Status = 3
// The job started, but took too long.
//
// Executions: the distributor started the job, but it couldn't complete in
// time, OR DM failed to get a status update from the distributor in time
// (e.g. the state was RUNNING for too long).
//
// Attempts: the last Execution had an TIMED_OUT Status.
//
// Retryable.
AbnormalFinish_TIMED_OUT AbnormalFinish_Status = 4
// The job was cancelled by an external entity (human, automated system).
//
// Executions: the distributor informing DM that the job was preemptively
// cancelled.
//
// Attempts: the last Execution had a CANCELLED Status, or this Attempt
// was cancelled via DM.
AbnormalFinish_CANCELLED AbnormalFinish_Status = 5
// The job was prevented from running by the distributor (quota, permissions,
// etc.)
//
// Executions: the distributor refused to run this job.
//
// Attempts: the last Execution had a REJECTED Status.
AbnormalFinish_REJECTED AbnormalFinish_Status = 6
// The job is unrecognized.
//
// Executions: the distributor doesn't know about this job, or has forgotten
// about it.
//
// Attempts: the last Execution had a MISSING Status.
AbnormalFinish_MISSING AbnormalFinish_Status = 7
// The distributor ran the job, but returned garbage.
//
// Executions: the distributor returned a nominally successful result, but
// the Data portion of the result wasn't able to be normalized.
//
// Attempts: the last Execution had a RESULT_MALFORMED Status.
AbnormalFinish_RESULT_MALFORMED AbnormalFinish_Status = 8
)
var AbnormalFinish_Status_name = map[int32]string{
0: "INVALID",
1: "FAILED",
2: "CRASHED",
3: "EXPIRED",
4: "TIMED_OUT",
5: "CANCELLED",
6: "REJECTED",
7: "MISSING",
8: "RESULT_MALFORMED",
}
var AbnormalFinish_Status_value = map[string]int32{
"INVALID": 0,
"FAILED": 1,
"CRASHED": 2,
"EXPIRED": 3,
"TIMED_OUT": 4,
"CANCELLED": 5,
"REJECTED": 6,
"MISSING": 7,
"RESULT_MALFORMED": 8,
}
func (x AbnormalFinish_Status) String() string {
return proto.EnumName(AbnormalFinish_Status_name, int32(x))
}
func (AbnormalFinish_Status) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_0953f0083e32b1a3, []int{0, 0}
}
type Attempt_State int32
const (
// The Attempt is waiting to be Executed.
Attempt_SCHEDULING Attempt_State = 0
// The Attempt is currently waiting for its current Execution to finish.
Attempt_EXECUTING Attempt_State = 1
// The Attempt is waiting for dependent Attempts to be resolved.
Attempt_WAITING Attempt_State = 2
// The Attempt is in its final state.
Attempt_FINISHED Attempt_State = 3
// The Attempt is in an abnormal final state.
Attempt_ABNORMAL_FINISHED Attempt_State = 4
)
var Attempt_State_name = map[int32]string{
0: "SCHEDULING",
1: "EXECUTING",
2: "WAITING",
3: "FINISHED",
4: "ABNORMAL_FINISHED",
}
var Attempt_State_value = map[string]int32{
"SCHEDULING": 0,
"EXECUTING": 1,
"WAITING": 2,
"FINISHED": 3,
"ABNORMAL_FINISHED": 4,
}
func (x Attempt_State) String() string {
return proto.EnumName(Attempt_State_name, int32(x))
}
func (Attempt_State) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_0953f0083e32b1a3, []int{4, 0}
}
type Attempt_Partial_Result int32
const (
// LOADED implies that the result was, in fact, loaded.
Attempt_Partial_LOADED Attempt_Partial_Result = 0
// NOT_LOADED is set if the result failed to load because there was
// a transient error or the request ran out of time.
Attempt_Partial_NOT_LOADED Attempt_Partial_Result = 1
// NOT_AUTHORIZED is set if the query was authenticated from an Execution
// whose Attempt doesn't depend on this one.
Attempt_Partial_NOT_AUTHORIZED Attempt_Partial_Result = 2
// DATA_SIZE_LIMIT is set if the max_data_size limit was reached.
Attempt_Partial_DATA_SIZE_LIMIT Attempt_Partial_Result = 3
)
var Attempt_Partial_Result_name = map[int32]string{
0: "LOADED",
1: "NOT_LOADED",
2: "NOT_AUTHORIZED",
3: "DATA_SIZE_LIMIT",
}
var Attempt_Partial_Result_value = map[string]int32{
"LOADED": 0,
"NOT_LOADED": 1,
"NOT_AUTHORIZED": 2,
"DATA_SIZE_LIMIT": 3,
}
func (x Attempt_Partial_Result) String() string {
return proto.EnumName(Attempt_Partial_Result_name, int32(x))
}
func (Attempt_Partial_Result) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_0953f0083e32b1a3, []int{4, 3, 0}
}
type Execution_State int32
const (
// The execution has been accepted by the distributor, but is not running
// yet.
Execution_SCHEDULING Execution_State = 0
// The execution is running (has activated with DM).
Execution_RUNNING Execution_State = 1
// The execution has been told to stop by DM, but we haven't heard from
// the distributor yet.
Execution_STOPPING Execution_State = 2
// The execution is in its final state.
Execution_FINISHED Execution_State = 3
// The execution is in an abnormal final state
Execution_ABNORMAL_FINISHED Execution_State = 4
)
var Execution_State_name = map[int32]string{
0: "SCHEDULING",
1: "RUNNING",
2: "STOPPING",
3: "FINISHED",
4: "ABNORMAL_FINISHED",
}
var Execution_State_value = map[string]int32{
"SCHEDULING": 0,
"RUNNING": 1,
"STOPPING": 2,
"FINISHED": 3,
"ABNORMAL_FINISHED": 4,
}
func (x Execution_State) String() string {
return proto.EnumName(Execution_State_name, int32(x))
}
func (Execution_State) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_0953f0083e32b1a3, []int{5, 0}
}
type AbnormalFinish struct {
Status AbnormalFinish_Status `protobuf:"varint,1,opt,name=status,proto3,enum=dm.AbnormalFinish_Status" json:"status,omitempty"`
Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AbnormalFinish) Reset() { *m = AbnormalFinish{} }
func (m *AbnormalFinish) String() string { return proto.CompactTextString(m) }
func (*AbnormalFinish) ProtoMessage() {}
func (*AbnormalFinish) Descriptor() ([]byte, []int) {
return fileDescriptor_0953f0083e32b1a3, []int{0}
}
func (m *AbnormalFinish) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AbnormalFinish.Unmarshal(m, b)
}
func (m *AbnormalFinish) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AbnormalFinish.Marshal(b, m, deterministic)
}
func (m *AbnormalFinish) XXX_Merge(src proto.Message) {
xxx_messageInfo_AbnormalFinish.Merge(m, src)
}
func (m *AbnormalFinish) XXX_Size() int {
return xxx_messageInfo_AbnormalFinish.Size(m)
}
func (m *AbnormalFinish) XXX_DiscardUnknown() {
xxx_messageInfo_AbnormalFinish.DiscardUnknown(m)
}
var xxx_messageInfo_AbnormalFinish proto.InternalMessageInfo
func (m *AbnormalFinish) GetStatus() AbnormalFinish_Status {
if m != nil {
return m.Status
}
return AbnormalFinish_INVALID
}
func (m *AbnormalFinish) GetReason() string {
if m != nil {
return m.Reason
}
return ""
}
type Quest struct {
Id *Quest_ID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// DNE is set to true if this Quest does not exist. None of the following
// fields are valid if this is set to true.
DNE bool `protobuf:"varint,2,opt,name=DNE,proto3" json:"DNE,omitempty"`
Data *Quest_Data `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
// key is the `id` field of the Attempt.ID
Attempts map[uint32]*Attempt `protobuf:"bytes,4,rep,name=attempts,proto3" json:"attempts,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Partial is true iff the request asked for QuestData, but wasn't able to
// completely fill it.
Partial bool `protobuf:"varint,16,opt,name=partial,proto3" json:"partial,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Quest) Reset() { *m = Quest{} }
func (m *Quest) String() string { return proto.CompactTextString(m) }
func (*Quest) ProtoMessage() {}
func (*Quest) Descriptor() ([]byte, []int) {
return fileDescriptor_0953f0083e32b1a3, []int{1}
}
func (m *Quest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Quest.Unmarshal(m, b)
}
func (m *Quest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Quest.Marshal(b, m, deterministic)
}
func (m *Quest) XXX_Merge(src proto.Message) {
xxx_messageInfo_Quest.Merge(m, src)
}
func (m *Quest) XXX_Size() int {
return xxx_messageInfo_Quest.Size(m)
}
func (m *Quest) XXX_DiscardUnknown() {
xxx_messageInfo_Quest.DiscardUnknown(m)
}
var xxx_messageInfo_Quest proto.InternalMessageInfo
func (m *Quest) GetId() *Quest_ID {
if m != nil {
return m.Id
}
return nil
}
func (m *Quest) GetDNE() bool {
if m != nil {
return m.DNE
}
return false
}
func (m *Quest) GetData() *Quest_Data {
if m != nil {
return m.Data
}
return nil
}
func (m *Quest) GetAttempts() map[uint32]*Attempt {
if m != nil {
return m.Attempts
}
return nil
}
func (m *Quest) GetPartial() bool {
if m != nil {
return m.Partial
}
return false
}
type Quest_ID struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Quest_ID) Reset() { *m = Quest_ID{} }
func (m *Quest_ID) String() string { return proto.CompactTextString(m) }
func (*Quest_ID) ProtoMessage() {}
func (*Quest_ID) Descriptor() ([]byte, []int) {
return fileDescriptor_0953f0083e32b1a3, []int{1, 0}
}
func (m *Quest_ID) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Quest_ID.Unmarshal(m, b)
}
func (m *Quest_ID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Quest_ID.Marshal(b, m, deterministic)
}
func (m *Quest_ID) XXX_Merge(src proto.Message) {
xxx_messageInfo_Quest_ID.Merge(m, src)
}
func (m *Quest_ID) XXX_Size() int {
return xxx_messageInfo_Quest_ID.Size(m)
}
func (m *Quest_ID) XXX_DiscardUnknown() {
xxx_messageInfo_Quest_ID.DiscardUnknown(m)
}
var xxx_messageInfo_Quest_ID proto.InternalMessageInfo
func (m *Quest_ID) GetId() string {
if m != nil {
return m.Id
}
return ""
}
type Quest_Desc struct {
// This names a specific distributor configuration (or alias) in the
// service's distributors.cfg file. This will be used to look up the
// distributor's implementation and connection information when Attempts for
// this Quest are Executed.
DistributorConfigName string `protobuf:"bytes,1,opt,name=distributor_config_name,json=distributorConfigName,proto3" json:"distributor_config_name,omitempty"`
// A JSON object which corresponds to the input parameters for the job.
// These will be passed in a distributor-specific way to the job. This is
// a freeform JSON object, and must parse as such, but otherwise doesn't
// necessarily have a server-enforced schema.
//
// The distributor implementation in DM will not use the contents of these
// to make any scheduling decisions.
//
// The distributor MAY choose to validate some schema for these parameters.
Parameters string `protobuf:"bytes,2,opt,name=parameters,proto3" json:"parameters,omitempty"`
// A JSON object which corresponds to the distributor-specific parameters
// for the job.
//
// The distributor defines and validates the schema for these, and will use
// the values herein to make decisions about how the job is run. It is up to
// the distributor whether these values are passed on to the job, and if so
// in what form.
DistributorParameters string `protobuf:"bytes,3,opt,name=distributor_parameters,json=distributorParameters,proto3" json:"distributor_parameters,omitempty"`
// This is metadata which doesn't affect the functionality of the payload,
// but does affect how DM interacts with the distributor when scheduling
// Executions.
Meta *Quest_Desc_Meta `protobuf:"bytes,4,opt,name=meta,proto3" json:"meta,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Quest_Desc) Reset() { *m = Quest_Desc{} }
func (m *Quest_Desc) String() string { return proto.CompactTextString(m) }
func (*Quest_Desc) ProtoMessage() {}
func (*Quest_Desc) Descriptor() ([]byte, []int) {
return fileDescriptor_0953f0083e32b1a3, []int{1, 1}
}
func (m *Quest_Desc) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Quest_Desc.Unmarshal(m, b)
}
func (m *Quest_Desc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Quest_Desc.Marshal(b, m, deterministic)
}
func (m *Quest_Desc) XXX_Merge(src proto.Message) {
xxx_messageInfo_Quest_Desc.Merge(m, src)
}
func (m *Quest_Desc) XXX_Size() int {
return xxx_messageInfo_Quest_Desc.Size(m)
}
func (m *Quest_Desc) XXX_DiscardUnknown() {
xxx_messageInfo_Quest_Desc.DiscardUnknown(m)
}
var xxx_messageInfo_Quest_Desc proto.InternalMessageInfo
func (m *Quest_Desc) GetDistributorConfigName() string {
if m != nil {
return m.DistributorConfigName
}
return ""
}
func (m *Quest_Desc) GetParameters() string {
if m != nil {
return m.Parameters
}
return ""
}
func (m *Quest_Desc) GetDistributorParameters() string {
if m != nil {
return m.DistributorParameters
}
return ""
}
func (m *Quest_Desc) GetMeta() *Quest_Desc_Meta {
if m != nil {
return m.Meta
}
return nil
}
type Quest_Desc_Meta struct {
// This names the user/service account for all Attempts on this quest. You
// must have permission to use this account when creating the Quest and/or
// Attempts.
AsAccount string `protobuf:"bytes,1,opt,name=as_account,json=asAccount,proto3" json:"as_account,omitempty"`
// This affects how DM will retry the job payload in various exceptional
// circumstances.
Retry *Quest_Desc_Meta_Retry `protobuf:"bytes,2,opt,name=retry,proto3" json:"retry,omitempty"`
Timeouts *Quest_Desc_Meta_Timeouts `protobuf:"bytes,3,opt,name=timeouts,proto3" json:"timeouts,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Quest_Desc_Meta) Reset() { *m = Quest_Desc_Meta{} }
func (m *Quest_Desc_Meta) String() string { return proto.CompactTextString(m) }
func (*Quest_Desc_Meta) ProtoMessage() {}
func (*Quest_Desc_Meta) Descriptor() ([]byte, []int) {
return fileDescriptor_0953f0083e32b1a3, []int{1, 1, 0}
}
func (m *Quest_Desc_Meta) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Quest_Desc_Meta.Unmarshal(m, b)
}
func (m *Quest_Desc_Meta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Quest_Desc_Meta.Marshal(b, m, deterministic)
}
func (m *Quest_Desc_Meta) XXX_Merge(src proto.Message) {
xxx_messageInfo_Quest_Desc_Meta.Merge(m, src)
}
func (m *Quest_Desc_Meta) XXX_Size() int {
return xxx_messageInfo_Quest_Desc_Meta.Size(m)
}
func (m *Quest_Desc_Meta) XXX_DiscardUnknown() {
xxx_messageInfo_Quest_Desc_Meta.DiscardUnknown(m)
}
var xxx_messageInfo_Quest_Desc_Meta proto.InternalMessageInfo
func (m *Quest_Desc_Meta) GetAsAccount() string {
if m != nil {
return m.AsAccount
}
return ""
}
func (m *Quest_Desc_Meta) GetRetry() *Quest_Desc_Meta_Retry {
if m != nil {
return m.Retry
}
return nil
}
func (m *Quest_Desc_Meta) GetTimeouts() *Quest_Desc_Meta_Timeouts {
if m != nil {
return m.Timeouts
}
return nil
}
// Retry specifies the number of times in a row that DM should re-Execute
// an Attempt due to the provided abnormal result.
//
// NOTE: The proto tag numbers for these MUST be aligned with the
// enumeration values of AbnormalFinish.Status!
type Quest_Desc_Meta_Retry struct {
// The number of times in a row to retry Executions which have an
// ABNORMAL_FINISHED status of FAILED.
Failed uint32 `protobuf:"varint,1,opt,name=failed,proto3" json:"failed,omitempty"`
// The number of times in a row to retry Executions which have an
// ABNORMAL_FINISHED status of CRASHED.
Crashed uint32 `protobuf:"varint,2,opt,name=crashed,proto3" json:"crashed,omitempty"`
// The number of times in a row to retry Executions which have an
// ABNORMAL_FINISHED status of EXPIRED.
Expired uint32 `protobuf:"varint,3,opt,name=expired,proto3" json:"expired,omitempty"`
// The number of times in a row to retry Executions which have an
// ABNORMAL_FINISHED status of TIMED_OUT.
TimedOut uint32 `protobuf:"varint,4,opt,name=timed_out,json=timedOut,proto3" json:"timed_out,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Quest_Desc_Meta_Retry) Reset() { *m = Quest_Desc_Meta_Retry{} }
func (m *Quest_Desc_Meta_Retry) String() string { return proto.CompactTextString(m) }
func (*Quest_Desc_Meta_Retry) ProtoMessage() {}
func (*Quest_Desc_Meta_Retry) Descriptor() ([]byte, []int) {
return fileDescriptor_0953f0083e32b1a3, []int{1, 1, 0, 0}
}
func (m *Quest_Desc_Meta_Retry) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Quest_Desc_Meta_Retry.Unmarshal(m, b)
}
func (m *Quest_Desc_Meta_Retry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Quest_Desc_Meta_Retry.Marshal(b, m, deterministic)
}
func (m *Quest_Desc_Meta_Retry) XXX_Merge(src proto.Message) {
xxx_messageInfo_Quest_Desc_Meta_Retry.Merge(m, src)
}
func (m *Quest_Desc_Meta_Retry) XXX_Size() int {
return xxx_messageInfo_Quest_Desc_Meta_Retry.Size(m)
}
func (m *Quest_Desc_Meta_Retry) XXX_DiscardUnknown() {
xxx_messageInfo_Quest_Desc_Meta_Retry.DiscardUnknown(m)
}
var xxx_messageInfo_Quest_Desc_Meta_Retry proto.InternalMessageInfo
func (m *Quest_Desc_Meta_Retry) GetFailed() uint32 {
if m != nil {
return m.Failed
}
return 0
}
func (m *Quest_Desc_Meta_Retry) GetCrashed() uint32 {
if m != nil {
return m.Crashed
}
return 0
}
func (m *Quest_Desc_Meta_Retry) GetExpired() uint32 {
if m != nil {
return m.Expired
}
return 0
}
func (m *Quest_Desc_Meta_Retry) GetTimedOut() uint32 {
if m != nil {
return m.TimedOut
}
return 0
}
// Timing describes the amount of time that Executions for this Quest
// should have, on the following timeline:
// Event: execution sent to distributor
// ^ "start" v
// Event: execution sends ActivateExecution
// ^ "run" v
// Event: execution sends halting RPC (either ActivateExecution or
// EnsureGraphData)
// ^ "stop" v
// Event: distributor gives execution result back to DM
//
// If the given timeout hits before the next event in the timeline, DM
// will mark the Execution as TIMED_OUT, and the appropriate retry policy
// will be applied.
//
// If a given timeout is unlimited, leave the duration unset or 0.
type Quest_Desc_Meta_Timeouts struct {
Start *duration.Duration `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"`
Run *duration.Duration `protobuf:"bytes,2,opt,name=run,proto3" json:"run,omitempty"`
Stop *duration.Duration `protobuf:"bytes,3,opt,name=stop,proto3" json:"stop,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Quest_Desc_Meta_Timeouts) Reset() { *m = Quest_Desc_Meta_Timeouts{} }
func (m *Quest_Desc_Meta_Timeouts) String() string { return proto.CompactTextString(m) }
func (*Quest_Desc_Meta_Timeouts) ProtoMessage() {}
func (*Quest_Desc_Meta_Timeouts) Descriptor() ([]byte, []int) {
return fileDescriptor_0953f0083e32b1a3, []int{1, 1, 0, 1}
}
func (m *Quest_Desc_Meta_Timeouts) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Quest_Desc_Meta_Timeouts.Unmarshal(m, b)
}
func (m *Quest_Desc_Meta_Timeouts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Quest_Desc_Meta_Timeouts.Marshal(b, m, deterministic)
}
func (m *Quest_Desc_Meta_Timeouts) XXX_Merge(src proto.Message) {
xxx_messageInfo_Quest_Desc_Meta_Timeouts.Merge(m, src)
}
func (m *Quest_Desc_Meta_Timeouts) XXX_Size() int {
return xxx_messageInfo_Quest_Desc_Meta_Timeouts.Size(m)
}
func (m *Quest_Desc_Meta_Timeouts) XXX_DiscardUnknown() {
xxx_messageInfo_Quest_Desc_Meta_Timeouts.DiscardUnknown(m)
}
var xxx_messageInfo_Quest_Desc_Meta_Timeouts proto.InternalMessageInfo
func (m *Quest_Desc_Meta_Timeouts) GetStart() *duration.Duration {
if m != nil {
return m.Start
}
return nil
}
func (m *Quest_Desc_Meta_Timeouts) GetRun() *duration.Duration {
if m != nil {
return m.Run
}
return nil
}
func (m *Quest_Desc_Meta_Timeouts) GetStop() *duration.Duration {
if m != nil {
return m.Stop
}
return nil
}
type Quest_TemplateSpec struct {
Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
Ref string `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"`
Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Quest_TemplateSpec) Reset() { *m = Quest_TemplateSpec{} }
func (m *Quest_TemplateSpec) String() string { return proto.CompactTextString(m) }
func (*Quest_TemplateSpec) ProtoMessage() {}
func (*Quest_TemplateSpec) Descriptor() ([]byte, []int) {
return fileDescriptor_0953f0083e32b1a3, []int{1, 2}
}
func (m *Quest_TemplateSpec) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Quest_TemplateSpec.Unmarshal(m, b)
}
func (m *Quest_TemplateSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Quest_TemplateSpec.Marshal(b, m, deterministic)
}
func (m *Quest_TemplateSpec) XXX_Merge(src proto.Message) {
xxx_messageInfo_Quest_TemplateSpec.Merge(m, src)
}
func (m *Quest_TemplateSpec) XXX_Size() int {
return xxx_messageInfo_Quest_TemplateSpec.Size(m)
}
func (m *Quest_TemplateSpec) XXX_DiscardUnknown() {
xxx_messageInfo_Quest_TemplateSpec.DiscardUnknown(m)
}
var xxx_messageInfo_Quest_TemplateSpec proto.InternalMessageInfo
func (m *Quest_TemplateSpec) GetProject() string {
if m != nil {
return m.Project
}
return ""
}
func (m *Quest_TemplateSpec) GetRef() string {
if m != nil {
return m.Ref
}
return ""
}
func (m *Quest_TemplateSpec) GetVersion() string {
if m != nil {
return m.Version
}
return ""
}
func (m *Quest_TemplateSpec) GetName() string {
if m != nil {
return m.Name
}
return ""
}
type Quest_Data struct {
Created *timestamp.Timestamp `protobuf:"bytes,1,opt,name=created,proto3" json:"created,omitempty"`
Desc *Quest_Desc `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty"`
BuiltBy []*Quest_TemplateSpec `protobuf:"bytes,3,rep,name=built_by,json=builtBy,proto3" json:"built_by,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Quest_Data) Reset() { *m = Quest_Data{} }
func (m *Quest_Data) String() string { return proto.CompactTextString(m) }
func (*Quest_Data) ProtoMessage() {}
func (*Quest_Data) Descriptor() ([]byte, []int) {
return fileDescriptor_0953f0083e32b1a3, []int{1, 3}
}
func (m *Quest_Data) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Quest_Data.Unmarshal(m, b)
}
func (m *Quest_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Quest_Data.Marshal(b, m, deterministic)
}
func (m *Quest_Data) XXX_Merge(src proto.Message) {
xxx_messageInfo_Quest_Data.Merge(m, src)
}
func (m *Quest_Data) XXX_Size() int {
return xxx_messageInfo_Quest_Data.Size(m)
}
func (m *Quest_Data) XXX_DiscardUnknown() {
xxx_messageInfo_Quest_Data.DiscardUnknown(m)
}
var xxx_messageInfo_Quest_Data proto.InternalMessageInfo
func (m *Quest_Data) GetCreated() *timestamp.Timestamp {
if m != nil {
return m.Created
}
return nil
}
func (m *Quest_Data) GetDesc() *Quest_Desc {
if m != nil {
return m.Desc
}
return nil
}
func (m *Quest_Data) GetBuiltBy() []*Quest_TemplateSpec {
if m != nil {
return m.BuiltBy
}
return nil
}
// JsonResult represents a free-form JSON object. It has a maximum size of
// 256KB normalized (no extra whitespace). DM will normalize incoming
// JSONObjects before recalculating their size.
type JsonResult struct {
// Guaranteed to be a JSON object `{...}` or the empty string (if this is part
// of a Partial result from e.g. a WalkGraph RPC).
Object string `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"`
// The length of data. If this message is non-nil, this will have a value even
// if object is empty (e.g. for a partial result). This is useful for query
// results where you either opt to not load the data (include.*.data ==
// false), or the response exceeds the size limit (so you can see how big the
// data would have been if the limit wasn't exceeded).
Size uint32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
// The timestamp of when this JsonResult's contents expire. If omitted, it
// should be assumed that the contents never expire.
Expiration *timestamp.Timestamp `protobuf:"bytes,3,opt,name=expiration,proto3" json:"expiration,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *JsonResult) Reset() { *m = JsonResult{} }
func (m *JsonResult) String() string { return proto.CompactTextString(m) }
func (*JsonResult) ProtoMessage() {}
func (*JsonResult) Descriptor() ([]byte, []int) {
return fileDescriptor_0953f0083e32b1a3, []int{2}
}
func (m *JsonResult) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_JsonResult.Unmarshal(m, b)
}
func (m *JsonResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_JsonResult.Marshal(b, m, deterministic)
}
func (m *JsonResult) XXX_Merge(src proto.Message) {
xxx_messageInfo_JsonResult.Merge(m, src)
}
func (m *JsonResult) XXX_Size() int {
return xxx_messageInfo_JsonResult.Size(m)
}
func (m *JsonResult) XXX_DiscardUnknown() {
xxx_messageInfo_JsonResult.DiscardUnknown(m)
}
var xxx_messageInfo_JsonResult proto.InternalMessageInfo
func (m *JsonResult) GetObject() string {
if m != nil {
return m.Object
}
return ""
}
func (m *JsonResult) GetSize() uint32 {
if m != nil {
return m.Size
}
return 0
}
func (m *JsonResult) GetExpiration() *timestamp.Timestamp {
if m != nil {
return m.Expiration
}
return nil
}
// Result holds either data OR abnormal finish information.
type Result struct {
Data *JsonResult `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
AbnormalFinish *AbnormalFinish `protobuf:"bytes,2,opt,name=abnormal_finish,json=abnormalFinish,proto3" json:"abnormal_finish,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Result) Reset() { *m = Result{} }
func (m *Result) String() string { return proto.CompactTextString(m) }
func (*Result) ProtoMessage() {}
func (*Result) Descriptor() ([]byte, []int) {
return fileDescriptor_0953f0083e32b1a3, []int{3}
}
func (m *Result) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Result.Unmarshal(m, b)
}
func (m *Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Result.Marshal(b, m, deterministic)
}
func (m *Result) XXX_Merge(src proto.Message) {
xxx_messageInfo_Result.Merge(m, src)
}
func (m *Result) XXX_Size() int {
return xxx_messageInfo_Result.Size(m)
}
func (m *Result) XXX_DiscardUnknown() {
xxx_messageInfo_Result.DiscardUnknown(m)
}
var xxx_messageInfo_Result proto.InternalMessageInfo
func (m *Result) GetData() *JsonResult {
if m != nil {
return m.Data
}
return nil
}
func (m *Result) GetAbnormalFinish() *AbnormalFinish {
if m != nil {
return m.AbnormalFinish
}
return nil
}
type Attempt struct {
Id *Attempt_ID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// DNE is set to true if this Attempt does not exist. None of the following
// fields are valid if this is set to true.
DNE bool `protobuf:"varint,2,opt,name=DNE,proto3" json:"DNE,omitempty"`
Data *Attempt_Data `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
// key is the `id` field of the Execution.ID
Executions map[uint32]*Execution `protobuf:"bytes,4,rep,name=executions,proto3" json:"executions,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
FwdDeps *AttemptList `protobuf:"bytes,5,opt,name=fwd_deps,json=fwdDeps,proto3" json:"fwd_deps,omitempty"`
BackDeps *AttemptList `protobuf:"bytes,6,opt,name=back_deps,json=backDeps,proto3" json:"back_deps,omitempty"`
// Partial values are true iff the request asked for AttemptData, Executions
// or Deps, but wasn't able to completely fill them. If Partial is omitted,
// it means that no partial data exists in this Attempt.
Partial *Attempt_Partial `protobuf:"bytes,16,opt,name=partial,proto3" json:"partial,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Attempt) Reset() { *m = Attempt{} }
func (m *Attempt) String() string { return proto.CompactTextString(m) }
func (*Attempt) ProtoMessage() {}
func (*Attempt) Descriptor() ([]byte, []int) {
return fileDescriptor_0953f0083e32b1a3, []int{4}
}
func (m *Attempt) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Attempt.Unmarshal(m, b)
}
func (m *Attempt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Attempt.Marshal(b, m, deterministic)
}
func (m *Attempt) XXX_Merge(src proto.Message) {
xxx_messageInfo_Attempt.Merge(m, src)
}
func (m *Attempt) XXX_Size() int {
return xxx_messageInfo_Attempt.Size(m)
}
func (m *Attempt) XXX_DiscardUnknown() {
xxx_messageInfo_Attempt.DiscardUnknown(m)
}
var xxx_messageInfo_Attempt proto.InternalMessageInfo
func (m *Attempt) GetId() *Attempt_ID {
if m != nil {
return m.Id
}
return nil
}
func (m *Attempt) GetDNE() bool {
if m != nil {
return m.DNE
}
return false
}
func (m *Attempt) GetData() *Attempt_Data {
if m != nil {
return m.Data
}