-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
workflow_templates.pb.go
executable file
·3465 lines (3156 loc) · 157 KB
/
workflow_templates.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
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.32.0
// protoc v4.25.2
// source: google/cloud/dataproc/v1/workflow_templates.proto
package dataprocpb
import (
context "context"
reflect "reflect"
sync "sync"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
durationpb "google.golang.org/protobuf/types/known/durationpb"
emptypb "google.golang.org/protobuf/types/known/emptypb"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
)
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 operation state.
type WorkflowMetadata_State int32
const (
// Unused.
WorkflowMetadata_UNKNOWN WorkflowMetadata_State = 0
// The operation has been created.
WorkflowMetadata_PENDING WorkflowMetadata_State = 1
// The operation is running.
WorkflowMetadata_RUNNING WorkflowMetadata_State = 2
// The operation is done; either cancelled or completed.
WorkflowMetadata_DONE WorkflowMetadata_State = 3
)
// Enum value maps for WorkflowMetadata_State.
var (
WorkflowMetadata_State_name = map[int32]string{
0: "UNKNOWN",
1: "PENDING",
2: "RUNNING",
3: "DONE",
}
WorkflowMetadata_State_value = map[string]int32{
"UNKNOWN": 0,
"PENDING": 1,
"RUNNING": 2,
"DONE": 3,
}
)
func (x WorkflowMetadata_State) Enum() *WorkflowMetadata_State {
p := new(WorkflowMetadata_State)
*p = x
return p
}
func (x WorkflowMetadata_State) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (WorkflowMetadata_State) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_dataproc_v1_workflow_templates_proto_enumTypes[0].Descriptor()
}
func (WorkflowMetadata_State) Type() protoreflect.EnumType {
return &file_google_cloud_dataproc_v1_workflow_templates_proto_enumTypes[0]
}
func (x WorkflowMetadata_State) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use WorkflowMetadata_State.Descriptor instead.
func (WorkflowMetadata_State) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_dataproc_v1_workflow_templates_proto_rawDescGZIP(), []int{9, 0}
}
// The workflow node state.
type WorkflowNode_NodeState int32
const (
// State is unspecified.
WorkflowNode_NODE_STATE_UNSPECIFIED WorkflowNode_NodeState = 0
// The node is awaiting prerequisite node to finish.
WorkflowNode_BLOCKED WorkflowNode_NodeState = 1
// The node is runnable but not running.
WorkflowNode_RUNNABLE WorkflowNode_NodeState = 2
// The node is running.
WorkflowNode_RUNNING WorkflowNode_NodeState = 3
// The node completed successfully.
WorkflowNode_COMPLETED WorkflowNode_NodeState = 4
// The node failed. A node can be marked FAILED because
// its ancestor or peer failed.
WorkflowNode_FAILED WorkflowNode_NodeState = 5
)
// Enum value maps for WorkflowNode_NodeState.
var (
WorkflowNode_NodeState_name = map[int32]string{
0: "NODE_STATE_UNSPECIFIED",
1: "BLOCKED",
2: "RUNNABLE",
3: "RUNNING",
4: "COMPLETED",
5: "FAILED",
}
WorkflowNode_NodeState_value = map[string]int32{
"NODE_STATE_UNSPECIFIED": 0,
"BLOCKED": 1,
"RUNNABLE": 2,
"RUNNING": 3,
"COMPLETED": 4,
"FAILED": 5,
}
)
func (x WorkflowNode_NodeState) Enum() *WorkflowNode_NodeState {
p := new(WorkflowNode_NodeState)
*p = x
return p
}
func (x WorkflowNode_NodeState) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (WorkflowNode_NodeState) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_dataproc_v1_workflow_templates_proto_enumTypes[1].Descriptor()
}
func (WorkflowNode_NodeState) Type() protoreflect.EnumType {
return &file_google_cloud_dataproc_v1_workflow_templates_proto_enumTypes[1]
}
func (x WorkflowNode_NodeState) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use WorkflowNode_NodeState.Descriptor instead.
func (WorkflowNode_NodeState) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_dataproc_v1_workflow_templates_proto_rawDescGZIP(), []int{12, 0}
}
// A Dataproc workflow template resource.
type WorkflowTemplate struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
// Output only. The resource name of the workflow template, as described
// in https://cloud.google.com/apis/design/resource_names.
//
// - For `projects.regions.workflowTemplates`, the resource name of the
// template has the following format:
// `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
//
// - For `projects.locations.workflowTemplates`, the resource name of the
// template has the following format:
// `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. Used to perform a consistent read-modify-write.
//
// This field should be left blank for a `CreateWorkflowTemplate` request. It
// is required for an `UpdateWorkflowTemplate` request, and must match the
// current server version. A typical update template flow would fetch the
// current template with a `GetWorkflowTemplate` request, which will return
// the current template with the `version` field filled in with the
// current server version. The user updates other fields in the template,
// then returns it as part of the `UpdateWorkflowTemplate` request.
Version int32 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"`
// Output only. The time template was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The time template was last updated.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Optional. The labels to associate with this template. These labels
// will be propagated to all jobs and clusters created by the workflow
// instance.
//
// Label **keys** must contain 1 to 63 characters, and must conform to
// [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
//
// Label **values** may be empty, but, if present, must contain 1 to 63
// characters, and must conform to
// [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
//
// No more than 32 labels can be associated with a template.
Labels map[string]string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Required. WorkflowTemplate scheduling information.
Placement *WorkflowTemplatePlacement `protobuf:"bytes,7,opt,name=placement,proto3" json:"placement,omitempty"`
// Required. The Directed Acyclic Graph of Jobs to submit.
Jobs []*OrderedJob `protobuf:"bytes,8,rep,name=jobs,proto3" json:"jobs,omitempty"`
// Optional. Template parameters whose values are substituted into the
// template. Values for parameters must be provided when the template is
// instantiated.
Parameters []*TemplateParameter `protobuf:"bytes,9,rep,name=parameters,proto3" json:"parameters,omitempty"`
// Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
// [JSON representation of
// duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
// The timeout duration must be from 10 minutes ("600s") to 24 hours
// ("86400s"). The timer begins when the first job is submitted. If the
// workflow is running at the end of the timeout period, any remaining jobs
// are cancelled, the workflow is ended, and if the workflow was running on a
// [managed
// cluster](/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
// the cluster is deleted.
DagTimeout *durationpb.Duration `protobuf:"bytes,10,opt,name=dag_timeout,json=dagTimeout,proto3" json:"dag_timeout,omitempty"`
}
func (x *WorkflowTemplate) Reset() {
*x = WorkflowTemplate{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dataproc_v1_workflow_templates_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *WorkflowTemplate) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*WorkflowTemplate) ProtoMessage() {}
func (x *WorkflowTemplate) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dataproc_v1_workflow_templates_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 WorkflowTemplate.ProtoReflect.Descriptor instead.
func (*WorkflowTemplate) Descriptor() ([]byte, []int) {
return file_google_cloud_dataproc_v1_workflow_templates_proto_rawDescGZIP(), []int{0}
}
func (x *WorkflowTemplate) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *WorkflowTemplate) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *WorkflowTemplate) GetVersion() int32 {
if x != nil {
return x.Version
}
return 0
}
func (x *WorkflowTemplate) GetCreateTime() *timestamppb.Timestamp {
if x != nil {
return x.CreateTime
}
return nil
}
func (x *WorkflowTemplate) GetUpdateTime() *timestamppb.Timestamp {
if x != nil {
return x.UpdateTime
}
return nil
}
func (x *WorkflowTemplate) GetLabels() map[string]string {
if x != nil {
return x.Labels
}
return nil
}
func (x *WorkflowTemplate) GetPlacement() *WorkflowTemplatePlacement {
if x != nil {
return x.Placement
}
return nil
}
func (x *WorkflowTemplate) GetJobs() []*OrderedJob {
if x != nil {
return x.Jobs
}
return nil
}
func (x *WorkflowTemplate) GetParameters() []*TemplateParameter {
if x != nil {
return x.Parameters
}
return nil
}
func (x *WorkflowTemplate) GetDagTimeout() *durationpb.Duration {
if x != nil {
return x.DagTimeout
}
return nil
}
// Specifies workflow execution target.
//
// Either `managed_cluster` or `cluster_selector` is required.
type WorkflowTemplatePlacement struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. Specifies where workflow executes; either on a managed
// cluster or an existing cluster chosen by labels.
//
// Types that are assignable to Placement:
//
// *WorkflowTemplatePlacement_ManagedCluster
// *WorkflowTemplatePlacement_ClusterSelector
Placement isWorkflowTemplatePlacement_Placement `protobuf_oneof:"placement"`
}
func (x *WorkflowTemplatePlacement) Reset() {
*x = WorkflowTemplatePlacement{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dataproc_v1_workflow_templates_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *WorkflowTemplatePlacement) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*WorkflowTemplatePlacement) ProtoMessage() {}
func (x *WorkflowTemplatePlacement) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dataproc_v1_workflow_templates_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 WorkflowTemplatePlacement.ProtoReflect.Descriptor instead.
func (*WorkflowTemplatePlacement) Descriptor() ([]byte, []int) {
return file_google_cloud_dataproc_v1_workflow_templates_proto_rawDescGZIP(), []int{1}
}
func (m *WorkflowTemplatePlacement) GetPlacement() isWorkflowTemplatePlacement_Placement {
if m != nil {
return m.Placement
}
return nil
}
func (x *WorkflowTemplatePlacement) GetManagedCluster() *ManagedCluster {
if x, ok := x.GetPlacement().(*WorkflowTemplatePlacement_ManagedCluster); ok {
return x.ManagedCluster
}
return nil
}
func (x *WorkflowTemplatePlacement) GetClusterSelector() *ClusterSelector {
if x, ok := x.GetPlacement().(*WorkflowTemplatePlacement_ClusterSelector); ok {
return x.ClusterSelector
}
return nil
}
type isWorkflowTemplatePlacement_Placement interface {
isWorkflowTemplatePlacement_Placement()
}
type WorkflowTemplatePlacement_ManagedCluster struct {
// A cluster that is managed by the workflow.
ManagedCluster *ManagedCluster `protobuf:"bytes,1,opt,name=managed_cluster,json=managedCluster,proto3,oneof"`
}
type WorkflowTemplatePlacement_ClusterSelector struct {
// Optional. A selector that chooses target cluster for jobs based
// on metadata.
//
// The selector is evaluated at the time each job is submitted.
ClusterSelector *ClusterSelector `protobuf:"bytes,2,opt,name=cluster_selector,json=clusterSelector,proto3,oneof"`
}
func (*WorkflowTemplatePlacement_ManagedCluster) isWorkflowTemplatePlacement_Placement() {}
func (*WorkflowTemplatePlacement_ClusterSelector) isWorkflowTemplatePlacement_Placement() {}
// Cluster that is managed by the workflow.
type ManagedCluster struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The cluster name prefix. A unique cluster name will be formed by
// appending a random suffix.
//
// The name must contain only lower-case letters (a-z), numbers (0-9),
// and hyphens (-). Must begin with a letter. Cannot begin or end with
// hyphen. Must consist of between 2 and 35 characters.
ClusterName string `protobuf:"bytes,2,opt,name=cluster_name,json=clusterName,proto3" json:"cluster_name,omitempty"`
// Required. The cluster configuration.
Config *ClusterConfig `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"`
// Optional. The labels to associate with this cluster.
//
// Label keys must be between 1 and 63 characters long, and must conform to
// the following PCRE regular expression:
// [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
//
// Label values must be between 1 and 63 characters long, and must conform to
// the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
//
// No more than 32 labels can be associated with a given cluster.
Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *ManagedCluster) Reset() {
*x = ManagedCluster{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dataproc_v1_workflow_templates_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ManagedCluster) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ManagedCluster) ProtoMessage() {}
func (x *ManagedCluster) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dataproc_v1_workflow_templates_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 ManagedCluster.ProtoReflect.Descriptor instead.
func (*ManagedCluster) Descriptor() ([]byte, []int) {
return file_google_cloud_dataproc_v1_workflow_templates_proto_rawDescGZIP(), []int{2}
}
func (x *ManagedCluster) GetClusterName() string {
if x != nil {
return x.ClusterName
}
return ""
}
func (x *ManagedCluster) GetConfig() *ClusterConfig {
if x != nil {
return x.Config
}
return nil
}
func (x *ManagedCluster) GetLabels() map[string]string {
if x != nil {
return x.Labels
}
return nil
}
// A selector that chooses target cluster for jobs based on metadata.
type ClusterSelector struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Optional. The zone where workflow process executes. This parameter does not
// affect the selection of the cluster.
//
// If unspecified, the zone of the first cluster matching the selector
// is used.
Zone string `protobuf:"bytes,1,opt,name=zone,proto3" json:"zone,omitempty"`
// Required. The cluster labels. Cluster must have all labels
// to match.
ClusterLabels map[string]string `protobuf:"bytes,2,rep,name=cluster_labels,json=clusterLabels,proto3" json:"cluster_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *ClusterSelector) Reset() {
*x = ClusterSelector{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dataproc_v1_workflow_templates_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ClusterSelector) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ClusterSelector) ProtoMessage() {}
func (x *ClusterSelector) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dataproc_v1_workflow_templates_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 ClusterSelector.ProtoReflect.Descriptor instead.
func (*ClusterSelector) Descriptor() ([]byte, []int) {
return file_google_cloud_dataproc_v1_workflow_templates_proto_rawDescGZIP(), []int{3}
}
func (x *ClusterSelector) GetZone() string {
if x != nil {
return x.Zone
}
return ""
}
func (x *ClusterSelector) GetClusterLabels() map[string]string {
if x != nil {
return x.ClusterLabels
}
return nil
}
// A job executed by the workflow.
type OrderedJob struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The step id. The id must be unique among all jobs
// within the template.
//
// The step id is used as prefix for job id, as job
// `goog-dataproc-workflow-step-id` label, and in
// [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids]
// field from other steps.
//
// The id must contain only letters (a-z, A-Z), numbers (0-9),
// underscores (_), and hyphens (-). Cannot begin or end with underscore
// or hyphen. Must consist of between 3 and 50 characters.
StepId string `protobuf:"bytes,1,opt,name=step_id,json=stepId,proto3" json:"step_id,omitempty"`
// Required. The job definition.
//
// Types that are assignable to JobType:
//
// *OrderedJob_HadoopJob
// *OrderedJob_SparkJob
// *OrderedJob_PysparkJob
// *OrderedJob_HiveJob
// *OrderedJob_PigJob
// *OrderedJob_SparkRJob
// *OrderedJob_SparkSqlJob
// *OrderedJob_PrestoJob
JobType isOrderedJob_JobType `protobuf_oneof:"job_type"`
// Optional. The labels to associate with this job.
//
// Label keys must be between 1 and 63 characters long, and must conform to
// the following regular expression:
// [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
//
// Label values must be between 1 and 63 characters long, and must conform to
// the following regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
//
// No more than 32 labels can be associated with a given job.
Labels map[string]string `protobuf:"bytes,8,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Optional. Job scheduling configuration.
Scheduling *JobScheduling `protobuf:"bytes,9,opt,name=scheduling,proto3" json:"scheduling,omitempty"`
// Optional. The optional list of prerequisite job step_ids.
// If not specified, the job will start at the beginning of workflow.
PrerequisiteStepIds []string `protobuf:"bytes,10,rep,name=prerequisite_step_ids,json=prerequisiteStepIds,proto3" json:"prerequisite_step_ids,omitempty"`
}
func (x *OrderedJob) Reset() {
*x = OrderedJob{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dataproc_v1_workflow_templates_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *OrderedJob) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*OrderedJob) ProtoMessage() {}
func (x *OrderedJob) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dataproc_v1_workflow_templates_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 OrderedJob.ProtoReflect.Descriptor instead.
func (*OrderedJob) Descriptor() ([]byte, []int) {
return file_google_cloud_dataproc_v1_workflow_templates_proto_rawDescGZIP(), []int{4}
}
func (x *OrderedJob) GetStepId() string {
if x != nil {
return x.StepId
}
return ""
}
func (m *OrderedJob) GetJobType() isOrderedJob_JobType {
if m != nil {
return m.JobType
}
return nil
}
func (x *OrderedJob) GetHadoopJob() *HadoopJob {
if x, ok := x.GetJobType().(*OrderedJob_HadoopJob); ok {
return x.HadoopJob
}
return nil
}
func (x *OrderedJob) GetSparkJob() *SparkJob {
if x, ok := x.GetJobType().(*OrderedJob_SparkJob); ok {
return x.SparkJob
}
return nil
}
func (x *OrderedJob) GetPysparkJob() *PySparkJob {
if x, ok := x.GetJobType().(*OrderedJob_PysparkJob); ok {
return x.PysparkJob
}
return nil
}
func (x *OrderedJob) GetHiveJob() *HiveJob {
if x, ok := x.GetJobType().(*OrderedJob_HiveJob); ok {
return x.HiveJob
}
return nil
}
func (x *OrderedJob) GetPigJob() *PigJob {
if x, ok := x.GetJobType().(*OrderedJob_PigJob); ok {
return x.PigJob
}
return nil
}
func (x *OrderedJob) GetSparkRJob() *SparkRJob {
if x, ok := x.GetJobType().(*OrderedJob_SparkRJob); ok {
return x.SparkRJob
}
return nil
}
func (x *OrderedJob) GetSparkSqlJob() *SparkSqlJob {
if x, ok := x.GetJobType().(*OrderedJob_SparkSqlJob); ok {
return x.SparkSqlJob
}
return nil
}
func (x *OrderedJob) GetPrestoJob() *PrestoJob {
if x, ok := x.GetJobType().(*OrderedJob_PrestoJob); ok {
return x.PrestoJob
}
return nil
}
func (x *OrderedJob) GetLabels() map[string]string {
if x != nil {
return x.Labels
}
return nil
}
func (x *OrderedJob) GetScheduling() *JobScheduling {
if x != nil {
return x.Scheduling
}
return nil
}
func (x *OrderedJob) GetPrerequisiteStepIds() []string {
if x != nil {
return x.PrerequisiteStepIds
}
return nil
}
type isOrderedJob_JobType interface {
isOrderedJob_JobType()
}
type OrderedJob_HadoopJob struct {
// Optional. Job is a Hadoop job.
HadoopJob *HadoopJob `protobuf:"bytes,2,opt,name=hadoop_job,json=hadoopJob,proto3,oneof"`
}
type OrderedJob_SparkJob struct {
// Optional. Job is a Spark job.
SparkJob *SparkJob `protobuf:"bytes,3,opt,name=spark_job,json=sparkJob,proto3,oneof"`
}
type OrderedJob_PysparkJob struct {
// Optional. Job is a PySpark job.
PysparkJob *PySparkJob `protobuf:"bytes,4,opt,name=pyspark_job,json=pysparkJob,proto3,oneof"`
}
type OrderedJob_HiveJob struct {
// Optional. Job is a Hive job.
HiveJob *HiveJob `protobuf:"bytes,5,opt,name=hive_job,json=hiveJob,proto3,oneof"`
}
type OrderedJob_PigJob struct {
// Optional. Job is a Pig job.
PigJob *PigJob `protobuf:"bytes,6,opt,name=pig_job,json=pigJob,proto3,oneof"`
}
type OrderedJob_SparkRJob struct {
// Optional. Job is a SparkR job.
SparkRJob *SparkRJob `protobuf:"bytes,11,opt,name=spark_r_job,json=sparkRJob,proto3,oneof"`
}
type OrderedJob_SparkSqlJob struct {
// Optional. Job is a SparkSql job.
SparkSqlJob *SparkSqlJob `protobuf:"bytes,7,opt,name=spark_sql_job,json=sparkSqlJob,proto3,oneof"`
}
type OrderedJob_PrestoJob struct {
// Optional. Job is a Presto job.
PrestoJob *PrestoJob `protobuf:"bytes,12,opt,name=presto_job,json=prestoJob,proto3,oneof"`
}
func (*OrderedJob_HadoopJob) isOrderedJob_JobType() {}
func (*OrderedJob_SparkJob) isOrderedJob_JobType() {}
func (*OrderedJob_PysparkJob) isOrderedJob_JobType() {}
func (*OrderedJob_HiveJob) isOrderedJob_JobType() {}
func (*OrderedJob_PigJob) isOrderedJob_JobType() {}
func (*OrderedJob_SparkRJob) isOrderedJob_JobType() {}
func (*OrderedJob_SparkSqlJob) isOrderedJob_JobType() {}
func (*OrderedJob_PrestoJob) isOrderedJob_JobType() {}
// A configurable parameter that replaces one or more fields in the template.
// Parameterizable fields:
// - Labels
// - File uris
// - Job properties
// - Job arguments
// - Script variables
// - Main class (in HadoopJob and SparkJob)
// - Zone (in ClusterSelector)
type TemplateParameter struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. Parameter name.
// The parameter name is used as the key, and paired with the
// parameter value, which are passed to the template when the template
// is instantiated.
// The name must contain only capital letters (A-Z), numbers (0-9), and
// underscores (_), and must not start with a number. The maximum length is
// 40 characters.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. Paths to all fields that the parameter replaces.
// A field is allowed to appear in at most one parameter's list of field
// paths.
//
// A field path is similar in syntax to a
// [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
// field path that references the zone field of a workflow template's cluster
// selector would be specified as `placement.clusterSelector.zone`.
//
// Also, field paths can reference fields using the following syntax:
//
// * Values in maps can be referenced by key:
// - labels['key']
// - placement.clusterSelector.clusterLabels['key']
// - placement.managedCluster.labels['key']
// - placement.clusterSelector.clusterLabels['key']
// - jobs['step-id'].labels['key']
//
// * Jobs in the jobs list can be referenced by step-id:
// - jobs['step-id'].hadoopJob.mainJarFileUri
// - jobs['step-id'].hiveJob.queryFileUri
// - jobs['step-id'].pySparkJob.mainPythonFileUri
// - jobs['step-id'].hadoopJob.jarFileUris[0]
// - jobs['step-id'].hadoopJob.archiveUris[0]
// - jobs['step-id'].hadoopJob.fileUris[0]
// - jobs['step-id'].pySparkJob.pythonFileUris[0]
//
// * Items in repeated fields can be referenced by a zero-based index:
// - jobs['step-id'].sparkJob.args[0]
//
// * Other examples:
// - jobs['step-id'].hadoopJob.properties['key']
// - jobs['step-id'].hadoopJob.args[0]
// - jobs['step-id'].hiveJob.scriptVariables['key']
// - jobs['step-id'].hadoopJob.mainJarFileUri
// - placement.clusterSelector.zone
//
// It may not be possible to parameterize maps and repeated fields in their
// entirety since only individual map values and individual items in repeated
// fields can be referenced. For example, the following field paths are
// invalid:
//
// - placement.clusterSelector.clusterLabels
// - jobs['step-id'].sparkJob.args
Fields []string `protobuf:"bytes,2,rep,name=fields,proto3" json:"fields,omitempty"`
// Optional. Brief description of the parameter.
// Must not exceed 1024 characters.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// Optional. Validation rules to be applied to this parameter's value.
Validation *ParameterValidation `protobuf:"bytes,4,opt,name=validation,proto3" json:"validation,omitempty"`
}
func (x *TemplateParameter) Reset() {
*x = TemplateParameter{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dataproc_v1_workflow_templates_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TemplateParameter) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TemplateParameter) ProtoMessage() {}
func (x *TemplateParameter) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dataproc_v1_workflow_templates_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 TemplateParameter.ProtoReflect.Descriptor instead.
func (*TemplateParameter) Descriptor() ([]byte, []int) {
return file_google_cloud_dataproc_v1_workflow_templates_proto_rawDescGZIP(), []int{5}
}
func (x *TemplateParameter) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *TemplateParameter) GetFields() []string {
if x != nil {
return x.Fields
}
return nil
}
func (x *TemplateParameter) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *TemplateParameter) GetValidation() *ParameterValidation {
if x != nil {
return x.Validation
}
return nil
}
// Configuration for parameter validation.
type ParameterValidation struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The type of validation to be performed.
//
// Types that are assignable to ValidationType:
//
// *ParameterValidation_Regex
// *ParameterValidation_Values
ValidationType isParameterValidation_ValidationType `protobuf_oneof:"validation_type"`
}
func (x *ParameterValidation) Reset() {
*x = ParameterValidation{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dataproc_v1_workflow_templates_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ParameterValidation) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ParameterValidation) ProtoMessage() {}
func (x *ParameterValidation) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dataproc_v1_workflow_templates_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 ParameterValidation.ProtoReflect.Descriptor instead.
func (*ParameterValidation) Descriptor() ([]byte, []int) {
return file_google_cloud_dataproc_v1_workflow_templates_proto_rawDescGZIP(), []int{6}
}
func (m *ParameterValidation) GetValidationType() isParameterValidation_ValidationType {
if m != nil {
return m.ValidationType
}
return nil
}
func (x *ParameterValidation) GetRegex() *RegexValidation {
if x, ok := x.GetValidationType().(*ParameterValidation_Regex); ok {
return x.Regex
}
return nil
}