/
pipeline_spec.pb.go
7499 lines (6723 loc) · 321 KB
/
pipeline_spec.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.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.17.3
// source: pipeline_spec.proto
package pipelinespec
import (
status "google.golang.org/genproto/googleapis/rpc/status"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
durationpb "google.golang.org/protobuf/types/known/durationpb"
structpb "google.golang.org/protobuf/types/known/structpb"
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)
)
// The primitive types.
// Deprecated. Use [ParameterType.ParameterTypeEnum][] instead.
//
// Deprecated: Do not use.
type PrimitiveType_PrimitiveTypeEnum int32
const (
PrimitiveType_PRIMITIVE_TYPE_UNSPECIFIED PrimitiveType_PrimitiveTypeEnum = 0
PrimitiveType_INT PrimitiveType_PrimitiveTypeEnum = 1
PrimitiveType_DOUBLE PrimitiveType_PrimitiveTypeEnum = 2
PrimitiveType_STRING PrimitiveType_PrimitiveTypeEnum = 3
)
// Enum value maps for PrimitiveType_PrimitiveTypeEnum.
var (
PrimitiveType_PrimitiveTypeEnum_name = map[int32]string{
0: "PRIMITIVE_TYPE_UNSPECIFIED",
1: "INT",
2: "DOUBLE",
3: "STRING",
}
PrimitiveType_PrimitiveTypeEnum_value = map[string]int32{
"PRIMITIVE_TYPE_UNSPECIFIED": 0,
"INT": 1,
"DOUBLE": 2,
"STRING": 3,
}
)
func (x PrimitiveType_PrimitiveTypeEnum) Enum() *PrimitiveType_PrimitiveTypeEnum {
p := new(PrimitiveType_PrimitiveTypeEnum)
*p = x
return p
}
func (x PrimitiveType_PrimitiveTypeEnum) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (PrimitiveType_PrimitiveTypeEnum) Descriptor() protoreflect.EnumDescriptor {
return file_pipeline_spec_proto_enumTypes[0].Descriptor()
}
func (PrimitiveType_PrimitiveTypeEnum) Type() protoreflect.EnumType {
return &file_pipeline_spec_proto_enumTypes[0]
}
func (x PrimitiveType_PrimitiveTypeEnum) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use PrimitiveType_PrimitiveTypeEnum.Descriptor instead.
func (PrimitiveType_PrimitiveTypeEnum) EnumDescriptor() ([]byte, []int) {
return file_pipeline_spec_proto_rawDescGZIP(), []int{9, 0}
}
// The parameter types.
type ParameterType_ParameterTypeEnum int32
const (
// Indicates that the parameter type was not specified.
ParameterType_PARAMETER_TYPE_ENUM_UNSPECIFIED ParameterType_ParameterTypeEnum = 0
// Indicates that a parameter is a number that is stored in a field of type
// `double`.
ParameterType_NUMBER_DOUBLE ParameterType_ParameterTypeEnum = 1
// Indicates that a parameter is an integer stored in the `number_field`,
// which is of type `double`. NUMBER_INTEGER values must be within the range
// of JavaScript safe integers (-(2^53 - 1) to (2^53 - 1)). If you need to
// support integers outside the range of JavaScript safe integers, use the
// `STRING` parameter type to describe your parameter.
ParameterType_NUMBER_INTEGER ParameterType_ParameterTypeEnum = 2
// Indicates that a parameter is a string.
ParameterType_STRING ParameterType_ParameterTypeEnum = 3
// Indicates that a parameters is a boolean value.
ParameterType_BOOLEAN ParameterType_ParameterTypeEnum = 4
// Indicates that a parameter is a list of values. LIST parameters are
// serialized to JSON when passed as an input or output of a pipeline step.
ParameterType_LIST ParameterType_ParameterTypeEnum = 5
// Indicates that a parameter is a struct value; structs represent a data
// structure like a Python dictionary or a JSON object. STRUCT parameters
// are serialized to JSON when passed as an input or output of a pipeline
// step.
ParameterType_STRUCT ParameterType_ParameterTypeEnum = 6
// Indicates that a parameter is a TaskFinalStatus type; these types can only accept inputs
// specified by InputParameterSpec.task_final_status
ParameterType_TASK_FINAL_STATUS ParameterType_ParameterTypeEnum = 7
)
// Enum value maps for ParameterType_ParameterTypeEnum.
var (
ParameterType_ParameterTypeEnum_name = map[int32]string{
0: "PARAMETER_TYPE_ENUM_UNSPECIFIED",
1: "NUMBER_DOUBLE",
2: "NUMBER_INTEGER",
3: "STRING",
4: "BOOLEAN",
5: "LIST",
6: "STRUCT",
7: "TASK_FINAL_STATUS",
}
ParameterType_ParameterTypeEnum_value = map[string]int32{
"PARAMETER_TYPE_ENUM_UNSPECIFIED": 0,
"NUMBER_DOUBLE": 1,
"NUMBER_INTEGER": 2,
"STRING": 3,
"BOOLEAN": 4,
"LIST": 5,
"STRUCT": 6,
"TASK_FINAL_STATUS": 7,
}
)
func (x ParameterType_ParameterTypeEnum) Enum() *ParameterType_ParameterTypeEnum {
p := new(ParameterType_ParameterTypeEnum)
*p = x
return p
}
func (x ParameterType_ParameterTypeEnum) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ParameterType_ParameterTypeEnum) Descriptor() protoreflect.EnumDescriptor {
return file_pipeline_spec_proto_enumTypes[1].Descriptor()
}
func (ParameterType_ParameterTypeEnum) Type() protoreflect.EnumType {
return &file_pipeline_spec_proto_enumTypes[1]
}
func (x ParameterType_ParameterTypeEnum) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ParameterType_ParameterTypeEnum.Descriptor instead.
func (ParameterType_ParameterTypeEnum) EnumDescriptor() ([]byte, []int) {
return file_pipeline_spec_proto_rawDescGZIP(), []int{10, 0}
}
// An enum defines the trigger strategy of when the task will be ready to be
// triggered.
// ALL_UPSTREAM_TASKS_SUCCEEDED - all upstream tasks in succeeded state.
// ALL_UPSTREAM_TASKS_COMPLETED - all upstream tasks in any final state.
// (Note that CANCELLED is also a final state but job will not trigger new
// tasks when job is in CANCELLING state, so that the task with the trigger
// policy at ALL_UPSTREAM_TASKS_COMPLETED will not start when job
// cancellation is in progress.)
type PipelineTaskSpec_TriggerPolicy_TriggerStrategy int32
const (
// Unspecified. Behave the same as ALL_UPSTREAM_TASKS_SUCCEEDED.
PipelineTaskSpec_TriggerPolicy_TRIGGER_STRATEGY_UNSPECIFIED PipelineTaskSpec_TriggerPolicy_TriggerStrategy = 0
// Specifies that all upstream tasks are in succeeded state.
PipelineTaskSpec_TriggerPolicy_ALL_UPSTREAM_TASKS_SUCCEEDED PipelineTaskSpec_TriggerPolicy_TriggerStrategy = 1
// Specifies that all upstream tasks are in any final state.
PipelineTaskSpec_TriggerPolicy_ALL_UPSTREAM_TASKS_COMPLETED PipelineTaskSpec_TriggerPolicy_TriggerStrategy = 2
)
// Enum value maps for PipelineTaskSpec_TriggerPolicy_TriggerStrategy.
var (
PipelineTaskSpec_TriggerPolicy_TriggerStrategy_name = map[int32]string{
0: "TRIGGER_STRATEGY_UNSPECIFIED",
1: "ALL_UPSTREAM_TASKS_SUCCEEDED",
2: "ALL_UPSTREAM_TASKS_COMPLETED",
}
PipelineTaskSpec_TriggerPolicy_TriggerStrategy_value = map[string]int32{
"TRIGGER_STRATEGY_UNSPECIFIED": 0,
"ALL_UPSTREAM_TASKS_SUCCEEDED": 1,
"ALL_UPSTREAM_TASKS_COMPLETED": 2,
}
)
func (x PipelineTaskSpec_TriggerPolicy_TriggerStrategy) Enum() *PipelineTaskSpec_TriggerPolicy_TriggerStrategy {
p := new(PipelineTaskSpec_TriggerPolicy_TriggerStrategy)
*p = x
return p
}
func (x PipelineTaskSpec_TriggerPolicy_TriggerStrategy) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (PipelineTaskSpec_TriggerPolicy_TriggerStrategy) Descriptor() protoreflect.EnumDescriptor {
return file_pipeline_spec_proto_enumTypes[2].Descriptor()
}
func (PipelineTaskSpec_TriggerPolicy_TriggerStrategy) Type() protoreflect.EnumType {
return &file_pipeline_spec_proto_enumTypes[2]
}
func (x PipelineTaskSpec_TriggerPolicy_TriggerStrategy) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use PipelineTaskSpec_TriggerPolicy_TriggerStrategy.Descriptor instead.
func (PipelineTaskSpec_TriggerPolicy_TriggerStrategy) EnumDescriptor() ([]byte, []int) {
return file_pipeline_spec_proto_rawDescGZIP(), []int{11, 1, 0}
}
type PipelineStateEnum_PipelineTaskState int32
const (
PipelineStateEnum_TASK_STATE_UNSPECIFIED PipelineStateEnum_PipelineTaskState = 0
PipelineStateEnum_PENDING PipelineStateEnum_PipelineTaskState = 1
PipelineStateEnum_RUNNING_DRIVER PipelineStateEnum_PipelineTaskState = 2
PipelineStateEnum_DRIVER_SUCCEEDED PipelineStateEnum_PipelineTaskState = 3
PipelineStateEnum_RUNNING_EXECUTOR PipelineStateEnum_PipelineTaskState = 4
PipelineStateEnum_SUCCEEDED PipelineStateEnum_PipelineTaskState = 5
PipelineStateEnum_CANCEL_PENDING PipelineStateEnum_PipelineTaskState = 6
PipelineStateEnum_CANCELLING PipelineStateEnum_PipelineTaskState = 7
PipelineStateEnum_CANCELLED PipelineStateEnum_PipelineTaskState = 8
PipelineStateEnum_FAILED PipelineStateEnum_PipelineTaskState = 9
// Indicates that the task is skipped to run due to a cache hit.
PipelineStateEnum_SKIPPED PipelineStateEnum_PipelineTaskState = 10
// Indicates that the task was just populated to the DB but not ready to
// be scheduled. Once job handler determined the task being ready to
// be scheduled, the task state will change to PENDING. The state
// transition is depicted below:
// * QUEUED(not ready to run) --> PENDING(ready to run) --> RUNNING
PipelineStateEnum_QUEUED PipelineStateEnum_PipelineTaskState = 11
// Indicates that the task is not triggered based on the
// [PipelineTaskSpec.TriggerPolicy.condition][] config.
PipelineStateEnum_NOT_TRIGGERED PipelineStateEnum_PipelineTaskState = 12
// Indicates that the tasks will no longer be schedulable. Usually a task
// was set to this state because its all upstream tasks are in final state
// but the [PipelineTaskSpec.TriggerPolicy.strategy][] disallows the task to
// be triggered.
// The difference between `NOT_TRIGGERED` is that `UNSCHEDULABLE` must met
// [PipelineTaskSpec.TriggerPolicy.strategy][], but must not met the
// [PipelineTaskSpec.TriggerPolicy.condition][].
PipelineStateEnum_UNSCHEDULABLE PipelineStateEnum_PipelineTaskState = 13
)
// Enum value maps for PipelineStateEnum_PipelineTaskState.
var (
PipelineStateEnum_PipelineTaskState_name = map[int32]string{
0: "TASK_STATE_UNSPECIFIED",
1: "PENDING",
2: "RUNNING_DRIVER",
3: "DRIVER_SUCCEEDED",
4: "RUNNING_EXECUTOR",
5: "SUCCEEDED",
6: "CANCEL_PENDING",
7: "CANCELLING",
8: "CANCELLED",
9: "FAILED",
10: "SKIPPED",
11: "QUEUED",
12: "NOT_TRIGGERED",
13: "UNSCHEDULABLE",
}
PipelineStateEnum_PipelineTaskState_value = map[string]int32{
"TASK_STATE_UNSPECIFIED": 0,
"PENDING": 1,
"RUNNING_DRIVER": 2,
"DRIVER_SUCCEEDED": 3,
"RUNNING_EXECUTOR": 4,
"SUCCEEDED": 5,
"CANCEL_PENDING": 6,
"CANCELLING": 7,
"CANCELLED": 8,
"FAILED": 9,
"SKIPPED": 10,
"QUEUED": 11,
"NOT_TRIGGERED": 12,
"UNSCHEDULABLE": 13,
}
)
func (x PipelineStateEnum_PipelineTaskState) Enum() *PipelineStateEnum_PipelineTaskState {
p := new(PipelineStateEnum_PipelineTaskState)
*p = x
return p
}
func (x PipelineStateEnum_PipelineTaskState) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (PipelineStateEnum_PipelineTaskState) Descriptor() protoreflect.EnumDescriptor {
return file_pipeline_spec_proto_enumTypes[3].Descriptor()
}
func (PipelineStateEnum_PipelineTaskState) Type() protoreflect.EnumType {
return &file_pipeline_spec_proto_enumTypes[3]
}
func (x PipelineStateEnum_PipelineTaskState) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use PipelineStateEnum_PipelineTaskState.Descriptor instead.
func (PipelineStateEnum_PipelineTaskState) EnumDescriptor() ([]byte, []int) {
return file_pipeline_spec_proto_rawDescGZIP(), []int{26, 0}
}
// The spec of a pipeline job.
type PipelineJob struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Name of the job.
// User friendly display name
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Definition of the pipeline that is being executed.
PipelineSpec *structpb.Struct `protobuf:"bytes,7,opt,name=pipeline_spec,json=pipelineSpec,proto3" json:"pipeline_spec,omitempty"`
// The labels with user-defined metadata to organize PipelineJob.
Labels map[string]string `protobuf:"bytes,11,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Runtime config of the pipeline.
RuntimeConfig *PipelineJob_RuntimeConfig `protobuf:"bytes,12,opt,name=runtime_config,json=runtimeConfig,proto3" json:"runtime_config,omitempty"`
}
func (x *PipelineJob) Reset() {
*x = PipelineJob{}
if protoimpl.UnsafeEnabled {
mi := &file_pipeline_spec_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PipelineJob) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PipelineJob) ProtoMessage() {}
func (x *PipelineJob) ProtoReflect() protoreflect.Message {
mi := &file_pipeline_spec_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 PipelineJob.ProtoReflect.Descriptor instead.
func (*PipelineJob) Descriptor() ([]byte, []int) {
return file_pipeline_spec_proto_rawDescGZIP(), []int{0}
}
func (x *PipelineJob) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *PipelineJob) GetDisplayName() string {
if x != nil {
return x.DisplayName
}
return ""
}
func (x *PipelineJob) GetPipelineSpec() *structpb.Struct {
if x != nil {
return x.PipelineSpec
}
return nil
}
func (x *PipelineJob) GetLabels() map[string]string {
if x != nil {
return x.Labels
}
return nil
}
func (x *PipelineJob) GetRuntimeConfig() *PipelineJob_RuntimeConfig {
if x != nil {
return x.RuntimeConfig
}
return nil
}
// The spec of a pipeline.
type PipelineSpec struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The metadata of the pipeline.
PipelineInfo *PipelineInfo `protobuf:"bytes,1,opt,name=pipeline_info,json=pipelineInfo,proto3" json:"pipeline_info,omitempty"`
// The deployment config of the pipeline.
// The deployment config can be extended to provide platform specific configs.
DeploymentSpec *structpb.Struct `protobuf:"bytes,7,opt,name=deployment_spec,json=deploymentSpec,proto3" json:"deployment_spec,omitempty"`
// The version of the sdk, which compiles the spec.
SdkVersion string `protobuf:"bytes,4,opt,name=sdk_version,json=sdkVersion,proto3" json:"sdk_version,omitempty"`
// The version of the schema.
SchemaVersion string `protobuf:"bytes,5,opt,name=schema_version,json=schemaVersion,proto3" json:"schema_version,omitempty"`
// The map of name to definition of all components used in this pipeline.
Components map[string]*ComponentSpec `protobuf:"bytes,8,rep,name=components,proto3" json:"components,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// The definition of the main pipeline. Execution of the pipeline is
// completed upon the completion of this component.
Root *ComponentSpec `protobuf:"bytes,9,opt,name=root,proto3" json:"root,omitempty"`
// Optional field. The default root output directory of the pipeline.
DefaultPipelineRoot string `protobuf:"bytes,10,opt,name=default_pipeline_root,json=defaultPipelineRoot,proto3" json:"default_pipeline_root,omitempty"`
}
func (x *PipelineSpec) Reset() {
*x = PipelineSpec{}
if protoimpl.UnsafeEnabled {
mi := &file_pipeline_spec_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PipelineSpec) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PipelineSpec) ProtoMessage() {}
func (x *PipelineSpec) ProtoReflect() protoreflect.Message {
mi := &file_pipeline_spec_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 PipelineSpec.ProtoReflect.Descriptor instead.
func (*PipelineSpec) Descriptor() ([]byte, []int) {
return file_pipeline_spec_proto_rawDescGZIP(), []int{1}
}
func (x *PipelineSpec) GetPipelineInfo() *PipelineInfo {
if x != nil {
return x.PipelineInfo
}
return nil
}
func (x *PipelineSpec) GetDeploymentSpec() *structpb.Struct {
if x != nil {
return x.DeploymentSpec
}
return nil
}
func (x *PipelineSpec) GetSdkVersion() string {
if x != nil {
return x.SdkVersion
}
return ""
}
func (x *PipelineSpec) GetSchemaVersion() string {
if x != nil {
return x.SchemaVersion
}
return ""
}
func (x *PipelineSpec) GetComponents() map[string]*ComponentSpec {
if x != nil {
return x.Components
}
return nil
}
func (x *PipelineSpec) GetRoot() *ComponentSpec {
if x != nil {
return x.Root
}
return nil
}
func (x *PipelineSpec) GetDefaultPipelineRoot() string {
if x != nil {
return x.DefaultPipelineRoot
}
return ""
}
// Definition of a component.
type ComponentSpec struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Definition of the input parameters and artifacts of the component.
InputDefinitions *ComponentInputsSpec `protobuf:"bytes,1,opt,name=input_definitions,json=inputDefinitions,proto3" json:"input_definitions,omitempty"`
// Definition of the output parameters and artifacts of the component.
OutputDefinitions *ComponentOutputsSpec `protobuf:"bytes,2,opt,name=output_definitions,json=outputDefinitions,proto3" json:"output_definitions,omitempty"`
// Either a DAG or a single execution.
//
// Types that are assignable to Implementation:
// *ComponentSpec_Dag
// *ComponentSpec_ExecutorLabel
Implementation isComponentSpec_Implementation `protobuf_oneof:"implementation"`
}
func (x *ComponentSpec) Reset() {
*x = ComponentSpec{}
if protoimpl.UnsafeEnabled {
mi := &file_pipeline_spec_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ComponentSpec) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ComponentSpec) ProtoMessage() {}
func (x *ComponentSpec) ProtoReflect() protoreflect.Message {
mi := &file_pipeline_spec_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 ComponentSpec.ProtoReflect.Descriptor instead.
func (*ComponentSpec) Descriptor() ([]byte, []int) {
return file_pipeline_spec_proto_rawDescGZIP(), []int{2}
}
func (x *ComponentSpec) GetInputDefinitions() *ComponentInputsSpec {
if x != nil {
return x.InputDefinitions
}
return nil
}
func (x *ComponentSpec) GetOutputDefinitions() *ComponentOutputsSpec {
if x != nil {
return x.OutputDefinitions
}
return nil
}
func (m *ComponentSpec) GetImplementation() isComponentSpec_Implementation {
if m != nil {
return m.Implementation
}
return nil
}
func (x *ComponentSpec) GetDag() *DagSpec {
if x, ok := x.GetImplementation().(*ComponentSpec_Dag); ok {
return x.Dag
}
return nil
}
func (x *ComponentSpec) GetExecutorLabel() string {
if x, ok := x.GetImplementation().(*ComponentSpec_ExecutorLabel); ok {
return x.ExecutorLabel
}
return ""
}
type isComponentSpec_Implementation interface {
isComponentSpec_Implementation()
}
type ComponentSpec_Dag struct {
Dag *DagSpec `protobuf:"bytes,3,opt,name=dag,proto3,oneof"`
}
type ComponentSpec_ExecutorLabel struct {
ExecutorLabel string `protobuf:"bytes,4,opt,name=executor_label,json=executorLabel,proto3,oneof"`
}
func (*ComponentSpec_Dag) isComponentSpec_Implementation() {}
func (*ComponentSpec_ExecutorLabel) isComponentSpec_Implementation() {}
// A DAG contains multiple tasks.
type DagSpec struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The tasks inside the dag.
Tasks map[string]*PipelineTaskSpec `protobuf:"bytes,1,rep,name=tasks,proto3" json:"tasks,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Defines how the outputs of the dag are linked to the sub tasks.
Outputs *DagOutputsSpec `protobuf:"bytes,2,opt,name=outputs,proto3" json:"outputs,omitempty"`
}
func (x *DagSpec) Reset() {
*x = DagSpec{}
if protoimpl.UnsafeEnabled {
mi := &file_pipeline_spec_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DagSpec) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DagSpec) ProtoMessage() {}
func (x *DagSpec) ProtoReflect() protoreflect.Message {
mi := &file_pipeline_spec_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 DagSpec.ProtoReflect.Descriptor instead.
func (*DagSpec) Descriptor() ([]byte, []int) {
return file_pipeline_spec_proto_rawDescGZIP(), []int{3}
}
func (x *DagSpec) GetTasks() map[string]*PipelineTaskSpec {
if x != nil {
return x.Tasks
}
return nil
}
func (x *DagSpec) GetOutputs() *DagOutputsSpec {
if x != nil {
return x.Outputs
}
return nil
}
// Definition of the output artifacts and parameters of the DAG component.
type DagOutputsSpec struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Name to the output artifact channel of the DAG.
Artifacts map[string]*DagOutputsSpec_DagOutputArtifactSpec `protobuf:"bytes,1,rep,name=artifacts,proto3" json:"artifacts,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// The name to the output parameter.
Parameters map[string]*DagOutputsSpec_DagOutputParameterSpec `protobuf:"bytes,2,rep,name=parameters,proto3" json:"parameters,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *DagOutputsSpec) Reset() {
*x = DagOutputsSpec{}
if protoimpl.UnsafeEnabled {
mi := &file_pipeline_spec_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DagOutputsSpec) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DagOutputsSpec) ProtoMessage() {}
func (x *DagOutputsSpec) ProtoReflect() protoreflect.Message {
mi := &file_pipeline_spec_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 DagOutputsSpec.ProtoReflect.Descriptor instead.
func (*DagOutputsSpec) Descriptor() ([]byte, []int) {
return file_pipeline_spec_proto_rawDescGZIP(), []int{4}
}
func (x *DagOutputsSpec) GetArtifacts() map[string]*DagOutputsSpec_DagOutputArtifactSpec {
if x != nil {
return x.Artifacts
}
return nil
}
func (x *DagOutputsSpec) GetParameters() map[string]*DagOutputsSpec_DagOutputParameterSpec {
if x != nil {
return x.Parameters
}
return nil
}
// Definition specification of the component input parameters and artifacts.
type ComponentInputsSpec struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Name to artifact input.
Artifacts map[string]*ComponentInputsSpec_ArtifactSpec `protobuf:"bytes,1,rep,name=artifacts,proto3" json:"artifacts,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Name to parameter input.
Parameters map[string]*ComponentInputsSpec_ParameterSpec `protobuf:"bytes,2,rep,name=parameters,proto3" json:"parameters,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *ComponentInputsSpec) Reset() {
*x = ComponentInputsSpec{}
if protoimpl.UnsafeEnabled {
mi := &file_pipeline_spec_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ComponentInputsSpec) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ComponentInputsSpec) ProtoMessage() {}
func (x *ComponentInputsSpec) ProtoReflect() protoreflect.Message {
mi := &file_pipeline_spec_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 ComponentInputsSpec.ProtoReflect.Descriptor instead.
func (*ComponentInputsSpec) Descriptor() ([]byte, []int) {
return file_pipeline_spec_proto_rawDescGZIP(), []int{5}
}
func (x *ComponentInputsSpec) GetArtifacts() map[string]*ComponentInputsSpec_ArtifactSpec {
if x != nil {
return x.Artifacts
}
return nil
}
func (x *ComponentInputsSpec) GetParameters() map[string]*ComponentInputsSpec_ParameterSpec {
if x != nil {
return x.Parameters
}
return nil
}
// Definition specification of the component output parameters and artifacts.
type ComponentOutputsSpec struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Name to artifact output.
Artifacts map[string]*ComponentOutputsSpec_ArtifactSpec `protobuf:"bytes,1,rep,name=artifacts,proto3" json:"artifacts,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Name to parameter output.
Parameters map[string]*ComponentOutputsSpec_ParameterSpec `protobuf:"bytes,2,rep,name=parameters,proto3" json:"parameters,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *ComponentOutputsSpec) Reset() {
*x = ComponentOutputsSpec{}
if protoimpl.UnsafeEnabled {
mi := &file_pipeline_spec_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ComponentOutputsSpec) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ComponentOutputsSpec) ProtoMessage() {}
func (x *ComponentOutputsSpec) ProtoReflect() protoreflect.Message {
mi := &file_pipeline_spec_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 ComponentOutputsSpec.ProtoReflect.Descriptor instead.
func (*ComponentOutputsSpec) Descriptor() ([]byte, []int) {
return file_pipeline_spec_proto_rawDescGZIP(), []int{6}
}
func (x *ComponentOutputsSpec) GetArtifacts() map[string]*ComponentOutputsSpec_ArtifactSpec {
if x != nil {
return x.Artifacts
}
return nil
}
func (x *ComponentOutputsSpec) GetParameters() map[string]*ComponentOutputsSpec_ParameterSpec {
if x != nil {
return x.Parameters
}
return nil
}
// The spec of task inputs.
type TaskInputsSpec struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// A map of input parameters which are small values, stored by the system and
// can be queriable.
Parameters map[string]*TaskInputsSpec_InputParameterSpec `protobuf:"bytes,1,rep,name=parameters,proto3" json:"parameters,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// A map of input artifacts.
Artifacts map[string]*TaskInputsSpec_InputArtifactSpec `protobuf:"bytes,2,rep,name=artifacts,proto3" json:"artifacts,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *TaskInputsSpec) Reset() {
*x = TaskInputsSpec{}
if protoimpl.UnsafeEnabled {
mi := &file_pipeline_spec_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TaskInputsSpec) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TaskInputsSpec) ProtoMessage() {}
func (x *TaskInputsSpec) ProtoReflect() protoreflect.Message {
mi := &file_pipeline_spec_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 TaskInputsSpec.ProtoReflect.Descriptor instead.
func (*TaskInputsSpec) Descriptor() ([]byte, []int) {
return file_pipeline_spec_proto_rawDescGZIP(), []int{7}
}
func (x *TaskInputsSpec) GetParameters() map[string]*TaskInputsSpec_InputParameterSpec {
if x != nil {
return x.Parameters
}
return nil
}
func (x *TaskInputsSpec) GetArtifacts() map[string]*TaskInputsSpec_InputArtifactSpec {
if x != nil {
return x.Artifacts
}
return nil
}
// The spec of task outputs.
type TaskOutputsSpec struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// A map of output parameters which are small values, stored by the system and
// can be queriable. The output key is used
// by [TaskInputsSpec.InputParameterSpec][] of the downstream task to specify
// the data dependency. The same key will also be used by
// [ExecutorInput.Inputs][] to reference the output parameter.
Parameters map[string]*TaskOutputsSpec_OutputParameterSpec `protobuf:"bytes,1,rep,name=parameters,proto3" json:"parameters,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// A map of output artifacts. Keyed by output key. The output key is used
// by [TaskInputsSpec.InputArtifactSpec][] of the downstream task to specify
// the data dependency. The same key will also be used by
// [ExecutorInput.Inputs][] to reference the output artifact.
Artifacts map[string]*TaskOutputsSpec_OutputArtifactSpec `protobuf:"bytes,2,rep,name=artifacts,proto3" json:"artifacts,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *TaskOutputsSpec) Reset() {
*x = TaskOutputsSpec{}
if protoimpl.UnsafeEnabled {
mi := &file_pipeline_spec_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TaskOutputsSpec) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TaskOutputsSpec) ProtoMessage() {}
func (x *TaskOutputsSpec) ProtoReflect() protoreflect.Message {
mi := &file_pipeline_spec_proto_msgTypes[8]
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 TaskOutputsSpec.ProtoReflect.Descriptor instead.
func (*TaskOutputsSpec) Descriptor() ([]byte, []int) {
return file_pipeline_spec_proto_rawDescGZIP(), []int{8}
}
func (x *TaskOutputsSpec) GetParameters() map[string]*TaskOutputsSpec_OutputParameterSpec {
if x != nil {
return x.Parameters
}
return nil
}
func (x *TaskOutputsSpec) GetArtifacts() map[string]*TaskOutputsSpec_OutputArtifactSpec {
if x != nil {
return x.Artifacts
}
return nil
}
// Represent primitive types. The wrapper is needed to give a namespace of
// enum value so we don't need add `PRIMITIVE_TYPE_` prefix of each enum value.
//
// Deprecated: Do not use.
type PrimitiveType struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *PrimitiveType) Reset() {
*x = PrimitiveType{}
if protoimpl.UnsafeEnabled {
mi := &file_pipeline_spec_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PrimitiveType) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PrimitiveType) ProtoMessage() {}
func (x *PrimitiveType) ProtoReflect() protoreflect.Message {
mi := &file_pipeline_spec_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms