This repository has been archived by the owner on Oct 23, 2023. It is now read-only.
/
condition.pb.go
409 lines (350 loc) · 15.1 KB
/
condition.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
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: flyteidl/core/condition.proto
package core
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
// Binary Operator for each expression
type ComparisonExpression_Operator int32
const (
ComparisonExpression_EQ ComparisonExpression_Operator = 0
ComparisonExpression_NEQ ComparisonExpression_Operator = 1
// Greater Than
ComparisonExpression_GT ComparisonExpression_Operator = 2
ComparisonExpression_GTE ComparisonExpression_Operator = 3
// Less Than
ComparisonExpression_LT ComparisonExpression_Operator = 4
ComparisonExpression_LTE ComparisonExpression_Operator = 5
)
var ComparisonExpression_Operator_name = map[int32]string{
0: "EQ",
1: "NEQ",
2: "GT",
3: "GTE",
4: "LT",
5: "LTE",
}
var ComparisonExpression_Operator_value = map[string]int32{
"EQ": 0,
"NEQ": 1,
"GT": 2,
"GTE": 3,
"LT": 4,
"LTE": 5,
}
func (x ComparisonExpression_Operator) String() string {
return proto.EnumName(ComparisonExpression_Operator_name, int32(x))
}
func (ComparisonExpression_Operator) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_df35c44899db166a, []int{0, 0}
}
// Nested conditions. They can be conjoined using AND / OR
// Order of evaluation is not important as the operators are Commutative
type ConjunctionExpression_LogicalOperator int32
const (
// Conjunction
ConjunctionExpression_AND ConjunctionExpression_LogicalOperator = 0
ConjunctionExpression_OR ConjunctionExpression_LogicalOperator = 1
)
var ConjunctionExpression_LogicalOperator_name = map[int32]string{
0: "AND",
1: "OR",
}
var ConjunctionExpression_LogicalOperator_value = map[string]int32{
"AND": 0,
"OR": 1,
}
func (x ConjunctionExpression_LogicalOperator) String() string {
return proto.EnumName(ConjunctionExpression_LogicalOperator_name, int32(x))
}
func (ConjunctionExpression_LogicalOperator) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_df35c44899db166a, []int{3, 0}
}
// Defines a 2-level tree where the root is a comparison operator and Operands are primitives or known variables.
// Each expression results in a boolean result.
type ComparisonExpression struct {
Operator ComparisonExpression_Operator `protobuf:"varint,1,opt,name=operator,proto3,enum=flyteidl.core.ComparisonExpression_Operator" json:"operator,omitempty"`
LeftValue *Operand `protobuf:"bytes,2,opt,name=left_value,json=leftValue,proto3" json:"left_value,omitempty"`
RightValue *Operand `protobuf:"bytes,3,opt,name=right_value,json=rightValue,proto3" json:"right_value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ComparisonExpression) Reset() { *m = ComparisonExpression{} }
func (m *ComparisonExpression) String() string { return proto.CompactTextString(m) }
func (*ComparisonExpression) ProtoMessage() {}
func (*ComparisonExpression) Descriptor() ([]byte, []int) {
return fileDescriptor_df35c44899db166a, []int{0}
}
func (m *ComparisonExpression) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ComparisonExpression.Unmarshal(m, b)
}
func (m *ComparisonExpression) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ComparisonExpression.Marshal(b, m, deterministic)
}
func (m *ComparisonExpression) XXX_Merge(src proto.Message) {
xxx_messageInfo_ComparisonExpression.Merge(m, src)
}
func (m *ComparisonExpression) XXX_Size() int {
return xxx_messageInfo_ComparisonExpression.Size(m)
}
func (m *ComparisonExpression) XXX_DiscardUnknown() {
xxx_messageInfo_ComparisonExpression.DiscardUnknown(m)
}
var xxx_messageInfo_ComparisonExpression proto.InternalMessageInfo
func (m *ComparisonExpression) GetOperator() ComparisonExpression_Operator {
if m != nil {
return m.Operator
}
return ComparisonExpression_EQ
}
func (m *ComparisonExpression) GetLeftValue() *Operand {
if m != nil {
return m.LeftValue
}
return nil
}
func (m *ComparisonExpression) GetRightValue() *Operand {
if m != nil {
return m.RightValue
}
return nil
}
// Defines an operand to a comparison expression.
type Operand struct {
// Types that are valid to be assigned to Val:
// *Operand_Primitive
// *Operand_Var
Val isOperand_Val `protobuf_oneof:"val"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Operand) Reset() { *m = Operand{} }
func (m *Operand) String() string { return proto.CompactTextString(m) }
func (*Operand) ProtoMessage() {}
func (*Operand) Descriptor() ([]byte, []int) {
return fileDescriptor_df35c44899db166a, []int{1}
}
func (m *Operand) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Operand.Unmarshal(m, b)
}
func (m *Operand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Operand.Marshal(b, m, deterministic)
}
func (m *Operand) XXX_Merge(src proto.Message) {
xxx_messageInfo_Operand.Merge(m, src)
}
func (m *Operand) XXX_Size() int {
return xxx_messageInfo_Operand.Size(m)
}
func (m *Operand) XXX_DiscardUnknown() {
xxx_messageInfo_Operand.DiscardUnknown(m)
}
var xxx_messageInfo_Operand proto.InternalMessageInfo
type isOperand_Val interface {
isOperand_Val()
}
type Operand_Primitive struct {
Primitive *Primitive `protobuf:"bytes,1,opt,name=primitive,proto3,oneof"`
}
type Operand_Var struct {
Var string `protobuf:"bytes,2,opt,name=var,proto3,oneof"`
}
func (*Operand_Primitive) isOperand_Val() {}
func (*Operand_Var) isOperand_Val() {}
func (m *Operand) GetVal() isOperand_Val {
if m != nil {
return m.Val
}
return nil
}
func (m *Operand) GetPrimitive() *Primitive {
if x, ok := m.GetVal().(*Operand_Primitive); ok {
return x.Primitive
}
return nil
}
func (m *Operand) GetVar() string {
if x, ok := m.GetVal().(*Operand_Var); ok {
return x.Var
}
return ""
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*Operand) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*Operand_Primitive)(nil),
(*Operand_Var)(nil),
}
}
// Defines a boolean expression tree. It can be a simple or a conjunction expression.
// Multiple expressions can be combined using a conjunction or a disjunction to result in a final boolean result.
type BooleanExpression struct {
// Types that are valid to be assigned to Expr:
// *BooleanExpression_Conjunction
// *BooleanExpression_Comparison
Expr isBooleanExpression_Expr `protobuf_oneof:"expr"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BooleanExpression) Reset() { *m = BooleanExpression{} }
func (m *BooleanExpression) String() string { return proto.CompactTextString(m) }
func (*BooleanExpression) ProtoMessage() {}
func (*BooleanExpression) Descriptor() ([]byte, []int) {
return fileDescriptor_df35c44899db166a, []int{2}
}
func (m *BooleanExpression) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BooleanExpression.Unmarshal(m, b)
}
func (m *BooleanExpression) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BooleanExpression.Marshal(b, m, deterministic)
}
func (m *BooleanExpression) XXX_Merge(src proto.Message) {
xxx_messageInfo_BooleanExpression.Merge(m, src)
}
func (m *BooleanExpression) XXX_Size() int {
return xxx_messageInfo_BooleanExpression.Size(m)
}
func (m *BooleanExpression) XXX_DiscardUnknown() {
xxx_messageInfo_BooleanExpression.DiscardUnknown(m)
}
var xxx_messageInfo_BooleanExpression proto.InternalMessageInfo
type isBooleanExpression_Expr interface {
isBooleanExpression_Expr()
}
type BooleanExpression_Conjunction struct {
Conjunction *ConjunctionExpression `protobuf:"bytes,1,opt,name=conjunction,proto3,oneof"`
}
type BooleanExpression_Comparison struct {
Comparison *ComparisonExpression `protobuf:"bytes,2,opt,name=comparison,proto3,oneof"`
}
func (*BooleanExpression_Conjunction) isBooleanExpression_Expr() {}
func (*BooleanExpression_Comparison) isBooleanExpression_Expr() {}
func (m *BooleanExpression) GetExpr() isBooleanExpression_Expr {
if m != nil {
return m.Expr
}
return nil
}
func (m *BooleanExpression) GetConjunction() *ConjunctionExpression {
if x, ok := m.GetExpr().(*BooleanExpression_Conjunction); ok {
return x.Conjunction
}
return nil
}
func (m *BooleanExpression) GetComparison() *ComparisonExpression {
if x, ok := m.GetExpr().(*BooleanExpression_Comparison); ok {
return x.Comparison
}
return nil
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*BooleanExpression) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*BooleanExpression_Conjunction)(nil),
(*BooleanExpression_Comparison)(nil),
}
}
// Defines a conjunction expression of two boolean expressions.
type ConjunctionExpression struct {
Operator ConjunctionExpression_LogicalOperator `protobuf:"varint,1,opt,name=operator,proto3,enum=flyteidl.core.ConjunctionExpression_LogicalOperator" json:"operator,omitempty"`
LeftExpression *BooleanExpression `protobuf:"bytes,2,opt,name=left_expression,json=leftExpression,proto3" json:"left_expression,omitempty"`
RightExpression *BooleanExpression `protobuf:"bytes,3,opt,name=right_expression,json=rightExpression,proto3" json:"right_expression,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ConjunctionExpression) Reset() { *m = ConjunctionExpression{} }
func (m *ConjunctionExpression) String() string { return proto.CompactTextString(m) }
func (*ConjunctionExpression) ProtoMessage() {}
func (*ConjunctionExpression) Descriptor() ([]byte, []int) {
return fileDescriptor_df35c44899db166a, []int{3}
}
func (m *ConjunctionExpression) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ConjunctionExpression.Unmarshal(m, b)
}
func (m *ConjunctionExpression) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ConjunctionExpression.Marshal(b, m, deterministic)
}
func (m *ConjunctionExpression) XXX_Merge(src proto.Message) {
xxx_messageInfo_ConjunctionExpression.Merge(m, src)
}
func (m *ConjunctionExpression) XXX_Size() int {
return xxx_messageInfo_ConjunctionExpression.Size(m)
}
func (m *ConjunctionExpression) XXX_DiscardUnknown() {
xxx_messageInfo_ConjunctionExpression.DiscardUnknown(m)
}
var xxx_messageInfo_ConjunctionExpression proto.InternalMessageInfo
func (m *ConjunctionExpression) GetOperator() ConjunctionExpression_LogicalOperator {
if m != nil {
return m.Operator
}
return ConjunctionExpression_AND
}
func (m *ConjunctionExpression) GetLeftExpression() *BooleanExpression {
if m != nil {
return m.LeftExpression
}
return nil
}
func (m *ConjunctionExpression) GetRightExpression() *BooleanExpression {
if m != nil {
return m.RightExpression
}
return nil
}
func init() {
proto.RegisterEnum("flyteidl.core.ComparisonExpression_Operator", ComparisonExpression_Operator_name, ComparisonExpression_Operator_value)
proto.RegisterEnum("flyteidl.core.ConjunctionExpression_LogicalOperator", ConjunctionExpression_LogicalOperator_name, ConjunctionExpression_LogicalOperator_value)
proto.RegisterType((*ComparisonExpression)(nil), "flyteidl.core.ComparisonExpression")
proto.RegisterType((*Operand)(nil), "flyteidl.core.Operand")
proto.RegisterType((*BooleanExpression)(nil), "flyteidl.core.BooleanExpression")
proto.RegisterType((*ConjunctionExpression)(nil), "flyteidl.core.ConjunctionExpression")
}
func init() { proto.RegisterFile("flyteidl/core/condition.proto", fileDescriptor_df35c44899db166a) }
var fileDescriptor_df35c44899db166a = []byte{
// 463 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x4d, 0x6f, 0xd3, 0x40,
0x10, 0x86, 0xfd, 0xd1, 0xa6, 0xcd, 0x44, 0x34, 0xcb, 0x0a, 0x50, 0x84, 0x40, 0x8a, 0x0c, 0x87,
0x1e, 0xc0, 0x96, 0x42, 0xf9, 0xb8, 0x70, 0x20, 0x60, 0xd5, 0x88, 0xa8, 0x1f, 0x56, 0xc4, 0x81,
0x03, 0xc8, 0x71, 0xb6, 0xee, 0xa2, 0x8d, 0xc7, 0xda, 0x6c, 0xa2, 0xf2, 0x2b, 0xf8, 0x15, 0xdc,
0xf8, 0x91, 0x68, 0x37, 0x8e, 0x93, 0x38, 0x11, 0xca, 0xd1, 0xb3, 0xef, 0x33, 0xfb, 0x7a, 0xf6,
0x1d, 0x78, 0x7a, 0x23, 0x7e, 0x29, 0xc6, 0xc7, 0x22, 0x48, 0x51, 0xb2, 0x20, 0xc5, 0x7c, 0xcc,
0x15, 0xc7, 0xdc, 0x2f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