forked from flyteorg/flyteidl
/
workflow.pb.go
339 lines (299 loc) · 13.4 KB
/
workflow.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
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: flyteidl/admin/workflow.proto
package admin
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
core "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core"
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.ProtoPackageIsVersion3 // please upgrade the proto package
// Represents a request structure to create a revision of a workflow.
type WorkflowCreateRequest struct {
// id represents the unique identifier of the workflow.
Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Represents the specification for workflow.
Spec *WorkflowSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WorkflowCreateRequest) Reset() { *m = WorkflowCreateRequest{} }
func (m *WorkflowCreateRequest) String() string { return proto.CompactTextString(m) }
func (*WorkflowCreateRequest) ProtoMessage() {}
func (*WorkflowCreateRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_827ade3f2372dc85, []int{0}
}
func (m *WorkflowCreateRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WorkflowCreateRequest.Unmarshal(m, b)
}
func (m *WorkflowCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WorkflowCreateRequest.Marshal(b, m, deterministic)
}
func (m *WorkflowCreateRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_WorkflowCreateRequest.Merge(m, src)
}
func (m *WorkflowCreateRequest) XXX_Size() int {
return xxx_messageInfo_WorkflowCreateRequest.Size(m)
}
func (m *WorkflowCreateRequest) XXX_DiscardUnknown() {
xxx_messageInfo_WorkflowCreateRequest.DiscardUnknown(m)
}
var xxx_messageInfo_WorkflowCreateRequest proto.InternalMessageInfo
func (m *WorkflowCreateRequest) GetId() *core.Identifier {
if m != nil {
return m.Id
}
return nil
}
func (m *WorkflowCreateRequest) GetSpec() *WorkflowSpec {
if m != nil {
return m.Spec
}
return nil
}
type WorkflowCreateResponse struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WorkflowCreateResponse) Reset() { *m = WorkflowCreateResponse{} }
func (m *WorkflowCreateResponse) String() string { return proto.CompactTextString(m) }
func (*WorkflowCreateResponse) ProtoMessage() {}
func (*WorkflowCreateResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_827ade3f2372dc85, []int{1}
}
func (m *WorkflowCreateResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WorkflowCreateResponse.Unmarshal(m, b)
}
func (m *WorkflowCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WorkflowCreateResponse.Marshal(b, m, deterministic)
}
func (m *WorkflowCreateResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_WorkflowCreateResponse.Merge(m, src)
}
func (m *WorkflowCreateResponse) XXX_Size() int {
return xxx_messageInfo_WorkflowCreateResponse.Size(m)
}
func (m *WorkflowCreateResponse) XXX_DiscardUnknown() {
xxx_messageInfo_WorkflowCreateResponse.DiscardUnknown(m)
}
var xxx_messageInfo_WorkflowCreateResponse proto.InternalMessageInfo
// Represents the workflow structure stored in the Admin
// A workflow is created by ordering tasks and associating outputs to inputs
// in order to produce a directed-acyclic execution graph.
type Workflow struct {
// id represents the unique identifier of the workflow.
Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// closure encapsulates all the fields that maps to a compiled version of the workflow.
Closure *WorkflowClosure `protobuf:"bytes,2,opt,name=closure,proto3" json:"closure,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Workflow) Reset() { *m = Workflow{} }
func (m *Workflow) String() string { return proto.CompactTextString(m) }
func (*Workflow) ProtoMessage() {}
func (*Workflow) Descriptor() ([]byte, []int) {
return fileDescriptor_827ade3f2372dc85, []int{2}
}
func (m *Workflow) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Workflow.Unmarshal(m, b)
}
func (m *Workflow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Workflow.Marshal(b, m, deterministic)
}
func (m *Workflow) XXX_Merge(src proto.Message) {
xxx_messageInfo_Workflow.Merge(m, src)
}
func (m *Workflow) XXX_Size() int {
return xxx_messageInfo_Workflow.Size(m)
}
func (m *Workflow) XXX_DiscardUnknown() {
xxx_messageInfo_Workflow.DiscardUnknown(m)
}
var xxx_messageInfo_Workflow proto.InternalMessageInfo
func (m *Workflow) GetId() *core.Identifier {
if m != nil {
return m.Id
}
return nil
}
func (m *Workflow) GetClosure() *WorkflowClosure {
if m != nil {
return m.Closure
}
return nil
}
// Represents a list of workflows returned from the admin.
type WorkflowList struct {
// A list of workflows returned based on the request.
Workflows []*Workflow `protobuf:"bytes,1,rep,name=workflows,proto3" json:"workflows,omitempty"`
// In the case of multiple pages of results, the server-provided token can be used to fetch the next page
// in a query. If there are no more results, this value will be empty.
Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WorkflowList) Reset() { *m = WorkflowList{} }
func (m *WorkflowList) String() string { return proto.CompactTextString(m) }
func (*WorkflowList) ProtoMessage() {}
func (*WorkflowList) Descriptor() ([]byte, []int) {
return fileDescriptor_827ade3f2372dc85, []int{3}
}
func (m *WorkflowList) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WorkflowList.Unmarshal(m, b)
}
func (m *WorkflowList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WorkflowList.Marshal(b, m, deterministic)
}
func (m *WorkflowList) XXX_Merge(src proto.Message) {
xxx_messageInfo_WorkflowList.Merge(m, src)
}
func (m *WorkflowList) XXX_Size() int {
return xxx_messageInfo_WorkflowList.Size(m)
}
func (m *WorkflowList) XXX_DiscardUnknown() {
xxx_messageInfo_WorkflowList.DiscardUnknown(m)
}
var xxx_messageInfo_WorkflowList proto.InternalMessageInfo
func (m *WorkflowList) GetWorkflows() []*Workflow {
if m != nil {
return m.Workflows
}
return nil
}
func (m *WorkflowList) GetToken() string {
if m != nil {
return m.Token
}
return ""
}
// Represents a structure that encapsulates the specification of the workflow.
type WorkflowSpec struct {
// Template of the task that encapsulates all the metadata of the workflow.
Template *core.WorkflowTemplate `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WorkflowSpec) Reset() { *m = WorkflowSpec{} }
func (m *WorkflowSpec) String() string { return proto.CompactTextString(m) }
func (*WorkflowSpec) ProtoMessage() {}
func (*WorkflowSpec) Descriptor() ([]byte, []int) {
return fileDescriptor_827ade3f2372dc85, []int{4}
}
func (m *WorkflowSpec) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WorkflowSpec.Unmarshal(m, b)
}
func (m *WorkflowSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WorkflowSpec.Marshal(b, m, deterministic)
}
func (m *WorkflowSpec) XXX_Merge(src proto.Message) {
xxx_messageInfo_WorkflowSpec.Merge(m, src)
}
func (m *WorkflowSpec) XXX_Size() int {
return xxx_messageInfo_WorkflowSpec.Size(m)
}
func (m *WorkflowSpec) XXX_DiscardUnknown() {
xxx_messageInfo_WorkflowSpec.DiscardUnknown(m)
}
var xxx_messageInfo_WorkflowSpec proto.InternalMessageInfo
func (m *WorkflowSpec) GetTemplate() *core.WorkflowTemplate {
if m != nil {
return m.Template
}
return nil
}
// A container holding the compiled workflow produced from the WorkflowSpec and additional metadata.
type WorkflowClosure struct {
// Represents the compiled representation of the workflow from the specification provided.
CompiledWorkflow *core.CompiledWorkflowClosure `protobuf:"bytes,1,opt,name=compiled_workflow,json=compiledWorkflow,proto3" json:"compiled_workflow,omitempty"`
// Time at which the workflow was created.
CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WorkflowClosure) Reset() { *m = WorkflowClosure{} }
func (m *WorkflowClosure) String() string { return proto.CompactTextString(m) }
func (*WorkflowClosure) ProtoMessage() {}
func (*WorkflowClosure) Descriptor() ([]byte, []int) {
return fileDescriptor_827ade3f2372dc85, []int{5}
}
func (m *WorkflowClosure) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WorkflowClosure.Unmarshal(m, b)
}
func (m *WorkflowClosure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WorkflowClosure.Marshal(b, m, deterministic)
}
func (m *WorkflowClosure) XXX_Merge(src proto.Message) {
xxx_messageInfo_WorkflowClosure.Merge(m, src)
}
func (m *WorkflowClosure) XXX_Size() int {
return xxx_messageInfo_WorkflowClosure.Size(m)
}
func (m *WorkflowClosure) XXX_DiscardUnknown() {
xxx_messageInfo_WorkflowClosure.DiscardUnknown(m)
}
var xxx_messageInfo_WorkflowClosure proto.InternalMessageInfo
func (m *WorkflowClosure) GetCompiledWorkflow() *core.CompiledWorkflowClosure {
if m != nil {
return m.CompiledWorkflow
}
return nil
}
func (m *WorkflowClosure) GetCreatedAt() *timestamp.Timestamp {
if m != nil {
return m.CreatedAt
}
return nil
}
func init() {
proto.RegisterType((*WorkflowCreateRequest)(nil), "flyteidl.admin.WorkflowCreateRequest")
proto.RegisterType((*WorkflowCreateResponse)(nil), "flyteidl.admin.WorkflowCreateResponse")
proto.RegisterType((*Workflow)(nil), "flyteidl.admin.Workflow")
proto.RegisterType((*WorkflowList)(nil), "flyteidl.admin.WorkflowList")
proto.RegisterType((*WorkflowSpec)(nil), "flyteidl.admin.WorkflowSpec")
proto.RegisterType((*WorkflowClosure)(nil), "flyteidl.admin.WorkflowClosure")
}
func init() { proto.RegisterFile("flyteidl/admin/workflow.proto", fileDescriptor_827ade3f2372dc85) }
var fileDescriptor_827ade3f2372dc85 = []byte{
// 406 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0xdf, 0x6b, 0xd5, 0x30,
0x1c, 0xc5, 0xb9, 0xd7, 0x5f, 0xbb, 0x99, 0xf8, 0x23, 0xa8, 0xd4, 0xeb, 0xf4, 0x8e, 0x3e, 0xc8,
0x7c, 0x30, 0xd1, 0x0d, 0x84, 0xe1, 0x93, 0xde, 0x27, 0xd1, 0xa7, 0x6c, 0x20, 0x88, 0x30, 0xda,
0xf4, 0xdb, 0x1a, 0x96, 0x34, 0xb1, 0xf9, 0x96, 0xb1, 0x3f, 0xc7, 0xff, 0x54, 0xd6, 0x26, 0x1d,
0x0d, 0xec, 0x61, 0x8f, 0xe5, 0x7c, 0x72, 0x72, 0x4e, 0x7a, 0xc8, 0xeb, 0x5a, 0x5f, 0x22, 0xa8,
0x4a, 0xf3, 0xa2, 0x32, 0xaa, 0xe5, 0x17, 0xb6, 0x3b, 0xaf, 0xb5, 0xbd, 0x60, 0xae, 0xb3, 0x68,
0xe9, 0xa3, 0x28, 0xb3, 0x41, 0x5e, 0xef, 0x4d, 0xb8, 0xb4, 0x1d, 0x70, 0x69, 0x8d, 0x53, 0x1a,
0xba, 0x91, 0x5e, 0xbf, 0x99, 0xab, 0xaa, 0x82, 0x16, 0x55, 0xad, 0x26, 0x3d, 0x39, 0x3d, 0xbf,
0x6b, 0xfd, 0x2a, 0x89, 0x22, 0xad, 0x31, 0xb6, 0x0d, 0xe2, 0xa6, 0xb1, 0xb6, 0xd1, 0xc0, 0x87,
0xaf, 0xb2, 0xaf, 0x39, 0x2a, 0x03, 0x1e, 0x0b, 0xe3, 0x46, 0x20, 0x47, 0xf2, 0xfc, 0x67, 0xf0,
0xdb, 0x76, 0x50, 0x20, 0x08, 0xf8, 0xdb, 0x83, 0x47, 0xfa, 0x8e, 0x2c, 0x55, 0x95, 0x2d, 0xf6,
0x17, 0x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