forked from flyteorg/flyteidl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
matchable_resource.pb.go
391 lines (338 loc) · 15.8 KB
/
matchable_resource.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
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: flyteidl/admin/matchable_resource.proto
package admin
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
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
// Defines a resource that can be configured by customizable Project-, ProjectDomain- or WorkflowAttributes
// based on matching tags.
type MatchableResource int32
const (
// Applies to customizable task resource requests and limits.
MatchableResource_TASK_RESOURCE MatchableResource = 0
// Applies to configuring templated kubernetes cluster resources.
MatchableResource_CLUSTER_RESOURCE MatchableResource = 1
// Configures task and dynamic task execution queue assignment.
MatchableResource_EXECUTION_QUEUE MatchableResource = 2
)
var MatchableResource_name = map[int32]string{
0: "TASK_RESOURCE",
1: "CLUSTER_RESOURCE",
2: "EXECUTION_QUEUE",
}
var MatchableResource_value = map[string]int32{
"TASK_RESOURCE": 0,
"CLUSTER_RESOURCE": 1,
"EXECUTION_QUEUE": 2,
}
func (x MatchableResource) String() string {
return proto.EnumName(MatchableResource_name, int32(x))
}
func (MatchableResource) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_1d15bcabb02640f4, []int{0}
}
type TaskResourceSpec struct {
Cpu string `protobuf:"bytes,1,opt,name=cpu,proto3" json:"cpu,omitempty"`
Gpu string `protobuf:"bytes,2,opt,name=gpu,proto3" json:"gpu,omitempty"`
Memory string `protobuf:"bytes,3,opt,name=memory,proto3" json:"memory,omitempty"`
Storage string `protobuf:"bytes,4,opt,name=storage,proto3" json:"storage,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TaskResourceSpec) Reset() { *m = TaskResourceSpec{} }
func (m *TaskResourceSpec) String() string { return proto.CompactTextString(m) }
func (*TaskResourceSpec) ProtoMessage() {}
func (*TaskResourceSpec) Descriptor() ([]byte, []int) {
return fileDescriptor_1d15bcabb02640f4, []int{0}
}
func (m *TaskResourceSpec) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TaskResourceSpec.Unmarshal(m, b)
}
func (m *TaskResourceSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TaskResourceSpec.Marshal(b, m, deterministic)
}
func (m *TaskResourceSpec) XXX_Merge(src proto.Message) {
xxx_messageInfo_TaskResourceSpec.Merge(m, src)
}
func (m *TaskResourceSpec) XXX_Size() int {
return xxx_messageInfo_TaskResourceSpec.Size(m)
}
func (m *TaskResourceSpec) XXX_DiscardUnknown() {
xxx_messageInfo_TaskResourceSpec.DiscardUnknown(m)
}
var xxx_messageInfo_TaskResourceSpec proto.InternalMessageInfo
func (m *TaskResourceSpec) GetCpu() string {
if m != nil {
return m.Cpu
}
return ""
}
func (m *TaskResourceSpec) GetGpu() string {
if m != nil {
return m.Gpu
}
return ""
}
func (m *TaskResourceSpec) GetMemory() string {
if m != nil {
return m.Memory
}
return ""
}
func (m *TaskResourceSpec) GetStorage() string {
if m != nil {
return m.Storage
}
return ""
}
type TaskResourceAttributes struct {
Defaults *TaskResourceSpec `protobuf:"bytes,1,opt,name=defaults,proto3" json:"defaults,omitempty"`
Limits *TaskResourceSpec `protobuf:"bytes,2,opt,name=limits,proto3" json:"limits,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TaskResourceAttributes) Reset() { *m = TaskResourceAttributes{} }
func (m *TaskResourceAttributes) String() string { return proto.CompactTextString(m) }
func (*TaskResourceAttributes) ProtoMessage() {}
func (*TaskResourceAttributes) Descriptor() ([]byte, []int) {
return fileDescriptor_1d15bcabb02640f4, []int{1}
}
func (m *TaskResourceAttributes) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TaskResourceAttributes.Unmarshal(m, b)
}
func (m *TaskResourceAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TaskResourceAttributes.Marshal(b, m, deterministic)
}
func (m *TaskResourceAttributes) XXX_Merge(src proto.Message) {
xxx_messageInfo_TaskResourceAttributes.Merge(m, src)
}
func (m *TaskResourceAttributes) XXX_Size() int {
return xxx_messageInfo_TaskResourceAttributes.Size(m)
}
func (m *TaskResourceAttributes) XXX_DiscardUnknown() {
xxx_messageInfo_TaskResourceAttributes.DiscardUnknown(m)
}
var xxx_messageInfo_TaskResourceAttributes proto.InternalMessageInfo
func (m *TaskResourceAttributes) GetDefaults() *TaskResourceSpec {
if m != nil {
return m.Defaults
}
return nil
}
func (m *TaskResourceAttributes) GetLimits() *TaskResourceSpec {
if m != nil {
return m.Limits
}
return nil
}
type ClusterResourceAttributes struct {
// Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
// Map keys are the *case-sensitive* names of variables in templatized resource files.
// Map values should be the custom values which get substituted during resource creation.
Attributes map[string]string `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ClusterResourceAttributes) Reset() { *m = ClusterResourceAttributes{} }
func (m *ClusterResourceAttributes) String() string { return proto.CompactTextString(m) }
func (*ClusterResourceAttributes) ProtoMessage() {}
func (*ClusterResourceAttributes) Descriptor() ([]byte, []int) {
return fileDescriptor_1d15bcabb02640f4, []int{2}
}
func (m *ClusterResourceAttributes) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ClusterResourceAttributes.Unmarshal(m, b)
}
func (m *ClusterResourceAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ClusterResourceAttributes.Marshal(b, m, deterministic)
}
func (m *ClusterResourceAttributes) XXX_Merge(src proto.Message) {
xxx_messageInfo_ClusterResourceAttributes.Merge(m, src)
}
func (m *ClusterResourceAttributes) XXX_Size() int {
return xxx_messageInfo_ClusterResourceAttributes.Size(m)
}
func (m *ClusterResourceAttributes) XXX_DiscardUnknown() {
xxx_messageInfo_ClusterResourceAttributes.DiscardUnknown(m)
}
var xxx_messageInfo_ClusterResourceAttributes proto.InternalMessageInfo
func (m *ClusterResourceAttributes) GetAttributes() map[string]string {
if m != nil {
return m.Attributes
}
return nil
}
type ExecutionQueueAttributes struct {
// Tags used for assigning execution queues for tasks defined within this project.
Tags []string `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ExecutionQueueAttributes) Reset() { *m = ExecutionQueueAttributes{} }
func (m *ExecutionQueueAttributes) String() string { return proto.CompactTextString(m) }
func (*ExecutionQueueAttributes) ProtoMessage() {}
func (*ExecutionQueueAttributes) Descriptor() ([]byte, []int) {
return fileDescriptor_1d15bcabb02640f4, []int{3}
}
func (m *ExecutionQueueAttributes) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ExecutionQueueAttributes.Unmarshal(m, b)
}
func (m *ExecutionQueueAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ExecutionQueueAttributes.Marshal(b, m, deterministic)
}
func (m *ExecutionQueueAttributes) XXX_Merge(src proto.Message) {
xxx_messageInfo_ExecutionQueueAttributes.Merge(m, src)
}
func (m *ExecutionQueueAttributes) XXX_Size() int {
return xxx_messageInfo_ExecutionQueueAttributes.Size(m)
}
func (m *ExecutionQueueAttributes) XXX_DiscardUnknown() {
xxx_messageInfo_ExecutionQueueAttributes.DiscardUnknown(m)
}
var xxx_messageInfo_ExecutionQueueAttributes proto.InternalMessageInfo
func (m *ExecutionQueueAttributes) GetTags() []string {
if m != nil {
return m.Tags
}
return nil
}
// Generic container for encapsulating all types of the above attributes messages.
type MatchingAttributes struct {
// Types that are valid to be assigned to Target:
// *MatchingAttributes_TaskResourceAttributes
// *MatchingAttributes_ClusterResourceAttributes
// *MatchingAttributes_ExecutionQueueAttributes
Target isMatchingAttributes_Target `protobuf_oneof:"target"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MatchingAttributes) Reset() { *m = MatchingAttributes{} }
func (m *MatchingAttributes) String() string { return proto.CompactTextString(m) }
func (*MatchingAttributes) ProtoMessage() {}
func (*MatchingAttributes) Descriptor() ([]byte, []int) {
return fileDescriptor_1d15bcabb02640f4, []int{4}
}
func (m *MatchingAttributes) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MatchingAttributes.Unmarshal(m, b)
}
func (m *MatchingAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MatchingAttributes.Marshal(b, m, deterministic)
}
func (m *MatchingAttributes) XXX_Merge(src proto.Message) {
xxx_messageInfo_MatchingAttributes.Merge(m, src)
}
func (m *MatchingAttributes) XXX_Size() int {
return xxx_messageInfo_MatchingAttributes.Size(m)
}
func (m *MatchingAttributes) XXX_DiscardUnknown() {
xxx_messageInfo_MatchingAttributes.DiscardUnknown(m)
}
var xxx_messageInfo_MatchingAttributes proto.InternalMessageInfo
type isMatchingAttributes_Target interface {
isMatchingAttributes_Target()
}
type MatchingAttributes_TaskResourceAttributes struct {
TaskResourceAttributes *TaskResourceAttributes `protobuf:"bytes,1,opt,name=task_resource_attributes,json=taskResourceAttributes,proto3,oneof"`
}
type MatchingAttributes_ClusterResourceAttributes struct {
ClusterResourceAttributes *ClusterResourceAttributes `protobuf:"bytes,2,opt,name=cluster_resource_attributes,json=clusterResourceAttributes,proto3,oneof"`
}
type MatchingAttributes_ExecutionQueueAttributes struct {
ExecutionQueueAttributes *ExecutionQueueAttributes `protobuf:"bytes,3,opt,name=execution_queue_attributes,json=executionQueueAttributes,proto3,oneof"`
}
func (*MatchingAttributes_TaskResourceAttributes) isMatchingAttributes_Target() {}
func (*MatchingAttributes_ClusterResourceAttributes) isMatchingAttributes_Target() {}
func (*MatchingAttributes_ExecutionQueueAttributes) isMatchingAttributes_Target() {}
func (m *MatchingAttributes) GetTarget() isMatchingAttributes_Target {
if m != nil {
return m.Target
}
return nil
}
func (m *MatchingAttributes) GetTaskResourceAttributes() *TaskResourceAttributes {
if x, ok := m.GetTarget().(*MatchingAttributes_TaskResourceAttributes); ok {
return x.TaskResourceAttributes
}
return nil
}
func (m *MatchingAttributes) GetClusterResourceAttributes() *ClusterResourceAttributes {
if x, ok := m.GetTarget().(*MatchingAttributes_ClusterResourceAttributes); ok {
return x.ClusterResourceAttributes
}
return nil
}
func (m *MatchingAttributes) GetExecutionQueueAttributes() *ExecutionQueueAttributes {
if x, ok := m.GetTarget().(*MatchingAttributes_ExecutionQueueAttributes); ok {
return x.ExecutionQueueAttributes
}
return nil
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*MatchingAttributes) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*MatchingAttributes_TaskResourceAttributes)(nil),
(*MatchingAttributes_ClusterResourceAttributes)(nil),
(*MatchingAttributes_ExecutionQueueAttributes)(nil),
}
}
func init() {
proto.RegisterEnum("flyteidl.admin.MatchableResource", MatchableResource_name, MatchableResource_value)
proto.RegisterType((*TaskResourceSpec)(nil), "flyteidl.admin.TaskResourceSpec")
proto.RegisterType((*TaskResourceAttributes)(nil), "flyteidl.admin.TaskResourceAttributes")
proto.RegisterType((*ClusterResourceAttributes)(nil), "flyteidl.admin.ClusterResourceAttributes")
proto.RegisterMapType((map[string]string)(nil), "flyteidl.admin.ClusterResourceAttributes.AttributesEntry")
proto.RegisterType((*ExecutionQueueAttributes)(nil), "flyteidl.admin.ExecutionQueueAttributes")
proto.RegisterType((*MatchingAttributes)(nil), "flyteidl.admin.MatchingAttributes")
}
func init() {
proto.RegisterFile("flyteidl/admin/matchable_resource.proto", fileDescriptor_1d15bcabb02640f4)
}
var fileDescriptor_1d15bcabb02640f4 = []byte{
// 494 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 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