This repository has been archived by the owner on Oct 23, 2023. It is now read-only.
/
task.pb.go
340 lines (300 loc) · 12.9 KB
/
task.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
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: flyteidl/admin/task.proto
package admin
import (
fmt "fmt"
core "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core"
proto "github.com/golang/protobuf/proto"
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.ProtoPackageIsVersion3 // please upgrade the proto package
// Represents a request structure to create a revision of a task.
type TaskCreateRequest struct {
// id represents the unique identifier of the task.
Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Represents the specification for task.
Spec *TaskSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TaskCreateRequest) Reset() { *m = TaskCreateRequest{} }
func (m *TaskCreateRequest) String() string { return proto.CompactTextString(m) }
func (*TaskCreateRequest) ProtoMessage() {}
func (*TaskCreateRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_9204120d588b2162, []int{0}
}
func (m *TaskCreateRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TaskCreateRequest.Unmarshal(m, b)
}
func (m *TaskCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TaskCreateRequest.Marshal(b, m, deterministic)
}
func (m *TaskCreateRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_TaskCreateRequest.Merge(m, src)
}
func (m *TaskCreateRequest) XXX_Size() int {
return xxx_messageInfo_TaskCreateRequest.Size(m)
}
func (m *TaskCreateRequest) XXX_DiscardUnknown() {
xxx_messageInfo_TaskCreateRequest.DiscardUnknown(m)
}
var xxx_messageInfo_TaskCreateRequest proto.InternalMessageInfo
func (m *TaskCreateRequest) GetId() *core.Identifier {
if m != nil {
return m.Id
}
return nil
}
func (m *TaskCreateRequest) GetSpec() *TaskSpec {
if m != nil {
return m.Spec
}
return nil
}
// Represents a response structure if task creation succeeds.
type TaskCreateResponse struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TaskCreateResponse) Reset() { *m = TaskCreateResponse{} }
func (m *TaskCreateResponse) String() string { return proto.CompactTextString(m) }
func (*TaskCreateResponse) ProtoMessage() {}
func (*TaskCreateResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_9204120d588b2162, []int{1}
}
func (m *TaskCreateResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TaskCreateResponse.Unmarshal(m, b)
}
func (m *TaskCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TaskCreateResponse.Marshal(b, m, deterministic)
}
func (m *TaskCreateResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_TaskCreateResponse.Merge(m, src)
}
func (m *TaskCreateResponse) XXX_Size() int {
return xxx_messageInfo_TaskCreateResponse.Size(m)
}
func (m *TaskCreateResponse) XXX_DiscardUnknown() {
xxx_messageInfo_TaskCreateResponse.DiscardUnknown(m)
}
var xxx_messageInfo_TaskCreateResponse proto.InternalMessageInfo
// Flyte workflows are composed of many ordered tasks. That is small, reusable, self-contained logical blocks
// arranged to process workflow inputs and produce a deterministic set of outputs.
// Tasks can come in many varieties tuned for specialized behavior.
type Task struct {
// id represents the unique identifier of the task.
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 task.
Closure *TaskClosure `protobuf:"bytes,2,opt,name=closure,proto3" json:"closure,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Task) Reset() { *m = Task{} }
func (m *Task) String() string { return proto.CompactTextString(m) }
func (*Task) ProtoMessage() {}
func (*Task) Descriptor() ([]byte, []int) {
return fileDescriptor_9204120d588b2162, []int{2}
}
func (m *Task) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Task.Unmarshal(m, b)
}
func (m *Task) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Task.Marshal(b, m, deterministic)
}
func (m *Task) XXX_Merge(src proto.Message) {
xxx_messageInfo_Task.Merge(m, src)
}
func (m *Task) XXX_Size() int {
return xxx_messageInfo_Task.Size(m)
}
func (m *Task) XXX_DiscardUnknown() {
xxx_messageInfo_Task.DiscardUnknown(m)
}
var xxx_messageInfo_Task proto.InternalMessageInfo
func (m *Task) GetId() *core.Identifier {
if m != nil {
return m.Id
}
return nil
}
func (m *Task) GetClosure() *TaskClosure {
if m != nil {
return m.Closure
}
return nil
}
// Represents a list of tasks returned from the admin.
type TaskList struct {
// A list of tasks returned based on the request.
Tasks []*Task `protobuf:"bytes,1,rep,name=tasks,proto3" json:"tasks,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 *TaskList) Reset() { *m = TaskList{} }
func (m *TaskList) String() string { return proto.CompactTextString(m) }
func (*TaskList) ProtoMessage() {}
func (*TaskList) Descriptor() ([]byte, []int) {
return fileDescriptor_9204120d588b2162, []int{3}
}
func (m *TaskList) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TaskList.Unmarshal(m, b)
}
func (m *TaskList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TaskList.Marshal(b, m, deterministic)
}
func (m *TaskList) XXX_Merge(src proto.Message) {
xxx_messageInfo_TaskList.Merge(m, src)
}
func (m *TaskList) XXX_Size() int {
return xxx_messageInfo_TaskList.Size(m)
}
func (m *TaskList) XXX_DiscardUnknown() {
xxx_messageInfo_TaskList.DiscardUnknown(m)
}
var xxx_messageInfo_TaskList proto.InternalMessageInfo
func (m *TaskList) GetTasks() []*Task {
if m != nil {
return m.Tasks
}
return nil
}
func (m *TaskList) GetToken() string {
if m != nil {
return m.Token
}
return ""
}
// Represents a structure that encapsulates the user-configured specification of the task.
type TaskSpec struct {
// Template of the task that encapsulates all the metadata of the task.
Template *core.TaskTemplate `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TaskSpec) Reset() { *m = TaskSpec{} }
func (m *TaskSpec) String() string { return proto.CompactTextString(m) }
func (*TaskSpec) ProtoMessage() {}
func (*TaskSpec) Descriptor() ([]byte, []int) {
return fileDescriptor_9204120d588b2162, []int{4}
}
func (m *TaskSpec) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TaskSpec.Unmarshal(m, b)
}
func (m *TaskSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TaskSpec.Marshal(b, m, deterministic)
}
func (m *TaskSpec) XXX_Merge(src proto.Message) {
xxx_messageInfo_TaskSpec.Merge(m, src)
}
func (m *TaskSpec) XXX_Size() int {
return xxx_messageInfo_TaskSpec.Size(m)
}
func (m *TaskSpec) XXX_DiscardUnknown() {
xxx_messageInfo_TaskSpec.DiscardUnknown(m)
}
var xxx_messageInfo_TaskSpec proto.InternalMessageInfo
func (m *TaskSpec) GetTemplate() *core.TaskTemplate {
if m != nil {
return m.Template
}
return nil
}
// Compute task attributes which include values derived from the TaskSpec, as well as plugin-specific data
// and task metadata.
type TaskClosure struct {
// Represents the compiled representation of the task from the specification provided.
CompiledTask *core.CompiledTask `protobuf:"bytes,1,opt,name=compiled_task,json=compiledTask,proto3" json:"compiled_task,omitempty"`
// Time at which the task 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 *TaskClosure) Reset() { *m = TaskClosure{} }
func (m *TaskClosure) String() string { return proto.CompactTextString(m) }
func (*TaskClosure) ProtoMessage() {}
func (*TaskClosure) Descriptor() ([]byte, []int) {
return fileDescriptor_9204120d588b2162, []int{5}
}
func (m *TaskClosure) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TaskClosure.Unmarshal(m, b)
}
func (m *TaskClosure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TaskClosure.Marshal(b, m, deterministic)
}
func (m *TaskClosure) XXX_Merge(src proto.Message) {
xxx_messageInfo_TaskClosure.Merge(m, src)
}
func (m *TaskClosure) XXX_Size() int {
return xxx_messageInfo_TaskClosure.Size(m)
}
func (m *TaskClosure) XXX_DiscardUnknown() {
xxx_messageInfo_TaskClosure.DiscardUnknown(m)
}
var xxx_messageInfo_TaskClosure proto.InternalMessageInfo
func (m *TaskClosure) GetCompiledTask() *core.CompiledTask {
if m != nil {
return m.CompiledTask
}
return nil
}
func (m *TaskClosure) GetCreatedAt() *timestamp.Timestamp {
if m != nil {
return m.CreatedAt
}
return nil
}
func init() {
proto.RegisterType((*TaskCreateRequest)(nil), "flyteidl.admin.TaskCreateRequest")
proto.RegisterType((*TaskCreateResponse)(nil), "flyteidl.admin.TaskCreateResponse")
proto.RegisterType((*Task)(nil), "flyteidl.admin.Task")
proto.RegisterType((*TaskList)(nil), "flyteidl.admin.TaskList")
proto.RegisterType((*TaskSpec)(nil), "flyteidl.admin.TaskSpec")
proto.RegisterType((*TaskClosure)(nil), "flyteidl.admin.TaskClosure")
}
func init() { proto.RegisterFile("flyteidl/admin/task.proto", fileDescriptor_9204120d588b2162) }
var fileDescriptor_9204120d588b2162 = []byte{
// 389 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0x31, 0xef, 0xd3, 0x30,
0x10, 0xc5, 0x95, 0xf2, 0x2f, 0xb4, 0x2e, 0x20, 0x61, 0x75, 0x48, 0x5b, 0x04, 0x55, 0xa6, 0x82,
0xc0, 0x96, 0x8a, 0xaa, 0x8a, 0x0d, 0xc8, 0x84, 0xd4, 0x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