This repository has been archived by the owner on Oct 23, 2023. It is now read-only.
/
signal.pb.go
397 lines (352 loc) · 15.2 KB
/
signal.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
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: flyteidl/admin/signal.proto
package admin
import (
fmt "fmt"
core "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core"
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
// SignalGetOrCreateRequest represents a request structure to retrive or create a signal.
// See :ref:`ref_flyteidl.admin.Signal` for more details
type SignalGetOrCreateRequest struct {
// A unique identifier for the requested signal.
Id *core.SignalIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// A type denoting the required value type for this signal.
Type *core.LiteralType `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SignalGetOrCreateRequest) Reset() { *m = SignalGetOrCreateRequest{} }
func (m *SignalGetOrCreateRequest) String() string { return proto.CompactTextString(m) }
func (*SignalGetOrCreateRequest) ProtoMessage() {}
func (*SignalGetOrCreateRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_4b1c2d4aa3794afa, []int{0}
}
func (m *SignalGetOrCreateRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SignalGetOrCreateRequest.Unmarshal(m, b)
}
func (m *SignalGetOrCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SignalGetOrCreateRequest.Marshal(b, m, deterministic)
}
func (m *SignalGetOrCreateRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SignalGetOrCreateRequest.Merge(m, src)
}
func (m *SignalGetOrCreateRequest) XXX_Size() int {
return xxx_messageInfo_SignalGetOrCreateRequest.Size(m)
}
func (m *SignalGetOrCreateRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SignalGetOrCreateRequest.DiscardUnknown(m)
}
var xxx_messageInfo_SignalGetOrCreateRequest proto.InternalMessageInfo
func (m *SignalGetOrCreateRequest) GetId() *core.SignalIdentifier {
if m != nil {
return m.Id
}
return nil
}
func (m *SignalGetOrCreateRequest) GetType() *core.LiteralType {
if m != nil {
return m.Type
}
return nil
}
// SignalListRequest represents a request structure to retrieve a collection of signals.
// See :ref:`ref_flyteidl.admin.Signal` for more details
type SignalListRequest struct {
// Indicates the workflow execution to filter by.
// +required
WorkflowExecutionId *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=workflow_execution_id,json=workflowExecutionId,proto3" json:"workflow_execution_id,omitempty"`
// Indicates the number of resources to be returned.
// +required
Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
// In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
// in a query.
// +optional
Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"`
// Indicates a list of filters passed as string.
// +optional
Filters string `protobuf:"bytes,4,opt,name=filters,proto3" json:"filters,omitempty"`
// Sort ordering.
// +optional
SortBy *Sort `protobuf:"bytes,5,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SignalListRequest) Reset() { *m = SignalListRequest{} }
func (m *SignalListRequest) String() string { return proto.CompactTextString(m) }
func (*SignalListRequest) ProtoMessage() {}
func (*SignalListRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_4b1c2d4aa3794afa, []int{1}
}
func (m *SignalListRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SignalListRequest.Unmarshal(m, b)
}
func (m *SignalListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SignalListRequest.Marshal(b, m, deterministic)
}
func (m *SignalListRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SignalListRequest.Merge(m, src)
}
func (m *SignalListRequest) XXX_Size() int {
return xxx_messageInfo_SignalListRequest.Size(m)
}
func (m *SignalListRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SignalListRequest.DiscardUnknown(m)
}
var xxx_messageInfo_SignalListRequest proto.InternalMessageInfo
func (m *SignalListRequest) GetWorkflowExecutionId() *core.WorkflowExecutionIdentifier {
if m != nil {
return m.WorkflowExecutionId
}
return nil
}
func (m *SignalListRequest) GetLimit() uint32 {
if m != nil {
return m.Limit
}
return 0
}
func (m *SignalListRequest) GetToken() string {
if m != nil {
return m.Token
}
return ""
}
func (m *SignalListRequest) GetFilters() string {
if m != nil {
return m.Filters
}
return ""
}
func (m *SignalListRequest) GetSortBy() *Sort {
if m != nil {
return m.SortBy
}
return nil
}
// SignalList represents collection of signals along with the token of the last result.
// See :ref:`ref_flyteidl.admin.Signal` for more details
type SignalList struct {
// A list of signals matching the input filters.
Signals []*Signal `protobuf:"bytes,1,rep,name=signals,proto3" json:"signals,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 *SignalList) Reset() { *m = SignalList{} }
func (m *SignalList) String() string { return proto.CompactTextString(m) }
func (*SignalList) ProtoMessage() {}
func (*SignalList) Descriptor() ([]byte, []int) {
return fileDescriptor_4b1c2d4aa3794afa, []int{2}
}
func (m *SignalList) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SignalList.Unmarshal(m, b)
}
func (m *SignalList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SignalList.Marshal(b, m, deterministic)
}
func (m *SignalList) XXX_Merge(src proto.Message) {
xxx_messageInfo_SignalList.Merge(m, src)
}
func (m *SignalList) XXX_Size() int {
return xxx_messageInfo_SignalList.Size(m)
}
func (m *SignalList) XXX_DiscardUnknown() {
xxx_messageInfo_SignalList.DiscardUnknown(m)
}
var xxx_messageInfo_SignalList proto.InternalMessageInfo
func (m *SignalList) GetSignals() []*Signal {
if m != nil {
return m.Signals
}
return nil
}
func (m *SignalList) GetToken() string {
if m != nil {
return m.Token
}
return ""
}
// SignalSetRequest represents a request structure to set the value on a signal. Setting a signal
// effetively satisfies the signal condition within a Flyte workflow.
// See :ref:`ref_flyteidl.admin.Signal` for more details
type SignalSetRequest struct {
// A unique identifier for the requested signal.
Id *core.SignalIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// The value of this signal, must match the defining signal type.
Value *core.Literal `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SignalSetRequest) Reset() { *m = SignalSetRequest{} }
func (m *SignalSetRequest) String() string { return proto.CompactTextString(m) }
func (*SignalSetRequest) ProtoMessage() {}
func (*SignalSetRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_4b1c2d4aa3794afa, []int{3}
}
func (m *SignalSetRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SignalSetRequest.Unmarshal(m, b)
}
func (m *SignalSetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SignalSetRequest.Marshal(b, m, deterministic)
}
func (m *SignalSetRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SignalSetRequest.Merge(m, src)
}
func (m *SignalSetRequest) XXX_Size() int {
return xxx_messageInfo_SignalSetRequest.Size(m)
}
func (m *SignalSetRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SignalSetRequest.DiscardUnknown(m)
}
var xxx_messageInfo_SignalSetRequest proto.InternalMessageInfo
func (m *SignalSetRequest) GetId() *core.SignalIdentifier {
if m != nil {
return m.Id
}
return nil
}
func (m *SignalSetRequest) GetValue() *core.Literal {
if m != nil {
return m.Value
}
return nil
}
// SignalSetResponse represents a response structure if signal setting succeeds.
type SignalSetResponse struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SignalSetResponse) Reset() { *m = SignalSetResponse{} }
func (m *SignalSetResponse) String() string { return proto.CompactTextString(m) }
func (*SignalSetResponse) ProtoMessage() {}
func (*SignalSetResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_4b1c2d4aa3794afa, []int{4}
}
func (m *SignalSetResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SignalSetResponse.Unmarshal(m, b)
}
func (m *SignalSetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SignalSetResponse.Marshal(b, m, deterministic)
}
func (m *SignalSetResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_SignalSetResponse.Merge(m, src)
}
func (m *SignalSetResponse) XXX_Size() int {
return xxx_messageInfo_SignalSetResponse.Size(m)
}
func (m *SignalSetResponse) XXX_DiscardUnknown() {
xxx_messageInfo_SignalSetResponse.DiscardUnknown(m)
}
var xxx_messageInfo_SignalSetResponse proto.InternalMessageInfo
// Signal encapsulates a unique identifier, associated metadata, and a value for a single Flyte
// signal. Signals may exist either without a set value (representing a signal request) or with a
// populated value (indicating the signal has been given).
type Signal struct {
// A unique identifier for the requested signal.
Id *core.SignalIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// A type denoting the required value type for this signal.
Type *core.LiteralType `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
// The value of the signal. This is only available if the signal has been "set" and must match
// the defined the type.
Value *core.Literal `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Signal) Reset() { *m = Signal{} }
func (m *Signal) String() string { return proto.CompactTextString(m) }
func (*Signal) ProtoMessage() {}
func (*Signal) Descriptor() ([]byte, []int) {
return fileDescriptor_4b1c2d4aa3794afa, []int{5}
}
func (m *Signal) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Signal.Unmarshal(m, b)
}
func (m *Signal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Signal.Marshal(b, m, deterministic)
}
func (m *Signal) XXX_Merge(src proto.Message) {
xxx_messageInfo_Signal.Merge(m, src)
}
func (m *Signal) XXX_Size() int {
return xxx_messageInfo_Signal.Size(m)
}
func (m *Signal) XXX_DiscardUnknown() {
xxx_messageInfo_Signal.DiscardUnknown(m)
}
var xxx_messageInfo_Signal proto.InternalMessageInfo
func (m *Signal) GetId() *core.SignalIdentifier {
if m != nil {
return m.Id
}
return nil
}
func (m *Signal) GetType() *core.LiteralType {
if m != nil {
return m.Type
}
return nil
}
func (m *Signal) GetValue() *core.Literal {
if m != nil {
return m.Value
}
return nil
}
func init() {
proto.RegisterType((*SignalGetOrCreateRequest)(nil), "flyteidl.admin.SignalGetOrCreateRequest")
proto.RegisterType((*SignalListRequest)(nil), "flyteidl.admin.SignalListRequest")
proto.RegisterType((*SignalList)(nil), "flyteidl.admin.SignalList")
proto.RegisterType((*SignalSetRequest)(nil), "flyteidl.admin.SignalSetRequest")
proto.RegisterType((*SignalSetResponse)(nil), "flyteidl.admin.SignalSetResponse")
proto.RegisterType((*Signal)(nil), "flyteidl.admin.Signal")
}
func init() { proto.RegisterFile("flyteidl/admin/signal.proto", fileDescriptor_4b1c2d4aa3794afa) }
var fileDescriptor_4b1c2d4aa3794afa = []byte{
// 429 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x93, 0x51, 0x8b, 0xd3, 0x40,
0x10, 0xc7, 0x49, 0x7b, 0x6d, 0x71, 0x0f, 0x45, 0x73, 0xe7, 0xb1, 0x56, 0xd1, 0x92, 0xa7, 0x22,
0xde, 0xae, 0x9c, 0x88, 0xef, 0x27, 0x22, 0xc2, 0x81, 0xb0, 0x3d, 0x10, 0x7c, 0xb0, 0xa4, 0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