This repository has been archived by the owner on Oct 23, 2023. It is now read-only.
/
schedule.pb.go
293 lines (251 loc) · 10.3 KB
/
schedule.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
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: flyteidl/admin/schedule.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
// Represents a frequency at which to run a schedule.
type FixedRateUnit int32
const (
FixedRateUnit_MINUTE FixedRateUnit = 0
FixedRateUnit_HOUR FixedRateUnit = 1
FixedRateUnit_DAY FixedRateUnit = 2
)
var FixedRateUnit_name = map[int32]string{
0: "MINUTE",
1: "HOUR",
2: "DAY",
}
var FixedRateUnit_value = map[string]int32{
"MINUTE": 0,
"HOUR": 1,
"DAY": 2,
}
func (x FixedRateUnit) String() string {
return proto.EnumName(FixedRateUnit_name, int32(x))
}
func (FixedRateUnit) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_a71cf75647fcd25a, []int{0}
}
// Option for schedules run at a certain frequency e.g. every 2 minutes.
type FixedRate struct {
Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
Unit FixedRateUnit `protobuf:"varint,2,opt,name=unit,proto3,enum=flyteidl.admin.FixedRateUnit" json:"unit,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FixedRate) Reset() { *m = FixedRate{} }
func (m *FixedRate) String() string { return proto.CompactTextString(m) }
func (*FixedRate) ProtoMessage() {}
func (*FixedRate) Descriptor() ([]byte, []int) {
return fileDescriptor_a71cf75647fcd25a, []int{0}
}
func (m *FixedRate) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FixedRate.Unmarshal(m, b)
}
func (m *FixedRate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FixedRate.Marshal(b, m, deterministic)
}
func (m *FixedRate) XXX_Merge(src proto.Message) {
xxx_messageInfo_FixedRate.Merge(m, src)
}
func (m *FixedRate) XXX_Size() int {
return xxx_messageInfo_FixedRate.Size(m)
}
func (m *FixedRate) XXX_DiscardUnknown() {
xxx_messageInfo_FixedRate.DiscardUnknown(m)
}
var xxx_messageInfo_FixedRate proto.InternalMessageInfo
func (m *FixedRate) GetValue() uint32 {
if m != nil {
return m.Value
}
return 0
}
func (m *FixedRate) GetUnit() FixedRateUnit {
if m != nil {
return m.Unit
}
return FixedRateUnit_MINUTE
}
// Options for schedules to run according to a cron expression.
type CronSchedule struct {
// Standard/default cron implementation as described by https://en.wikipedia.org/wiki/Cron#CRON_expression;
// Also supports nonstandard predefined scheduling definitions
// as described by https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions
// except @reboot
Schedule string `protobuf:"bytes,1,opt,name=schedule,proto3" json:"schedule,omitempty"`
// ISO 8601 duration as described by https://en.wikipedia.org/wiki/ISO_8601#Durations
Offset string `protobuf:"bytes,2,opt,name=offset,proto3" json:"offset,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CronSchedule) Reset() { *m = CronSchedule{} }
func (m *CronSchedule) String() string { return proto.CompactTextString(m) }
func (*CronSchedule) ProtoMessage() {}
func (*CronSchedule) Descriptor() ([]byte, []int) {
return fileDescriptor_a71cf75647fcd25a, []int{1}
}
func (m *CronSchedule) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CronSchedule.Unmarshal(m, b)
}
func (m *CronSchedule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CronSchedule.Marshal(b, m, deterministic)
}
func (m *CronSchedule) XXX_Merge(src proto.Message) {
xxx_messageInfo_CronSchedule.Merge(m, src)
}
func (m *CronSchedule) XXX_Size() int {
return xxx_messageInfo_CronSchedule.Size(m)
}
func (m *CronSchedule) XXX_DiscardUnknown() {
xxx_messageInfo_CronSchedule.DiscardUnknown(m)
}
var xxx_messageInfo_CronSchedule proto.InternalMessageInfo
func (m *CronSchedule) GetSchedule() string {
if m != nil {
return m.Schedule
}
return ""
}
func (m *CronSchedule) GetOffset() string {
if m != nil {
return m.Offset
}
return ""
}
// Defines complete set of information required to trigger an execution on a schedule.
type Schedule struct {
// Types that are valid to be assigned to ScheduleExpression:
// *Schedule_CronExpression
// *Schedule_Rate
// *Schedule_CronSchedule
ScheduleExpression isSchedule_ScheduleExpression `protobuf_oneof:"ScheduleExpression"`
// Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
KickoffTimeInputArg string `protobuf:"bytes,3,opt,name=kickoff_time_input_arg,json=kickoffTimeInputArg,proto3" json:"kickoff_time_input_arg,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Schedule) Reset() { *m = Schedule{} }
func (m *Schedule) String() string { return proto.CompactTextString(m) }
func (*Schedule) ProtoMessage() {}
func (*Schedule) Descriptor() ([]byte, []int) {
return fileDescriptor_a71cf75647fcd25a, []int{2}
}
func (m *Schedule) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Schedule.Unmarshal(m, b)
}
func (m *Schedule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Schedule.Marshal(b, m, deterministic)
}
func (m *Schedule) XXX_Merge(src proto.Message) {
xxx_messageInfo_Schedule.Merge(m, src)
}
func (m *Schedule) XXX_Size() int {
return xxx_messageInfo_Schedule.Size(m)
}
func (m *Schedule) XXX_DiscardUnknown() {
xxx_messageInfo_Schedule.DiscardUnknown(m)
}
var xxx_messageInfo_Schedule proto.InternalMessageInfo
type isSchedule_ScheduleExpression interface {
isSchedule_ScheduleExpression()
}
type Schedule_CronExpression struct {
CronExpression string `protobuf:"bytes,1,opt,name=cron_expression,json=cronExpression,proto3,oneof"`
}
type Schedule_Rate struct {
Rate *FixedRate `protobuf:"bytes,2,opt,name=rate,proto3,oneof"`
}
type Schedule_CronSchedule struct {
CronSchedule *CronSchedule `protobuf:"bytes,4,opt,name=cron_schedule,json=cronSchedule,proto3,oneof"`
}
func (*Schedule_CronExpression) isSchedule_ScheduleExpression() {}
func (*Schedule_Rate) isSchedule_ScheduleExpression() {}
func (*Schedule_CronSchedule) isSchedule_ScheduleExpression() {}
func (m *Schedule) GetScheduleExpression() isSchedule_ScheduleExpression {
if m != nil {
return m.ScheduleExpression
}
return nil
}
// Deprecated: Do not use.
func (m *Schedule) GetCronExpression() string {
if x, ok := m.GetScheduleExpression().(*Schedule_CronExpression); ok {
return x.CronExpression
}
return ""
}
func (m *Schedule) GetRate() *FixedRate {
if x, ok := m.GetScheduleExpression().(*Schedule_Rate); ok {
return x.Rate
}
return nil
}
func (m *Schedule) GetCronSchedule() *CronSchedule {
if x, ok := m.GetScheduleExpression().(*Schedule_CronSchedule); ok {
return x.CronSchedule
}
return nil
}
func (m *Schedule) GetKickoffTimeInputArg() string {
if m != nil {
return m.KickoffTimeInputArg
}
return ""
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*Schedule) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*Schedule_CronExpression)(nil),
(*Schedule_Rate)(nil),
(*Schedule_CronSchedule)(nil),
}
}
func init() {
proto.RegisterEnum("flyteidl.admin.FixedRateUnit", FixedRateUnit_name, FixedRateUnit_value)
proto.RegisterType((*FixedRate)(nil), "flyteidl.admin.FixedRate")
proto.RegisterType((*CronSchedule)(nil), "flyteidl.admin.CronSchedule")
proto.RegisterType((*Schedule)(nil), "flyteidl.admin.Schedule")
}
func init() { proto.RegisterFile("flyteidl/admin/schedule.proto", fileDescriptor_a71cf75647fcd25a) }
var fileDescriptor_a71cf75647fcd25a = []byte{
// 358 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xc1, 0x8b, 0xda, 0x40,
0x14, 0xc6, 0x13, 0x4d, 0xad, 0xbe, 0xaa, 0x95, 0xa9, 0x48, 0x5a, 0x2a, 0x88, 0x27, 0x29, 0x98,
0x50, 0xa5, 0xf4, 0x6c, 0xac, 0x25, 0x1e, 0x76, 0x17, 0x66, 0xf5, 0xb0, 0x7b, 0x09, 0x31, 0x99,
0xc4, 0xc1, 0x64, 0x26, 0x4c, 0x26, 0x8b, 0xfb, 0xaf, 0xef, 0x69, 0x71, 0xd4, 0xac, 0x2e, 0xec,
0xf1, 0xf1, 0xcd, 0xfb, 0xbd, 0xef, 0x1b, 0x3e, 0xe8, 0x47, 0xc9, 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